/**
 * Hanna Hazardous Products Manager - Frontend Styles
 */

/* Badge de Mercancía Peligrosa */
.hhpm-hazardous-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 4px;
    padding: 12px 18px;
    margin: 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: #856404;
}

.hhpm-badge-icon {
    font-size: 20px;
    line-height: 1;
}

.hhpm-badge-text {
    flex: 1;
}

/* Modal de Advertencia */
.hhpm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    animation: hhpmFadeIn 0.3s ease;
}

@keyframes hhpmFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hhpm-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: hhpmSlideUp 0.3s ease;
}

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

.hhpm-modal-header {
    padding: 25px;
    border-bottom: 2px solid #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #fffae6 100%);
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 8px 8px 0 0;
}

.hhpm-modal-icon {
    font-size: 36px;
    line-height: 1;
    color: #ffc107;
}

.hhpm-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #856404;
    flex: 1;
}

.hhpm-modal-body {
    padding: 30px 25px;
    overflow-y: auto;
    flex: 1;
}

.hhpm-modal-message {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    white-space: pre-line;
}

.hhpm-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.hhpm-modal-cancel,
.hhpm-modal-confirm {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.hhpm-modal-cancel {
    background: #f0f0f0;
    color: #666;
}

.hhpm-modal-cancel:hover {
    background: #e0e0e0;
    color: #333;
}

.hhpm-modal-confirm {
    background: #ffc107;
    color: #856404;
}

.hhpm-modal-confirm:hover {
    background: #ffb300;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Avisos en Carrito/Checkout */
.woocommerce-info,
.woocommerce-message {
    border-left-color: #ffc107 !important;
}

.woocommerce-info::before,
.woocommerce-message::before {
    color: #ffc107 !important;
}

/* Responsive */
@media (max-width: 600px) {
    .hhpm-modal {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .hhpm-modal-header {
        padding: 20px;
    }
    
    .hhpm-modal-body {
        padding: 20px;
    }
    
    .hhpm-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .hhpm-modal-cancel,
    .hhpm-modal-confirm {
        width: 100%;
    }
    
    .hhpm-hazardous-badge {
        padding: 10px 15px;
        font-size: 13px;
    }
}
