/* =====================================================================
   Avviso "Cambio regali di Natale" (dicembre 2026)
   - Carrello:          templates/checkout/cart.tpl              (.kgx-cart)
   - Pagina prodotto:   modules/iqitelementor/.../customtpls/reassurance.tpl (.kgx-reassurance)
   - Top bar e prefooter: widget HTML di Elementor              (.kgx-topbar, .kgx-prefooter)

   Visibilita' a tempo: .kgx-during = visibile fino al 24/12 compreso,
   .kgx-after = visibile dal 25/12 (contenuto originale). Lo switch e' in
   templates/_partials/head.tpl (data del server), non qui.
   ===================================================================== */

/* ---------- Icona (pacco regalo + freccia di cambio) ---------- */
.kgx-ico {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.kgx-ico__fill { fill: var(--kgx-ico-fill, none); }
.kgx-ico__bg   { fill: var(--kgx-ico-bg, #fff); }
.kgx-ico__arrow { stroke-width: 3; }

/* ---------- Carrello: box tra totale e "Procedi al checkout" ---------- */
.kgx-cart {
  padding-top: 0;
  padding-bottom: 0;
}
.kgx-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f6f4f2;
  border: 1px solid #a5957d;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  color: #151515;
  text-align: left;
}
.kgx-card__badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8e2da;
  color: #857762;
  --kgx-ico-bg: #e8e2da;
}
.kgx-card__badge .kgx-ico {
  width: 28px;
  height: 28px;
}
.kgx-card__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.kgx-card__sub {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #5c554c;
}

/* ---------- Pagina prodotto: voce della lista rassicurazioni ---------- */
/* L'hook displayReassurance e' in cache unica per prodotto e carrello:
   la voce c'e' sempre nell'HTML e si mostra solo in pagina prodotto. */
body:not(#product) .kgx-reassurance {
  display: none !important;
}
.kc-reassurance__item.kgx-reassurance {
  color: #000;
  --kgx-ico-fill: #9d927e;
  --kgx-ico-bg: #fff;
}
.kgx-reassurance .kgx-ico {
  width: 30px;
  height: 30px;
}
.kc-reassurance__item.kgx-reassurance span {
  display: flex;
  flex-direction: column;
}
.kc-reassurance__item.kgx-reassurance .kgx-reassurance__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.kc-reassurance__item.kgx-reassurance .kgx-reassurance__sub {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #5c554c;
}
@media screen and (max-width: 575px) {
  .kgx-reassurance .kgx-ico { width: 26px; height: 26px; }
}

/* ---------- Top bar (sfondo #a5957d, testo bianco) ---------- */
.info-block.kgx-topbar {
  gap: 8px;
  color: #fff;
  --kgx-ico-bg: #a5957d;
}
.kgx-topbar .kgx-ico {
  width: 20px;
  height: 20px;
}
.kgx-topbar__sub {
  font-weight: 400;
}
.kgx-topbar__sep {
  opacity: .7;
}
/* le regole :first-child di kaidor-stripbar.css non vedono il blocco originale
   quando e' secondo nel contenitore: gli ridiamo lo stesso allineamento */
.info-container .info-block.kgx-after {
  margin-left: auto;
  text-align: right;
}
/* versione mobile/tablet della top bar (slide) */
.kgx-topbar--mobile {
  justify-content: center;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}
.kgx-topbar--mobile .kgx-ico {
  width: 18px;
  height: 18px;
}
.kgx-topbar--mobile .kgx-topbar__text {
  display: flex;
  flex-direction: column;
}
.kgx-topbar--mobile .kgx-topbar__sep {
  display: none;
}
.kgx-topbar--mobile .kgx-topbar__sub {
  font-size: 12px;
}

/* ---------- Prefooter (sfondo #a5957d, al posto di "Resi semplici") ---------- */
.kgx-prefooter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 80px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  text-align: left;
  --kgx-ico-bg: #a5957d;
}
.kgx-prefooter .kgx-ico {
  width: 46px;
  height: 46px;
  stroke-width: 3;
}
.kgx-prefooter .kgx-ico__arrow { stroke-width: 2.6; }
.kgx-prefooter__text {
  display: flex;
  flex-direction: column;
  max-width: 230px;
}
.kgx-prefooter__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.kgx-prefooter__sub {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}
