﻿/* Julkisen tilaussivun GENEERINEN tyyli: perusasettelu ja tilauskortit.
   Kaikille asiakkaille sama — asiakaskohtainen ilme tulee kehyksen omasta
   tyylitiedostosta ja lehtikohtaisista väreistä (--paa / --korostus /
   --otsikko), jotka Tilaa.razor kirjoittaa <html>-elementin style-attribuuttiin.

   Muuta tätä tiedostoa vain, kun lomake itse muuttuu. Yksittäisen lehden
   ilmeen muutokset kuuluvat asiakkaan JSON-tiedostoon. */

:root {
  /* Varavärit: lehtikohtaiset arvot yliajavat nämä inline-tyylillä. */
  --paa: #f37021;
  --korostus: #21a4f3;
  --otsikko: #00a3ce;

  --pohja: #e6e6e6;
  --viiva: #dadada;
  --musta: #111111;
  --teksti: #222222;
  --himmea: #666666;
  --valkoinen: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--pohja);
  color: var(--teksti);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.kuori {
  min-height: 100vh;
  background: var(--valkoinen);
  display: flex;
  flex-direction: column;
}

/* Sivun sisältöleveys. Kehykset käyttävät samoja luokkia, jotta ylä- ja
   alatunniste asettuvat samaan linjaan lomakkeen kanssa. */
.verkosto-sisa,
.nimio-sisa,
.valikko-sisa,
.osio-sisa,
.alatunniste-sisa {
  width: min(1140px, calc(100% - 28px));
  margin: 0 auto;
}

main { background: var(--valkoinen); flex: 1; }

.tilaukset { padding: 40px 0 40px; }

.osio-otsikko {
  margin-bottom: 22px;
  border-bottom: 5px solid var(--paa);
}

.osio-otsikko h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1;
  color: var(--musta);
}

.tila {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--pohja);
  font-weight: 700;
}

.tila[hidden] { display: none; }
.tila a { color: var(--korostus); text-decoration: underline; }

.kortit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.kortti {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--valkoinen);
  border: 1px solid var(--viiva);
  border-radius: 4px;
}

.kortti[hidden] { display: none; }

.kortti-kuva {
  min-height: 150px;
  padding: 20px;
  color: var(--valkoinen);
  background: linear-gradient(135deg, var(--paa) 0%, #111111 100%);
}

.kortti[data-kortti="digi"] .kortti-kuva {
  background: linear-gradient(135deg, var(--korostus) 0%, #000000 100%);
}

.kortti-kuva h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-transform: uppercase;
}

.alkaen {
  margin: 48px 0 0;
  min-height: 1.6em;
  font-size: 1.2rem;
  font-weight: 700;
}

.alkaen span { font-size: 2.4rem; line-height: 1; }

.kortti-sisalto {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.valinnat { display: grid; gap: 14px; }

.valintaryhma { display: grid; gap: 7px; }
.valintaryhma[hidden] { display: none; }

.valintaotsikko {
  color: var(--himmea);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Tilaustapaa rajaava huomautus (esim. arkisto ei sisälly päivän
   lukuoikeuteen). Sisältölistan viimeisenä kohtana samalla fontilla ja
   koolla kuin muut rivit, mutta himmeämpänä, koska se rajaa listaa eikä
   lisää siihen. */
.tapa-huomautus {
  color: var(--himmea);
}

.tapa-huomautus[hidden] { display: none; }

.napit { display: flex; flex-wrap: wrap; gap: 8px; }

.nappi {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--viiva);
  border-radius: 3px;
  background: var(--valkoinen);
  color: var(--musta);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nappi:hover,
.nappi.valittu {
  border-color: var(--paa);
  background: var(--paa);
  color: var(--valkoinen);
}

.valittu-hinta {
  width: fit-content;
  padding: 10px 13px;
  background: var(--pohja);
  color: var(--musta);
  font-size: 1.05rem;
  font-weight: 800;
}

.kortti h3 {
  margin: 0;
  color: var(--otsikko);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.kortti ul { margin: 0; padding-left: 19px; }
.kortti li { margin: 7px 0; }

.tilaa-painike {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: fit-content;
  margin-top: auto;
  padding: 0 28px;
  background: var(--paa);
  color: var(--valkoinen);
  border-radius: 3px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 160ms ease, transform 160ms ease;
}

.tilaa-painike:hover {
  background: var(--korostus);
  transform: translateY(-1px);
}

.huomautus {
  margin: 24px 0 0;
  color: var(--himmea);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .kortit { grid-template-columns: 1fr; }
}

/* Order form /tilaus/<TUNNUS>/<tuoteID> and /tilaa/<lehti>/tilaus/<tuoteID> (OrderForm.razor): the product's name
   and price. Its own heading, because the pelkka-lomake frame hides .osio-otsikko. */
.tilaus-otsikko { margin: 0 0 24px; color: var(--otsikko); font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; }

.tilaustuote {
  max-width: 480px;
  padding: 28px 24px;
  border: 1px solid var(--viiva);
  border-radius: 8px;
  background: var(--valkoinen);
  text-align: center;
}
.tilaustuote .tapa { margin: 0; color: var(--korostus); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.tilaustuote h2 { margin: 6px 0 14px; font-size: 1.4rem; }
.tilaustuote .hinta { margin: 0; font-size: 1rem; }
.tilaustuote .hinta span { color: var(--paa); font-size: 2rem; font-weight: 700; }

/* Order form areas (OrderForm.razor, MR 24.10.2026): top, main and bottom (the left image was removed for more
   space). On the plain page /tilaus/<TUNNUS>/<tuoteID> all three; inside a magazine frame only the main card. The
   contents are placeholders until they come from the tenant's settings (Asetukset → Tilauslomake). */
.of-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f7f7f5;
}

/* "Sivua ladataan…" while the form's settings cannot be read (MR 4.11.2026): a plain centred text, no guessed look. */
.of-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: #555;
  font-size: 1.1rem;
}

.of-top { background: var(--valkoinen); border-bottom: 1px solid var(--viiva); }
.of-top-inner,
.of-bottom-inner { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.of-top-inner { padding: 5mm 0; text-align: center; }

.of-logo {
  margin: 0;
  color: var(--musta);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* The uploaded logo instead of the tenant code (Asetukset → Tilauslomake → Ulkoasu, MR 28.10.2026). */
.of-logo-img { display: block; margin: 0 auto; max-width: min(720px, 100%); max-height: 160px; height: auto; }

.of-body { flex: 1; padding: 36px 0; background: transparent; }

.of-card {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  background: var(--valkoinen);
  border: 1px solid var(--viiva);
  border-radius: 8px;
}

/* An offer product's mark (Asetukset → Tilauslomake → Tarjoustuotteet, MR 4.11.2026): icon and text in the main color. */
.of-offer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin: 4px 0 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paa);
  color: var(--valkoinen);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
}
.of-offer-icon { width: 13px; height: 13px; flex: none; }
.of-option .of-offer, .of-product-text .of-offer, .of-summary-text .of-offer { display: flex; }

/* The card and the step's info area beside it (Asetukset → Tilauslomake → Infotekstit, MR 4.11.2026); without an info
   area the card keeps its own width. Narrow screens put the info area under the card. */
.of-layout { width: min(880px, calc(100% - 32px)); margin: 0 auto; }
.of-layout > .of-card { width: 100%; }
.of-layout.with-info { display: flex; align-items: flex-start; gap: 24px; width: min(1204px, calc(100% - 32px)); }
.of-layout.with-info > .of-card { flex: 1 1 auto; min-width: 0; }
.of-info {
  flex: 0 0 300px;
  padding: 24px;
  background: var(--valkoinen);
  border: 1px solid var(--viiva);
  border-top: 4px solid var(--paa);
  border-radius: 8px;
}
.of-info-title { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.3; }
.of-info-text { margin: 0; color: var(--teksti); white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .of-layout.with-info { flex-direction: column; align-items: stretch; width: min(880px, calc(100% - 32px)); }
  .of-info { flex-basis: auto; }
}

.of-main { padding: 32px 36px; }
.of-main .tilaustuote { max-width: none; text-align: left; }

.of-bottom { background: var(--valkoinen); border-top: 1px solid var(--viiva); color: var(--himmea); font-size: 0.8rem; }
/* One centred row: the links, then the copyright right after the privacy link. */
.of-bottom-inner { padding: 18px 0; text-align: center; }
/* On a light rounded strip so the row stays readable on the tenant's own footer background (MR 2.11.2026). */
.of-bottom-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  color: var(--teksti);
  font-size: 0.9rem;
  text-align: center;
}
.of-bottom-links a { color: var(--musta); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.of-bottom-links a:hover { color: var(--paa); }

/* Phones: less padding around the main area. */
@media (max-width: 720px) {
  .of-body { padding: 16px 0; }
  .of-main { padding: 24px 18px; }
}

/* Allowed products when the address has no product (/tilaus/<TUNNUS>): each row opens the form with that product. */
.of-lead { margin: 0 0 16px; color: var(--himmea); }
.of-products { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.of-products a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--viiva);
  border-radius: 8px;
  background: var(--valkoinen);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.of-products a:hover,
.of-products a:focus-visible { border-color: var(--paa); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
.of-product-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.of-product-text .tapa { color: var(--korostus); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.of-product-text .nimi { color: var(--musta); font-weight: 700; }
.of-product-text .of-product-payment { color: var(--himmea); font-size: 0.8rem; }
.of-product-price { white-space: nowrap; font-size: 0.9rem; }
.of-product-price span { color: var(--paa); font-size: 1.25rem; font-weight: 700; }
.of-product-arrow { color: var(--himmea); font-size: 1.6rem; font-style: normal; line-height: 1; }

@media (max-width: 480px) {
  .of-products a { flex-wrap: wrap; gap: 6px 12px; }
  .of-product-text { flex-basis: 100%; }
  .of-product-arrow { margin-left: auto; }
}

/* Selector view (OrderForm.razor, MR 24.10.2026): order type → period → product cards. The default when the products
   are one magazine; every choice is a link (static page). Selected items use the magazine's main colour --paa. */
.of-step { border: 1px solid var(--viiva); border-radius: 6px; overflow: hidden; scroll-margin-top: 16px; }
.of-step-body { padding: 18px 20px 20px; }

.of-label { margin: 0 0 8px; color: var(--musta); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.of-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.of-type {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; padding: 8px 10px;
  border: 1px solid var(--viiva); border-radius: 4px; background: var(--valkoinen); text-align: center;
}
.of-type strong { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.of-type small { color: var(--himmea); font-size: 0.68rem; }

.of-type:hover { border-color: var(--paa); }
.of-type.on { border-color: var(--paa); background: var(--paa); color: var(--valkoinen); }
.of-type.on small { color: var(--valkoinen); }

/* Step 1 (paper / digital, starting price) and step 3 (periods with prices): cards with a radio mark. */
.of-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 20px; }
.of-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.of-kind,
.of-option {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 12px;
  border: 1px solid var(--viiva); border-radius: 4px; background: var(--valkoinen);
}
.of-kind { min-height: 92px; }
.of-option { min-height: 96px; }
.of-kind:hover, .of-option:hover { border-color: var(--paa); }
.of-kind.on, .of-option.on { border: 2px solid var(--paa); padding: 13px 13px 11px; }
.of-kind-name { padding-right: 24px; color: var(--musta); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.of-kind-info { color: var(--himmea); font-size: 0.85rem; line-height: 1.4; white-space: pre-line; }
.of-kind-price { margin-top: auto; color: var(--himmea); font-size: 0.8rem; }
.of-kind-price b { color: var(--musta); font-size: 1.1rem; }
.of-option-period { padding-right: 24px; color: var(--musta); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.of-option-detail { color: var(--himmea); font-size: 0.75rem; line-height: 1.3; }
/* Card payment lines (order type 3): darker than the other details, so they are seen before choosing. */
.of-option-payment { color: var(--teksti); font-weight: 600; }
.of-option-price { margin-top: auto; padding-top: 6px; }
.of-option-price b { color: var(--musta); font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.of-option-price small { display: block; color: var(--himmea); font-size: 0.72rem; }
/* Coupon price of the first period (Stripe), above the normal price. */
.of-option-first { display: block; color: var(--paa); font-size: 0.85rem; font-weight: 700; }
.of-radio { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border: 1px solid var(--viiva); border-radius: 50%; }
.of-kind.on .of-radio,
.of-option.on .of-radio { border-color: var(--paa); background: var(--paa); box-shadow: inset 0 0 0 4px var(--valkoinen); }

.of-actions { display: flex; justify-content: flex-end; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--viiva); }
.of-continue {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 22px;
  border-radius: 4px; background: var(--paa); color: var(--valkoinen);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.of-continue:hover { filter: brightness(0.95); }

/* Link between the selector and the list, at the top right of the main area (MR 24.10.2026). */
.of-switch { margin: 0 0 14px; text-align: right; }
.of-switch a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--viiva);
  border-radius: 999px;
  background: var(--valkoinen);
  color: var(--musta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.of-switch a:hover,
.of-switch a:focus-visible { border-color: var(--paa); color: var(--paa); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.of-switch svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* Step bar (OrderForm.razor, MR 24.10.2026): 1. Tilauksen valinta, 2. Yhteystiedot, 3. Maksutapa ja hyväksyminen.
   Done steps are links back with a check mark, the current one uses the magazine's main colour, later ones are grey.
   Phones get a compact "Vaihe 2/3" line and a progress bar instead. */
.of-steps { margin: 0 0 22px; }
.of-steps ol { display: flex; margin: 0; padding: 0; list-style: none; }
.of-steps li { position: relative; flex: 1; color: var(--himmea); font-size: 0.8rem; text-align: center; }
/* Connector line from the previous step's circle to this one. */
.of-steps li + li::before {
  content: ""; position: absolute; top: 14px; right: 50%; left: -50%;
  height: 2px; background: var(--viiva);
}
.of-steps li.done + li::before { background: var(--paa); }
.of-steps li > a,
.of-steps li > span { position: relative; }
.of-steps li > a { display: flex; flex-direction: column; align-items: center; gap: 6px; }
/* Every step as a column, also a done step without a link (after the order, MR 28.10.2026: was drawn on the line). */
.of-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.of-steps-num {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 2px solid var(--viiva); border-radius: 50%;
  background: var(--valkoinen); color: var(--himmea); font-weight: 700;
}
.of-steps li.current { color: var(--musta); font-weight: 700; }
.of-steps li.current .of-steps-num { border-color: var(--paa); background: var(--paa); color: var(--valkoinen); }
.of-steps li.done { color: var(--musta); }
.of-steps li.done .of-steps-num { border-color: var(--paa); color: var(--paa); }
.of-steps li.done a:hover .of-steps-name { text-decoration: underline; }
.of-steps-compact,
.of-steps-bar { display: none; }

@media (max-width: 560px) {
  .of-steps ol { display: none; }
  .of-steps-compact { display: block; margin: 0 0 6px; color: var(--musta); font-size: 0.85rem; font-weight: 700; }
  .of-steps-bar { display: block; height: 4px; border-radius: 2px; background: var(--viiva); overflow: hidden; }
  .of-steps-bar span { display: block; height: 100%; background: var(--paa); }
}

/* Order summary of steps 2–3 with the Vaihda link back to step 1. */
.of-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  padding: 16px 18px; border: 1px solid var(--viiva); border-left: 4px solid var(--paa); border-radius: 6px;
  background: #fbfbfa;
}
.of-summary-text { display: flex; flex-direction: column; flex: 1; min-width: 200px; }
.of-summary-label { color: var(--himmea); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.of-summary-what { color: var(--musta); font-weight: 700; }
.of-summary-name { color: var(--himmea); font-size: 0.85rem; }
.of-summary-price { white-space: nowrap; color: var(--himmea); font-size: 0.85rem; }
.of-summary-price b { color: var(--musta); font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.of-summary-first { display: block; color: var(--paa); font-size: 0.85rem; font-weight: 700; text-align: right; }
.of-summary-change { color: var(--korostus); font-size: 0.85rem; font-weight: 700; text-decoration: underline; }

/* Step 2 contact form (OrderForm.razor, MR 24.10.2026). Two columns on wide screens, one on phones. The gift
   recipient's fields are shown only when "Tilaan lahjaksi" is ticked (CSS sibling selector, no JavaScript). */
.of-contact { margin-top: 24px; scroll-margin-top: 16px; }
.of-section { margin: 22px 0 12px; color: var(--musta); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.of-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.of-field { display: flex; flex-direction: column; gap: 4px; }
.of-field.wide { grid-column: 1 / -1; }
.of-field label { color: var(--musta); font-size: 0.8rem; font-weight: 700; }
.of-field input,
.of-field select {
  width: 100%; min-height: 42px; padding: 8px 10px;
  border: 1px solid var(--viiva); border-radius: 4px; background: var(--valkoinen);
  color: var(--teksti); font: inherit;
}
.of-field input:focus,
.of-field select:focus { outline: none; border-color: var(--paa); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06); }
.of-field.invalid input,
.of-field.invalid select { border-color: #c0392b; background: #fdf3f2; }
.of-field-error { color: #c0392b; font-size: 0.78rem; }

.of-gift-label { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-weight: 700; cursor: pointer; }
.of-gift-check { width: 18px; height: 18px; accent-color: var(--paa); }
.of-gift { display: none; }
.of-gift-check:checked ~ .of-gift,
.of-gift-label:has(.of-gift-check:checked) ~ .of-gift { display: block; }

.of-errors { margin: 0 0 16px; padding: 12px 16px; border: 1px solid #e3b4ae; border-radius: 6px; background: #fdf3f2; color: #7a2018; }
.of-errors ul { margin: 6px 0 0; padding-left: 18px; }
.of-ok { margin: 0 0 16px; padding: 12px 16px; border: 1px solid #b7dcc0; border-radius: 6px; background: #f1faf3; color: #1e5b2c; }
.of-required-note { margin: 16px 0 0; color: var(--himmea); font-size: 0.78rem; }
.of-contact .of-continue { border: 0; cursor: pointer; }

@media (max-width: 560px) {
  .of-fields { grid-template-columns: 1fr; }
}

/* Demo mode banner (?d=demo, MR 25.10.2026). */
.of-demo {
  margin: 0 0 16px; padding: 8px 12px;
  border: 1px dashed #c9a227; border-radius: 4px; background: #fff8e1; color: #6b5300;
  font-size: 0.8rem; font-weight: 700;
}

/* TaikaNakka demo: send the confirmation for real, and the confirmation shown on the thank-you page (MR 28.10.2026). */
.of-demo-send {
  margin: 20px 0 8px; padding: 14px 16px;
  border: 2px solid #c9a227; border-left-width: 8px; border-radius: 6px; background: #fff8e1; color: #4d3c00;
}
.of-demo-send-title { margin: 0 0 6px; font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.of-demo-send .of-check { margin: 6px 0; font-size: 0.95rem; }
.of-demo-send .of-check input { width: 22px; height: 22px; accent-color: #9a7a00; }
.of-demo-send-info { margin: 6px 0 0; font-size: 0.82rem; line-height: 1.5; }
/* The demo e-mail preview: its own section below the thank-you box; the e-mail itself is DemoMailPreview (demo-mail.css). */
.of-demo-mails {
  margin: 28px 0 0; padding: 18px 20px 20px;
  border: 2px dashed #c9a227; border-radius: 8px; background: #fffbea;
}
.of-demo-mails > .of-section { margin: 0 0 4px; color: #4d3c00; }
.of-demo-mails-info { margin: 0 0 14px; font-size: 0.85rem; color: #6b5300; }

@media (max-width: 560px) {
  .of-demo-mails { padding: 14px 12px; }
}

/* Step 3, payment method and acceptance (OrderForm.razor, MR 26.10.2026). */
.of-steps-back { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.of-steps li.done .of-steps-back { color: var(--musta); }
.of-steps li.done .of-steps-back:hover .of-steps-name { text-decoration: underline; }
.of-steps-back .of-steps-num { border-color: var(--paa); color: var(--paa); }

.of-review { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 20px; }
.of-review-box { padding: 12px 16px; border: 1px solid var(--viiva); border-radius: 6px; background: #fbfbfa; }
.of-review-box .of-section { margin: 0 0 6px; font-size: 1rem; }
.of-review-box p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.of-review-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.of-link { padding: 0; border: 0; background: none; color: var(--korostus); font: inherit; font-size: 0.85rem; font-weight: 700; text-decoration: underline; cursor: pointer; }

.of-pay { display: grid; gap: 8px; }
.of-pay-option {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--viiva); border-radius: 6px; background: var(--valkoinen); cursor: pointer;
}
.of-pay-option:hover { border-color: var(--paa); }
.of-pay-option:has(input:checked) { border: 2px solid var(--paa); padding: 11px 13px; }
.of-pay-option input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--paa); }
.of-pay-text { display: flex; flex-direction: column; gap: 2px; }
.of-pay-text small { color: var(--himmea); font-size: 0.8rem; }
.of-pay.invalid .of-pay-option { border-color: #e3b4ae; }

.of-check { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-size: 0.9rem; cursor: pointer; }
.of-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--paa); }
.of-check a { color: var(--korostus); text-decoration: underline; }
.of-check.invalid span { color: #c0392b; }

.of-done { margin-top: 20px; padding: 18px 20px; border: 1px solid #b7dcc0; border-radius: 6px; background: #f1faf3; }
.of-done .of-section { margin-top: 0; }
.of-done-note { margin: 10px 0 0; color: #7a5b00; font-size: 0.85rem; font-weight: 700; }
.of-done-home { margin: 16px 0 0; }
.of-done-home a { color: var(--paa); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.of-done-home a:hover { text-decoration-thickness: 2px; }
