﻿/* iOS Install Modal-like Div Styles */
#iosInstallDialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1055;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    pointer-events: auto; /* Ensure the dialog itself is still interactive */
}

#iosInstallBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1054;
    pointer-events: none; /* Make backdrop non-blocking */
}

.ios-dialog-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.5rem - 1px);
    border-top-right-radius: calc(0.5rem - 1px);
}
.ios-dialog-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 500;
}

.ios-dialog-close {
    padding: 0.5rem 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    font-size: 1.125rem;
    line-height: 1;
    color: #000;
    text-decoration: none;
    opacity: 0.5;
    cursor: pointer;
}

    .ios-dialog-close:hover {
        color: #000;
        text-decoration: none;
        opacity: 0.75;
    }

.ios-dialog-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
    pointer-events: auto; /* Ensure dialog content is still interactive */
}
