/**
 * Styles pour Iframe Modal Links
 */

/* Styles pour la meta box dans l'admin */
#iml_product_modal_settings .form-table td {
    padding: 10px 0;
}

#iml_product_modal_settings .description {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

#iml_product_modal_settings input[type="checkbox"] {
    margin-right: 8px;
}

#iml_product_modal_settings input[type="text"] {
    margin-top: 5px;
}

/* Styles pour le modal (si nécessaire) */
.iml-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iml-modal-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    width: 60vw;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.iml-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1000000;
}

.iml-modal-close:hover {
    color: #000;
}

.iml-modal-iframe {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 4px;
}

.iml-loading {
    text-align: center;
    padding: 60px 40px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* LOADER ANIMÉ SIMPLIFIÉ */
.iml-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Animation de points qui pulsent - ROUGE */
.iml-loading-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.iml-loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #a6192e;
    animation: pulse-dot 1.4s ease-in-out infinite both;
}

.iml-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.iml-loading-dot:nth-child(2) { animation-delay: -0.16s; }
.iml-loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes pulse-dot {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Texte de chargement */
.iml-loading-text {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .iml-modal-content {
        margin: 10px;
        padding: 15px;
    }
    
    .iml-modal-iframe {
        height: 70vh;
    }
}