/* Hitra ketna configurator — ported from hitraketna-narocilo-dolzine.html.
   All rules are scoped under .hk-cfg so they never collide with Breakdance/theme CSS.

   ===========================================================================
   BRAND TOKENS — the ONLY block to edit to match the live site.
   DARK THEME, matched to hitraketna.si:
     fonts  = Aleo (headings) + Merriweather Sans (body), served by Breakdance.
     accent = #d9962b (your primary). Neutrals derived for the dark gradient bg.
   Tweak any value below and the whole configurator follows.
   =========================================================================== */
.hk-cfg{
  --font-display:'Aleo', Georgia, serif;
  --font-body:'Merriweather Sans', system-ui, sans-serif;
  --bg:#141414; --card:#232019; --card-2:#2c281f;
  --ink:#F3EEE6; --muted:#ABA399; --amber:#d9962b; --amber-deep:#f0ad44;
  --line:#3a342b; --field:#2a2620; --warn:#E2A368;
  /* steel = measured/technical facts (length, km); gold stays for money/CTA */
  --steel:#9aa7b5; --steel-bg:rgba(154,167,181,.13); --steel-bd:rgba(154,167,181,.32);
}
/* ========================================================================= */

.hk-cfg{font-family:var(--font-body);color:var(--ink);line-height:1.55;-webkit-font-smoothing:antialiased}
.hk-cfg *{box-sizing:border-box}
.hk-cfg h1,.hk-cfg h2,.hk-cfg h3{font-family:var(--font-display);margin:0}
.hk-cfg .hk-wrap{max-width:1080px;margin:0 auto}

.hk-cfg .hk-intro{padding:0 0 22px}
.hk-cfg .hk-leadbanner{background:var(--card-2);border:1px solid var(--line);border-left:3px solid var(--amber);border-radius:9px;padding:11px 15px;margin:0 0 22px;font-size:13px;color:var(--muted);line-height:1.5}
.hk-cfg .hk-leadbanner b{font-family:var(--font-display);color:var(--amber-deep);font-weight:700}
.hk-cfg .hk-toggle{display:inline-flex;background:var(--card-2);border:1px solid var(--line);border-radius:11px;padding:4px;gap:4px;margin:0 0 24px}
.hk-cfg .hk-tab-btn{border:0;background:transparent;color:var(--muted);font-family:var(--font-display);font-weight:700;font-size:13.5px;padding:9px 16px;border-radius:8px;cursor:pointer;transition:background .15s,color .15s}
.hk-cfg .hk-tab-btn:hover{color:var(--ink)}
.hk-cfg .hk-tab-btn.on{background:var(--amber);color:#16120c}
.hk-cfg .hk-tab[hidden]{display:none}
@media (max-width:560px){ .hk-cfg .hk-toggle{display:flex} .hk-cfg .hk-tab-btn{flex:1} }
.hk-cfg .hk-eyebrow{font-family:var(--font-display);font-weight:700;text-transform:uppercase;letter-spacing:.14em;font-size:13px;color:var(--amber);margin-bottom:12px}
.hk-cfg .hk-intro h1{font-size:clamp(28px,4.2vw,42px);font-weight:800;line-height:1.06;letter-spacing:-.01em;margin-bottom:14px}
.hk-cfg .hk-intro p{font-size:16.5px;color:var(--muted);max-width:100%}

.hk-cfg .hk-grid{display:grid;grid-template-columns:1fr 360px;gap:30px;align-items:start;padding-bottom:20px}
.hk-cfg .hk-step{margin-bottom:30px}
.hk-cfg .hk-step-head{display:flex;align-items:center;gap:11px;margin-bottom:14px}
.hk-cfg .hk-step-num{font-family:var(--font-display);font-weight:700;font-size:13px;color:#1a1712;background:var(--amber);width:24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px}
.hk-cfg .hk-step-title{font-family:var(--font-display);font-weight:700;font-size:20px}

.hk-cfg .hk-plans{display:flex;flex-direction:column;gap:12px}
.hk-cfg .hk-plan{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--card);border:1.5px solid var(--line);border-radius:11px;padding:18px 20px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.hk-cfg .hk-plan:hover{border-color:var(--amber)}
.hk-cfg .hk-plan.sel{border-color:var(--amber);box-shadow:0 0 0 3px rgba(217,150,43,.26)}
.hk-cfg .hk-plan .hk-badge{align-self:flex-end;margin-bottom:7px;font-family:var(--font-display);font-size:12px;font-weight:700;letter-spacing:.03em;color:#1a1712;background:var(--amber);padding:3px 11px;border-radius:999px}
.hk-cfg .hk-plan h3{font-family:var(--font-display);font-weight:700;font-size:17px;margin-bottom:3px}
.hk-cfg .hk-plan p{font-size:13.5px;color:var(--muted);max-width:44ch;line-height:1.4}
.hk-cfg .hk-plan-price{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;text-align:right;font-family:var(--font-display);font-weight:700;font-size:19px;color:var(--amber-deep);white-space:nowrap}
.hk-cfg .hk-plan-price span{display:block;font-family:var(--font-body);font-weight:400;font-size:12px;color:var(--muted);margin-top:2px}
.hk-cfg .hk-plan-km{display:inline-block;margin-top:9px;font-size:12px;color:var(--steel);background:var(--steel-bg);border:1px solid var(--steel-bd);border-radius:7px;padding:4px 9px}
.hk-cfg .hk-plan-note{font-size:11.5px;color:var(--muted);margin-top:10px;line-height:1.4}

.hk-cfg .hk-selector{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hk-cfg .hk-fld label{display:block;font-family:var(--font-display);font-weight:600;font-size:12.5px;margin-bottom:6px}
.hk-cfg .hk-fld select{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--field);font-family:inherit;font-size:14.5px;color:var(--ink);cursor:pointer;appearance:none;background-image: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' stroke='%23d9962b' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.hk-cfg .hk-fld select:focus-visible{outline:2px solid var(--amber);outline-offset:1px;border-color:transparent}

/* Resolved chain = a RESULT, not an input: no field background/border. */
.hk-cfg .hk-resolved{display:none;margin-top:18px;padding:0 0 14px;background:none;border:0;border-bottom:1px solid var(--line);cursor:default}
.hk-cfg .hk-resolved.show{display:block}
.hk-cfg .hk-resolved-eyebrow{display:block;font-family:var(--font-display);font-weight:700;text-transform:uppercase;letter-spacing:.16em;font-size:11px;color:var(--amber);margin-bottom:8px}
.hk-cfg .hk-resolved-row{display:flex;align-items:center;gap:10px}
.hk-cfg .hk-resolved-check{flex:0 0 auto;color:var(--amber-deep)}
.hk-cfg .hk-resolved .hk-name{font-family:var(--font-display);font-weight:800;font-size:clamp(19px,2.1vw,24px);line-height:1.15;color:var(--ink)}

.hk-cfg .hk-chain-opts{margin-top:14px;display:none}
.hk-cfg .hk-chain-opts.show{display:block}
.hk-cfg .hk-opt-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.hk-cfg .hk-qty-block label,.hk-cfg .hk-links-block label{display:block;font-family:var(--font-display);font-weight:600;font-size:12.5px;margin-bottom:6px}
.hk-cfg .hk-qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--field)}
.hk-cfg .hk-qty button{border:none;background:transparent;font-size:20px;width:40px;height:44px;cursor:pointer;color:var(--amber-deep);font-family:var(--font-display)}
.hk-cfg .hk-qty button:hover{background:var(--card-2)}
.hk-cfg .hk-qty span{min-width:34px;text-align:center;font-family:var(--font-display);font-weight:700;font-size:16px}
.hk-cfg .hk-rot-hint{margin-top:7px;font-size:12px;color:var(--muted);line-height:1.45}
.hk-cfg .hk-sess-hint{margin-top:9px;font-size:13px;color:var(--amber-deep);background:rgba(226,163,104,.12);border-radius:7px;padding:9px 12px;display:none;line-height:1.4}
.hk-cfg .hk-sess-hint.show{display:block}
/* Chain length is a read-only fact too — plain type, no field chrome. */
.hk-cfg .hk-links-display{padding:0;margin:2px 0 0;border:0;background:none;cursor:default;font-family:var(--font-display);font-weight:800;font-size:21px;line-height:1.25;color:var(--ink)}
.hk-cfg .hk-links-display b{font-family:var(--font-display);font-weight:800;font-size:21px;color:var(--amber-deep)}
.hk-cfg .hk-helper{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.45}
.hk-cfg .hk-cut{margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}
.hk-cfg .hk-cut-toggle{display:flex !important;align-items:center;gap:4px;font-size:13px;cursor:pointer;font-family:var(--font-display);font-weight:600}
.hk-cfg .hk-cut-toggle input{accent-color:var(--amber);width:16px;height:16px;cursor:pointer;flex:0 0 auto}
.hk-cfg .hk-cut-price{color:var(--amber-deep);font-weight:700}
.hk-cfg .hk-cut-fields{display:none;margin-top:10px}
.hk-cfg .hk-cut-fields.show{display:block}
.hk-cfg .hk-cut-fields input{width:160px;max-width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--field);font-family:inherit;font-size:14px;color:var(--ink)}
.hk-cfg .hk-cut-help{display:block;font-size:11.5px;color:var(--muted);margin-top:6px;line-height:1.4}

.hk-cfg .hk-unknown{margin-top:13px;display:none}
.hk-cfg .hk-unknown.show{display:block}
.hk-cfg .hk-unknown p{font-size:13.5px;color:var(--muted);margin-bottom:9px}
.hk-cfg .hk-unknown input{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:var(--field);font-family:inherit;font-size:14px;color:var(--ink)}
.hk-cfg .hk-unknown-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}

.hk-cfg .hk-delivery{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.hk-cfg .hk-dopt{background:var(--card);border:1.5px solid var(--line);border-radius:11px;padding:18px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.hk-cfg .hk-dopt:hover{border-color:var(--amber)}
.hk-cfg .hk-dopt.sel{border-color:var(--amber);box-shadow:0 0 0 3px rgba(217,150,43,.26)}
.hk-cfg .hk-dopt .hk-t{font-family:var(--font-display);font-weight:700;font-size:16px;margin-bottom:3px}
.hk-cfg .hk-dopt .hk-d{font-size:13px;color:var(--muted)}

.hk-cfg .hk-grid > aside{position:sticky;top:20px;align-self:start}
.hk-cfg .hk-sum{background:var(--card);border:1px solid var(--line);border-radius:13px;padding:24px;box-shadow:0 6px 22px rgba(0,0,0,.4)}
.hk-cfg .hk-sum h2{font-family:var(--font-display);font-weight:800;font-size:19px;margin-bottom:16px}
.hk-cfg .hk-sum-row{display:flex;justify-content:space-between;gap:12px;font-size:14px;padding:9px 0;border-bottom:1px dashed var(--line);color:var(--muted)}
.hk-cfg .hk-sum-row .hk-v{color:var(--ink);text-align:right;font-weight:500}
.hk-cfg .hk-sum-line{display:flex;justify-content:space-between;font-size:14px;padding:7px 0;color:var(--muted)}
.hk-cfg .hk-sum-line .hk-v{color:var(--ink)}
.hk-cfg .hk-breakdown{margin-top:14px;padding-top:6px}
.hk-cfg .hk-total{display:flex;justify-content:space-between;align-items:baseline;margin-top:14px;padding-top:14px;border-top:2px solid var(--line)}
.hk-cfg .hk-total .hk-lbl{font-family:var(--font-display);font-weight:700;font-size:15px}
.hk-cfg .hk-total .hk-amt{font-family:var(--font-display);font-weight:800;font-size:26px;color:var(--amber-deep)}
.hk-cfg #hkSLinks{color:var(--steel)}
.hk-cfg .hk-credits{font-size:12.5px;color:var(--muted);margin-top:9px;display:none}
.hk-cfg .hk-credits.show{display:block}
.hk-cfg .hk-cta{margin-top:18px;width:100%;border:none;border-radius:10px;background:var(--amber);color:#1a1712;font-family:var(--font-display);font-weight:700;font-size:16px;padding:15px;cursor:pointer;transition:background .15s;opacity:.5;pointer-events:none}
.hk-cfg .hk-cta.ready{opacity:1;pointer-events:auto}
.hk-cfg .hk-cta.ready:hover{background:var(--amber-deep)}
.hk-cfg .hk-cta.busy{opacity:.7;pointer-events:none}
.hk-cfg .hk-sum-note{font-size:12px;color:var(--muted);text-align:center;margin-top:11px}
.hk-cfg .hk-msg{font-size:13px;text-align:center;margin-top:10px;display:none}
.hk-cfg .hk-msg.show{display:block}
.hk-cfg .hk-msg.err{color:var(--warn)}
.hk-cfg .hk-msg.ok{color:var(--amber-deep)}

/* re-wax landing ([hk_rewax]) */
.hk-cfg .hk-rw-steps{display:flex;flex-direction:column;gap:16px}
.hk-cfg .hk-rw-step{display:flex;gap:12px;align-items:flex-start}
.hk-cfg .hk-rw-n{flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:var(--card-2);border:1.5px solid var(--amber);color:var(--amber-deep);font-family:var(--font-display);font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center;margin-top:1px}
.hk-cfg .hk-rw-step h4{font-family:var(--font-display);font-weight:700;font-size:14px;margin:0 0 3px}
.hk-cfg .hk-rw-step p{font-size:12.5px;color:var(--muted);line-height:1.5;margin:0}
.hk-cfg .hk-rw-elig{margin-top:18px;display:flex;gap:8px;background:rgba(154,167,181,.10);border:1px solid rgba(154,167,181,.28);border-radius:9px;padding:11px 13px;font-size:12px;color:var(--steel);line-height:1.45}
.hk-cfg .hk-rw-elig b{color:var(--ink)}
.hk-cfg .hk-rw-price{font-family:var(--font-display);font-weight:800;font-size:30px;color:var(--amber-deep);margin:6px 0 14px}
.hk-cfg .hk-rw-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.hk-cfg .hk-rw-list li{display:flex;gap:8px;font-size:12.5px;color:var(--muted);line-height:1.4}
.hk-cfg .hk-rw-list li::before{content:"✓";color:var(--amber);font-weight:700;flex:0 0 auto}
.hk-cfg .hk-rw-cta{display:block;margin-top:15px;text-align:center;border-radius:10px;background:var(--amber);color:#16120c;font-family:var(--font-display);font-weight:700;font-size:16px;padding:13px;text-decoration:none;transition:background .15s}
.hk-cfg .hk-rw-cta:hover{background:var(--amber-deep); color: #1a1712;}
.hk-cfg .hk-rw-coupon{font-size:11.5px;color:var(--steel);text-align:center;margin-top:11px;line-height:1.45}

@media (max-width:880px){
  .hk-cfg .hk-grid{grid-template-columns:1fr}
  .hk-cfg .hk-grid > aside{position:static}
  .hk-cfg .hk-sum{order:2}
  .hk-cfg .hk-plan{flex-direction:column;align-items:flex-start;gap:8px}
  .hk-cfg .hk-plan .hk-badge{align-self:flex-start;}
  .hk-cfg .hk-plan-price{align-items:flex-start;text-align:left}
  .hk-cfg .hk-plan-km{margin-top:0;margin-bottom: 12px;}
  .hk-cfg .hk-selector{grid-template-columns:1fr}
  .hk-cfg .hk-unknown-fields{grid-template-columns:1fr}
  .hk-cfg .hk-opt-grid{grid-template-columns:1fr}
  .hk-cfg .hk-delivery{grid-template-columns:1fr}
}

/* --- lead-time timeline ("Pot tvoje nove verige") — reused from the cart.
   Same markup as the cart block; scoped to .hk-cfg so it is styled on the
   Nova veriga page too (the theme style.css only loads on cart/checkout). --- */
.hk-cfg .hk-lt{
  margin:22px 0 0; background:var(--card); border:1px solid var(--line);
  border-radius:12px; padding:16px 18px;
}
.hk-cfg .hk-lt-head{ display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
.hk-cfg .hk-lt-title{ font-family:var(--font-display); font-weight:700; font-size:15px; color:var(--ink); }
.hk-cfg .hk-lt-total{ font-family:var(--font-display); font-weight:700; font-size:12.5px; color:var(--amber-deep); }
.hk-cfg .hk-lt-steps{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
.hk-cfg .hk-lt-step{ display:flex; gap:10px; align-items:flex-start; }
.hk-cfg .hk-lt-num{
  flex:0 0 24px; width:24px; height:24px; border-radius:50%; background:var(--card-2);
  border:1.5px solid var(--amber); color:var(--amber-deep); font-family:var(--font-display);
  font-weight:700; font-size:12px; display:flex; align-items:center; justify-content:center;
}
.hk-cfg .hk-lt-step b{ display:block; font-family:var(--font-display); font-weight:700; font-size:13px; color:var(--ink); }
.hk-cfg .hk-lt-step span{ font-size:11.5px; color:var(--steel); }
@media (max-width:600px){ .hk-cfg .hk-lt-steps{ grid-template-columns:1fr; } }
