/* ==========================================================================
   Add-to-cart toast + mini-cart icon wiggle
   ========================================================================== */

.hec-cart-toast-wrap {
    position: fixed;
    z-index: 2000;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 340px;
    pointer-events: none;
}

.hec-cart-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 12px 12px 12px 14px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.hec-cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hec-cart-toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1a9c4c;
    color: #fff;
}
.hec-cart-toast-icon svg {
    width: 13px;
    height: 13px;
}

.hec-cart-toast-body {
    flex: 1;
    min-width: 0;
}
.hec-cart-toast-text {
    display: block;
    font-size: 13px;
    color: #222;
    line-height: 1.5;
    margin: 0 0 4px;
}
.hec-cart-toast-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--e-global-color-primary, #ff7a1a) !important;
    text-decoration: none !important;
}
.hec-cart-toast-link:hover {
    text-decoration: underline !important;
}

.hec-cart-toast-close {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    background: none !important;
    color: #999 !important;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 !important;
    box-shadow: none !important;
}
.hec-cart-toast-close:hover {
    color: #333 !important;
}

@media (max-width: 767px) {
    .hec-cart-toast-wrap {
        left: 12px;
        right: 12px;
        bottom: 76px; /* clear the fixed mobile bottom nav */
        max-width: none;
    }
}

/* ------------------------------------------------------------------
   Cart icon wiggle, played once per add-to-cart. Generic on purpose
   (not scoped to one icon's class) — cart-toast.js applies it to both
   the header mini-cart icon(s) and the mobile bottom nav's cart icon.
   ------------------------------------------------------------------ */
@keyframes hecCartWiggle {
    0%, 100% { transform: rotate(0deg); }
    15%  { transform: rotate(-14deg); }
    30%  { transform: rotate(12deg); }
    45%  { transform: rotate(-10deg); }
    60%  { transform: rotate(8deg); }
    75%  { transform: rotate(-4deg); }
    90%  { transform: rotate(2deg); }
}
.hec-wiggle {
    animation: hecCartWiggle 0.6s ease;
    transform-origin: 50% 0%;
}
