/* INSPERO add-to-cart feedback (see js/inspero-cart-fx.js) */
.ins-cfx-busy, .ins-cfx-done, .ins-cfx-fail { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.ins-cfx-busy { cursor: wait; opacity: .9; }
.ins-cfx-spin {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: insCfxSpin .7s linear infinite;
}
.ins-cfx-done { animation: insCfxPress .35s ease; }
.ins-cfx-tick {
    display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    background: #010001; color: #DCAE30; font-size: 12px; font-weight: 700;
    animation: insCfxTick .45s cubic-bezier(.2, 1.6, .4, 1);
}
.ins-cfx-fail { animation: insCfxShake .45s ease; }

.ins-cfx-ghost {
    position: fixed; z-index: 9999; pointer-events: none; object-fit: cover;
    border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(220, 174, 48, .55);
    border: 1px solid rgba(220, 174, 48, .6);
}
.ins-cfx-bounce { animation: insCfxBounce .6s cubic-bezier(.3, 1.6, .5, 1); }
.ins-cfx-pop { animation: insCfxPop .5s cubic-bezier(.3, 1.8, .5, 1); background: #DCAE30 !important; color: #010001 !important; }

.ins-cfx-toast {
    position: fixed; z-index: 10000; right: 20px; bottom: 20px; width: min(380px, calc(100vw - 32px));
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 40px 14px 14px; border-radius: 14px;
    background: #101012; color: #f5f2ea; border: 1px solid rgba(220, 174, 48, .45);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85);
    transform: translateY(24px); opacity: 0; transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), opacity .3s;
}
.ins-cfx-toast.is-in { transform: translateY(0); opacity: 1; }
.ins-cfx-toast.is-error { border-color: rgba(220, 80, 60, .6); }
.ins-cfx-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid rgba(220, 174, 48, .35); }
.ins-cfx-badge {
    width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: #DCAE30; color: #010001; font-weight: 700;
}
.ins-cfx-toast.is-error .ins-cfx-badge { background: #d9534f; color: #fff; }
.ins-cfx-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ins-cfx-text strong { color: #DCAE30; font-size: 15px; }
.ins-cfx-text span { font-size: 13px; color: #a8a294; overflow-wrap: anywhere; }
.ins-cfx-actions { display: flex; gap: 8px; margin-top: 8px; }
.ins-cfx-actions a {
    font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; text-decoration: none;
}
.ins-cfx-gold { background: #DCAE30; color: #010001 !important; }
.ins-cfx-ghostbtn { border: 1px solid rgba(220, 174, 48, .5); color: #f5f2ea !important; }
.ins-cfx-close {
    position: absolute; top: 6px; right: 8px; background: none; border: 0; color: #a8a294;
    font-size: 22px; line-height: 1; cursor: pointer; padding: 4px;
}
@media (max-width: 640px) {
    .ins-cfx-toast { left: 16px; right: 16px; bottom: 16px; width: auto; }
}

@keyframes insCfxSpin { to { transform: rotate(360deg); } }
@keyframes insCfxPress { 0% { transform: scale(1); } 40% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes insCfxTick { 0% { transform: scale(0) rotate(-45deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes insCfxShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes insCfxBounce { 0% { transform: scale(1); } 35% { transform: scale(1.35) rotate(-8deg); } 65% { transform: scale(.92) rotate(4deg); } 100% { transform: scale(1); } }
@keyframes insCfxPop { 0% { transform: scale(.4); } 60% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .ins-cfx-done, .ins-cfx-fail, .ins-cfx-bounce, .ins-cfx-pop, .ins-cfx-tick { animation: none; }
    .ins-cfx-spin { animation-duration: 1.6s; }
    .ins-cfx-toast { transition: opacity .2s; transform: none; }
}
