/* Strona zakupu w stylu biletu Fundacji: czerń, biel, Open Sans, rozstrzelone etykiety. */
body.shop {
  --ink: #111110;
  --paper: #ffffff;
  --page: #ecebe8;
  --grey: #5c5c58;
  --line: #111110;
  --soft: #d9d8d3;
  --logo-filter: none;
  --accent: var(--ink);
  background: var(--page);
  color: var(--ink);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.shop {
    --ink: #f3f2ee; --paper: #161615; --page: #0c0c0b; --grey: #a5a49e; --line: #f3f2ee; --soft: #3a3a37;
    --logo-filter: invert(1);
  }
}
:root[data-theme="dark"] body.shop {
  --ink: #f3f2ee; --paper: #161615; --page: #0c0c0b; --grey: #a5a49e; --line: #f3f2ee; --soft: #3a3a37;
  --logo-filter: invert(1);
}
body.shop.embedded { background: transparent; }

.shop .poster {
  max-width: 720px; margin: 0 auto; background: var(--paper);
  box-shadow: 0 2px 30px rgba(0, 0, 0, .08);
}
.shop.embedded .poster { box-shadow: none; }
.shop .photo { display: block; width: 100%; height: auto; aspect-ratio: 1414 / 700; object-fit: cover; filter: grayscale(1); }

/* Nagłówek jak na bilecie */
.shop .head { text-align: center; padding: 40px 24px 8px; }
.shop .org { font-size: clamp(1.15rem, 4.2vw, 1.85rem); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin: 0; }
.shop .org-sub { margin: 2px 0 0; font-size: .85rem; color: var(--grey); }
.shop .invite { margin: 6px 0 0; font-size: clamp(1.15rem, 4.2vw, 1.85rem); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.shop .label {
  font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--grey); margin: 0;
}
.shop .head .label { margin-top: 30px; }
.shop #debateBox .label { margin-top: 18px; letter-spacing: .22em; text-transform: none; }
.shop .title { font-size: clamp(1.35rem, 4.6vw, 1.75rem); font-weight: 700; margin: 2px 0 0; line-height: 1.25; }
.shop .venue { display: block; width: min(300px, 62%); margin: 30px auto 0; filter: var(--logo-filter); mix-blend-mode: multiply; }
.shop .intro { max-width: 520px; margin: 26px auto 0; color: var(--grey); font-size: .95rem; }

.shop .goal { padding: 0 40px; margin-top: 20px; }
.shop .goal-bar { height: 6px; border-radius: 0; background: var(--soft); }
.shop .goal-bar span { background: var(--ink); border-radius: 0; }
.shop .notice { margin: 24px 40px 0; border-radius: 0; background: transparent; border: 1px dashed var(--grey); color: var(--grey); text-align: center; font-size: .88rem; }

/* Kroki formularza – oddzielone liniami jak pola miejsca na bilecie */
.shop form { padding: 0 40px 8px; }
.shop .step { border-top: 1.5px solid var(--line); padding: 26px 0 30px; margin: 0; }
.shop .step:first-child { margin-top: 32px; }
.shop .step h2.label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--ink); }
.shop .step h2.label span {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 50%;
  letter-spacing: 0; font-size: .75rem;
}
.shop .hint { margin: -8px 0 16px; color: var(--grey); font-size: .88rem; }

/* Terminy */
.shop .performances { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.shop .perf {
  display: block; position: relative; text-align: center; cursor: pointer; padding: 18px 14px;
  border: 1.5px solid var(--soft); border-radius: 0; background: var(--paper); box-shadow: none; transition: border-color .15s, background .15s, color .15s;
}
.shop .perf input { position: absolute; opacity: 0; pointer-events: none; }
.shop .perf .day { font-size: .72rem; font-weight: 700; letter-spacing: .3em; color: var(--grey); }
.shop .perf .date { font-size: 1.05rem; font-weight: 700; margin-top: 2px; line-height: 1.35; }
.shop .perf .time { font-size: .9rem; font-weight: 600; }
.shop .perf .free { font-size: .8rem; color: var(--grey); margin-top: 8px; }
.shop .perf:hover { border-color: var(--ink); }
.shop .perf:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.shop .perf:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
.shop .perf:has(input:checked) .day, .shop .perf:has(input:checked) .free { color: var(--paper); opacity: .75; }
.shop .perf.soldout { opacity: .4; cursor: not-allowed; }

/* Cegiełki – kafelki z dużą ceną */
.shop .variants { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.shop .variant {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 18px 8px 12px; min-width: 0;
  border: 1.5px solid var(--soft); border-radius: 0; background: var(--paper); box-shadow: none;
}
.shop .variant .kind { font-size: .66rem; font-weight: 700; letter-spacing: .2em; max-width: 100%; text-transform: uppercase; color: var(--grey); }
.shop .variant .price { font-size: clamp(1.4rem, 3.6vw, 1.9rem); font-weight: 800; line-height: 1; margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.shop .variant .price small { font-size: .9rem; font-weight: 700; margin-left: 3px; }
.shop .variant.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.shop .stepper { border: 1.5px solid var(--ink); border-radius: 0; width: 100%; max-width: 124px; }
.shop .stepper button { flex: 1 1 0; min-width: 0; width: auto; height: 36px; background: var(--paper); color: var(--ink); font-weight: 700; }
.shop .stepper button:not(:disabled):hover { background: var(--ink); color: var(--paper); }
.shop .stepper output { flex: 1 1 0; min-width: 22px; font-weight: 700; }

.shop .custom { margin-top: 12px; padding: 16px; border: 1.5px dashed var(--soft); display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.shop .custom label { font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; margin: 0; }
.shop .custom small { flex-basis: 100%; color: var(--grey); font-size: .8rem; }
.shop .amount-input input { font-size: 1.3rem; font-weight: 700; max-width: 140px; }

/* Publiczny plan balkonu: bez danych osób, tylko dostępność puli cegiełek. */
.shop .seat-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 14px; color: var(--grey); font-size: .76rem; }
.shop .seat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.shop .swatch { width: 13px; height: 13px; border: 1px solid var(--soft); display: inline-block; }
.shop .swatch.free { background: var(--paper); border-color: var(--ink); }
.shop .swatch.selected { background: var(--ink); border-color: var(--ink); }
.shop .swatch.taken { background: var(--soft); }
.shop .swatch.inactive { background: transparent; border-style: dashed; }
.shop .seat-map { display: grid; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.shop .seat-row { display: grid; grid-template-columns: 30px max-content; gap: 8px; align-items: center; }
.shop .seat-row-label { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--ink); font-size: .72rem; font-weight: 700; }
.shop .seat-row-seats { display: flex; gap: 4px; }
.shop .seat-aisle { width: 14px; flex: 0 0 14px; }
.shop .seat-choice { width: 30px; height: 30px; padding: 0; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: .72rem; font-weight: 700; }
.shop .seat-choice.free { cursor: pointer; }
.shop .seat-choice.free:hover:not(:disabled), .shop .seat-choice.selected { background: var(--ink); color: var(--paper); }
.shop .seat-choice.taken { border-color: var(--soft); background: var(--soft); color: var(--grey); cursor: not-allowed; }
.shop .seat-choice.unavailable { border-color: var(--soft); background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgb(128 128 120 / .24) 4px 5px); color: var(--soft); cursor: not-allowed; }
.shop .seat-choice.inactive { border-style: dashed; border-color: var(--soft); background: transparent; color: var(--soft); cursor: not-allowed; }
.shop .seat-choice:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Pola */
.shop input[type=text], .shop input[type=email], .shop input[type=number] {
  border-radius: 0; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; padding: 10px 2px; color: var(--ink);
}
.shop .field label { font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--grey); }
.shop .field small, .shop .check { color: var(--grey); }
.shop .check { margin-top: 22px; }
.shop .check input { accent-color: var(--ink); }
.shop a { color: var(--ink); }

/* Podsumowanie i przycisk */
.shop .summary {
  border-radius: 0; border: 0; border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line);
  box-shadow: none; background: var(--paper); padding: 16px 0; bottom: 0;
}
.shop .summary .label { display: block; }
.shop .summary strong { font-size: 1.6rem; font-weight: 800; }
.shop .btn {
  border-radius: 0; background: var(--ink); color: var(--paper); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: .85rem; padding: 15px 26px;
}
.shop .btn:hover:not(:disabled) { opacity: .85; }
.shop .error { text-align: center; }
.shop .secure { text-align: center; color: var(--grey); }

/* Stopka – perforacja i logotypy jak na bilecie */
.shop .stub { padding: 18px 0 30px; }
.shop .perforation { position: relative; height: 26px; margin: 0 -1px; }
.shop .perforation::before { content: ""; position: absolute; left: 50px; right: 50px; top: 50%; border-top: 2px dashed var(--soft); }
.shop .perforation i { position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border: 2px solid var(--soft); border-radius: 50%; }
.shop .perforation i:first-child { left: 14px; }
.shop .perforation i:last-child { right: 14px; }
.shop .logos { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 40px 0; }
.shop .logos img { display: block; height: auto; filter: var(--logo-filter); mix-blend-mode: multiply; }
.shop .logos img:nth-child(1) { width: 24%; }
.shop .logos img:nth-child(2) { width: 13%; }
.shop .logos img:nth-child(3) { width: 27%; }

@media (max-width: 560px) {
  .shop form, .shop .logos { padding-left: 16px; padding-right: 16px; }
  .shop .goal { padding: 0 16px; }
  .shop .notice { margin: 20px 16px 0; }
  .shop .head { padding: 28px 16px 4px; }
  .shop .variants { grid-template-columns: repeat(2, 1fr); }
  .shop .variant:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .shop .summary { position: sticky; }
  .shop .btn { padding: 14px 16px; letter-spacing: .08em; }
  .shop .seat-choice { width: 26px; height: 26px; font-size: .66rem; }
  .shop .seat-row-seats { gap: 3px; }
  .shop .seat-aisle { width: 8px; flex-basis: 8px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shop .venue, :root:not([data-theme="light"]) .shop .logos img { mix-blend-mode: screen; }
}

/* Strona „Dziękujemy” */
.shop .thanks .card { border-radius: 0; border: 1.5px solid var(--line); box-shadow: none; background: var(--paper); }
.shop .thanks h1 { font-weight: 800; letter-spacing: .02em; }
.shop .thanks .icon.ok, .shop .thanks .icon.bad { background: var(--ink); color: var(--paper); }
.shop .thanks .btn.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.shop .thanks .spinner { border-color: var(--soft); border-top-color: var(--ink); }
