.customer-auth-modal {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding: max(12px, env(safe-area-inset-top, 0px))
        max(12px, env(safe-area-inset-right, 0px))
        max(12px, env(safe-area-inset-bottom, 0px))
        max(12px, env(safe-area-inset-left, 0px));
    overflow: hidden;
}

.customer-auth-modal .modal-dialog {
    width: 100%;
    max-width: 540px;
    min-height: 100%;
    margin: 0 auto;
}

.customer-auth-modal .modal-content {
    max-height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.24);
}

.customer-auth-modal .modal-header {
    flex: 0 0 auto;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
}

.customer-auth-modal .modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.customer-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    padding: 0.25rem;
    background: #f1f5f9;
    border-radius: 0.75rem;
}

.customer-auth-tabs button {
    min-height: 42px;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    color: #334155;
    font-weight: 600;
}

.customer-auth-tabs button.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
}

.customer-auth-modal .form-control {
    min-height: 46px;
}

.customer-auth-modal .btn-primary {
    min-height: 48px;
    border-color: #a88734;
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    color: #111827;
    font-weight: 700;
}

.customer-auth-modal .btn-primary:hover,
.customer-auth-modal .btn-primary:focus {
    border-color: #8d712c;
    background: linear-gradient(to bottom, #f5d78e, #edb931);
    color: #111827;
}

.customer-auth-google {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.customer-otp-input {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
}

.customer-auth-message:empty {
    display: none;
}

body.customer-auth-open {
    overflow: hidden;
}

.seller-cta {
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .customer-auth-modal {
        padding: max(8px, env(safe-area-inset-top, 0px)) 0 0;
    }

    .customer-auth-modal .modal-dialog {
        align-items: flex-end;
        min-height: 100%;
        height: 100%;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .customer-auth-modal .modal-content {
        max-height: 100%;
        border-radius: 1rem 1rem 0 0;
    }

    .customer-auth-modal .modal-header {
        padding: 1rem;
    }

    .customer-auth-modal .modal-body {
        padding: 1rem max(1rem, env(safe-area-inset-right, 0px))
            max(1rem, env(safe-area-inset-bottom, 0px))
            max(1rem, env(safe-area-inset-left, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-auth-modal.fade .modal-dialog {
        transition: none;
    }
}
