/* Shared Notification System */
.rebit-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rebit-toast {
    background: var(--color-surface, #ffffff);
    color: var(--color-on-surface, #1b1b1e);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: var(--radius-default, 6px);
    border-left: 4px solid var(--color-primary, #006283);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 350px;
    max-width: calc(100vw - 40px);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rebit-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.rebit-toast.fade-out {
    transform: translateX(120%);
    opacity: 0;
}

.rebit-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.rebit-toast-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary, #006283);
    flex-shrink: 0;
}

.rebit-toast-message {
    font-size: 14px;
    line-height: 1.4;
}

.rebit-toast-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary, #006283);
    text-decoration: none;
    white-space: nowrap;
}

.rebit-toast-link:hover {
    text-decoration: underline;
}

/* Ocultar enlace "Ver carrito" nativo de WooCommerce que se anexa al botón */
a.added_to_cart.wc-forward {
    display: none !important;
}

@media (max-width: 480px) {
    .rebit-toast-container {
        bottom: 15px;
        right: 15px;
        left: 15px; /* Para centrarlo si quisieramos, o dejarlo abajo a la derecha */
    }
    
    .rebit-toast {
        width: auto;
        max-width: 100%;
        padding: 12px 15px;
        gap: 10px;
        border-left-width: 3px;
    }
    
    .rebit-toast-message {
        font-size: 12px;
    }
    
    .rebit-toast-link {
        font-size: 11px;
        padding: 4px 8px;
        background: var(--color-surface-alt, #f5f3f6);
        border-radius: 4px;
    }
    
    .rebit-toast-icon {
        width: 16px;
        height: 16px;
    }
}
