/* Add-to-cart celebration: toast + confetti burst. Same additive-file
   situation as the other frontend patches (no access to the real
   frontend.css), so this is a new small standalone stylesheet. */

.gr-cart-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #d1fae5;
    border-left: 4px solid #15803d;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 14px 18px;
    max-width: 320px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gr-cart-toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.gr-cart-toast__icon {
    color: #15803d;
    font-size: 22px;
    flex-shrink: 0;
}

.gr-cart-toast__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    color: #374151;
}

.gr-cart-toast__text strong {
    color: #111827;
}

@media (max-width: 600px) {
    .gr-cart-toast {
        left: 16px;
        right: 16px;
        top: 12px;
        max-width: none;
    }
}

/* Confetti */
.gr-confetti-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.gr-confetti-piece {
    position: fixed;
    top: -10px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    opacity: 0.95;
    animation-name: gr-confetti-fall;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-fill-mode: forwards;
}

@keyframes gr-confetti-fall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(calc(var(--gr-confetti-x, 0) * 80px), 70vh) rotate(var(--gr-confetti-rot, 180deg));
        opacity: 0;
    }
}
