/* Sidea Tier Discount Bar — stile della barra (carrello, checkout, mini-carrello)
   Palette brand Sidea: nero dominante, oro antico #C5A253 come accento (brand-style). */
:root {
	--stb-accent: #c5a253;        /* oro antico: riempimento, marker, pill raggiunte */
	--stb-accent-deep: #8a6d2f;   /* oro scuro: testi brevi su bianco (l'oro chiaro non regge come testo) */
	--stb-tint: #f4edda;          /* fondo barra */
	--stb-tint-2: #e6d6ac;        /* inizio sfumatura riempimento */
	--stb-ink: #141414;
	--stb-muted: #6b665c;
	--stb-line: #e5e1d8;
	--stb-line-strong: #cbc5b8;
	--stb-ok: #2f7d4f;
	--stb-ok-tint: #e3f1e8;
}
.stb { border: 1px solid var(--stb-line); background: #fff; padding: 16px 18px 14px; margin: 0 0 20px; color: var(--stb-ink); line-height: 1.4; }
.stb--minicart { padding: 12px 14px 10px; margin: 0 0 12px; }
.stb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stb-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--stb-accent-deep); }
.stb-deadline { font-size: 12px; color: var(--stb-muted); }
.stb .stb-msg { margin: 8px 0 0; font-size: 17px; font-weight: 500; line-height: 1.35; }
.stb--minicart .stb-msg { font-size: 15px; }
.stb .stb-msg b { font-weight: 800; font-variant-numeric: tabular-nums; }
.stb .stb-sub { margin: 3px 0 0; font-size: 13.5px; color: var(--stb-muted); font-variant-numeric: tabular-nums; }
.stb .stb-sub b { color: var(--stb-ink); font-weight: 700; }
.stb-rail { padding: 34px 30px 26px; }
.stb--minicart .stb-rail { padding: 30px 24px 24px; }
.stb-track { position: relative; height: 12px; border-radius: 999px; background: var(--stb-tint); }
.stb-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; background: linear-gradient(90deg, var(--stb-tint-2), var(--stb-accent)); transition: width .45s cubic-bezier(.2, .7, .2, 1); }
.stb-tier { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--stb-line-strong); transition: border-color .3s, background .3s; }
.stb-tier .stb-pct { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; border: 1.5px solid var(--stb-line-strong); color: var(--stb-muted); background: #fff; white-space: nowrap; line-height: 1.2; }
.stb-tier .stb-amt { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 11.5px; color: var(--stb-muted); white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stb-tier.is-reached { border-color: var(--stb-ink); background: var(--stb-ink); }
.stb-tier.is-reached .stb-pct { background: var(--stb-ink); border-color: var(--stb-ink); color: var(--stb-accent); }
.stb-tier.is-next { border-color: var(--stb-accent); }
.stb-tier.is-next .stb-pct { border-color: var(--stb-accent); color: var(--stb-accent-deep); }
.stb-tier.is-next::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--stb-accent); opacity: .6; animation: stb-ping 1.6s ease-out infinite; }
@keyframes stb-ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stb-tier.is-next::after { animation: none; } .stb-fill { transition: none; } }
.stb-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--stb-line); padding-top: 10px; }
.stb-note { font-size: 12px; color: var(--stb-muted); flex: 1 1 260px; }
.stb .stb-btn { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--stb-ink); border: 0; border-radius: 0; padding: 10px 16px; cursor: pointer; margin: 0; line-height: 1.2; }
.stb .stb-btn:hover { background: var(--stb-accent); color: var(--stb-ink); }
.stb .stb-btn:focus-visible { outline: 3px solid var(--stb-accent); outline-offset: 2px; }
.stb .stb-btn:disabled, .stb .stb-btn.is-busy { opacity: .6; cursor: wait; }
.stb-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; padding: 6px 10px; }
.stb-badge--ok { background: var(--stb-ok-tint); color: var(--stb-ok); }
.stb-badge .stb-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stb-badge .stb-code { font-weight: 800; letter-spacing: .06em; }
.stb .woocommerce-Price-amount { font-variant-numeric: tabular-nums; }

/* v1.3: messaggio "ti mancano" nella notifica Aggiunto al carrello */
.woocommerce-message .stb-atc { display: block; margin-top: 4px; font-weight: 500; }
.woocommerce-message .stb-atc b { font-weight: 800; }

/* v1.3: prodotti riempi-soglia */
.stb-fillers { border-top: 1px solid var(--stb-line); margin-top: 12px; padding-top: 10px; }
.stb-fillers-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--stb-ink); }
.stb-fillers-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stb-filler { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 10px; border: 1px solid var(--stb-line); padding: 8px; background: #fff; }
.stb--minicart .stb-filler { flex-basis: 100%; }
.stb-filler-thumb { flex: 0 0 44px; width: 44px; height: 44px; display: block; }
.stb-filler-thumb img { width: 44px; height: 44px; object-fit: cover; display: block; margin: 0; }
.stb-filler-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stb-filler-name { font-size: 12.5px; line-height: 1.25; color: var(--stb-ink); text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.stb-filler-price { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stb .stb-filler-add.button { flex: 0 0 auto; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; margin: 0; border-radius: 0; background: var(--stb-ink); color: #fff; border: 0; line-height: 1.2; }
.stb .stb-filler-add.button:hover { background: var(--stb-accent); color: var(--stb-ink); }
.stb .stb-filler-add.button.loading { opacity: .6; }
.stb .stb-filler-add.button.added::after { content: " \2713"; }

/* v1.4: barra nella scheda prodotto (compatta, riempita via JS) */
.stb--product { margin: 14px 0 18px; padding: 12px 14px 4px; }
.stb--product .stb-msg { font-size: 15.5px; }
.stb--product .stb-sub { font-size: 13px; }
.stb--product .stb-rail { padding: 30px 26px 24px; }
