/**
 * Fashionary Checkout Styles
 * Version: 1.7.1
 * 
 * Styles for restriction modal and checkout enhancements
 */

/* Restriction Modal Base */
#fashionary-restriction-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#fashionary-restriction-modal.open {
    display: flex;
    opacity: 1;
}

/* Modal Content Card */
#fashionary-restriction-modal .modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header with Gradient */
#fashionary-restriction-modal .modal-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    color: white;
}

/* IP Block - Red Theme */
#fashionary-restriction-modal[data-reason="ip_blocked"] .modal-header {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

/* Phone Block - Amber Theme */
#fashionary-restriction-modal[data-reason="phone_blocked"] .modal-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

#fashionary-restriction-modal .modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

#fashionary-restriction-modal .modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Modal Body */
#fashionary-restriction-modal .modal-body {
    text-align: center;
    padding: 0 8px;
}

#fashionary-restriction-modal .modal-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 20px;
}

/* Call Button */
#fashionary-restriction-modal .modal-call-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

#fashionary-restriction-modal .modal-call-button:hover {
    background: #059669;
}

#fashionary-restriction-modal .modal-call-button::before {
    content: "📞";
    font-size: 18px;
}

/* Close Button */
#fashionary-restriction-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 20px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#fashionary-restriction-modal .modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #1f2937;
}

/* Inline Restriction Message */
.fashionary-inline-restriction {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    color: #991b1b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fashionary-inline-restriction::before {
    content: "⚠️";
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 480px) {
    #fashionary-restriction-modal .modal-content {
        padding: 24px;
        border-radius: 12px;
    }
    
    #fashionary-restriction-modal .modal-title {
        font-size: 18px;
    }
    
    #fashionary-restriction-modal .modal-text {
        font-size: 14px;
    }
}
