/* Accessible, iPhone-inspired birth-date dialog for the customer login only. */
body.customer-date-dialog-open { overflow: hidden; }
.customer-date-modal[hidden] { display: none !important; }
.customer-date-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
}
.customer-date-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 31, 52, .54);
    backdrop-filter: blur(3px);
}
.customer-date-sheet {
    position: relative;
    width: min(100%, 490px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 25px 25px 22px;
    background: #fff;
    border: 1px solid #dce6f0;
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(9, 29, 55, .25);
    color: #123050;
}
.customer-date-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.customer-date-eyebrow {
    margin: 0 0 4px;
    color: #1679a5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}
.customer-date-modal-head h2 {
    margin: 0;
    font-size: 23px;
    line-height: 1.3;
    color: #0a335c;
}
.customer-date-close {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 36px;
    height: 36px;
    width: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf3f9;
    color: #45647e;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
}
.customer-date-description {
    margin: 14px 0 19px;
    color: #627991;
    font-size: 14px;
    line-height: 1.6;
}
.customer-date-columns {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr) minmax(0, 1.15fr);
    gap: 10px;
}
.customer-date-column { min-width: 0; }
.customer-login-card .customer-date-column label {
    margin: 0 0 8px;
    text-align: center;
    font-weight: 750;
    font-size: 13px;
    color: #294b6b;
}
.customer-date-column select,
.customer-login-card .customer-date-column input {
    display: block;
    width: 100%;
    min-height: 53px;
    padding: 10px 7px;
    border: 1px solid #c7d8e7;
    border-radius: 12px;
    background: #f4f8fc;
    text-align: center;
    font-size: 16px;
    font-weight: 750;
    color: #123e68;
}
.customer-date-column select { cursor: pointer; }
.customer-login-card .customer-date-column input::placeholder { color: #91a2b5; font-weight: 500; }
.customer-date-column select:focus,
.customer-date-column input:focus {
    outline: 3px solid #9acde8;
    outline-offset: 1px;
    border-color: #2987b6;
}
.customer-date-year-hint {
    margin: 12px 0 16px;
    color: #647a90;
    font-size: 12px;
    text-align: center;
    line-height: 1.6;
}
.customer-date-selection {
    margin: 0 0 13px;
    padding: 13px 14px;
    border: 1px solid #d3e8f4;
    border-radius: 12px;
    background: #eef7fc;
    text-align: center;
    font-weight: 750;
    color: #0b618e;
    min-height: 50px;
}
.customer-date-modal-error {
    margin: 0 0 13px;
    color: #b32f37;
    font-size: 12px;
    line-height: 1.5;
}
.customer-date-modal-error[hidden] { display: none; }
.customer-date-modal-actions {
    display: flex;
    gap: 10px;
}
.customer-date-modal-actions button {
    flex: 1;
    min-height: 46px;
    border-radius: 12px;
    font-weight: 750;
}
.customer-date-cancel { background: #f3f6fa; color: #37506a; border-color: #d8e2ea; }
.customer-date-confirm:disabled { opacity: .45; cursor: not-allowed; }
.customer-date-sheet button:focus-visible { outline: 3px solid #78b9df; outline-offset: 2px; }

@media (max-width: 560px) {
    .customer-date-modal { align-items: end; padding: 0; }
    .customer-date-sheet {
        width: 100%;
        max-height: min(89dvh, 700px);
        padding: 22px 19px max(22px, env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0;
        border-bottom: 0;
    }
    .customer-date-modal-head h2 { font-size: 21px; }
    .customer-date-columns { gap: 7px; }
    .customer-date-column select,
    .customer-login-card .customer-date-column input { font-size: 15px; padding-inline: 4px; }
}
