@import url("https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap");

/* =====================================================================
   Szybka Sprzedaż — Szablon nr 3 (05.2026)
   Layout dwukolumnowy z krokami formularza (Termin / Dane / Płatność).
   Kolory motywu przychodzą z panelu admina jako CSS custom properties
   (blok <style>:root{--s3-*}</style> emitowany w templates/s3.tpl.php);
   wartości poniżej to defaulty zgodne z projektem graficznym.
   Klasy wtl-* celowo pokrywają się z s1/s2 — współdzielone partiale
   (_ss_partials) i skrypty checkoutu renderują ten sam markup.
   ===================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}
body.s3-body {
  margin: 0;
  padding: 0;
}
.s3-body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--s3-right-bg, #ffffff);
  color: var(--s3-heading, #25282f);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* resety przez :where() — zerowa specyficzność wewnątrz, żeby style komponentów
   (.wtl-cta, .back-btn, ...) wygrywały kolejnością bez podbijania selektorów */
.s3-body :where(h1, h2, h3, h4) {
  font-family: "Onest", "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  margin: 0;
}
.s3-body :where(button) {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}
.s3-body :where(img, svg) {
  display: block;
  max-width: 100%;
}
.s3-body :where(a) {
  color: inherit;
}
.s3-body :where(button) img {
  display: inline-block;
}
.s3-hidden {
  display: none !important;
}

:root {
  --s3-left-bg: #f5f6f8;
  --s3-text: #5e626e;
  --s3-heading: #25282f;
  --s3-right-bg: #ffffff;
  --s3-accent: #262931;
  --s3-cta-bg: #36bf85;
  --s3-cta-text: #ffffff;
  --s3-green: #36bf85;
  --s3-urgency-bg: #111318;
  --s3-urgency-text: #ffffff;
  --s3-timer-cell-bg: #ffffff;
  --s3-timer-cell-text: #000000;
  --s3-danger: #e53e3e;
  --s3-border: #e2e4e9;
  --s3-bump-accent: #36bf85;
  --s3-bump-bg-active: #f7fcfa;
  /* pochodne */
  --s3-accent-soft: color-mix(in srgb, var(--s3-accent) 4%, transparent);
  --s3-accent-ring: color-mix(in srgb, var(--s3-accent) 15%, transparent);
  --s3-green-soft: color-mix(in srgb, var(--s3-green) 10%, transparent);
  --s3-border-soft: color-mix(
    in srgb,
    var(--s3-border) 55%,
    var(--s3-right-bg, #fff)
  );
  --s3-gray-50: color-mix(
    in srgb,
    var(--s3-heading) 3%,
    var(--s3-right-bg, #fff)
  );
  --s3-gray-100: color-mix(
    in srgb,
    var(--s3-heading) 5%,
    var(--s3-right-bg, #fff)
  );
}

/* ================== PASEK PILNOŚCI (timer) ================== */
.urgency-bar {
  flex-shrink: 0;
  background: var(--s3-urgency-bg);
  color: var(--s3-urgency-text);
  width: 100%;
}
.urgency-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 10px 16px;
}
.urgency-inner .timer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
}
/* etykieta wstrzykiwana przez jquery.countdown przed licznikiem */
.urgency-inner .wtl-new-price-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
}
.wtl-countdown {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  max-width: 100%;
}
.wtl-countdown-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  background: var(--s3-timer-cell-bg);
  border-radius: 6px;
  padding: 4px 8px;
}
/* separator ":" między komórkami licznika (w przerwie gap) */
.wtl-countdown-container + .wtl-countdown-container::after {
  content: ":";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--s3-urgency-text);
  font-size: 12px;
  font-weight: 700;
}
.wtl-countdown-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--s3-timer-cell-text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.wtl-countdown-heading {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s3-timer-cell-text);
  line-height: 1;
}
/* mobile: pełne słowa ("godzin", "sekund") łamały pasek na dwie linie —
   chowamy tekst i podstawiamy skrót z data-short (d/g/m/s), który licznik
   emituje przy każdej jednostce */
@media (max-width: 639px) {
  .urgency-bar .wtl-countdown-heading {
    font-size: 0;
    letter-spacing: 0;
  }
  .urgency-bar .wtl-countdown-heading::after {
    content: attr(data-short);
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

/* ================== ALERT ADMINA ================== */
.s3-admin-alert {
  box-sizing: border-box;
  position: relative;
  font-family: "DM Sans", sans-serif;
  color: #85262c;
  background: #ffdbdd;
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
}
.s3-admin-alert a {
  cursor: pointer;
  color: #fff;
  background-color: #ff4954;
  font-size: 11px;
  padding: 8px 20px 6px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  margin: 4px 4px 0;
}

/* ================== LAYOUT ================== */
.layout {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.left-panel {
  background: var(--s3-left-bg);
  border-bottom: 1px solid var(--s3-border-soft);
  padding: 24px 20px 64px;
  color: var(--s3-text);
}
.left-inner {
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
.right-panel {
  background: var(--s3-right-bg);
  padding: 32px 20px 64px;
}
.right-inner {
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 640px) {
  .left-panel,
  .right-panel {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (min-width: 1024px) {
  .layout {
    flex-direction: row;
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
  }
  .left-panel {
    width: 45%;
    border-right: 1px solid var(--s3-border-soft);
    border-bottom: 0;
    padding: 48px 48px 80px 20px;
    display: flex;
    justify-content: flex-end;
  }
  .left-inner {
    margin: 0;
  }
  .right-panel {
    width: 55%;
    padding: 48px 20px 80px 48px;
    display: flex;
    justify-content: flex-start;
  }
  .right-inner {
    margin: 0;
  }
}

/* ================== PIGUŁKA SOCIAL PROOF ================== */
.join-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--s3-right-bg);
  border: 1px solid var(--s3-border);
  font-size: 12px;
  margin-bottom: 16px;
  color: var(--s3-heading);
  font-weight: 500;
}
.join-pill .muted {
  color: var(--s3-text);
  font-weight: 400;
}
.dot-wrap {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}
.dot-ping,
.dot-core {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--s3-green);
}
.dot-ping {
  opacity: 0.6;
  animation: s3-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.dot-core {
  position: relative;
  width: 8px;
  height: 8px;
}
@keyframes s3-ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ================== NAGŁÓWEK PRODUKTU / TREŚCI ================== */
.hero-title h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--s3-heading);
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .hero-title h1 {
    font-size: 26px;
  }
}
.left-panel .unified-editor-styles {
  color: var(--s3-text);
  font-size: 14px;
}
.left-panel .unified-editor-styles img.responsive {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 12px;
}
.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* iframe, którego nie objął wrapper .embed-container (regex w szablonie nie
   łapie zamknięcia w nowej linii — jak w s1/s2), nie może rozpychać layoutu */
.unified-editor-styles iframe:not(.embed-container iframe) {
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.s3-quantity-note {
  color: var(--s3-danger);
  font-weight: 600;
  font-size: 14px;
  margin: 12px 0;
}
.s3-content2 {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--s3-border);
}

/* ================== PROGRESS KROKÓW ================== */
.progress-block {
  margin-bottom: 30px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--s3-text);
  font-weight: 500;
}
.progress-meta span:last-child {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 400;
}
.progress-bar {
  height: 8px;
  background: var(--s3-gray-100);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--s3-accent);
  border-radius: 9999px;
  transition: all .2s ease;
}

/* ================== KROKI ================== */
.step {
  display: flex;
  flex-direction: column;
  gap: 0px;
  animation: s3-fade-step 0.25s ease;
}
@keyframes s3-fade-step {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.step-head {
  margin-bottom: 20px;
}
.step-head h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--s3-heading);
}
.step-head p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--s3-text);
  margin: 6px 0 0;
}
.step-head.row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.back-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--s3-border);
  color: var(--s3-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.back-btn:hover {
  background: var(--s3-gray-100);
}
.s3-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--s3-heading);
  margin: 8px 0 0;
}

/* ================== POLA FORMULARZA (wtl-*) ================== */
.wtl-form {
  display: flex;
  flex-direction: column;
}
.wtl-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
  position: relative;
}
/* puste kontenery komunikatów (np. #wtl-nip-msg) nie mają zabierać miejsca */
.wtl-form-group:empty {
  display: none;
  margin: 0;
}
/* zagnieżdżone grupy (checkbox faktury w .fvat-group) — bez dublowania marginesów */
.wtl-form-group .wtl-form-group:last-child {
  margin-bottom: 20px;
}
.wtl-label {
  font-size: 13px;
  font-weight: 500;
  color: color-mix(in srgb, var(--s3-heading) 55%, var(--s3-text));
  display: block;
  line-height: 20px;
}
/* projekt graficzny nie używa gwiazdek przy labelkach — wymagalność komunikuje
   walidacja kroku (komunikaty pod polami) */
.wtl-label .wtl-error {
  display: none;
}
.wtl-label .input-desc {
  font-weight: 400;
  font-size: 12px;
  color: var(--s3-text);
}
.wtl-error {
  color: var(--s3-danger);
}
.wtl-input {
  height: 40px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--s3-border);
  border-radius: 10px;
  background: var(--s3-right-bg);
  color: var(--s3-heading);
  transition: all .2s ease;
  font-size: 16px !important;
  font-family: inherit;
  outline: none;
}
textarea.wtl-input {
  min-height: 96px;
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}
select.wtl-input {
  appearance: auto;
  -webkit-appearance: auto;
}
.wtl-input:focus {
  border-color: var(--s3-accent);
  box-shadow: 0 0 0 2px var(--s3-accent-ring);
}
.wtl-input::placeholder {
  color: color-mix(in srgb, var(--s3-text) 60%, transparent);
}
.s3-field-invalid {
  border-color: var(--s3-danger) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--s3-danger) 15%, transparent) !important;
}
/* komunikat pod polem — wstrzykiwany przez app.js przy walidacji kroku */
.s3-field-error {
  display: none;
  gap: 4px;
  font-size: 12px;
  line-height: 14px;
  color: var(--s3-danger);
  margin: 0;
  background: #ffffff;
  padding: 0 4px;
  align-items: start;
}
.s3-field-error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  border: 1.5px solid currentColor;
  font-size: 9px;
  font-weight: 700;
}
.form-text {
  font-size: 13px;
  margin-top: 2px;
  display: block;
}
.text-muted {
  color: var(--s3-text);
  opacity: 0.85;
}
.text-danger {
  color: var(--s3-danger);
}
/* tytuły list opcji (Sposób dostawy / Metoda płatności) — rangą jak nagłówki sekcji */
.wtl-form-group:has(> .wtl-delivery-wrap) > .wtl-label,
.wtl-form-group:has(> .wtl-payments-wrap) > .wtl-label {
  font-size: 20px;
  font-weight: 600;
  font-family: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  margin: 15px 0 15px 0;
}

/* wiersz input + przycisk (NIP / kod rabatowy) */
.wtl-form-group-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wtl-form-group-inputs .wtl-input {
  flex: 1;
  min-width: 0;
}
.wtl-nip-btn,
.wtl-activate {
  padding: 9px 14px;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid var(--s3-border);
  background: var(--s3-gray-50);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--s3-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all .2s ease;
}
.wtl-nip-btn:hover,
.wtl-activate:hover {
  background: var(--s3-gray-100);
}

/* ================== CHECKBOXY (rodo / bump / fvat) ================== */
.wtl-checkbox-container {
  display: block;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.55;
  color: var(--s3-heading);
  user-select: none;
  margin-left: 5px;
}
.wtl-checkbox-container a {
  color: var(--s3-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wtl-checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}
.wtl-checkbox-container .checkmark {
  position: absolute;
  top: 1px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--s3-text) 55%, transparent);
  background: var(--s3-right-bg);
  transition: all .2s ease;
}
.wtl-checkbox-container input:checked ~ .checkmark {
  background: var(--s3-accent);
  border-color: var(--s3-accent);
}
.wtl-checkbox-container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.wtl-checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* ================== LISTY OPCJI (płatności / dostawy) ================== */
.wtl-payments-wrap,
.wtl-delivery-wrap {
  border: 1px solid var(--s3-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--s3-right-bg);
}
.wtl-payments-wrap > label,
.wtl-delivery-wrap > label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid var(--s3-border-soft);
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--s3-heading);
  transition: all .2s ease;
}
.wtl-payments-wrap > label:last-child,
.wtl-delivery-wrap > label:last-child {
  border-bottom: 0;
}
.wtl-payments-wrap > label:hover,
.wtl-delivery-wrap > label:hover {
  background: var(--s3-gray-50);
}
.wtl-payments-wrap > label:has(input:checked),
.wtl-delivery-wrap > label:has(input:checked) {
  background: var(--s3-accent-soft);
}
.wtl-payments-wrap input[type="radio"],
.wtl-delivery-wrap input[type="radio"] {
  position: absolute;
  opacity: 0;
}
.wtl-payments-wrap .checkmark,
.wtl-delivery-wrap .checkmark {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--s3-text) 55%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all .2s ease;
}
.wtl-payments-wrap .checkmark::after,
.wtl-delivery-wrap .checkmark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--s3-accent);
  opacity: 0;
  transition: all .2s ease;
}
.wtl-payments-wrap label:has(input:checked) .checkmark,
.wtl-delivery-wrap label:has(input:checked) .checkmark {
  border-color: var(--s3-accent);
}
.wtl-payments-wrap label:has(input:checked) .checkmark::after,
.wtl-delivery-wrap label:has(input:checked) .checkmark::after {
  opacity: 1;
}
.wtl-payments-wrap p,
.wtl-delivery-wrap p {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.wtl-payments-wrap img,
.wtl-delivery-wrap > label > img {
  margin-left: auto;
  flex-shrink: 0;
  max-height: 26px;
  max-width: 64px;
  object-fit: contain;
}
/* logo bez <p> obok (BLIK) nie ma się rozpychać na prawo */
.wtl-payments-wrap img.logo-blik,
.wtl-payments-wrap img.logo-blik_recurring {
  margin-left: 0;
}
.wtl-payment-content {
  flex-basis: 100%;
  padding: 4px 0 4px 28px;
  font-weight: 400;
}
.wtl-payment-content p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--s3-text);
  margin: 0 0 12px;
}
.wtl-payment-blik-banklist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.wtl-payment-blik-banklist img {
  height: 24px;
  width: auto;
  object-fit: contain;
  margin: 0;
}
.delivery-price {
  margin-left: auto;
  text-align: right;
  font-size: 16px;
}
.wtl-delivery-wrap > label > img + .delivery-price {
  margin-left: 0;
}
.delivery-price .standard {
  font-weight: 500;
  line-height: 20px;
}
.delivery-price .free {
  color: var(--s3-green);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.delivery-extra {
  flex-basis: 100%;
  padding-left: 28px;
  display: none;
  font-weight: 400;
}
.inpost-select-btn,
.dhl-select-btn,
.orlen-select-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  background: var(--s3-urgency-bg);
  color: var(--s3-urgency-text);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inpost-select-btn:hover,
.dhl-select-btn:hover,
.orlen-select-btn:hover {
  filter: brightness(1.25);
}

/* ================== BUMPY ================== */
.s3-bumps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.s3-bump {
  border: 1px solid var(--s3-border);
  border-radius: 10px;
  background: var(--s3-right-bg);
  transition: all .2s ease;
}
.s3-bump-content {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.s3-bump:hover {
  border-color: color-mix(in srgb, var(--s3-heading) 25%, var(--s3-border));
}
.s3-bump.active {
  border-color: var(--s3-bump-accent);
  background: var(--s3-bump-bg-active);
}
.s3-bump-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}
.s3-bump-image {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
}
.s3-bump-body {
  flex: 1;
  min-width: 0;
}
.s3-bump-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--s3-bump-accent);
  margin: 0 0 2px;
}
.s3-bump-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--s3-heading);
  line-height: 1.35;
  margin: 0 0 4px;
}
.s3-bump-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.s3-bump-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--s3-bump-accent);
}
.s3-bump-old {
  font-size: 12px;
  color: var(--s3-text);
  text-decoration: line-through;
}
.s3-bump-omnibus {
  font-size: 11px;
  color: var(--s3-text);
  margin: -2px 0 6px;
}
.s3-bump-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--s3-text);
  margin: 0;
  white-space: pre-line;
}
.s3-bump-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s ease;
  line-height: 20px;
  background: color-mix(in srgb, var(--s3-bump-accent) 10%, transparent);
  color: var(--s3-bump-accent);
}
.s3-bump-btn:after {
  position: absolute;
  top: 12px;
  left: 16px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  content: "";
  border-radius: 50%;
}
.s3-bump-btn:hover {
  background: color-mix(in srgb, var(--s3-bump-accent) 18%, transparent);
}
.s3-bump-btn svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
}
.s3-bump.active .s3-bump-btn:after {
  display: none;
}
.s3-bump.active .s3-bump-btn {
  background: var(--s3-bump-accent);
  color: #fff;
}
.s3-bump .wtl-checkbox-container {
  display: none;
}

/* ================== PODSUMOWANIE CENY ================== */
.price-summary {
  border: 1px solid var(--s3-border);
  border-radius: 10px;
  padding: 14px;
  background: var(--s3-right-bg);
  margin-bottom: 15px;
}
.ps-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--s3-text);
  font-weight: 500;
  margin: 0 0 8px;
}
.ps-bumps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--s3-border-soft);
}
/* wspólna typografia wierszy podsumowania: bumpy + linie paragonowe Produkt/Dostawa
   (.ps-line odsłania renderSummaries przy bumpach/płatnej dostawie) */
.ps-bumps-row,
.ps-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.ps-bumps-row > span:first-child,
.ps-line > span:first-child {
  color: var(--s3-text);
}
.ps-bumps-row > span:last-child,
.ps-line > span:last-child {
  font-weight: 600;
  color: var(--s3-heading);
  white-space: nowrap;
}
.ps-line {
  margin-bottom: 12px;
}
.ps-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.ps-row > span:first-child {
  font-size: 14px;
  color: var(--s3-text);
}
.ps-total {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--s3-heading);
  line-height: 1.2;
  margin: 0;
  text-align: right;
}
.ps-total-note {
  font-size: 12px;
  color: var(--s3-text);
  text-align: right;
  margin: 2px 0 0;
}
.ps-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.ps-meta-left {
  color: var(--s3-text);
}
.ps-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ps-strike {
  text-decoration: line-through;
  color: var(--s3-text);
}
.ps-discount {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--s3-green-soft);
  color: var(--s3-green);
  font-weight: 600;
}
.ps-min {
  font-size: 11px;
  color: var(--s3-text);
  margin: 8px 0 0;
  text-align: right;
}

/* ================== INFORMACJE O SUBSKRYPCJI ================== */
.payment-additionl-information {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--s3-cta-bg);
    border-radius: 12px;
    padding: 14px;
    background: var(--s3-right-bg);
    font-size: 13px;
    color: var(--s3-text);
    margin-bottom: 15px;
}

.payment-additionl-information > div {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 8px;
    flex-wrap: wrap;
}

.payment-additionl-information > div svg {
    width: 18px;
    height: 18px;
    fill: var(--s3-text);
}

.payment-additionl-information > div p {
    font-size: 13px;
    line-height: 20px;
    flex: 1;
    margin: 0;
}

.payment-additionl-information > div p:first-letter {
    text-transform: uppercase;
}

.payment-additionl-information > div span {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    color: #28C162;
}

.payment-additionl-information-summary {
    border-top: 1px solid var(--s3-border);
    padding-top: 10px;
}

/* ================== BLIK ================== */
#wtl-blik_code_div {
  position: relative;
}
#wtl-blik_code_div .blik_code {
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 18px !important;
  letter-spacing: 0.4em;
  padding-right: 56px;
}
#wtl-blik_code_div .wtl-form-logo-blik {
  position: absolute;
  right: 12px;
  bottom: 12px;
  height: 20px;
  width: auto;
  pointer-events: none;
}

/* ================== CTA / PRZYCISKI ================== */
.wtl-form-group--cta {
  margin-bottom: 0;
}
.wtl-cta {
  width: 100%;
  min-height: 50px;
  border-radius: 10px;
  border: 0;
  background: var(--s3-cta-bg);
  color: var(--s3-cta-text);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s ease;
}
.wtl-cta:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.wtl-cta:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.wtl-cta:active:not(:disabled) {
  transform: scale(0.99);
}
.wtl_kup_disabled {
  background: var(--s3-danger) !important;
  color: #fff !important;
  cursor: not-allowed;
}
#wtl-ajax-loader {
  display: none;
}

.wtl-watching-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--s3-text);
  margin-top: 10px;
}
.wtl-watching-now svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ================== KOMUNIKATY ================== */
.alert {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin: 8px 0;
  border: 1px solid transparent;
}
.alert a {
  text-decoration: underline;
}
.alert-danger {
  background: color-mix(in srgb, var(--s3-danger) 9%, #fff);
  color: color-mix(in srgb, var(--s3-danger) 80%, #000);
  border-color: color-mix(in srgb, var(--s3-danger) 30%, transparent);
}
.alert-success {
  background: color-mix(in srgb, var(--s3-green) 10%, #fff);
  color: color-mix(in srgb, var(--s3-green) 65%, #000);
  border-color: color-mix(in srgb, var(--s3-green) 30%, transparent);
}
.alert-warning {
  background: #fff8e6;
  color: #8a6d1a;
  border-color: #f0dfa8;
}
#wtl-msg {
  margin-top: 12px;
}
#wtl-msg iframe {
  width: 100%;
  border: 0;
}

/* podsumowanie kodu rabatowego (markup wtl-summary-* przychodzi z ajax) */
#wtl-discount-summary {
  font-size: 14px;
  color: var(--s3-heading);
}
#wtl-discount-summary table {
  width: 100%;
  border-collapse: collapse;
}
#wtl-discount-summary td {
  padding: 4px 0;
}
#wtl-discount-summary .wtl-summary-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--s3-text);
  font-weight: 600;
  margin: 8px 0;
}
#wtl-discount-summary .wtl-summary-product,
#wtl-discount-summary .wtl-summary-total-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}
#wtl-discount-summary .wtl-summary-product-name {
  color: var(--s3-text);
}
#wtl-discount-summary .wtl-summary-product-value {
  font-weight: 600;
  white-space: nowrap;
}
#wtl-discount-summary .wtl-summary-total-wrapper {
  border-top: 1px solid var(--s3-border-soft);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
}

/* ================== STOPKA ZAUFANIA ================== */
.trust-footer {
  margin-top: 24px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--s3-text);
}
.trust-row .wtl-safety {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-right: 1px solid var(--s3-border-soft);
}
.trust-row .wtl-safety:last-child {
  border-right: 0;
}
.trust-row .wtl-safety svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex-shrink: 0;
}
.wtl-powered {
  text-align: center;
  font-size: 11px;
  margin: 16px 0 0;
}
.wtl-powered span {
  color: var(--s3-text);
}
.wtl-powered a {
  color: var(--s3-text);
}
.wtl-copy {
  margin: 0;
  text-align: center;
  font-size: 10.5px;
  color: var(--s3-text);
}
.wtl-copy a {
  color: var(--s3-text);
  text-decoration: none;
}

/* ================== LOGOWANIE (create_new_user=no) ================== */
.s3-login {
  text-align: center;
  margin-bottom: 20px;
}
.s3-login .lead {
  font-size: 14px;
  color: var(--s3-text);
}
.s3-login #log {
  background: var(--s3-accent);
  color: #fff;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
}
.s3-login #logowanie {
  text-align: left;
  margin-top: 12px;
}
.s3-login .wtl-form {
  border: 1px solid var(--s3-border);
  border-radius: 12px;
  padding: 16px;
}

/* ================== STICKY CTA (mobile) ================== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--s3-right-bg) 95%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--s3-border-soft);
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
@media (min-width: 1024px) {
  .sticky-cta {
    display: none !important;
  }
}
.sticky-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.sticky-row span:first-child {
  font-size: 12px;
  font-weight: 500;
  color: var(--s3-text);
}
.sticky-row span:last-child {
  font-size: 15px;
  font-weight: 600;
  color: var(--s3-heading);
}
.sticky-btn-inner {
  min-height: 40px;
}

/* ================== WARIANTY / RÓŻNE ================== */
.wtl-variant-picker {
  margin-top: 20px;
}
.wtl-currency {
  white-space: nowrap;
}
h3.s3-form-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: var(--s3-heading);
  margin: 15px 0 15px 0;
}

h3.s3-form-subtitle.step {
    margin: 0 0 15px 0;
}

/* ================== TERMINARZ (wspólny picker s1/s2/embed/s3) ==================
   Markup i bazowe style przychodzą z _ss_partials/meeting_pre_scripts.tpl.php
   (+ _meeting_slot_picker) — tu wyłącznie skórka pod motyw s3: akcenty ze
   zmiennych --s3-* zamiast sztywnego niebieskiego, zaokrąglenia jak inputy. */
#wtl-meeting-section > .wtl-label {
  display: none;
} /* nagłówek kroku już pokazuje tytuł terminu */
.s3-body #wtl-meeting-picker {
  border: 1px solid var(--s3-border);
  border-radius: 10px;
  padding: 16px;
  background: var(--s3-right-bg);
  margin-top: 0;
}
.s3-body .wtl-meeting-cal-header button {
  border-color: var(--s3-border);
  color: var(--s3-heading);
}
.s3-body .wtl-meeting-cal-header button:hover {
  background: var(--s3-gray-100);
}

/* ================== POPUP GEOWIDGETÓW (InPost / DHL) ==================
   Markup z _ss_partials/inpost|dhl_post_handler — w s1/s2 style daje
   webinar/form.css, tutaj lokalna kopia (ukryty do czasu .show) */
.delivery-popup-overlay {
  align-items: center;
  background-color: rgba(17, 19, 24, 0.55);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  padding: 50px 10px 10px 10px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 902;
}
.delivery-popup-overlay.show {
  display: flex;
}
.delivery-popup-content {
  position: relative;
  max-height: 700px;
  max-width: 950px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  height: 100%;
}
.delivery-popup-content #wtl_inpost_geowidget {
  height: 100%;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}
.delivery-popup-content #wtl_inpost_geowidget iframe {
  height: 100% !important;
  width: 100% !important;
}
.delivery-popup-content iframe {
  border: 0;
}
.delivery-popup-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 30px;
  height: 30px;
  background: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10000;
}

/* ================== PARY PÓL (dwie kolumny) ================== */
.s3-grid-2 {
  display: grid;
  gap: 15px;
  margin: 0 0 18px;
}
@media (min-width: 640px) {
  .s3-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.s3-grid-2 > .wtl-form-group {
  margin: 0;
}

/* ================== TELEFON Z PREFIKSEM ================== */
.phone-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--s3-border);
  border-radius: 10px;
  background: var(--s3-right-bg);
  transition: all .2s ease;
}
.phone-field:focus-within {
  border-color: var(--s3-accent);
  box-shadow: 0 0 0 2px var(--s3-accent-ring);
}
.phone-field select.phone-dial {
  border: 0;
  border-right: 1px solid var(--s3-border);
  background: transparent;
  border-radius: 10px 0 0 10px;
  padding: 0 8px 0 14px;
  font-size: 16px;
  font-weight: 400;
  color: var(--s3-heading);
  outline: none;
  flex-shrink: 0;
  max-width: 118px;
}
.phone-field .wtl-input {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 10px 10px 0;
  flex: 1;
  min-width: 0;
  height: 40px;
}

/* ================== KOMPAKT: sekcja faktury ================== */
/* wrapper checkboxa faktury nie dokłada drugiego marginesu ponad grupę wewnętrzną */
.fvat-group {
  margin-bottom: 0;
}
.fvat-group .fvat-check {
  margin-bottom: 0;
}
/* kontenery komunikatów NIP: zero rytmu własnego, alerty mają swoje marginesy */
#wtl-nip-msg,
#wtl-receiver-nip-msg {
  margin: 0;
}

/* ================== GALERIA ZDJĘĆ (slider przy opisie) ================== */
.s3-gallery {
  margin: 4px 0 24px;
}
.s3-gallery-frame {
  position: relative;
  border: 1px solid var(--s3-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--s3-gray-100);
}
.s3-gallery-track {
  display: flex;
  transition: transform 0.35s ease;
}
.s3-gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.s3-gallery-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.s3-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid var(--s3-border);
  color: var(--s3-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all .2s ease;
}
.s3-gallery-frame:hover .s3-gallery-nav,
.s3-gallery-nav:focus-visible {
  opacity: 1;
}
.s3-gallery-nav.prev {
  left: 8px;
}
.s3-gallery-nav.next {
  right: 8px;
}
.s3-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.s3-gallery-dots button {
  height: 6px;
  width: 6px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--s3-heading) 22%, var(--s3-left-bg));
  cursor: pointer;
  transition: all .2s ease;
}
.s3-gallery-dots button.active {
  width: 16px;
  background: var(--s3-heading);
}
/* dotyk: strzałki zawsze widoczne tam, gdzie nie ma hovera */
@media (hover: none) {
  .s3-gallery-nav {
    opacity: 1;
  }
}

/* ================== LIGHTBOX GALERII (podgląd zdjęcia) ================== */
.s3-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(10, 12, 16, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
}
.s3-lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}
.s3-lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.s3-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}
.s3-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}
.s3-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.24);
}
.s3-lightbox-nav.prev {
  left: 16px;
}
.s3-lightbox-nav.next {
  right: 16px;
}
.s3-gallery-slide img {
  cursor: zoom-in;
}

/* ================== SEKCJA OPINII (slider kart) ================== */
.s3-reviews {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--s3-border);
}
.s3-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.s3-reviews-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--s3-heading);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.s3-reviews-header h3 svg {
  color: var(--s3-accent);
}
.s3-reviews-nav {
  display: flex;
  gap: 4px;
}
.s3-rnav-btn {
  height: 24px;
  width: 24px;
  border-radius: 9999px;
  padding: 0;
  border: 1px solid var(--s3-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--s3-heading);
  cursor: pointer;
  transition: all .2s ease;
}
.s3-rnav-btn:hover {
  background: var(--s3-gray-100);
}
.s3-reviews-frame {
  overflow: hidden;
}
.s3-reviews-track {
  display: flex;
  transition: transform 0.35s ease;
}
.s3-review-slide {
  flex: 0 0 85%;
  min-width: 0;
  padding-right: 12px;
  box-sizing: border-box;
}
.s3-review-card {
  border: 1px solid var(--s3-border-soft);
  border-radius: 12px;
  padding: 12px;
  background: var(--s3-right-bg, #fff);
  height: 100%;
  box-sizing: border-box;
}
.s3-review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.s3-review-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    var(--s3-heading),
    color-mix(in srgb, var(--s3-heading) 65%, var(--s3-left-bg))
  );
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.s3-review-meta {
  flex: 1;
  min-width: 0;
}
.s3-review-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--s3-heading);
  margin: 0;
}
.s3-review-role {
  font-size: 12px;
  color: var(--s3-text);
  margin: 0;
}
.s3-review-stars {
  display: flex;
  gap: 2px;
}
.s3-review-stars svg {
  color: hsl(45, 90%, 55%);
  fill: hsl(45, 90%, 55%);
}
.s3-review-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--s3-text);
  margin: 0;
  overflow-wrap: anywhere;
}
.s3-reviews-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.s3-reviews-dots button {
  height: 6px;
  width: 6px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--s3-heading) 22%, var(--s3-left-bg));
  cursor: pointer;
  transition: all .2s ease;
}
.s3-reviews-dots button.active {
  width: 16px;
  background: var(--s3-heading);
}
