/* Strony ścieżki płatności przedsprzedaży (HF-1047): /zamow/, /dziekujemy/, /anulowano/, /warunki/.
   Dokładają się do wspólnego /styles.css (zmienne marki, fonty, .btn, stopka).
   Plik w korzeniu, nie w /assets/ — tam _headers daje cache immutable na rok. */

/* Tylko pion — poziomy padding (20 px) zostaje z .container; „padding: … 0” zerował go na telefonie. */
.pre-page { padding-top: 28px; padding-bottom: 64px; }
.pre-page .btn[hidden] { display: none; }
.pre-page :focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
.pre-page h1 { font-size: clamp(26px, 6vw, 34px); margin-bottom: 16px; color: var(--purple-deep); }
.pre-page h2 { font-size: 21px; margin: 32px 0 12px; }
.pre-page p { margin-bottom: 12px; }
.pre-note { color: var(--muted); font-size: 14px; }
.pre-marker { background: #fff3c4; color: #5c4300; padding: 0 3px; border-radius: 3px; }

/* ---------- Formularz /zamow/ ---------- */
.pre-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; box-shadow: var(--shadow-sm);
}
.pre-form { display: grid; gap: 16px; }
.pre-field { display: flex; flex-direction: column; gap: 6px; }
.pre-field > label, .pre-field__label { font-size: 15px; font-weight: 600; color: var(--ink); }
.pre-field input[type="text"], .pre-field input[type="email"], .pre-field input[type="number"] {
  border: 1.5px solid rgba(42, 35, 56, .35); border-radius: 10px; padding: 12px 14px;
  font: inherit; font-size: 17px; color: var(--ink); background: var(--white); width: 100%;
}
.pre-field input[type="number"] { max-width: 9em; }
.pre-field input[aria-invalid="true"] { border-color: #b3261e; }
.pre-field__error { color: #b3261e; font-size: 14px; margin: 0; min-height: 0; }
.pre-field__error:empty { display: none; }
.pre-field__static {
  padding: 12px 14px; border-radius: 10px; background: var(--cream-2); color: var(--ink); font-weight: 600;
}
.pre-field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pre-company { display: grid; gap: 16px; padding-left: 14px; border-left: 3px solid var(--lavender); }
.pre-company[hidden] { display: none; }

.pre-check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; }
.pre-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--purple); }
.pre-check a { text-decoration: underline; }

.pre-summary {
  background: var(--lavender); border-radius: var(--radius-sm); padding: 16px; font-size: 15px; line-height: 1.55;
}
.pre-summary h2 { font-size: 18px; margin: 0 0 8px; }
.pre-summary p { margin: 0 0 8px; }
.pre-summary p:last-child { margin-bottom: 0; }

.pre-submit { width: 100%; }
.pre-submit:disabled { background: #8f86c9; box-shadow: none; cursor: not-allowed; }
.pre-submit-note { margin: -4px 0 0; font-size: 14px; color: var(--muted); text-align: center; font-style: italic; }
.pre-message { margin: 0; font-size: 15px; color: #b3261e; }
.pre-message:empty { display: none; }
.pre-legal { font-size: 13px; color: var(--muted); line-height: 1.55; }
.pre-legal a { color: var(--purple-deep); }
.pre-links { font-size: 14px; }

/* ---------- Stany /dziekujemy/, /anulowano/ ---------- */
.pre-state[hidden] { display: none; }
.pre-state .btn { margin-top: 8px; }
/* Nagłówek stanu dostaje fokus z JS (czytniki ekranu) — bez ramki, bo to nie jest element interaktywny. */
.pre-state h1[tabindex="-1"]:focus { outline: none; }
.pre-lead { font-size: 18px; }

/* ---------- /warunki/ ---------- */
.pre-terms { font-size: 16px; }
.pre-terms h1 { margin-bottom: 8px; }
.pre-terms h2 { font-size: 19px; margin-top: 28px; }
.pre-terms h3 { font-size: 17px; margin: 24px 0 8px; }
.pre-terms ol, .pre-terms ul { padding-left: 1.4em; margin: 0 0 12px; }
.pre-terms li { margin-bottom: 6px; }
.pre-terms li > ol { margin-top: 6px; }

@media (min-width: 720px) {
  .pre-card { padding: 28px; }
}

/* ---------- /prywatnosc/ — tabela celów przetwarzania ---------- */
.pre-table-wrap { overflow-x: auto; margin: 0 0 16px; }
.pre-table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14.5px; background: var(--white); }
.pre-table th, .pre-table td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.pre-table th { background: var(--lavender); }

/* ---------- Baner zgód na wszystkich stronach (HF-1048; mechanika: /track.js, układ jak launch) ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.linklike {
  background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--muted);
  text-decoration: underline; cursor: pointer; text-align: left;
}
.consent { z-index: 60; max-height: calc(100vh - 24px); overflow: auto; }
.consent[hidden] { display: none; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.consent__actions .btn { min-height: 46px; padding: 0 10px; font-size: 15px; }
.consent__settings { margin-top: 14px; display: grid; gap: 12px; }
.consent__settings[hidden] { display: none; }
.consent__option { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.consent__option input { margin-top: 3px; width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--purple); }
.consent__save { justify-self: start; }
.consent :focus-visible, .linklike:focus-visible { outline: 3px solid var(--purple-deep); outline-offset: 2px; border-radius: 4px; }

@media (min-width: 720px) {
  .consent__actions { display: flex; justify-content: flex-end; }
  .consent__actions .btn { flex: 1; }
}
@media (min-width: 960px) {
  .consent { left: auto; right: 24px; bottom: 24px; margin: 0; }
}
