/* WooCommerce Toast Notifications */

#wc-toast-container {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: min(390px, calc(100vw - 32px)) !important;
    pointer-events: none !important;
}

.wc-toast {
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 15px 46px 15px 16px !important;
    background: #fff !important;
    color: #222 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.16) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    opacity: 0 !important;
    transform: translateX(24px) !important;
    transition: opacity .25s ease, transform .25s ease !important;
    pointer-events: auto !important;
    overflow: hidden !important;
}

.wc-toast.is-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.wc-toast.is-leaving {
    opacity: 0 !important;
    transform: translateX(24px) !important;
}

.wc-toast::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 4px !important;
    height: 100% !important;
    background: #777 !important;
}

.wc-toast--success::before {
    background: #2e7d32 !important;
}

.wc-toast--error::before {
    background: #c62828 !important;
}

.wc-toast--info::before {
    background: #1565c0 !important;
}

.wc-toast__icon {
    flex: 0 0 auto !important;
    width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-top: 1px !important;
}

.wc-toast--success .wc-toast__icon {
    background: rgba(46, 125, 50, .10) !important;
    color: #2e7d32 !important;
}

.wc-toast--error .wc-toast__icon {
    background: rgba(198, 40, 40, .10) !important;
    color: #c62828 !important;
}

.wc-toast--info .wc-toast__icon {
    background: rgba(21, 101, 192, .10) !important;
    color: #1565c0 !important;
}

.wc-toast__message {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.wc-toast__message,
.wc-toast__message p,
.wc-toast__message li {
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.wc-toast__message ul,
.wc-toast__message ol {
    margin: 0 !important;
    padding-left: 18px !important;
}

.wc-toast__message a {
    color: inherit !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.wc-toast__close {
    position: absolute !important;
    top: 8px !important;
    right: 9px !important;
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #777 !important;
    font-size: 22px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.wc-toast__close:hover {
    background: rgba(0, 0, 0, .06) !important;
    color: #111 !important;
}

.wc-toast__progress {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 3px !important;
    width: 100% !important;
    background: rgba(0, 0, 0, .10) !important;
    transform-origin: left center !important;
}

.wc-toast.is-running .wc-toast__progress {
    animation: wcToastProgress var(--wc-toast-duration, 5000ms) linear forwards !important;
}

@keyframes wcToastProgress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* Masque uniquement les notices WooCommerce déjà converties */
.woocommerce-message.wc-toast-processed,
.woocommerce-error.wc-toast-processed,
.woocommerce-info.wc-toast-processed,
.wc-block-components-notice-banner.wc-toast-processed {
    display: none !important;
}

@media (max-width: 767px) {
    #wc-toast-container {
        top: 14px !important;
        right: 16px !important;
        left: 16px !important;
        width: auto !important;
    }

    .wc-toast {
        width: 100% !important;
        padding: 14px 44px 14px 14px !important;
        font-size: 13px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wc-toast {
        transition: none !important;
    }

    .wc-toast__progress {
        animation: none !important;
    }
}
