/* Preordini - stili front office (colori Skate Zone: rosso e giallo) */
:root {
  --szpo-red: #d7191f;
  --szpo-yellow: #f5c400;
  --szpo-cream: #fff6cc;
  --szpo-text: #222;
}

.szpo-badge {
  display: inline-block;
  background: var(--szpo-red);
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
}

/* riquadro scheda prodotto */
.szpo-banner {
  background: var(--szpo-cream);
  border: 2px solid var(--szpo-yellow);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 12px 0 14px;
  color: var(--szpo-text);
  text-align: left;
}
.szpo-banner__dates {
  list-style: none;
  margin: 10px 0 6px;
  padding: 0;
}
.szpo-banner__date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  font-size: 1rem;
}
.szpo-banner__date strong { font-weight: 700; }
.szpo-icon { color: var(--szpo-red); flex: 0 0 auto; }
.szpo-banner__info {
  margin: 8px 0 6px;
  font-size: .9rem;
  line-height: 1.45;
}
.szpo-banner__link,
.szpo-banner__link:visited {
  display: inline-block;
  font-weight: 600;
  color: var(--szpo-red);
  text-decoration: underline;
}
.szpo-banner__link:hover { color: #a10f14; }

/* etichetta sulle foto (lista prodotti e scheda) */
.product-flags .product-flag.preorder,
.product-flag.preorder,
.szpo-flag {
  background: var(--szpo-red) !important;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.szpo-flag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  font-size: .72rem;
  line-height: 1.2;
  padding: 4px 8px;
  border-radius: 3px;
  pointer-events: none;
}
.szpo-has-flag { position: relative; }

/* riga del carrello */
.szpo-cart-line { margin: 6px 0 2px; }
.szpo-pill {
  display: inline-block;
  background: var(--szpo-cream);
  border: 1px solid var(--szpo-yellow);
  color: #7a4d00;
  font-size: .8rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 12px;
}

/* avviso carrello / pagamento */
.szpo-notice {
  background: var(--szpo-cream);
  border-left: 5px solid var(--szpo-red);
  border-radius: 4px;
  padding: 12px 14px;
  margin: 14px 0;
  color: var(--szpo-text);
}
.szpo-notice__text { margin: 8px 0 6px; font-weight: 600; }
.szpo-notice__items { margin: 4px 0 6px; padding-left: 18px; font-size: .9rem; }

/* conferma ordine / dettaglio ordine */
.szpo-order-info { margin: 16px 0; }
.szpo-order-info__body {
  background: var(--szpo-cream);
  border: 2px solid var(--szpo-yellow);
  border-radius: 6px;
  padding: 14px 16px;
}
.szpo-order-info__lead { margin: 10px 0 6px; }
.szpo-order-info__items { margin: 6px 0 8px; padding-left: 18px; }

/* evidenzia la casella del checkout dedicata ai preordini */
#conditions-to-approve li:has(#cta-szpreorder-0),
#conditions-to-approve li:has(input[name="conditions_to_approve[szpreorder]"]) {
  background: var(--szpo-cream);
  border-left: 4px solid var(--szpo-red);
  padding: 8px 10px;
  border-radius: 4px;
}
