/* PAYMENT LIGHTBOX STYLES */
.payment-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.payment-lightbox.active {
    display: flex;
}

.lightbox-content {
    background: var(--pure-white);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.lightbox-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid var(--gray-100);
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 18px;
    height: 18px;
    color: var(--gray-600);
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--espresso);
    margin-bottom: 0.5rem;
}

.lightbox-subtitle {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.lightbox-body {
    padding: 2rem;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--sand);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.secure-badge svg {
    width: 24px;
    height: 24px;
    color: var(--warm-beige-dark);
}

.secure-badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--warm-taupe);
}

#authorize-net-container {
    min-height: 400px;
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gray-500);
    /*padding: 2rem;*/
    padding: 0;
    text-align: center;
}

.payment-frame-container {
    width: 100%;
    max-width: 600px; /* adjust based on design */
    aspect-ratio: 4 / 3; /* default ratio */
    background: #fff;
    border: 1px solid #E5D4B1; /* matches your theme */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.payment-frame-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Optional: fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
    .payment-frame-container {
        position: relative;
        padding-bottom: 75%; /* 4:3 ratio fallback */
        height: 0;
    }
    .payment-frame-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}