/**
 * WooCommerce Toast Notifications
 * Styles for toast notification system
 */

.wc-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    pointer-events: none;
}

.wc-toast__item {
    padding: 16px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 500px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    pointer-events: auto;
    transform: translateX(400px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.wc-toast__item--show {
    transform: translateX(0);
    opacity: 1;
}

.wc-toast__item--hide {
    transform: translateX(400px);
    opacity: 0;
}

/* Success toast */
.wc-toast__item--success {
    background: #28a745;
    color: #ffffff;
    border-left: 4px solid #1e7e34;
}

/* Error toast */
.wc-toast__item--error {
    background: #dc3545;
    color: #ffffff;
    border-left: 4px solid #c82333;
}

/* Info/Notice toast */
.wc-toast__item--info {
    background: #17a2b8;
    color: #ffffff;
    border-left: 4px solid #117a8b;
}

/* Style links and HTML elements inside toasts */
.wc-toast__item a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.wc-toast__item a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.wc-toast__item strong,
.wc-toast__item b {
    font-weight: 700;
}

.wc-toast__item ul,
.wc-toast__item ol {
    margin: 8px 0;
    padding-left: 20px;
}

.wc-toast__item li {
    margin: 4px 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wc-toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }

    .wc-toast__item {
        min-width: unset;
        max-width: 100%;
        padding: 14px 18px;
        font-size: 13px;
    }
}

/* Optional: Hide default WooCommerce notices if you want only toasts */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
    /* Uncomment to completely hide default notices */
    /* display: none !important; */
}
