/**
 * Animation des notices WooCommerce
 * 
 * Style : Card en bas centrée avec fade-in + glissement
 * Auto-disparition après 3 secondes
 */

/* Positionnement en bas centré */
.woocommerce-notices-wrapper {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 460px!important;
    opacity: 0;
    pointer-events: none;
}

.woocommerce-notices-wrapper.loaded {
    opacity: 1;
    pointer-events: auto;
}

/* Style card pour les notices */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
    margin: 0 0 10px 0;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #fff;
    border-left: 4px solid;
    animation: noticeSlideIn 0.5s ease-out forwards;
    font-size: 14px;
    line-height: 1.4;
}

/* Bouton "Voir le panier" */
.woocommerce-notices-wrapper .button {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    margin-left: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Couleurs selon le type */
.woocommerce-notices-wrapper .woocommerce-message {
    border-left-color: #28a745;
}

.woocommerce-notices-wrapper .woocommerce-error {
    border-left-color: #dc3545;
}

.woocommerce-notices-wrapper .woocommerce-info {
    border-left-color: #17a2b8;
}

/* Animation d'apparition */
@keyframes noticeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de disparition */
@keyframes noticeSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.woocommerce-notices-wrapper.hiding .woocommerce-message,
.woocommerce-notices-wrapper.hiding .woocommerce-error,
.woocommerce-notices-wrapper.hiding .woocommerce-info {
    animation: noticeSlideOut 0.3s ease-out forwards;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .woocommerce-notices-wrapper {
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100% - 20px);
        bottom: 10px;
    }
    
    .woocommerce-notices-wrapper .woocommerce-message,
    .woocommerce-notices-wrapper .woocommerce-error,
    .woocommerce-notices-wrapper .woocommerce-info {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .woocommerce-notices-wrapper .button {
        padding: 5px 12px;
        font-size: 12px;
    }
}

