/* Fri: by Helga — base: tokens, type, buttons, fields, notices. Shared by storefront and admin. */
:root {
  --blue: #1f4e9c; --blue-dark: #173d7c; --paper: #faf9f6; --ink: #161616; --muted: #6b6b68; --line: #e7e5e0; --card: #fff;
  --ok: #1b7f4a; --warn: #b8640f; --bad: #b42318;
  /* Vipps orange that passes AA on white and with white text (4.69:1) — the brand orange only reaches 3.1:1, M-23 */
  --vipps: #c94a16; --vipps-dark: #b03f12;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 2rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.logo { font-family: var(--serif); font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1; }
.hero-logo { font-family: var(--serif); font-size: clamp(4rem, 14vw, 7rem); letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.price { margin: 0; font-weight: 600; }
.price.big { font-size: 1.4rem; margin: 4px 0 2px; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; grid-column: 1 / -1; }
.notice { background: #fff6e5; border: 1px solid #f3d9a4; color: #7a4b00; padding: 10px 14px; border-radius: 12px; font-size: .95rem; margin: 0 0 12px; }
.notice a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
/* buttons — every button/pill is at least 44 px tall (M-25) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font: inherit; font-weight: 600; padding: 10px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-align: center; line-height: 1.2; text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #f1efe9; }
.btn-danger { background: transparent; border-color: var(--line); color: var(--bad); }
.btn-sold { background: #e4e2dc; color: var(--ink); cursor: default; margin: 0; }
.btn-small { min-height: 44px; padding: 8px 14px; font-size: .9rem; }
.btn:disabled { opacity: .6; cursor: default; }
.btn:focus-visible, a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 6px 0; min-height: 44px; }
/* fields — inputs never below 16 px so iOS Safari does not zoom the page on tap (H-4) */
.field { display: grid; align-content: start; gap: 6px; font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select, .adm-login input, .rates input, .sel {
  font: inherit; font-size: max(16px, 1rem); font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; width: 100%; box-sizing: border-box; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.field.check input { width: auto; }
.lbl { font-weight: 600; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.tag { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: #ecebe6; color: var(--muted); margin-left: 6px; vertical-align: middle; }
.tag.ok { background: #e3f3ea; color: var(--ok); }
.tag.sold { background: #e9e9e9; color: #444; }
.tag.warn { background: #fff0dc; color: var(--warn); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .95rem; z-index: 9; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.toast.bad { background: var(--bad); }
[hidden] { display: none !important; }
/* ===== v2: destination + Vipps + wizard ===== */
.sel { width: auto; min-height: 44px; padding: 8px 36px 8px 12px; border-radius: 10px; margin: 0; max-width: 100%; -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23161616' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.btn-vipps { background: var(--vipps); color: #fff; }
.btn-vipps:hover { background: var(--vipps-dark); }
.btn-vipps-ghost { background: #fff; color: var(--vipps); border-color: var(--vipps); }
.btn-vipps-ghost:hover { background: #fdf3ee; }
.btn-big { padding: 16px 28px; font-size: 1.05rem; width: 100%; } /* used by the admin wizard's sticky bar */
.field.has-err input, .field input[aria-invalid="true"] { border-color: var(--bad); background: #fff7f6; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.err { display: block; font-weight: 500; color: var(--bad); font-size: .85rem; }
.err:empty { display: none; }
.is-bad { border-color: var(--bad) !important; background: #fff7f6; }
.suffix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.suffix input { border: 0 !important; border-radius: 0 !important; }
.suffix span { padding: 0 14px; color: var(--muted); font-weight: 500; }
.actions.sticky { position: sticky; bottom: 0; background: linear-gradient(to top, var(--paper) 70%, transparent); padding: 14px 0 10px; margin-top: 4px; z-index: 1; }
.actions.center { justify-content: center; }
.notice.ok { background: #e8f5ee; border-color: #bfe3cf; color: #16603a; }
.center { display: block; text-align: center; margin-top: 4px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-sub { font-size: .95rem; color: var(--muted); }
.steps { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 16px 40px; font-size: 1.05rem; display: grid; gap: 8px; margin: 0 0 16px; }
/* accessibility helpers */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
