/**
 * Toast notifications for Wishlist actions
 * Modern toast design for add/remove product notifications
 */

/* Toast Container */
.westface-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    pointer-events: none;
}

/* Toast Item */
.westface-toast {
    min-width: 300px;
    max-width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.westface-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.westface-toast.hide {
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
}

/* Toast Icon */
.westface-toast-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
}

/* Success variant */
.westface-toast.success .westface-toast-icon {
    background: #d4edda;
    color: #1ac299;
}

.westface-toast.success {
    border-left: 4px solid #1ac299;
}

/* Error variant */
.westface-toast.error .westface-toast-icon {
    background: #f8d7da;
    color: #721c24;
}

.westface-toast.error {
    border-left: 4px solid #dc3545;
}

/* Info variant */
.westface-toast.info .westface-toast-icon {
    background: #d1ecf1;
    color: #0c5460;
}

.westface-toast.info {
    border-left: 4px solid #17a2b8;
}

/* Toast Content */
.westface-toast-content {
    flex: 1;
    min-width: 0;
}

.westface-toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.westface-toast-message {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Close Button */
.westface-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s;
}

.westface-toast-close:hover {
    color: #333;
}

/* Progress Bar */
.westface-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    width: 100%;
    transform-origin: left;
}

.westface-toast.success .westface-toast-progress {
    color: rgba(0, 212, 170, .7);
    ;
}

.westface-toast.error .westface-toast-progress {
    color: #dc3545;
}

.westface-toast.info .westface-toast-progress {
    color: #17a2b8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .westface-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .westface-toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Hide plugin's default popup */
#thwwc_modal {
    display: none !important;
}