/**
 * Estilos para el módulo Engaging Messages
 * 
 * @author PYRAMICA
 * @copyright PYRAMICA
 */

.engaging-message-container {
    margin: 20px 0;
    padding: 0;
}

.engaging-message {
    display: flex;
    align-items: center;
    /* El color se define dinámicamente desde PHP */
    background: #2fb5d2;
    border-radius: 12px;
    padding: 18px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    animation: fadeInSlide 0.6s ease-out;
}

.engaging-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05);
}

.engaging-message-icon {
    font-size: 28px;
    margin-right: 16px;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.engaging-message-text {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Animación de entrada */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación del icono */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .engaging-message {
        padding: 15px 20px;
    }
    
    .engaging-message-icon {
        font-size: 24px;
        margin-right: 12px;
    }
    
    .engaging-message-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .engaging-message {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .engaging-message-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Variantes de color alternativas (pueden añadirse mediante clases adicionales) */
.engaging-message.variant-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.engaging-message.variant-green {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.engaging-message.variant-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.engaging-message.variant-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ================================================
   Ocultar "Facturas por abono" / "Credit slips"
   ================================================ */

/* Footer - módulo ps_customeraccountlinks */
#block_myaccount_infos a[href*="order-slip"] {
    display: none !important;
}

#block_myaccount_infos a[title*="Credit slips"] {
    display: none !important;
}

#block_myaccount_infos a[title*="Facturas por abono"] {
    display: none !important;
}

/* Ocultar el <li> padre del enlace en el footer */
#block_myaccount_infos li:has(a[href*="order-slip"]) {
    display: none !important;
}

/* Página Mi Cuenta - enlaces */
.links a[href*="order-slip"],
.account-list a[href*="order-slip"],
#content a[href*="order-slip"],
.my-account-links a[href*="order-slip"] {
    display: none !important;
}

/* Página Mi Cuenta - contenedores li */
.links li:has(a[href*="order-slip"]),
.account-list li:has(a[href*="order-slip"]),
.my-account-links li:has(a[href*="order-slip"]) {
    display: none !important;
}

/* Área de cliente - enlace específico por ID y href */
#order-slips-link,
a[href*="facturas-abono"],
a[href*="order-slips"] {
    display: none !important;
}

