/* 4 sezonai – pardavimai. Three pieces: tier tiles (product page), the level bar (cart, checkout), gift and discount lines.
   Fonts are inherited from the theme; colors are the shop's own. */
.szp-tiers-wrap, .szp-note, .szp-goal, .szp-goal-slot, .szp-gift-tag, .szp-save, .szp-hint {
  --szp-ink: #2E2E2E;
  --szp-muted: #5C5C5C;
  --szp-surface: #FFFFFF;
  --szp-sage: #5F7458;
  --szp-sage-ink: #4C6046;
  --szp-sage-tint: #EEF1EC;
  --szp-sun: #F4D37E;
  --szp-line: #E3E6E0;
  --szp-line-strong: #C9CFC5;
}

/* ---------- Tier tiles ---------- */
.szp-tiers-wrap { container-type: inline-size; flex: 0 0 100%; width: 100%; margin: 0 0 16px; }
.szp-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--szp-ink); }
.szp-label span + span { font-size: 13px; font-weight: 400; color: var(--szp-muted); }
.szp-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 6px; }
.szp-tiers:has(.szp-tier:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.szp-tier { -webkit-appearance: none; appearance: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 92px; margin: 0; padding: 14px 6px 10px; border: 1px solid var(--szp-line-strong); border-radius: 4px; background: var(--szp-surface); color: var(--szp-ink); font: inherit; line-height: 1.35; text-align: center; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; }
.szp-tier:hover, .szp-tier:focus { border-color: var(--szp-ink); background: var(--szp-surface); color: var(--szp-ink); }
.szp-tier:focus-visible { outline: 2px solid var(--szp-sage); outline-offset: 2px; }
.szp-tier[aria-pressed="true"] { border-color: var(--szp-sage); box-shadow: inset 0 0 0 1px var(--szp-sage); background: var(--szp-sage-tint); }
.szp-q { font-size: 14px; font-weight: 600; }
.szp-p { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.szp-p.szp-none { font-size: 13px; font-weight: 400; color: var(--szp-muted); padding-top: 3px; }
.szp-u { min-height: 16px; font-size: 12px; color: var(--szp-muted); font-variant-numeric: tabular-nums; }
.szp-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 8px; border-radius: 3px; background: var(--szp-sage); color: #fff; font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; }
/* Four across only while each tile is wide enough for the tag; the tiles follow the box they sit in, not the page.
   The media query says the same for phones whose browser has no container queries. */
@media (max-width: 480px) {
  .szp-tiers, .szp-tiers:has(.szp-tier:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 8px; }
  .szp-tier { min-height: 84px; }
}
@container (max-width: 539px) {
  .szp-tiers, .szp-tiers:has(.szp-tier:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 8px; }
  .szp-tier { min-height: 84px; }
}
.szp-note { flex: 0 0 100%; width: 100%; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0 0; font-size: 13px; color: var(--szp-muted); font-variant-numeric: tabular-nums; }
.szp-note[hidden] { display: none; }
.szp-note strong { color: var(--szp-sage-ink); font-weight: 600; }
.szp-btn-total { margin-left: 0.35em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Level bar ---------- */
.szp-goal-slot:empty { display: none; }
.szp-goal-slot--cart { margin: 0 0 24px; }
.szp-goal-source { display: none; }
.szp-goal { padding: 18px 22px 16px; border: 1px solid var(--szp-line); border-radius: 6px; background: var(--szp-surface); color: var(--szp-ink); font-variant-numeric: tabular-nums; }
.szp-goal .szp-goal-msg { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.5; text-align: center; }
.szp-goal-msg strong { font-weight: 700; white-space: nowrap; }
.szp-track { position: relative; height: 8px; margin: 26px 18px 0; border-radius: 4px; background: var(--szp-line); }
.szp-fill { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--szp-sage); transition: width 0.35s ease; }
.szp-goal .szp-steps { position: relative; display: grid; grid-template-columns: repeat(var(--szp-steps, 3), minmax(0, 1fr)); margin: -22px 18px 0; padding: 0; list-style: none; }
.szp-goal .szp-step { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; margin: 0; padding: 0; font-size: 12px; line-height: 1.35; text-align: right; }
.szp-step b, .szp-what, .szp-at { padding-left: 10px; }
.szp-step b { font-size: 13px; font-weight: 600; }
.szp-at { color: var(--szp-muted); }
.szp-step.is-on .szp-at, .szp-step.is-on .szp-what { color: var(--szp-sage-ink); font-weight: 600; }
.szp-dot { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 -18px 5px 0; border: 2px solid var(--szp-line-strong); border-radius: 50%; background: var(--szp-surface); color: var(--szp-muted); }
.szp-dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.szp-goal .szp-step.is-on .szp-dot { border-color: var(--szp-sage); background: var(--szp-sage); color: #fff; }
.szp-goal--compact { padding: 14px 16px 12px; border: 0; background: var(--szp-sage-tint); }
.szp-goal.szp-goal--compact .szp-goal-msg { font-size: 14px; text-align: left; }
.szp-goal--compact .szp-track { height: 6px; margin: 16px 9px 0; background: var(--szp-surface); }
.szp-goal.szp-goal--compact .szp-steps { margin: -12px 9px 0; }
.szp-goal.szp-goal--compact .szp-step { gap: 1px; font-size: 11px; }
.szp-goal--compact .szp-step b { font-size: 11px; }
.szp-goal--compact .szp-dot { width: 18px; height: 18px; margin: 0 -9px 3px 0; }
.szp-goal--compact .szp-dot svg { width: 10px; height: 10px; stroke-width: 2.4; }
/* Checkout: the bar sits above the order table on wide screens and at the top of the page on narrow ones. */
.szp-goal-slot--top { display: none; margin: 0 0 20px; }
.szp-goal-slot--box { margin: 0 0 16px; }
@media (max-width: 999px) {
  .szp-goal-slot--top { display: block; }
  .szp-goal-slot--box { display: none; }
}
@media (max-width: 560px) {
  .szp-goal { padding: 16px 12px 14px; }
  .szp-goal .szp-step, .szp-goal .szp-step b { font-size: 11px; }
  .szp-step b, .szp-what, .szp-at { padding-left: 4px; }
}
@media (prefers-reduced-motion: reduce) { .szp-fill { transition: none; } }

/* ---------- Cart and checkout lines ---------- */
.szp-save { color: var(--szp-sage-ink); font-weight: 600; white-space: nowrap; }
.szp-hint { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 2px 0 4px; font-size: 12px; line-height: 1.5; color: var(--szp-muted); font-variant-numeric: tabular-nums; }
/* Blocksy's phone cart row is one flex line: quantity, ×, price, remove. An old + new price pair is wide before it
   wraps, and the theme lets the quantity field give way to it (80 → 60 px, the number gets cut). Keep the field whole. */
.szp-volume-row .product-mobile-actions .quantity { flex-shrink: 0; }
.szp-gift-tag { display: block; width: -moz-fit-content; width: fit-content; margin: 0 0 4px; padding: 2px 8px; border-radius: 3px; background: var(--szp-sun); color: var(--szp-ink); font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; }
.szp-gift-qty { font-variant-numeric: tabular-nums; }
.szp-gift-row .quantity { display: none; }
/* "Vertė: 6,90 €" on one tight line instead of the theme's spaced definition list. */
.szp-gift-row dl.variation { margin: 2px 0 0; font-size: 13px; color: #5C5C5C; }
.szp-gift-row dl.variation dt, .szp-gift-row dl.variation dd, .szp-gift-row dl.variation p { display: inline; float: none; margin: 0; padding: 0; font-weight: 400; }
