/* Estilos de notificaciones de compras recientes - alineado con identidad visual */

/* Contenedor en esquina superior izquierda */

#purchase-toasts {
    z-index: 2000;
    pointer-events: none;
    /* no bloquea clics en la página */
}

/* Cada toast permite interacción (cerrar) */

#purchase-toasts .toast {
    pointer-events: auto;
    position: relative;
    background: #fff !important;
    color: #212529 !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(232, 18, 104, 0.08), 0 4px 10px rgba(0, 0, 0, .06);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    animation: purchaseToastIn .28s ease-out forwards;
}

/* Acento lateral con el color corporativo */

#purchase-toasts .toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e81268;
    /* rosa corporativo */
}

#purchase-toasts .toast .toast-body {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    line-height: 1.25;
}

#purchase-toasts .toast .btn-close {
    filter: none;
}

/* Imagen del producto */

.purchase-toast-img,
#purchase-toasts .toast .toast-body img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 44px;
    background: #f1f3f5;
    border: 1px solid #f1f3f5;
}

/* Texto con énfasis ligero para el producto */

.purchase-toast-title {
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.2;
    color: #212529;
    margin-bottom: 2px;
}

.purchase-toast-text {
    font-weight: 500;
    font-size: 0.86rem;
    color: #495057;
}

@keyframes purchaseToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive: reducir tamaño en móviles pequeños */

@media (max-width: 420px) {
    .purchase-toast-img,
    #purchase-toasts .toast .toast-body img {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}