/* Order form (kalaherkut). Source: wireframe styles.css (kalaherkut/ennakkotilaus), unchanged except fonts:
   Qanelas Soft (not licensed for these storefronts, D21) replaced by Nunito (SIL OFL 1.1); font files in ../fonts with licences. */
@font-face{font-family:"Nunito";src:url("../fonts/nunito-latin-wght-normal.woff2") format("woff2-variations"),url("../fonts/nunito-latin-wght-normal.woff2") format("woff2");font-weight:200 1000;font-display:swap}
/* The latin subset is enough: it includes ä and ö. */
@font-face{font-family:"Petrona";src:url("../fonts/petrona-latin.woff2") format("woff2");font-weight:400 700}

/* Tokens: Kalaherkut Nygren design system (tokens.json, 21 Oct 2026). */
:root{
  --pink-100:#ffe7ed; --pink-200:#ffd4df; --pink-300:#feb5cb;
  --blue-300:#088cd3; --blue-400:#026cbe; --blue-500:#26548b; --blue-600:#294067;
  --sans:"Nunito",Calibri,system-ui,sans-serif; --body:"Petrona",Georgia,serif;
}
*{box-sizing:border-box}
body{margin:0;font-family:var(--sans);color:var(--blue-600);background:#fff;min-height:100vh;display:flex;flex-direction:column}
button{font-family:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--blue-400);outline-offset:2px}
.wrap{max-width:1200px;margin:0 auto;padding-left:24px;padding-right:24px;width:100%}

.top{background:#fff}
.top-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;padding-bottom:16px}
.logo{height:56px;width:auto;display:block}
.brand-promise{font-weight:900;font-size:13px;letter-spacing:.15em;color:var(--blue-500)}

.hero{background:var(--pink-100);position:relative}
/* Wave edge: the brand's wavy line (period 60, height 6) as one period so the tiles repeat seamlessly.
   The pink-100 fill continues the hero background, the line is pink-300 and overshoots the tile to avoid a seam. */
.hero::after{content:"";position:absolute;left:0;right:0;top:100%;height:14px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14' preserveAspectRatio='none'%3E%3Cpath d='M0 0H60V7C50 13 40 13 30 7C20 1 10 1 0 7Z' fill='%23ffe7ed'/%3E%3Cpath d='M-30 7C-20 13 -10 13 0 7S20 1 30 7S50 13 60 7S80 1 90 7' fill='none' stroke='%23feb5cb' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x 0 0/60px 14px}
.hero+.main{padding-top:46px}
.hero .wrap{padding-top:32px;padding-bottom:28px;display:flex;flex-direction:column;gap:12px}
.eyebrow{font-weight:900;font-size:13px;letter-spacing:.15em;color:var(--blue-500)}
.hero h1{margin:0;font-weight:900;font-size:48px;line-height:.95;letter-spacing:-.01em;color:var(--blue-500)}
.hero p{margin:0;font-family:var(--body);font-size:17px;line-height:1.45;max-width:640px}
.steps{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.steps li{display:flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:999px;font-weight:700;font-size:14px;background:#fff}
.steps li span{width:26px;height:26px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;background:var(--pink-100)}
.steps li.current{background:var(--blue-400);color:#fff}
.steps li.current span{background:#fff;color:var(--blue-400)}

.main{flex:1;padding-top:32px;padding-bottom:48px}
h2{margin:0;font-weight:900;font-size:24px;line-height:1.1;letter-spacing:-.005em;color:var(--blue-500)}
.stack{display:flex;flex-direction:column;gap:28px}
.narrow{max-width:760px}

.pill{min-height:44px;padding:0 14px;border-radius:999px;font-weight:700;font-size:14px;border:2px solid var(--pink-200);background:#fff;color:var(--blue-600)}
.pill[aria-pressed="true"]{border-color:var(--blue-400);background:var(--blue-400);color:#fff}
.chips{display:flex;flex-wrap:wrap;gap:8px}

.sec-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin-bottom:14px}

.tag{align-self:flex-start;font-weight:900;font-size:12px;letter-spacing:.12em;text-transform:uppercase;background:var(--pink-100);padding:4px 10px;border-radius:999px}
.label{font-size:13px;font-weight:700}
.stepper{display:flex;align-items:center;gap:4px;background:var(--pink-100);border-radius:999px;padding:4px}
.stepper button{width:40px;height:40px;border-radius:999px;border:0;font-size:22px;font-weight:700;background:#fff;color:var(--blue-600)}
.stepper button.plus{background:var(--blue-400);color:#fff}
.stepper output{min-width:48px;text-align:center;font-weight:700}

.box{background:#fff;border:2px solid var(--pink-200);border-radius:16px;padding:16px 18px}
.places{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.place{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;color:var(--blue-600);font-size:18px;min-height:96px}
.place[aria-pressed="true"]{border-color:var(--blue-400);box-shadow:inset 0 0 0 2px var(--blue-400);background:var(--pink-100)}
.dates{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.date{min-height:84px;border-radius:16px;border:2px solid var(--pink-200);background:#fff;color:var(--blue-600);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.date[aria-pressed="true"]{border-color:var(--blue-400);background:var(--blue-400);color:#fff}
.date small{font-weight:900;font-size:13px;letter-spacing:.15em}
.date b{font-weight:900;font-size:26px}

.field{display:flex;flex-direction:column;gap:6px}
.field label{font-weight:700;font-size:15px}
.field input,.field textarea{min-height:48px;padding:12px 14px;border:2px solid var(--pink-200);border-radius:10px;background:#fff;color:var(--blue-600);font:400 17px var(--sans)}
/* Error state per the design system Forms component: pink-400 border, pink-100 fill, blue-600 text. */
.field.invalid input{border-color:#fd80a2;background:var(--pink-100)}
.field-err{margin:0;font-weight:700;font-size:14px;line-height:1.35;color:var(--blue-600)}
.field-err::before{content:"◗ ";color:#fd80a2}
.field-err:empty{display:none}
.check{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.4}
.check input{width:22px;height:22px;margin:0;accent-color:var(--blue-400);flex:none}

.lines{background:#fff;border:2px solid var(--pink-200);border-radius:16px;overflow:hidden}
.line{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:14px 18px;border-bottom:1px solid var(--pink-200)}
.line small{display:block;font-size:14px}
.line.fee{font-size:15px}
.total{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;background:var(--pink-100);font-weight:700}
.total span:last-child{font-weight:900;font-size:24px;color:var(--blue-500)}
.note{margin:0;font-family:var(--body);font-size:15px;line-height:1.5}
.done{margin:0;font-weight:900;font-size:40px;line-height:.95;letter-spacing:-.01em;color:var(--blue-500)}

.bar{position:sticky;bottom:0;background:var(--blue-500);color:#fff;box-shadow:0 -6px 20px rgba(41,64,103,.14)}
.bar-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;padding-bottom:14px}
.bar-text{display:flex;flex-direction:column;gap:2px}
.bar-text strong{font-size:17px}.bar-text span{font-size:14px}
.bar-actions{display:flex;gap:10px;flex-wrap:wrap}
/* pink-300 on blue-600 = 6.3:1 contrast on the dark bar */
.btn-primary{min-height:48px;padding:0 24px;border-radius:999px;border:0;background:var(--pink-300);color:var(--blue-600);font-weight:900;font-size:16px}
.btn-primary:disabled{background:rgba(255,255,255,.2);color:#fff;cursor:not-allowed}
.btn-ghost{min-height:48px;padding:0 20px;border-radius:999px;border:2px solid #fff;background:transparent;color:#fff;font-weight:700;font-size:16px}
.bar{z-index:20}
.cart-toggle{background:none;border:0;padding:4px 0;color:inherit;text-align:left;cursor:pointer;border-radius:8px}
.cart-toggle-label{display:inline-flex;align-items:center;gap:6px;margin-top:4px;font-weight:700;font-size:14px;color:var(--pink-300);text-decoration:underline;text-underline-offset:3px}
.cart-toggle-label::after{content:"";width:8px;height:8px;border-left:2px solid currentColor;border-top:2px solid currentColor;transform:translateY(2px) rotate(45deg)}
.cart-toggle[aria-expanded="true"] .cart-toggle-label::after{transform:translateY(-2px) rotate(225deg)}
.backdrop{position:fixed;inset:0;background:rgba(41,64,103,.45);z-index:15}
.cart-panel{background:#fff;color:var(--blue-600);border-radius:16px 16px 0 0;max-height:min(62vh,560px);overflow-y:auto;overscroll-behavior:contain}
.cart-inner{padding-top:18px;padding-bottom:18px;display:flex;flex-direction:column;gap:14px}
.cart-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.btn-close{min-height:44px;padding:0 18px;border-radius:999px;border:2px solid var(--pink-200);background:#fff;color:var(--blue-600);font-weight:700;font-size:15px}
.clines{border:2px solid var(--pink-200);border-radius:16px;overflow:hidden}
.cline{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--pink-200)}
.cline:last-child{border-bottom:0}
.cline img{width:64px;height:48px;object-fit:cover;border-radius:8px;background:var(--pink-100)}
.cline-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.cline-text strong{font-size:15px}
.cline-text small,.cline-est{font-size:14px}
.cline-ctl{display:flex;align-items:center;gap:8px}
.cline.fee{grid-template-columns:minmax(0,1fr) auto;font-size:15px}
.btn-del{min-height:44px;padding:0 10px;border:0;background:none;color:var(--blue-400);font-weight:700;font-size:14px;text-decoration:underline;text-underline-offset:3px}
/* Product page as a menu: text on the left, picture on the right, + on the picture's corner.
   Sizes are chosen in the panel (.sheet), which keeps the list calm. */
.catnav{position:sticky;top:0;z-index:10;background:#fff;margin:0 -24px;padding:10px 24px;border-bottom:1px solid var(--pink-200)}
.catnav .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.catnav .chips::-webkit-scrollbar{display:none}
/* Fade on the edge that still has categories (classes set by updateCategoryFade in main.js). */
.catnav .chips.more-r{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 56px),transparent)}
.catnav .chips.more-l{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 56px),transparent)}
.catnav .chips.more-l.more-r{-webkit-mask-image:linear-gradient(to right,transparent,#000 56px,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(to right,transparent,#000 56px,#000 calc(100% - 56px),transparent)}
.catnav .pill{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:40px}
.count{min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--blue-400);color:#fff;font-size:12px;font-weight:900;display:inline-flex;align-items:center;justify-content:center}
.weights{margin:14px 0 0}
#view .stack{gap:40px}
.sec{scroll-margin-top:72px;padding-top:8px}
.sec .sec-head{display:block;margin-bottom:4px}
.sec .sec-head p{margin:4px 0 0;font-family:var(--body);font-size:15px}
.items{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,440px),1fr));column-gap:48px}
.item{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:18px;align-items:center;padding:18px 0;border-bottom:1px solid var(--pink-200)}
.item-text{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.item h3{margin:0;font-weight:900;font-size:18px;line-height:1.2;color:var(--blue-500);hyphens:auto;overflow-wrap:break-word}
.item-name{all:unset;cursor:pointer;border-radius:4px}
.item-name:focus-visible{outline:2px solid var(--blue-400);outline-offset:2px}
.item .tag{font-size:11px;padding:3px 8px}
.item-meta{margin:0;font-size:15px;line-height:1.35}
.item-price{margin:2px 0 0;font-weight:900;font-size:15px;color:var(--blue-500)}
.item-picked{margin:2px 0 0;font-weight:700;font-size:14px;color:var(--blue-400)}
.item-media{position:relative;width:120px;height:90px}
.item-media img{width:100%;height:100%;object-fit:cover;border-radius:12px;background:var(--pink-100);display:block}
.item-ctl{position:absolute;right:-8px;bottom:-8px}
.add{width:44px;height:44px;border-radius:999px;border:0;background:#fff;color:var(--blue-400);font-size:26px;font-weight:700;line-height:1;box-shadow:0 2px 10px rgba(41,64,103,.28)}
.add.has{background:var(--blue-400);color:#fff;font-size:17px;font-weight:900}
.mini-step{display:flex;align-items:center;background:var(--blue-400);border-radius:999px;padding:4px;box-shadow:0 2px 10px rgba(41,64,103,.28)}
.mini-step button{width:36px;height:36px;border-radius:999px;border:0;background:#fff;color:var(--blue-500);font-size:20px;font-weight:700;line-height:1}
.mini-step output{min-width:26px;text-align:center;color:#fff;font-weight:900}

body.locked{overflow:hidden}
body.locked .backdrop{z-index:25}
.sheet{position:fixed;z-index:30;left:0;right:0;bottom:0;display:flex;justify-content:center;pointer-events:none}
.sheet-inner{pointer-events:auto;background:#fff;width:100%;max-width:560px;max-height:88vh;overflow-y:auto;overscroll-behavior:contain;border-radius:20px 20px 0 0;box-shadow:0 -10px 30px rgba(41,64,103,.2);display:flex;flex-direction:column}
/* Stays visible while the panel scrolls; the white disc stands out on the picture. */
.sh-close{position:sticky;top:12px;z-index:2;align-self:flex-end;flex:none;margin:12px 12px -56px 0;width:44px;height:44px;border-radius:999px;border:0;background:#fff;color:var(--blue-600);display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 10px rgba(41,64,103,.28)}
.sh-img{width:100%;aspect-ratio:2/1;max-height:240px;object-fit:cover;display:block;background:var(--pink-100);flex:none}
.sh-body{padding:18px 20px 12px;display:flex;flex-direction:column;gap:14px}
.sh-body h2{font-size:24px}
/* Variants (sliced / in one piece) as separate sections with a gap and a pink header band. */
.sh-var+.sh-var{margin-top:22px}
.sh-var-head{display:flex;justify-content:space-between;align-items:baseline;padding:9px 12px;margin-bottom:2px;border-radius:10px;background:var(--pink-100);font-size:15px}
.sh-var-head+.sh-opt{border-top:0}
.sh-var-head b{font-weight:900;color:var(--blue-500)}
.sh-var-head span{font-weight:700}
.sh-opt{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:58px;border-top:1px solid var(--pink-200);font-size:16px;font-weight:700}
.sh-opt.on{color:var(--blue-500)}
.sh-add{min-height:44px;padding:0 20px;border-radius:999px;border:2px solid var(--blue-400);background:#fff;color:var(--blue-400);font-weight:700;font-size:15px}
.sh-foot{position:sticky;bottom:0;background:#fff;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--pink-200)}
.btn-done{width:100%;min-height:50px;border-radius:999px;border:0;background:var(--blue-400);color:#fff;font-weight:900;font-size:16px}
@media (min-width:761px){
  .sheet{top:0;align-items:center;padding:24px}
  /* Full viewport height: a fixed 760 px cap hid the last row even on large screens. */
  .sheet-inner{border-radius:20px;max-height:calc(100vh - 48px)}
  .sh-img{max-height:min(240px,28vh)}
}

.hero.compact .wrap{padding-top:20px;padding-bottom:18px;gap:8px}
.hero.compact h1{font-size:40px}
@media (max-width:600px){
  .catnav{margin:0 -16px;padding:8px 16px}
  .item{grid-template-columns:minmax(0,1fr) 104px;gap:14px;padding:16px 0}
  .item-media{width:104px;height:78px}
  .item h3{font-size:17px}
  .hero.compact h1{font-size:30px}
  .hero.compact p{font-size:15px}
  .hero.compact .steps li{font-size:13px;padding:4px 10px 4px 4px}
  .hero.compact .steps li span{width:22px;height:22px}
  .bar-text span#barSub{display:none}
}

/* Hover styles only for mice: on touch screens hover sticks after a tap and the button under
   the finger looks pressed. */
@media (hover:hover){
  .item-name:hover{text-decoration:underline;text-underline-offset:3px}
  .add:hover{color:var(--blue-500)}
  .sh-add:hover{background:var(--blue-400);color:#fff}
  .btn-done:hover{background:var(--blue-500)}
}
[hidden]{display:none!important}

@media (max-width:600px){
  .wrap{padding-left:16px;padding-right:16px}
  .logo{height:44px}
  .brand-promise{display:none}
  .hero h1{font-size:32px}
  h2{font-size:20px}
  .cline{grid-template-columns:56px minmax(0,1fr)}
  .cline img{width:56px;height:42px}
  .cline-ctl{grid-column:2;justify-content:space-between}
}

/* Former inline styles */
#view .stack.tight{gap:12px}
#view .stack.form{gap:18px;max-width:560px}
#view .stack.review{gap:24px}
#view .stack.done-view{gap:14px}
.grid.summary{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.done-text{margin:0;font-family:var(--body);font-size:17px;line-height:1.5}
.restart{align-self:flex-start}

/* Images that fail to load are hidden instead of showing a broken-image icon (shared/dom.js). */
.img-missing{visibility:hidden}

/* Demo mode (no order endpoint configured) */
.demo-banner{background:var(--blue-600);color:#fff;font-size:14px;line-height:1.4}
.demo-banner .wrap{padding-top:10px;padding-bottom:10px}

/* Submit errors on the confirmation step, same look as field errors */
.submit-error{border:2px solid #fd80a2;background:var(--pink-100);border-radius:16px;padding:14px 18px;display:flex;flex-direction:column;gap:6px}
.submit-error p{margin:0;font-weight:700;font-size:15px;line-height:1.4}
.load-error{font-size:17px}

:root{--tl-accent:var(--blue-400);--tl-ink:var(--blue-600);--tl-head:var(--blue-500);--tl-line:var(--pink-200);--tl-soft:var(--pink-100)}
