/*
Theme Name: Küttepuudekuller
Theme URI: https://www.kyttepuudekuller.ee
Author: Samason Systems
Description: Custom lightweight theme for Küttepuudekuller.ee - fast, mobile-first, WooCommerce + RFQ quote flow. Replaces Elementor/Astra. Brand green with amber CTA.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: kyttepuudekuller
*/

/* ---------- fonts (self-hosted, inlined) ---------- */
@font-face{font-family:'Poppins';font-weight:600;font-style:normal;font-display:swap;src:url('fonts/poppins-600.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-weight:700;font-style:normal;font-display:swap;src:url('fonts/poppins-700.woff2') format('woff2');}
@font-face{font-family:'InterV';font-weight:100 900;font-style:normal;font-display:swap;src:url('fonts/inter.woff2') format('woff2');}

/* ---------- tokens ---------- */
:root{
  --green:#0F2A12; --green-2:#1B4423; --green-tint:#EBF1EB;
  --amber:#E8852C; --amber-2:#CF7320;
  --bg:#FFFFFF; --bg-alt:#F6F5F0; --paper:#FBFAF6;
  --line:#E4E2DA; --ink:#1C1E1A; --ink-2:#5C635A; --ink-3:#8A8F84;
  --radius:16px; --radius-sm:11px; --shadow:0 1px 2px rgba(20,30,18,.05),0 10px 30px -12px rgba(20,30,18,.18);
  --maxw:1180px;
  /* accent (chosen): AMBER */
  --cta:var(--amber); --cta-hover:var(--amber-2); --cta-ink:#2A1902; --accent-soft:#FBEEDF;
  --font-head:'Poppins',system-ui,sans-serif; --font-body:'InterV','Inter',system-ui,sans-serif;
}
:root[data-accent="green"]{ --cta:var(--green); --cta-hover:var(--green-2); --cta-ink:#fff; --accent-soft:var(--green-tint); }

*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg-alt);color:var(--ink);font-family:var(--font-body);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3{font-family:var(--font-head);font-weight:700;line-height:1.1;text-wrap:balance;margin:0;letter-spacing:-.01em}
p{margin:0}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}

/* ---------- header ---------- */
.site{background:var(--bg)}
.hdr{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.hdr .row{display:flex;align-items:center;gap:22px;height:70px}
.brand{display:flex;align-items:center;gap:10px;margin-right:auto}
.brand img{height:34px;width:auto}
.nav{display:flex;gap:26px;align-items:center}
.nav a{font-size:15px;font-weight:500;color:var(--ink-2);padding:6px 0;position:relative}
.nav a:hover{color:var(--green)}
.nav a.active{color:var(--green);font-weight:600}
.langs{position:relative}
/* borderless: the current-language button gets the same green-tint "box" hover/active as the items */
.langs__cur{display:flex;align-items:center;justify-content:center;cursor:pointer;font-family:var(--font-head);font-weight:600;font-size:13px;color:var(--ink-2);padding:6px 11px;min-width:48px;border:0;border-radius:12px;list-style:none;-webkit-user-select:none;user-select:none;white-space:nowrap}
.langs__cur::-webkit-details-marker{display:none}
.langs__cur:hover{color:var(--green);background:var(--green-tint)}
/* open: green-tint box on the current language + connect flush to the menu (square off the bottom) */
.langs[open] .langs__cur{color:var(--green);background:var(--green-tint);border-bottom-left-radius:0;border-bottom-right-radius:0}
/* unified menu: flush below the button (no gap), exact button width, borderless - button + menu
   read as ONE shape (shared bg + shadow, top corners square to meet the button, bottom rounded) */
.langs__menu{position:absolute;top:100%;left:0;width:100%;background:var(--bg);border-radius:0 0 12px 12px;box-shadow:var(--shadow);padding:4px;z-index:200;display:flex;flex-direction:column;gap:2px;overflow:hidden}
.langs__menu a{padding:7px 10px;border-radius:8px;font-family:var(--font-head);font-weight:600;font-size:13px;color:var(--ink-2);text-align:center;white-space:nowrap}
.langs__menu a:hover{background:var(--green-tint);color:var(--green)}
.btn{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-head);font-weight:600;font-size:15px;border-radius:999px;padding:12px 22px;border:1.5px solid transparent;cursor:pointer;transition:.18s;white-space:nowrap;line-height:1}
.btn-cta{background:var(--cta);color:var(--cta-ink)}
.btn-cta:hover{background:var(--cta-hover);transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--green);border-color:var(--line)}
.btn-ghost:hover{border-color:var(--green);background:var(--green-tint)}
.btn-lg{font-size:16.5px;padding:15px 28px}
.hamb{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:8px}
.hamb span{width:24px;height:2.5px;background:var(--green);border-radius:2px}
.hdr-cart{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:999px;border:1px solid var(--line);color:var(--green);position:relative}
.hdr-cart b{position:absolute;top:-4px;right:-4px;background:var(--cta);color:var(--cta-ink);font-size:11px;font-weight:700;min-width:18px;height:18px;border-radius:999px;display:grid;place-items:center;padding:0 4px}

/* ---------- eyebrow ---------- */
.eyebrow{font-family:var(--font-body);font-weight:700;font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--green-2)}
:root[data-accent="green"] .eyebrow{color:var(--amber)}

/* ---------- wood-ring texture band ---------- */
.rings{position:relative;overflow:hidden}
.rings::before{content:"";position:absolute;inset:0;z-index:0;opacity:.5;
  background-image:
    repeating-radial-gradient(circle at 14% 22%,transparent 0 21px,rgba(15,42,18,.045) 21px 22px),
    repeating-radial-gradient(circle at 82% 74%,transparent 0 26px,rgba(15,42,18,.04) 26px 27px);}
.rings>*{position:relative;z-index:1}
/* Same wood-ring texture as a subtle full-width backdrop on the shop + checkout
   pages (behind the product grid / checkout form). The header (90% white) and
   footer (green) cover it top & bottom, so it reads as a band in the content area. */
body.woocommerce-page{
  background-color:var(--bg-alt);
  background-image:
    repeating-radial-gradient(circle at 14% 22%,transparent 0 21px,rgba(15,42,18,.03) 21px 22px),
    repeating-radial-gradient(circle at 82% 74%,transparent 0 26px,rgba(15,42,18,.026) 26px 27px);
}

/* ---------- hero ---------- */
.hero{background:var(--paper)}
.hero .grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center;padding:64px 0 60px}
.hero h1{font-size:clamp(2.1rem,4.6vw,3.35rem)}
.hero .lead{margin-top:18px;font-size:1.2rem;color:var(--ink-2);max-width:34ch}
.pricechip{display:inline-flex;align-items:baseline;gap:8px;margin-top:22px;background:var(--green);color:#fff;border-radius:999px;padding:9px 18px;font-family:var(--font-head)}
.pricechip b{font-size:1.15rem;font-weight:700}
.pricechip small{font-size:.8rem;opacity:.8;font-family:var(--font-body)}
.hero .cE{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.hero .figure{position:relative}
.hero .figure img{width:100%;height:100%;max-height:460px;object-fit:cover;border-radius:22px;box-shadow:var(--shadow)}
.hero .badge{position:absolute;left:-14px;bottom:22px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 16px;box-shadow:var(--shadow);display:flex;align-items:center;gap:11px;font-size:14px;font-weight:600;color:var(--green)}
.hero .badge .dot{width:34px;height:34px;border-radius:10px;background:var(--green-tint);display:grid;place-items:center}

/* ---------- trust strip ---------- */
.trust{background:var(--green);color:#EAF0EA}
.trust .row{display:flex;flex-wrap:wrap;gap:12px 40px;justify-content:center;padding:24px 0;font-size:16px;font-weight:700}
.trust .row i{color:#fff;font-style:normal;margin-right:8px}

/* ---------- section frame ---------- */
.sec{padding-block:74px}
.sec-head{max-width:640px;margin-bottom:40px}
.sec-head h2{font-size:clamp(1.7rem,3.2vw,2.4rem);margin-top:10px}
.sec-head p{margin-top:14px;color:var(--ink-2);font-size:1.08rem}
.center{margin-left:auto;margin-right:auto;text-align:center}

/* ---------- kuutellimus feature ---------- */
.feature{background:var(--green);color:#EAF0EA;border-radius:28px;overflow:hidden;display:grid;grid-template-columns:1.1fr .9fr}
.feature .body{padding:52px}
.feature h2{color:#fff;font-size:clamp(1.7rem,3vw,2.3rem)}
.feature .eyebrow{color:#8FC79B}
.feature p{color:#C9D6C9;margin-top:14px}
.asklist{list-style:none;padding:0;margin:26px 0 0;display:grid;gap:12px}
.asklist li{display:flex;gap:13px;align-items:flex-start;font-size:1.02rem;color:#EAF0EA}
.asklist .n{flex:none;width:26px;height:26px;border-radius:8px;background:rgba(255,255,255,.12);color:#fff;font-family:var(--font-head);font-weight:700;font-size:.85rem;display:grid;place-items:center;margin-top:2px}
.tiers{display:flex;gap:10px;margin-top:28px;flex-wrap:wrap}
.tier{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:12px 16px}
.tier b{font-family:var(--font-head);font-size:1.05rem;color:#fff}
.tier span{display:block;font-size:12.5px;color:#9DB39D;margin-top:2px}
.feature .pic{position:relative;min-height:340px}
.feature .pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* The hero (+ trust strip) and the kuutellimus card each fill roughly one viewport (below the 70px
   sticky header) but scroll NORMALLY - the scroll-snap "reels" clipping was removed (see main.js).
   scroll-padding-top keeps in-page anchor jumps ("Tee kuutellimus" -> #kuutellimus) clear of the
   sticky header. svh (small viewport) so a section is never taller than the visible area on mobile. */
html{scroll-padding-top:70px}
.hero-wrap{min-height:calc(100vh - 70px);min-height:calc(100svh - 70px);display:flex;flex-direction:column}
.hero{flex:1;display:grid;align-content:center}
#kuutellimus{min-height:calc(100vh - 70px);min-height:calc(100svh - 70px);display:grid;align-content:center}
#kuutellimus>.wrap{width:100%}
/* Desktop: bigger, less-floaty hero + feature content. */
@media(min-width:900px){
	.hero .grid{padding:28px 0}
	.hero h1{font-size:clamp(2.6rem,5vw,4.1rem)}
	.hero .lead{font-size:1.34rem;max-width:38ch;margin-top:20px}
	.hero .figure img{max-height:min(560px,58vh)}
	.feature .body{padding:60px}
	.feature .pic{min-height:min(480px,64vh)}
	.feature h2{font-size:clamp(1.9rem,3.4vw,2.7rem)}
}
/* Mobile: compact the hero + kuutellimus so each fits one viewport (they clip/snap). */
@media(max-width:899px){
	/* body.home raises specificity above the generic @900/@720 .hero .grid so this compaction
	   actually wins (the @900 block sets grid-template-columns:1fr for the stack; we tighten gap+pad) */
	body.home .hero .grid{gap:16px;padding:16px 24px 20px}
	.hero .figure img{max-height:22vh;min-height:120px}
	.hero h1{font-size:clamp(1.75rem,6.6vw,2.3rem);line-height:1.1}
	.hero .lead{font-size:.98rem;margin-top:8px;max-width:none}
	.pricechip{margin-top:10px;padding:7px 15px;flex-wrap:wrap}
	.pricechip b{white-space:nowrap}
	.pricechip small{font-size:.72rem;opacity:.85}
	/* niiskus badge: much smaller on phones so it doesn't swamp the hero photo */
	.hero .badge{padding:5px 9px;font-size:10px;gap:6px;border-radius:9px;bottom:10px;left:10px}
	.hero .badge .dot{width:19px;height:19px;border-radius:6px;font-size:11px}
	/* "Tee kuutellimus" + "Vaata poodi" side by side (were stacking) */
	.hero .cE{margin-top:12px;gap:10px;flex-wrap:nowrap}
	.hero .cE .btn{flex:1 1 0;min-width:0;padding:12px 8px;font-size:14px;justify-content:center}
	/* the trust strip (tasuta transport / kuivatis kuivatatud …) is off on phones */
	.trust{display:none}
	#kuutellimus{padding-block:0;align-content:start}
	.feature{border-radius:22px}
	.feature .pic{min-height:96px}
	/* body.home wins over the generic @900/@720 .feature .body padding */
	body.home .feature .body{padding:18px 20px}
	.feature .eyebrow{font-size:12px}
	.feature h2{font-size:clamp(1.5rem,5.6vw,1.9rem)}
	.feature p{margin-top:6px;font-size:.9rem}
	.asklist{margin-top:10px;gap:5px}
	.asklist li{font-size:.9rem}
	.asklist .n{width:21px;height:21px;font-size:.78rem}
	/* all three price/frequency bubbles on one row */
	.tiers{margin-top:11px;gap:6px;flex-wrap:nowrap}
	.tier{flex:1 1 0;min-width:0;padding:8px 9px}
	.tier b{font-size:.9rem}
	.tier span{font-size:10px;margin-top:1px;line-height:1.2}
	.feature .body>div[style*="margin-top:28px"]{margin-top:12px!important}
}
/* narrowest phones: give the two side-by-side hero buttons a little headroom so a tight label
   ("Tee kuutellimus") never rides the pill edge */
@media(max-width:360px){
	.hero .cE .btn{font-size:13px;padding:12px 6px}
}

/* ---------- steps ---------- */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;counter-reset:s}
.step{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:28px 24px}
.step .k{font-family:var(--font-head);font-weight:700;font-size:.95rem;color:var(--cta);letter-spacing:.02em}
.step h3{font-size:1.22rem;margin:12px 0 8px}
.step p{color:var(--ink-2);font-size:1rem}

/* ---------- products ---------- */
.chips{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:26px}
.chip{border:1px solid var(--line);background:var(--bg);border-radius:999px;padding:8px 16px;font-size:14px;font-weight:600;color:var(--ink-2)}
.chip.on{background:var(--green);color:#fff;border-color:var(--green)}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.card{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:.18s}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.card .ph{aspect-ratio:1/1;overflow:hidden;background:var(--bg-alt)}
.card .ph img{width:100%;height:100%;object-fit:cover}
.card .in{padding:16px 16px 18px;display:flex;flex-direction:column;flex:1;gap:6px}
.card h3{font-size:1.05rem;line-height:1.25}
.card .meta{font-size:13px;color:var(--ink-3)}
.card .buyrow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:12px}
.card .price{font-family:var(--font-head);font-weight:700;font-size:1.2rem;color:var(--green);font-variant-numeric:tabular-nums;white-space:nowrap}
.card .price small{font-size:.72rem;color:var(--ink-3);font-weight:500}
.addbtn{font-family:var(--font-head);font-weight:600;font-size:13.5px;color:var(--cta-ink);background:var(--cta);border-radius:999px;padding:9px 15px;border:0;cursor:pointer}
.addbtn:hover{background:var(--cta-hover)}

/* ---------- split (ühekordne ost) ---------- */
.split{display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:center}
.split .pic img{border-radius:20px;box-shadow:var(--shadow);width:100%;object-fit:cover;max-height:400px}
.split ul{margin:18px 0 0;padding-left:0;list-style:none;display:grid;gap:10px}
.split li{padding-left:28px;position:relative;color:var(--ink-2)}
.split li::before{content:"✓";position:absolute;left:0;top:0;color:var(--cta);font-weight:800}

/* ---------- pre-footer CTA band ---------- */
.cta-band{background:var(--green);color:#fff;text-align:center;padding:66px 0}
.cta-band h2{color:#fff;font-size:clamp(1.8rem,3.2vw,2.5rem);max-width:18ch;margin:0 auto}
.cta-band p{color:#BFD0BF;margin:16px auto 28px;max-width:46ch}
.cta-band .btn-ghost{color:#fff;border-color:rgba(255,255,255,.4)}
.cta-band .btn-ghost:hover{background:rgba(255,255,255,.1);border-color:#fff}
.phone{font-family:var(--font-head);font-weight:700;font-size:1.5rem;color:#fff;display:inline-block;margin-top:6px}

/* ---------- footer ---------- */
.foot{background:#0B1E0D;color:#9FB09F;padding:52px 0 26px;font-size:14.5px}
.foot .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:34px}
.foot h4{color:#fff;font-family:var(--font-head);font-size:14px;letter-spacing:.04em;text-transform:uppercase;margin:0 0 14px}
.foot a{display:block;padding:4px 0;color:#9FB09F}
.foot a:hover{color:#fff}
.foot .brand img{height:30px;filter:none;margin-bottom:14px}
.foot .bottom{border-top:1px solid #1c331e;margin-top:36px;padding-top:18px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:11px;font-size:13px;color:#6E836E}
.foot-legal{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:center}
.foot-legal a,.foot-powered a{display:inline;padding:0;color:#9FB09F}
.foot-legal a:hover,.foot-powered a:hover{color:#fff}
.foot-bottom-line{display:flex;flex-wrap:wrap;gap:4px 14px;justify-content:center;align-items:center}
.foot-regions{border-top:1px solid #1c331e;margin-top:32px;padding-top:20px;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;font-size:13px}
.foot-regions__lbl{color:#6E836E;text-transform:uppercase;letter-spacing:.04em;font-size:12px}
.foot-regions a{display:inline;padding:0;color:#9FB09F}
.foot-regions a:hover{color:#fff}
.foot-regions + .bottom{border-top:0;margin-top:16px}

/* ---------- mobile bottom action bar ---------- */
.mobilebar{display:none;position:fixed;bottom:0;left:0;right:0;z-index:150;background:#fff;border-top:1px solid var(--line);padding:9px 12px calc(9px + env(safe-area-inset-bottom));gap:10px;box-shadow:0 -6px 20px -12px rgba(0,0,0,.25)}
.mobilebar a{flex:1;text-align:center;border-radius:12px;padding:13px;font-family:var(--font-head);font-weight:600;font-size:15px}
.mobilebar .call{border:1.5px solid var(--green);color:var(--green)}
.mobilebar .order{background:var(--cta);color:var(--cta-ink)}

/* ---------- responsive ---------- */
@media(max-width:900px){
  .hero .grid{grid-template-columns:1fr;gap:28px;padding:30px 24px 42px}
  .hero .figure{order:-1}
  .hero .lead{max-width:none}
  .feature{grid-template-columns:1fr}
  .feature .pic{min-height:220px}
  .feature .body{padding:34px 26px}
  .steps{grid-template-columns:1fr}
  .cards{grid-template-columns:repeat(2,1fr)}
  .split{grid-template-columns:1fr;gap:26px}
  .split .pic{order:-1}
}
@media(max-width:720px){
  body{font-size:16px}
  .nav,.hdr .btn-cta{display:none}
  /* keep the language switcher in the header on mobile (not buried in the hamburger menu) */
  .hdr .row{gap:12px}
  .langs__cur{padding:6px 10px}
  .hamb{display:flex}
  .sec{padding-block:52px}
  .feature .body{padding:28px 20px}
  .mobilebar{display:flex}
  /* Sticky Helista/Telli puud bar shows on the homepage + landing pages/articles
     (their on-page CTAs scroll away). Shop/checkout keep their own on-page CTAs, no bar. */
  body.woocommerce-page .mobilebar{display:none}
  .site{padding-bottom:74px}
  /* pages without the sticky bar drop its reserve so there's no blank strip under the footer */
  body.woocommerce-page .site{padding-bottom:0}
  .hero .badge{left:10px}
  /* products: full-width horizontal cards so price + button stay readable */
  .cards{grid-template-columns:1fr;gap:12px}
  .card{flex-direction:row;align-items:stretch}
  .card .ph{width:40%;min-width:132px;flex:none;aspect-ratio:auto}
  .card .in{padding:15px 16px}
  .card h3{font-size:1.12rem}
  .card .price{font-size:1.35rem}
  /* footer stacks */
  .foot .cols{grid-template-columns:1fr 1fr;gap:26px 22px}
}
@media(max-width:430px){ .foot .cols{grid-template-columns:1fr} }
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---------- KKK / FAQ accordion ---------- */
.faq{max-width:840px}
.faq-intro{color:var(--ink-2);font-size:1.08rem}
.faq-intro p{margin:0 0 12px}
.faq-group{margin-top:38px}
.faq-group>h2{font-family:var(--font-head);font-size:1.4rem;color:var(--green);margin:0 0 8px;letter-spacing:-.01em}
.faq-group-desc{color:var(--ink-2);margin-bottom:14px}
.faq-group-desc p{margin:0 0 10px}
.faq-item{border:1px solid var(--line);border-radius:12px;background:var(--bg);margin:10px 0}
.faq-item[open]{border-color:#DDE6DD;box-shadow:var(--shadow)}
.faq-item summary{list-style:none;cursor:pointer;padding:16px 20px;font-family:var(--font-head);font-weight:600;font-size:1.05rem;color:var(--ink);display:flex;justify-content:space-between;align-items:center;gap:16px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-size:1.5rem;color:var(--amber);font-weight:400;line-height:1;flex:none}
.faq-item[open] summary::after{content:"\2212"}
.faq-item summary:hover{color:var(--green)}
.faq-a{padding:2px 20px 18px;color:var(--ink-2)}
.faq-a p{margin:0 0 10px}
.faq-a ul{margin:8px 0 8px 20px}
.faq-a li{margin:4px 0}
.faq-a a{color:var(--green);text-decoration:underline}
.faq-a strong{color:var(--ink)}
.faq-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:40px;padding-top:28px;border-top:1px solid var(--line)}

/* ---------- content prose (.entry) - articles, landing, generic pages ---------- */
.entry{font-size:1.07rem;line-height:1.72;color:var(--ink-2)}
.entry>*+*{margin-top:1.35em}
.entry h2{font-family:var(--font-head);font-weight:700;font-size:clamp(1.4rem,2.6vw,1.7rem);color:var(--ink);line-height:1.28;margin-top:2.3em;margin-bottom:.15em}
.entry h3{font-family:var(--font-head);font-weight:600;font-size:1.22rem;color:var(--ink);margin-top:1.8em;margin-bottom:.1em}
.entry h2:first-child,.entry h3:first-child,.entry p:first-child{margin-top:0}
.entry p{margin:0}
.entry a{color:var(--green-2);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
.entry a:hover{color:var(--amber)}
.entry strong{color:var(--ink)}
.entry ul,.entry ol{margin:0;padding-left:1.35em;display:flex;flex-direction:column;gap:.45em}
.entry li{padding-left:.15em}
.entry img{max-width:100%;height:auto;border-radius:var(--radius)}
.entry blockquote{border-left:3px solid var(--amber);margin:1.4em 0;padding:2px 0 2px 18px;color:var(--ink);font-style:italic}
.entry table{width:100%;border-collapse:collapse}
.entry th,.entry td{border-bottom:1px solid var(--line);padding:10px 12px;text-align:left}

/* ---------- article (single post) + articles archive ---------- */
.kk-article{max-width:760px}
.kk-article__back{margin:0 0 6px}
.kk-article__back a{color:var(--ink-3);font-family:var(--font-head);font-weight:600;font-size:14px;text-decoration:none}
.kk-article__back a:hover{color:var(--green)}
.kk-article__hero{margin:0 0 26px}
.kk-article__hero img{width:100%;height:auto;border-radius:var(--radius)}
.kk-articles{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:6px}
.kk-article-card{display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;text-decoration:none;color:inherit;transition:transform .16s,box-shadow .16s,border-color .16s}
.kk-article-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.kk-article-card__ph{aspect-ratio:16/10;background:var(--bg-alt);overflow:hidden}
.kk-article-card__ph img{width:100%;height:100%;object-fit:cover}
.kk-article-card__in{padding:18px 20px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.kk-article-card__date{font-size:12.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-3);font-weight:600}
.kk-article-card__title{font-family:var(--font-head);font-weight:600;font-size:1.18rem;line-height:1.3;color:var(--ink);margin:0}
.kk-article-card__ex{margin:0;color:var(--ink-2);font-size:.98rem;line-height:1.55}
.kk-article-card__more{margin-top:auto;font-family:var(--font-head);font-weight:600;font-size:14px;color:var(--green-2)}
.kk-article-card:hover .kk-article-card__more{color:var(--amber)}
@media(max-width:900px){.kk-articles{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.kk-articles{grid-template-columns:1fr}}

/* ---------- landing page ---------- */
.kk-landing-hero{background:var(--paper);border-bottom:1px solid var(--line);padding:64px 0 60px;text-align:center}
.kk-landing-hero h1{font-family:var(--font-head);font-weight:700;font-size:clamp(2rem,5vw,3rem);max-width:16ch;margin:0 auto;line-height:1.08}
.kk-landing-hero__lead{margin:18px auto 0;max-width:52ch;color:var(--ink-2);font-size:1.15rem}
.kk-landing-hero__cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:28px}
.kk-landing{max-width:820px}

/* ---------- 404 ---------- */
.kk-404{text-align:center;max-width:640px}
.kk-404 h1{font-size:clamp(1.8rem,4vw,2.6rem);margin:8px 0 0}
.kk-404__lead{margin:16px auto 0;color:var(--ink-2);font-size:1.1rem;max-width:44ch}
.kk-404__cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:28px 0 0}
.kk-404__links{list-style:none;display:flex;gap:8px 22px;justify-content:center;flex-wrap:wrap;margin:26px 0 0;padding:0}
.kk-404__links a{color:var(--green-2);font-family:var(--font-head);font-weight:600;font-size:14.5px;text-decoration:none}
.kk-404__links a:hover{color:var(--amber)}
.kk-404__search{margin:26px auto 0;max-width:380px}
.kk-404__search form{display:flex;gap:8px}
.kk-404__search input[type=search]{flex:1;border:1px solid var(--line);border-radius:var(--radius-sm);padding:11px 13px;font-family:var(--font-body);font-size:15px;background:var(--bg);color:var(--ink)}
.kk-404__search button,.kk-404__search input[type=submit]{background:var(--green);color:#fff;border:0;border-radius:var(--radius-sm);padding:11px 18px;font-family:var(--font-head);font-weight:600;cursor:pointer}

/* ---------- WooCommerce: shop / category archive ---------- */
.woocommerce-breadcrumb{font-size:13.5px;color:var(--ink-3);margin:0 0 18px}
.woocommerce-breadcrumb a{color:var(--ink-2)}
.woocommerce-breadcrumb a:hover{color:var(--green)}
.kk-breadcrumb__sep{margin:0 6px;color:var(--ink-3);opacity:.6}
.kk-breadcrumb [aria-current=page]{color:var(--ink-3)}
.woocommerce-products-header{max-width:660px;margin-bottom:6px}
.woocommerce-products-header__title,.page-title{font-family:var(--font-head);font-weight:700;font-size:clamp(1.7rem,3.2vw,2.4rem);color:var(--ink);letter-spacing:-.01em;margin:0}
.term-description{color:var(--ink-2);font-size:1.08rem;margin:14px 0 4px;max-width:660px}
.term-description p{margin:0 0 10px}
.woocommerce-result-count{color:var(--ink-3);font-size:14px;margin:22px 0 0}
.woocommerce-ordering{margin:14px 0 24px}
.woocommerce-ordering select{border:1px solid var(--line);border-radius:10px;padding:9px 12px;font-family:var(--font-body);font-size:14px;background:var(--bg);color:var(--ink)}
/* grid */
ul.products{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
/* WC's ::before/::after are float-clearfixes (display:table); inside a CSS grid they
   become grid items and eat the top-left cell, shoving the first product to col 2. Kill them. */
ul.products::before,ul.products::after{display:none!important}
@media(max-width:900px){ul.products{grid-template-columns:repeat(2,1fr);gap:16px}}
@media(max-width:560px){ul.products{grid-template-columns:1fr}}
li.product.card{margin:0!important;padding:0;width:auto!important;float:none!important;position:relative}
li.product.card>a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1;color:inherit;text-decoration:none}
li.product.card .woocommerce-loop-product__title{font-family:var(--font-head);font-weight:600;font-size:1.05rem;line-height:1.28;color:var(--ink);margin:0 0 6px;padding:0}
li.product.card .price{color:var(--green)}
li.product.card .price del{color:var(--ink-3);font-weight:500;font-size:.86em;margin-right:6px}
li.product.card .price ins{text-decoration:none}
li.product.card .onsale{display:inline-block;background:var(--amber);color:#2a1902;font-family:var(--font-head);font-weight:600;font-size:12px;border-radius:999px;padding:3px 10px;position:absolute;top:10px;left:10px;z-index:2}
li.product.card{position:relative}
/* Loop "Lisa päringusse" button = WC add-to-cart link (RFQ relabels + intercepts it
   into the quote list). Style it as an amber pill across the card bottom. */
li.product.card a.button,
li.product.card .woo_rfq_after_shop_loop_button .rfq_button{
	display:block;box-sizing:border-box;width:calc(100% - 32px);align-self:stretch;margin:12px 16px 16px;
	font-family:var(--font-head);font-weight:600;font-size:14px;text-align:center;line-height:1.3;
	color:var(--cta-ink)!important;background:var(--cta)!important;border:0!important;border-radius:999px;
	padding:11px 16px;cursor:pointer;box-shadow:none!important;text-decoration:none}
li.product.card a.button:hover,
li.product.card .woo_rfq_after_shop_loop_button .rfq_button:hover{background:var(--cta-hover)!important}
li.product.card a.button.loading,li.product.card a.button.added{opacity:.65}
li.product.card a.added_to_cart,
li.product.card .rfqcart-link,li.product.card .rfqcart-link-shop,li.product.card .link_to_rfq_cart{
	display:block;margin:-4px 16px 14px;font-size:13px;color:var(--green);text-decoration:underline;text-align:center}
/* Shop cards keep the vertical layout on mobile (homepage cards go horizontal - different structure). */
@media(max-width:720px){
	li.product.card{flex-direction:column!important}
	li.product.card>a.woocommerce-LoopProduct-link{flex-direction:column}
	li.product.card .ph{width:auto!important;min-width:0!important;flex:none;aspect-ratio:1/1!important}
	li.product.card .in{padding:14px 16px 4px}
}
/* phones: compact LIST rows - small photo left, title+price right, whole row taps to
   the product (button hidden; a chevron signals it). Quick overview, more per screen. */
@media(max-width:560px){
	ul.products{gap:12px}
	li.product.card{display:block!important;padding:0!important}
	li.product.card>a.woocommerce-LoopProduct-link{display:grid!important;grid-template-columns:84px 1fr!important;align-items:center;gap:0 14px;padding:12px;position:relative;flex-direction:row!important}
	li.product.card .ph{width:84px!important;min-width:0!important;height:84px;flex:none;aspect-ratio:1/1!important;border-radius:12px;overflow:hidden}
	li.product.card .in{padding:0 24px 0 0!important;gap:3px}
	li.product.card .woocommerce-loop-product__title{font-size:1rem;line-height:1.25;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
	li.product.card .price{font-size:1.1rem}
	li.product.card a.button,li.product.card a.kk-view-product{display:none!important}
	li.product.card>a.woocommerce-LoopProduct-link::after{content:"\203A";position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--ink-3);font-size:26px;line-height:1}
}

/* ---------- Shop: category nav pills (above the grid) ---------- */
.kk-catnav{margin:20px 0 4px}
.kk-catnav__list{list-style:none;display:flex;flex-wrap:wrap;gap:9px;margin:0;padding:0}
.kk-catpill{display:inline-block;font-family:var(--font-head);font-weight:600;font-size:13.5px;line-height:1;
	color:var(--green-2);background:var(--bg);border:1px solid var(--line);border-radius:999px;
	padding:9px 15px;text-decoration:none;transition:background .12s,border-color .12s,color .12s}
.kk-catpill:hover{border-color:var(--green-2);color:var(--green)}
.kk-catpill.is-current{background:var(--green);border-color:var(--green);color:#fff}
/* mobile: one swipeable row of pills so they don't fill the top of the screen */
@media(max-width:720px){
	.kk-catnav{margin:16px -20px 4px}
	.kk-catnav__list{flex-wrap:nowrap;overflow-x:auto;gap:8px;padding:2px 20px 8px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
	.kk-catnav__list::-webkit-scrollbar{display:none}
	.kk-catpill{flex:0 0 auto;white-space:nowrap}
}

/* ---------- Shop: social photo carousel ---------- */
.kk-carousel{list-style:none;display:flex;gap:18px;margin:8px 0 0;padding:4px 0 14px;
	overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.kk-carousel__item{flex:0 0 auto;width:min(340px,78vw);scroll-snap-align:start}
.kk-carousel__item img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow)}

/* ---------- Shop: customer testimonials ---------- */
.kk-reviews{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:920px;margin:0 auto}
.kk-review{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);
	padding:26px 26px 22px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px}
.kk-stars{color:var(--amber);font-size:17px;letter-spacing:2px;line-height:1}
.kk-review__text{margin:0;font-size:1.06rem;line-height:1.55;color:var(--ink);font-style:italic}
.kk-review__cite{font-family:var(--font-head);font-weight:600;color:var(--green-2);font-size:.95rem;margin-top:2px}
.kk-reviews__more{text-align:center;margin:26px 0 0}
.kk-reviews__more a{font-family:var(--font-head);font-weight:600;color:var(--green-2);text-decoration:none}
.kk-reviews__more a:hover{color:var(--amber)}
@media(max-width:680px){.kk-reviews{grid-template-columns:1fr}}

/* ---------- WooCommerce: single product ---------- */
.single-product div.product{display:grid;grid-template-columns:1fr 1fr;gap:16px 48px;align-items:start}
.single-product div.product>.woocommerce-product-gallery{margin:0;width:auto!important;float:none!important}
.single-product .woocommerce-product-gallery img{border-radius:var(--radius)}
.single-product div.product .summary{margin:0;width:auto!important;float:none!important;display:flex;flex-direction:column;gap:14px}
.single-product .summary .product_title{font-family:var(--font-head);font-weight:700;font-size:clamp(1.6rem,3vw,2.2rem);color:var(--ink);margin:0;letter-spacing:-.01em}
.single-product .summary .price{font-family:var(--font-head);font-weight:700;font-size:1.7rem;color:var(--green);margin:0}
.single-product .summary .price del{color:var(--ink-3);font-weight:500;font-size:.7em;margin-right:8px}
.single-product .summary .price ins{text-decoration:none}
.single-product .woocommerce-product-details__short-description{color:var(--ink-2);font-size:1.05rem}
.single-product .woocommerce-product-details__short-description h2{font-family:var(--font-head);font-size:1.15rem;color:var(--ink);margin:0 0 8px}
.single-product .woocommerce-product-details__short-description p{margin:0 0 10px}
/* buy area */
.single-product form.cart:not(.variations_form){display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:4px 0 0}
.single-product form.variations_form.cart{display:block;flex:none;width:100%;margin:4px 0 0}
.single-product .single_variation_wrap{width:100%}
.single-product .single_variation_wrap .woocommerce-variation{margin:6px 0}
.single-product .quantity input.qty{width:74px;border:1px solid var(--line);border-radius:10px;padding:12px 8px;font-family:var(--font-body);font-size:16px;text-align:center;background:var(--bg)}
.single-product .single_add_to_cart_button{font-family:var(--font-head);font-weight:600;font-size:16px;color:var(--cta-ink)!important;background:var(--cta)!important;border:0!important;border-radius:999px;padding:14px 30px;cursor:pointer;box-shadow:none!important}
.single-product .single_add_to_cart_button:hover{background:var(--cta-hover)!important}
.single-product .rfqcart-link-single,.single-product .rfqcart-link{display:inline-block;margin-top:4px;color:var(--green);font-size:14px;text-decoration:underline}
.single-product .stock{font-size:14px;color:var(--success);margin:0}
.single-product .product_meta{font-size:14px;color:var(--ink-3);margin-top:8px;border-top:1px solid var(--line);padding-top:14px}
.single-product .product_meta>span{display:block;margin:2px 0}
.single-product .product_meta a{color:var(--green)}
/* variable product (kuutellimus) configurator - clean div layout (see woocommerce/single-product/add-to-cart/variable.php override) */
.single-product .variations{display:block;width:100%;margin:0 0 12px}
.single-product .variation-row{margin:0 0 14px}
.single-product .variation-label{display:block;font-family:var(--font-head);font-weight:600;font-size:14px;color:var(--ink-2);margin:0 0 6px}
.single-product .variation-field select{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-family:var(--font-body);font-size:16px;background:var(--bg);color:var(--ink)}
.single-product .reset_variations{display:inline-block;margin-top:6px;font-size:13px;color:var(--ink-2)}
.single-product .woocommerce-variation-price{margin:6px 0}
.single-product .woocommerce-variation-price .price{font-size:1.6rem;color:var(--green);font-family:var(--font-head);font-weight:700}
.single-product .woocommerce-variation-add-to-cart{margin-top:12px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.single-product .woocommerce-variation-add-to-cart.woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button{opacity:.45;pointer-events:none}
/* tabs + specs table */
.woocommerce-tabs{grid-column:1/-1;margin-top:26px}
.woocommerce-tabs ul.tabs{display:flex;gap:4px;list-style:none;padding:0;margin:0 0 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.woocommerce-tabs ul.tabs li{margin:0}
.woocommerce-tabs ul.tabs li a{display:block;padding:10px 16px;font-family:var(--font-head);font-weight:600;font-size:15px;color:var(--ink-2);text-decoration:none}
.woocommerce-tabs ul.tabs li.active a{color:var(--green);border-bottom:2px solid var(--amber)}
.woocommerce-tabs .panel>h2{font-family:var(--font-head);font-size:1.3rem;color:var(--ink);margin:0 0 12px}
.woocommerce-product-attributes{width:100%;max-width:560px;border-collapse:collapse;margin:0}
.woocommerce-product-attributes th,.woocommerce-product-attributes td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);font-size:15px}
.woocommerce-product-attributes th{width:44%;color:var(--ink-2);font-weight:600}
.woocommerce-product-attributes tr:nth-child(even){background:var(--bg-alt)}
@media(max-width:820px){.single-product div.product{grid-template-columns:1fr;gap:22px}}

/* ---------- WooCommerce: quote flow (cart / checkout / thank-you) ---------- */
/* CSS-only. Every RFQ field name, nonce, button class and hidden input is
   preserved - this themes presentation over WooCommerce's own stylesheet only. */

/* buttons on the quote pages → theme buttons */
.woocommerce-cart .button,.woocommerce-checkout .button{font-family:var(--font-head);font-weight:600;border-radius:999px;border:0;cursor:pointer;padding:12px 22px;font-size:15px;line-height:1.2;text-decoration:none;display:inline-block}
.woocommerce-cart .checkout-button,.woocommerce-checkout #place_order{background:var(--cta)!important;color:var(--cta-ink)!important}
.woocommerce-cart .checkout-button:hover,.woocommerce-checkout #place_order:hover{background:var(--cta-hover)!important}
.woocommerce-cart button[name="update_cart"],.woocommerce-cart .coupon .button{background:var(--bg)!important;color:var(--green-2)!important;border:1px solid var(--line)!important}
.woocommerce-cart button[name="update_cart"]:hover,.woocommerce-cart .coupon .button:hover{border-color:var(--green-2)!important}
.woocommerce-cart button[name="update_cart"][disabled]{opacity:.5}

/* form fields */
.woocommerce-cart .input-text,.woocommerce-checkout .input-text,.woocommerce-checkout form .form-row input.input-text,.woocommerce-checkout form .form-row textarea{width:100%;border:1px solid var(--line);border-radius:var(--radius-sm);padding:11px 13px;font-family:var(--font-body);font-size:15px;background:var(--bg);color:var(--ink)}
.woocommerce-cart .input-text:focus,.woocommerce-checkout .input-text:focus,.woocommerce-checkout textarea:focus{outline:none;border-color:var(--green-2);box-shadow:0 0 0 3px var(--green-tint)}
.woocommerce-checkout form .form-row label{font-family:var(--font-body);font-weight:600;font-size:13.5px;color:var(--ink-2);margin-bottom:5px;display:block}
.woocommerce .required{color:var(--amber);border:0}

/* === CART === */
.woocommerce-cart-form .shop_table{width:100%;border-collapse:collapse;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.woocommerce-cart-form .shop_table thead th{font-family:var(--font-head);font-weight:600;font-size:12.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-3);text-align:left;padding:14px 16px;border-bottom:1px solid var(--line);background:var(--bg-alt)}
.woocommerce-cart-form .cart_item td{padding:16px;border-bottom:1px solid var(--line);vertical-align:middle}
.woocommerce-cart-form .product-thumbnail img{width:64px;height:64px;border-radius:var(--radius-sm);object-fit:cover}
.woocommerce-cart-form .product-name a{color:var(--ink);font-family:var(--font-head);font-weight:600;text-decoration:none}
.woocommerce-cart-form .product-name a:hover{color:var(--green)}
.woocommerce-cart-form .product-price,.woocommerce-cart-form .product-subtotal{color:var(--ink);font-weight:600}
.woocommerce-cart-form .product-remove a{color:var(--ink-3);font-size:20px;text-decoration:none;line-height:1;font-weight:700}
.woocommerce-cart-form .product-remove a:hover{color:#c0392b}
.woocommerce-cart-form .quantity input.qty{width:66px;text-align:center;border:1px solid var(--line);border-radius:var(--radius-sm);padding:8px}
.woocommerce-cart .actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;margin-top:18px}
.woocommerce-cart .coupon{display:flex;gap:8px}
.woocommerce-cart .coupon input.input-text{width:auto;min-width:150px}
.cart-collaterals{margin-top:40px;display:flex;justify-content:flex-end}
.cart-collaterals .cross-sells{display:none}
.cart_totals{width:100%;max-width:420px;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow)}
.cart_totals h2{font-family:var(--font-head);font-size:1.3rem;color:var(--ink);margin:0 0 16px}
.cart_totals table{width:100%;border-collapse:collapse}
.cart_totals th,.cart_totals td{padding:10px 0;border-bottom:1px solid var(--line);text-align:left;font-size:15px;color:var(--ink-2)}
.cart_totals .order-total th,.cart_totals .order-total td{font-family:var(--font-head);font-weight:700;color:var(--green);font-size:1.05rem;border-bottom:0}
.wc-proceed-to-checkout{margin-top:18px}
.wc-proceed-to-checkout .checkout-button{display:block;text-align:center;width:100%}

/* === CHECKOUT === */
/* form-level blocks: #customer_details, #order_review_heading, #order_review (summary),
   #payment (Sula/Arve + place order - moved out of #order_review in inc/checkout.php). */
@media(min-width:900px){
	form.woocommerce-checkout{display:grid;grid-template-columns:minmax(0,1fr) 380px;grid-template-rows:auto auto auto auto auto 1fr;grid-template-areas:"details heading" "details review" "details coupon" "details payheading" "details payment" "details ok-spacer";gap:0 44px;align-items:start}
	form.woocommerce-checkout>#customer_details{grid-area:details}
	form.woocommerce-checkout>#order_review_heading{grid-area:heading}
	form.woocommerce-checkout>#order_review{grid-area:review}
	form.woocommerce-checkout>.kk-coupon{grid-area:coupon}
	form.woocommerce-checkout>#kk-payment-heading{grid-area:payheading;margin-top:18px}
	form.woocommerce-checkout>#payment{grid-area:payment}
	form.woocommerce-checkout>.woocommerce-NoticeGroup,form.woocommerce-checkout>.woocommerce-info,form.woocommerce-checkout>.woocommerce-error{grid-column:1/-1}
}
/* mobile (Sten): summary (Sinu tellimus) + coupon on top, details in the middle, payment at the very end */
@media(max-width:899px){
	form.woocommerce-checkout{display:flex;flex-direction:column}
	form.woocommerce-checkout>.woocommerce-NoticeGroup{order:0}
	form.woocommerce-checkout>#order_review_heading{order:1}
	form.woocommerce-checkout>#order_review{order:2}
	form.woocommerce-checkout>.kk-coupon{order:3}
	form.woocommerce-checkout>#customer_details{order:4;margin-top:28px}
	form.woocommerce-checkout>#kk-payment-heading{order:5;margin-top:28px}
	form.woocommerce-checkout>#payment{order:6}
}
#customer_details.col2-set .col-1,#customer_details.col2-set .col-2{width:100%;float:none;max-width:none;padding:0}
/* Riik / piirkond — the store sells to Estonia only, so this collapses to a locked
   single-option (EE) select. Hide the whole row; the select still posts EE. !important
   beats WooCommerce's address-i18n JS, which sets an inline display:block on this field. */
.woocommerce-checkout #billing_country_field,.woocommerce-checkout #shipping_country_field{display:none!important}
.woocommerce-checkout #customer_details h3,.woocommerce-checkout #order_review_heading{font-family:var(--font-head);font-weight:600;font-size:1.25rem;color:var(--green);margin:0 0 16px}
.woocommerce-checkout .kk-pay-heading{font-family:var(--font-head);font-weight:600;font-size:1.25rem;color:var(--green);margin-bottom:14px}
.woocommerce-additional-fields{margin-top:18px}
.woocommerce-billing-fields__field-wrapper::after{content:"";display:table;clear:both}
/* Order summary — light + airy. The review table also carries WooCommerce's .shop_table
   class, whose woocommerce.css borders (0,2,2) outrank a plain class selector, so we scope
   with .woocommerce-checkout .shop_table.<table> (0,3,x) to strip the grid and keep just
   ONE hairline before the totals. */
#order_review{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;box-shadow:var(--shadow)}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table{width:100%;border:0;margin:0;border-collapse:collapse}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table th,.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td{padding:6px 0;border:0;text-align:right;font-size:14.5px;color:var(--ink-2);vertical-align:top}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table th{font-weight:400;text-align:left}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table thead th{padding-bottom:8px;font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-3)}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table thead th.product-total{text-align:right}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .cart_item .product-name{color:var(--ink);font-weight:500;text-align:left}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot td,.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot th{border:0;font-weight:400}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .cart-subtotal th,.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .cart-subtotal td{border-top:1px solid var(--line);padding-top:12px}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .cart-subtotal th{color:var(--ink);font-weight:600}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .order-total th,.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .order-total td{font-family:var(--font-head);font-weight:700;color:var(--green);font-size:1.1rem;border:0;padding-top:8px}
/* "Sisaldab käibemaksu 24%" — contained-VAT line (all prices are VAT-inclusive; never added on top). Quiet meta under the total. */
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .kk-vat-line th,.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .kk-vat-line td{color:var(--ink-3);font-weight:400;font-size:12.5px;border:0}
/* "Tarneaeg kuni 14 päeva" note under the total */
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .kk-delivery-note td{padding:6px 0 0;text-align:left;font-size:12.5px;color:var(--ink-3);border:0}
/* island surcharge notice: red row directly under the delivery-time note (informational only) */
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .kk-island-warn-row td{padding:10px 0 0;text-align:left;font-size:14.5px;font-weight:700;line-height:1.4;color:#c0392b;border:0}
.kk-vat-line th,.kk-vat-line td{color:var(--ink-3);font-weight:400}
.cart_totals .kk-vat-line th,.cart_totals .kk-vat-line td{border-bottom:1px solid var(--line)}
/* consent + marketing opt-in before the place-order button */
.woocommerce-terms-and-conditions-wrapper,.kk-optin{margin:6px 0 14px}
.kk-optin label,.woocommerce-terms-and-conditions-wrapper label.checkbox{display:flex;gap:9px;align-items:flex-start;font-size:14px;color:var(--ink-2);line-height:1.5;cursor:pointer;font-weight:400}
.kk-optin input[type=checkbox],.woocommerce-terms-and-conditions-wrapper input[type=checkbox]{margin-top:3px;flex:0 0 auto;width:16px;height:16px;accent-color:var(--green)}
.woocommerce-terms-and-conditions-wrapper a,.kk-optin a{color:var(--green);text-decoration:underline;text-underline-offset:2px}
.woocommerce-terms-and-conditions-wrapper .required{color:var(--amber-2);border:0}
/* checkout: top "Otsi veel tooteid" button + coupon field under the order summary */
.kk-checkout-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 18px}
.kk-checkout-top__note{color:var(--ink-2);font-size:14px}
/* coupon attached flush to the bottom of the order summary (reads as one card). When the
   coupon block is hidden (a coupon is applied → JS sets [hidden]), the summary reverts to a
   normal rounded, shadowed card. */
#order_review:has(+ .kk-coupon:not([hidden])){border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none}
.kk-coupon{margin:0;padding:14px 22px 16px;border:1px solid var(--line);border-top:0;border-radius:0 0 var(--radius) var(--radius);background:var(--bg);box-shadow:var(--shadow)}
.kk-coupon>label{display:block;font-family:var(--font-head);font-weight:600;font-size:13px;margin-bottom:8px;color:var(--ink-2)}
.kk-coupon__row{display:flex;gap:8px}
.kk-coupon__input{flex:1;min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:10px;font-size:15px;background:var(--bg)}
.kk-coupon__input:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px var(--green-tint)}
.kk-coupon__apply{flex:0 0 auto;white-space:nowrap}
.kk-coupon__msg{margin-top:10px}
.kk-coupon__msg:empty{display:none}
.kk-coupon__msg .woocommerce-message,.kk-coupon__msg .woocommerce-error,.kk-coupon__msg .woocommerce-info{margin:0;font-size:13px;padding:8px 12px}
/* coupon remove link in the summary: plain "Kustuta" (brackets stripped in PHP), red, no underline */
.woocommerce-remove-coupon{color:#c0392b!important;text-decoration:none!important;font-weight:500;white-space:nowrap}
.woocommerce-remove-coupon:hover{color:#a93226!important;text-decoration:none!important}
/* checkout top "Otsi veel tooteid" ghost button — never underlined, always button-styled */
.kk-checkout-top .btn,.woocommerce .btn{text-decoration:none!important}
/* payment = its own card; each method is a stacked accordion row that expands its
   own required info when picked. Future gateways (pangalink / Apple Pay) drop in as
   more rows and their bank list / button renders nested in the same .payment_box. */
.woocommerce-checkout-payment{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.woocommerce-checkout-payment ul.payment_methods{list-style:none;margin:0;padding:0;border:0;background:transparent;display:flex;flex-direction:column;gap:10px}
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method{display:flex;flex-wrap:wrap;align-items:center;border:1.5px solid var(--line);border-radius:12px;background:var(--bg);transition:border-color .12s,background .12s}
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method:hover{border-color:var(--green-2)}
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method:has(input:checked){border-color:var(--green);background:var(--green-tint)}
/* radio hidden — the green border + tint IS the selected indicator (Sten) */
.woocommerce-checkout-payment ul.payment_methods input[type=radio]{position:absolute;width:1px;height:1px;opacity:0;margin:0;pointer-events:none}
.woocommerce-checkout-payment ul.payment_methods label{flex:1;min-width:0;margin:0;display:flex;align-items:center;gap:9px;padding:15px 18px;cursor:pointer;font-family:var(--font-head);font-weight:600;font-size:15px;line-height:1.3;color:var(--ink)}
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method:has(input:checked) label{color:var(--green)}
.woocommerce-checkout-payment ul.payment_methods label img{max-height:24px;width:auto;margin:0}
/* nested info appears STATICALLY — height/margin/padding forced so WooCommerce's jQuery
   slideDown has nothing to animate (Sten: no slide-out). */
.woocommerce-checkout-payment ul.payment_methods .payment_box{flex:0 0 100%;margin:0!important;padding:0 18px 15px!important;height:auto!important;overflow:visible!important;background:transparent!important;font-size:13.5px;line-height:1.5;color:var(--ink-2)}
.woocommerce-checkout-payment ul.payment_methods .payment_box::before{display:none!important}
.woocommerce-checkout-payment ul.payment_methods .payment_box p{margin:0}
.woocommerce-checkout-payment ul.payment_methods li.wc_payment_method:not(:has(input:checked)) .payment_box{display:none!important}
#place_order{width:100%;margin-top:16px;font-size:16px;padding:14px}

/* WooCommerce notices (added-to-cart / info / errors) - themed to the site */
.woocommerce-notices-wrapper:empty{display:none;margin:0}
/* the "Kupong on eemaldatud" notice is emptied in PHP → hide the empty box it leaves */
.woocommerce-message:empty,.woocommerce-info:empty{display:none!important}
.woocommerce-message,.woocommerce-info,ul.woocommerce-error,.woocommerce-error{list-style:none;border:1px solid var(--line);border-left-width:4px;border-radius:12px;padding:14px 16px;margin:0 0 16px;font-size:14.5px;line-height:1.45;color:var(--ink);background:var(--bg);display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap}
.woocommerce-message{border-left-color:var(--green)}
.woocommerce-info{border-left-color:var(--amber)}
.woocommerce-error,ul.woocommerce-error{border-left-color:#c0392b;background:#fdf3f2;border-color:#f1d5d1;color:#7a241c}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{display:none}
.woocommerce-message .button,.woocommerce-info .button{margin-left:auto;background:var(--bg)!important;color:var(--green-2)!important;border:1px solid var(--line)!important;border-radius:999px!important;padding:8px 16px!important;font-size:13px!important;font-family:var(--font-head);font-weight:600;box-shadow:none!important}
.woocommerce-message .button:hover,.woocommerce-info .button:hover{border-color:var(--green-2)!important}

/* coupon toggle + form on the checkout */
.woocommerce-form-coupon-toggle{margin:0 0 16px}
form.checkout_coupon.woocommerce-form-coupon{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:0 0 22px;background:var(--bg)}
form.checkout_coupon>p:first-child:not(.form-row){flex-basis:100%;margin:0;color:var(--ink-2);font-size:14px}
form.checkout_coupon .form-row{margin:0;padding:0;width:auto;float:none}
form.checkout_coupon .form-row-first{flex:1;min-width:150px}
form.checkout_coupon .input-text{width:100%}
form.checkout_coupon button[name="apply_coupon"]{white-space:nowrap;background:var(--bg)!important;color:var(--green-2)!important;border:1px solid var(--line)!important}
form.checkout_coupon button[name="apply_coupon"]:hover{border-color:var(--green-2)!important}
/* editable order-summary qty stepper (one-page checkout) */
.woocommerce-checkout-review-order-table .product-quantity{display:inline}
.kk-qty{display:inline-flex;align-items:center;gap:2px;vertical-align:middle;margin-left:2px}
.kk-qty.is-busy{opacity:.5;pointer-events:none}
.kk-qty__btn,.kk-qty__rm{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;
	border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:7px;cursor:pointer;
	font-size:15px;line-height:1;padding:0;font-family:var(--font-body)}
.kk-qty__btn:hover{border-color:var(--green-2);color:var(--green)}
.kk-qty__n{min-width:20px;text-align:center;font-family:var(--font-head);font-weight:600;font-size:14px}
.kk-qty__rm{margin-left:6px;color:var(--ink-3);border-color:transparent}
.kk-qty__rm:hover{color:#c0392b;border-color:var(--line)}

/* ---------- Contact page ---------- */
.kk-contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:8px 0 0}
.kk-contact-card{display:flex;flex-direction:column;gap:6px;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:26px 24px;text-decoration:none;color:inherit;transition:border-color .15s,transform .15s,box-shadow .15s}
a.kk-contact-card:hover{border-color:var(--green-2);transform:translateY(-2px);box-shadow:var(--shadow)}
.kk-contact-ic{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;background:var(--green-tint);color:var(--green);margin-bottom:6px}
.kk-contact-lbl{font-family:var(--font-body);font-weight:700;font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.kk-contact-val{font-family:var(--font-head);font-weight:600;font-size:1.15rem;color:var(--ink);line-height:1.35}
.kk-maplink{margin-top:4px;font-family:var(--font-head);font-weight:600;font-size:14px;color:var(--green-2);text-decoration:none}
.kk-maplink:hover{color:var(--amber)}
.kk-contact-meta{margin:20px 0 0;color:var(--ink-3);font-size:14.5px}
.kk-contact-kkk{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:40px 0 0;padding:26px 28px;background:var(--bg-alt);border-radius:var(--radius)}
.kk-contact-kkk h2{font-family:var(--font-head);font-size:1.3rem;color:var(--green);margin:0 0 6px}
.kk-contact-kkk p{margin:0;color:var(--ink-2);max-width:52ch}
@media(max-width:720px){
	.kk-contact-grid{grid-template-columns:1fr;gap:12px}
	.kk-contact-card{flex-direction:row;align-items:center;flex-wrap:wrap;padding:18px 18px}
	.kk-contact-ic{margin-bottom:0;margin-right:6px}
	.kk-contact-lbl{flex:1 0 auto;order:2}
	.kk-contact-val{order:3;flex-basis:100%}
	.kk-maplink{order:4;flex-basis:100%}
	.kk-contact-kkk{flex-direction:column;align-items:flex-start}
	.kk-contact-kkk .btn{width:100%;justify-content:center}
}

/* === THANK YOU / order received === */
.woocommerce-order{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:32px;box-shadow:var(--shadow);max-width:860px;margin:0 auto}
.woocommerce-order p.woocommerce-thankyou-order-received{font-family:var(--font-head);font-weight:700;font-size:1.4rem;color:var(--green);margin:0 0 20px}
ul.woocommerce-order-overview{list-style:none;display:flex;flex-wrap:wrap;gap:18px 26px;margin:0 0 24px;padding:20px;background:var(--bg-alt);border-radius:var(--radius-sm)}
.woocommerce-order ul.woocommerce-order-overview li{border:0;padding:0;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-3);font-family:var(--font-body)}
ul.woocommerce-order-overview li strong{display:block;font-size:1.05rem;text-transform:none;letter-spacing:0;color:var(--ink);font-family:var(--font-head);margin-top:4px}
.woocommerce-order .woocommerce-order-details__title,.woocommerce-order .woocommerce-column__title,.woocommerce-order h2{font-family:var(--font-head);color:var(--ink);font-size:1.2rem;margin:24px 0 12px}
/* order details formatted like the checkout summary: light, no per-row lines, one hairline before totals.
   The 3-class selector (.woocommerce-order .shop_table.order_details) outranks woocommerce.css borders. */
.woocommerce-order .shop_table.order_details{width:100%;border-collapse:collapse;border:0;margin:0}
.woocommerce-order .shop_table.order_details th,.woocommerce-order .shop_table.order_details td{padding:7px 0;border:0;text-align:right;font-size:14.5px;color:var(--ink-2);vertical-align:top}
.woocommerce-order .shop_table.order_details th{font-weight:400;text-align:left}
.woocommerce-order .shop_table.order_details thead th{padding-bottom:8px;font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-3)}
/* right-align the "Vahesumma" column header so it sits over the values column */
.woocommerce-order .shop_table.order_details thead th.product-total{text-align:right}
.woocommerce-order .shop_table.order_details tbody .product-name,.woocommerce-order .shop_table.order_details tbody td.product-name{text-align:left;color:var(--ink);font-weight:500}
.woocommerce-order .shop_table.order_details tfoot tr:first-child th,.woocommerce-order .shop_table.order_details tfoot tr:first-child td{border-top:1px solid var(--line);padding-top:12px}
/* The order-details rows carry no class in this WC version, and kk_order_transport_row forces
   the total (Kokku) to be the LAST tfoot row → style it as its own section: line above, bold. */
.woocommerce-order .shop_table.order_details tfoot tr:last-child th,.woocommerce-order .shop_table.order_details tfoot tr:last-child td{border-top:1px solid var(--line);padding-top:12px;font-family:var(--font-head);color:var(--green);font-weight:700;font-size:1.15rem}
/* subtle delivery note under the order table (matches the checkout summary's .kk-delivery-note) */
.woocommerce-order .kk-order-note{margin:14px 0 0;font-size:12.5px;color:var(--ink-3)}
/* order-notes textarea: matches the other customer-info fields, taller, not resizable (Sten).
   The id selector forces the field styling (WC's default was overriding the shared textarea rule). */
.woocommerce-checkout #order_comments{width:100%;min-height:120px;resize:none;border:1px solid var(--line);border-radius:var(--radius-sm);padding:11px 13px;font-family:var(--font-body);font-size:15px;background:var(--bg);color:var(--ink)}
.woocommerce-checkout #order_comments:focus{outline:none;border-color:var(--green-2);box-shadow:0 0 0 3px var(--green-tint)}

@media(max-width:680px){
	.cart-collaterals{justify-content:stretch}
	.cart_totals{max-width:none}
	.woocommerce-cart .actions{flex-direction:column;align-items:stretch}
	.woocommerce-cart .coupon{justify-content:space-between}
}

/* Positioning: service value props beside the buy box + a service line above the grid.
   The edge is the service bundle (free nationwide delivery, any quantity, placement,
   kiln <18%), so it sits with the price rather than letting the sticker stand alone. */
.kk-svc{list-style:none;margin:20px 0;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:var(--bg-alt);display:grid;gap:10px}
.kk-svc li{position:relative;padding-left:28px;font-size:15px;color:var(--ink);line-height:1.4;font-weight:500}
.kk-svc li::before{content:"✓";position:absolute;left:0;top:-1px;color:var(--amber);font-weight:800}
.kk-shopline{margin:2px 0 24px;color:var(--ink-2);font-size:16px;max-width:64ch;line-height:1.55}
@media(max-width:560px){.kk-svc{margin:16px 0;padding:14px 16px}.kk-svc li{font-size:14px}}

/* Landing-page shared furniture: featured banner + service strip + price table + how-to-order */
.kk-landing-banner{background:var(--bg)}
.kk-landing-banner .wrap{padding-top:0}
.kk-landing-banner img{width:100%;height:auto;max-height:420px;object-fit:cover;border-radius:16px;display:block}
.kk-svc--row{border:0;background:transparent;padding:0;margin:0 0 4px;grid-template-columns:repeat(2,1fr);gap:12px 24px}
@media(min-width:900px){.kk-svc--row{grid-template-columns:repeat(4,1fr)}}
.kk-furn__h2{font-size:clamp(1.4rem,2.4vw,1.9rem);margin:34px 0 16px}
.kk-pricetable{width:100%;border-collapse:collapse;background:var(--bg);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.kk-pricetable th,.kk-pricetable td{text-align:left;padding:13px 16px;border-bottom:1px solid var(--line)}
.kk-pricetable thead th{background:var(--green);color:#fff;font-size:13.5px;text-transform:uppercase;letter-spacing:.04em}
.kk-pricetable tbody tr:last-child td{border-bottom:0}
.kk-pricetable td a{color:var(--green);font-weight:600}
.kk-pricetable td:last-child{white-space:nowrap;font-weight:700;color:var(--ink)}
.kk-furn__note{margin:12px 0 0;color:var(--ink-2);font-size:14.5px;max-width:70ch}
.kk-howto{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:16px}
.kk-howto li{position:relative;padding-left:46px;min-height:34px;display:flex;align-items:center;color:var(--ink);line-height:1.45}
.kk-howto .n{position:absolute;left:0;top:0;width:32px;height:32px;border-radius:999px;background:var(--cta);color:var(--cta-ink);display:flex;align-items:center;justify-content:center;font-weight:800}
@media(min-width:760px){.kk-howto{grid-template-columns:repeat(3,1fr);gap:24px;align-items:start}.kk-howto li{align-items:flex-start}}

/* ---------- Cookie-consent bar (inc/consent.php) ---------- */
.kk-cookie{position:fixed;left:0;right:0;bottom:0;z-index:400;background:var(--bg);border-top:1px solid var(--line);box-shadow:0 -8px 30px -14px rgba(20,30,18,.28);padding:14px 20px calc(14px + env(safe-area-inset-bottom))}
.kk-cookie__in{max-width:1180px;margin:0 auto;display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.kk-cookie__txt{flex:1 1 420px;min-width:0}
.kk-cookie__h{display:block;font-family:var(--font-head);font-weight:700;color:var(--green);margin-bottom:2px}
.kk-cookie__txt p{margin:0;font-size:14px;color:var(--ink-2);line-height:1.5}
.kk-cookie__txt a{color:var(--green);text-decoration:underline;text-underline-offset:2px}
.kk-cookie__txt a:hover{color:var(--amber)}
.kk-cookie__btns{display:flex;gap:10px;flex:0 0 auto}
.kk-cookie__btns .btn{white-space:nowrap}
.foot-legal .kk-cookie-open{cursor:pointer}
@media(max-width:600px){.kk-cookie__in{gap:12px}.kk-cookie__btns{width:100%}.kk-cookie__btns .btn{flex:1;text-align:center}}
/* Product-page note (ported from WPCode 6642: free-transport / kuutellimus clarifier). */
.kk-product-note{font-size:15px;color:var(--ink-2);margin:10px 0 0}
/* New Google Places address search (PlaceAutocompleteElement) above the street field.
   The element auto-adapts to the OS/browser colour scheme (rendered BLACK in dark
   mode) - force light + map its Material tokens onto the theme's input styling. */
.kk-place-autocomplete-wrap{margin-bottom:16px}
.woocommerce-checkout form .form-row label.kk-place-autocomplete-label{display:block;margin-bottom:6px;font-weight:700;font-size:14px;color:var(--ink)}
.kk-place-autocomplete,gmp-place-autocomplete{
	display:block;width:100%;
	color-scheme:light;
	--gmp-mat-color-surface:var(--bg);
	--gmp-mat-color-on-surface:var(--ink);
	--gmp-mat-color-on-surface-variant:var(--ink-2);
	--gmp-mat-color-outline:var(--line);
	--gmp-mat-color-outline-decorative:var(--line);
	--gmp-mat-color-primary:var(--green);
	--gmp-mat-font-family:var(--font-body);
	border:1px solid var(--line);
	border-radius:var(--radius-sm);
}
