/* Neutral shop palette: light grey page, white cards with thin borders, one accent (the red of the company site),
   flat dark header, no coloured gradients. Same family as large marketplaces; keeps the site and the shop alike. */
:root {
  color-scheme: light;
  --accent: #e30613;
  --accent-dark: #b8050f;
  --ink: #0f1111;
  --muted: #565959;
  --line: #d5d9d9;
  --page: #f3f3f3;
  --card: #ffffff;
  --soft: #f7f8f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--page); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shop-shell { width: min(920px, calc(100% - 28px)); margin: 0 auto; padding: 20px 0 64px; }
.shop-hero {
  padding: 26px 28px;
  border-radius: 8px;
  background: #1a1a1a;
  color: white;
}
.shop-hero h1 { margin: 6px 0 8px; font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.1; }
.shop-hero p { max-width: 680px; line-height: 1.55; color: #e7e7e7; }
.eyebrow { margin: 0; font-weight: 700; letter-spacing: .14em; font-size: .85rem; color: #ff8a92; }
.mode-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: .9rem;
}
.mode-badge.enabled::before { content: "\2713\00a0"; color: #7ee2a8; }
.message {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff8e5;
  border: 1px solid #e8d08a;
}
.message.error { background: #fdecec; border-color: #e6a3a3; }
.message.success { background: #eaf6ee; border-color: #8cc6a1; }
.shop-card {
  position: relative;
  margin-top: 16px;
  padding: 22px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
}
.shop-card h2 { display: inline-block; margin: 0; vertical-align: middle; font-size: 1.25rem; }
.step-row { display: flex; align-items: center; grid-gap: 10px; margin-bottom: 18px; }
.step {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1a1a1a;
  color: white;
  font-weight: 700;
  font-size: .95rem;
}
.payment-buttons, .data-grid, .service-grid { display: grid; gap: 12px; }
.service-grid { grid-template-columns: repeat(3, 1fr); }
.data-grid { grid-template-columns: 1fr 1fr; }
.service-groups { display: flex; flex-direction: column; gap: 22px; }
.service-group h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--muted); font-weight: 700; }
.service-choice {
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.service-choice:hover { border-color: #8d9096; }
.service-choice strong {
  display: block;
  font-size: 1.3rem;
  margin: 7px 0 3px;
}
.service-choice small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.service-choice small + small { margin-top: 2px; }
.service-choice.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
  background: #fffafa;
}
.service-choice:disabled { cursor: not-allowed; opacity: .45; }
.field { display: grid; gap: 6px; font-weight: 700; }
input, select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #8d9096;
  border-radius: 6px;
  background: white;
  color: var(--ink);
}
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-weight: 500; }
.checkbox-field input { width: auto; min-height: auto; margin-top: 3px; accent-color: var(--accent); }
.legal-term { font-weight: 700; }
.secondary, .primary { min-height: 46px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; }
.secondary { background: #f0f2f2; color: var(--ink); }
.secondary:hover { background: #e3e6e6; }
.primary { background: var(--accent); border-color: var(--accent); color: white; }
.primary:hover { background: var(--accent-dark); }
.summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.summary-row { display: flex; justify-content: space-between; gap: 20px; }
.summary-total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.summary-total strong { font-size: 1.4rem; }
.privacy-note { color: var(--muted); font-size: .92rem; }
.checkout-frame {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  min-height: 240px;
}
.payment-buttons { grid-template-columns: 1fr auto; }
.pay-button {
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-align: left;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pay-button span { display: block; font-size: 1.1rem; }
.pay-button small { display: block; margin-top: 4px; font-weight: 400; }
.pay-button.card { color: white; background: var(--accent); }
.pay-button.card:hover:not(:disabled) { background: var(--accent-dark); }
.pay-button:disabled { cursor: not-allowed; opacity: .5; }
.payment-consent { margin: 16px 0 0; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.payment-consent a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.return-view { display: flex; justify-content: center; align-items: center; min-height: 60vh; }
.return-card {
  width: min(560px, 100%);
  padding: 30px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
}
.return-message { font-size: 1.2rem; line-height: 1.5; margin: 20px 0; }
.footer {
  margin-top: 28px;
  padding: 22px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
}
.footer a { color: var(--muted); font-weight: 600; text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.draft-banner {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff8e5;
  border: 1px solid #e8d08a;
  font-weight: 700;
}
.back-link { display: inline-block; margin-bottom: 12px; color: var(--ink); font-weight: 700; text-decoration: underline; }
.legal-section { margin-top: 22px; }
.legal-section h2 { margin: 0 0 12px; }
.legal-placeholder { color: var(--muted); font-style: italic; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 2px;
}
.langbar { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding: 2px 0 6px; scrollbar-width: thin; }
.langbar button {
  flex: 0 0 auto;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}
.langbar button:hover { border-color: #8d9096; }
.langbar button[aria-pressed="true"] { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
@media (max-width: 680px) {
  .shop-shell { width: min(100% - 18px, 920px); padding-top: 10px; }
  .shop-hero, .shop-card, .return-card { padding: 18px; }
  .service-grid, .data-grid { grid-template-columns: 1fr 1fr; }
  .payment-buttons { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .shop-shell { width: min(100% - 14px, 920px); padding: 8px 0 40px; }
  .shop-hero, .shop-card, .return-card { padding: 14px; }
  .step { width: 28px; height: 28px; }
  .pay-button { min-height: 64px; padding: 12px; }
  .service-choice { min-height: 80px; padding: 10px; }
  .service-grid, .payment-buttons, .data-grid { grid-template-columns: 1fr; }
  input, select { min-height: 44px; padding: 8px 10px; }
  .secondary, .primary { min-height: 44px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #ececec;
    --muted: #a8aaad;
    --line: #3a3c3f;
    --page: #121212;
    --card: #1c1c1d;
    --soft: #242426;
    background: var(--page);
    color: var(--ink);
  }
  .message { background: #3a3114; border-color: #8a7a35; color: #f1e6bd; }
  .message.error { background: #3b1b1b; border-color: #a85a5a; }
  .message.success { background: #17301f; border-color: #3d8a5a; }
  .step { background: #ececec; color: #121212; }
  .service-choice.selected { background: #2a1a1b; }
  .secondary { background: #2a2b2d; color: var(--ink); }
  input, select { background: #151516; border-color: #5a5d61; color: var(--ink); }
  .payment-consent a, .back-link { color: var(--ink); }
  .draft-banner { background: #3a3114; border-color: #8a7a35; color: #f1e6bd; }
  .langbar button[aria-pressed="true"] { background: #ececec; border-color: #ececec; color: #121212; }
  button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline-color: #ececec; }
}
