/**
 * Reusable Toast Component Styles
 * Used for wishlist, cart, and other notifications
 */

/* Toast Base */
.rinno-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: rinno-toast-slide-in 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #10b981;
    transform-origin: top right;
}

.rinno-toast--error {
    border-left-color: #ef4444;
}

.rinno-toast--info {
    border-left-color: #3b82f6;
}

.rinno-toast__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    background: #d1fae5;
    color: #10b981;
}

.rinno-toast--error .rinno-toast__icon {
    background: #fee2e2;
    color: #ef4444;
}

.rinno-toast--info .rinno-toast__icon {
    background: #dbeafe;
    color: #3b82f6;
}

.rinno-toast__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.rinno-toast__content {
    flex: 1;
    min-width: 0;
}

.rinno-toast__title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.rinno-toast__message {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.rinno-toast__close {
    background: none;
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
    border-radius: 4px;
}

.rinno-toast__close:hover {
    color: #374151;
    background: #f3f4f6;
}

.rinno-toast__close svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Animations */
@keyframes rinno-toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes rinno-toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

.rinno-toast--closing {
    animation: rinno-toast-slide-out 0.3s ease forwards;
}

/* Responsive */
@media (max-width: 480px) {
    .rinno-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}

