/* ========================================
   CHECKOUT MODAL - DISPLAY FIX
   ======================================== */

.udc-checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.udc-checkout-modal.show,
.udc-checkout-modal[style*="display: flex"] {
    display: flex !important;
}

.udc-checkout-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.udc-checkout-container {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.udc-checkout-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #666;
}

.udc-checkout-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .udc-checkout-modal {
        padding: 10px;
    }
    
    .udc-checkout-container {
        padding: 1.5rem;
        max-height: 95vh;
    }
}
