/*
 * Restmaster — native savings celebration. Visuals from the Katzavim prototype
 * (20-proto.css «SAVINGS celebration», 28-upsell10.css z-index lift). Tokens are
 * optional: every colour has a fallback so the module needs no tenant CSS.
 * Fixed + pointer-events: none — it never blocks input or steals focus. Motion is
 * driven by js/ux-savings.js (Web Animations API) and is finite; reduced-motion
 * viewers get a calm static plate (the script skips confetti and movement).
 */
.rm-savings-burst {
    position: fixed;
    z-index: 1100; /* above Bootstrap's modal (1050) and its backdrop (1040) */
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    transform: translate(-50%, -50%);
    direction: inherit;
}

.rm-savings-coin {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .6), transparent 58%), var(--gold, #c6992f);
    color: #fff;
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px -8px rgba(var(--gold-rgb, 198, 153, 47), .8),
                inset 0 2px 6px rgba(255, 255, 255, .6),
                inset 0 -4px 7px rgba(0, 0, 0, .2);
    transform-origin: 50% 50%;
}

.rm-savings-text {
    background: var(--brand-secondary, var(--primary, #3c2313));
    color: var(--brand-on-secondary, #f5f5f5);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.2px;
    padding: 8px 18px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .5);
    transform-origin: 50% 50%;
}

.rm-savings-text .rm-savings-amount {
    color: var(--gold, #c6992f);
    font-weight: 900;
}

.rm-savings-confetti {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform, opacity;
}

.rm-savings-burst--calm .rm-savings-coin,
.rm-savings-burst--calm .rm-savings-text {
    transform: none;
}

@media (max-width: 767px) {
    .rm-savings-text { font-size: 1rem; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
}
