/* ==========================================================================
   Vino Technologies - Website Customizer (/customize/). Loads after base.css + shop.css.
   Mobile-first: base rules = small phone; min-width queries add columns and the desktop sidebar.
   1 Choose · 2 Custom banner · 3 Customize · 4 Sticky bar + bottom sheet · 5 Steps · 6 Wider screens
   ========================================================================== */
body.dock-on{padding-bottom:calc(92px + var(--safe-b))}
.cz-fieldset{border:0;min-width:0}
.tcard,.feat{position:relative}
.tcard:has(input:focus-visible),.feat:has(input:focus-visible){outline:2px solid var(--red);outline-offset:3px}

/* 5 - Progress steps */
.cz-steps{display:flex;max-width:480px;margin:18px auto 0;scroll-margin-top:84px}
.cz-steps li{flex:1;position:relative;min-width:0}
.cz-steps li:not(:last-child)::after{content:'';position:absolute;top:16px;left:calc(50% + 20px);right:calc(-50% + 20px);height:2px;border-radius:2px;background:var(--btn-border)}
.cz-steps li.done:not(:last-child)::after{background:var(--red)}
.cz-step{width:100%;min-height:56px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0;font-size:12px;font-weight:600;color:var(--text-dim);cursor:default}
.cz-step .n{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--surface);border:2px solid var(--btn-border);font:700 13px var(--font-h)}
.cz-step .ck{display:none;width:15px;height:15px;stroke-width:3}
.cz-step[aria-current="step"]{color:var(--text)}
.cz-step[aria-current="step"] .n{background:var(--red);border-color:var(--red);color:#fff;box-shadow:0 0 0 4px var(--red-glow)}
.done .cz-step{color:var(--text);cursor:pointer}
.done .cz-step .n{background:var(--red-tint);border-color:var(--red);color:var(--red-text)}
.done .cz-step .num{display:none}.done .cz-step .ck{display:block}

/* 1 - Choose: search, chips (one swipeable row on phones), one-column cards */
.cz-tools{display:grid;gap:12px;margin-bottom:18px}
.cz-search{position:relative}
.cz-search .i{position:absolute;left:16px;top:50%;width:19px;height:19px;margin-top:-9.5px;color:var(--text-dim);pointer-events:none}
.cz-search input{min-height:52px;padding:0 18px 0 46px;border-radius:999px;background:var(--surface);box-shadow:var(--shadow)}
.cz-chips{display:flex;gap:8px;overflow-x:auto;margin:0 -16px;padding:2px 16px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.cz-chips::-webkit-scrollbar{display:none}
.chip{flex:none;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--btn-border);background:var(--surface);font-size:14px;font-weight:600;white-space:nowrap}
.chip[aria-pressed="true"]{background:var(--red);border-color:var(--red);color:#fff}
.cz-count{font-size:13px;color:var(--text-dim);text-align:center}
.cz-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.cz-grid>li{min-width:0}
.cz-grid>li[hidden]{display:none}
/* card = icon | name, badge, description, price | select indicator. Compact row on phones. */
.tcard{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;height:100%;padding:12px 12px 12px 14px;cursor:pointer;background:var(--surface);border:1.5px solid var(--card-border);border-radius:16px;box-shadow:var(--shadow);transition:border-color .2s,background-color .2s}
.tc-ico{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--red-tint);color:var(--red-text);border:1px solid rgba(225,29,46,.14);flex:none}
.tc-ico .i{width:24px;height:24px}
.tc-ico.big{width:52px;height:52px}
:root[data-theme="dark"] .tc-ico,:root[data-theme="dark"] .cat-label{border-color:rgba(255,138,147,.32)}
.tc-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.tc-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.tc-name{font:700 16px/1.25 var(--font-h)}
.cat-label{font-size:11px;font-weight:600;color:var(--red-text);background:var(--red-tint);border:1px solid rgba(225,29,46,.22);padding:1px 8px;border-radius:999px;white-space:nowrap}
.tc-desc{color:var(--text-dim);font-size:13.5px;line-height:1.35}
.tc-price{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin-top:2px}
.tc-price small{font-size:12px;color:var(--text-dim)}
.tc-price b{font:700 15.5px var(--font-h);font-variant-numeric:tabular-nums}
.tc-sel{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:2px solid var(--btn-border);background:var(--control);color:#fff}
.tc-sel .i{width:16px;height:16px;stroke-width:3;opacity:0}
.tc-sel .t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.tcard.is-sel{border-color:var(--red);background:var(--red-tint);box-shadow:0 0 0 3px var(--red-glow),var(--shadow)}
.tcard.is-sel .tc-sel{background:var(--red);border-color:var(--red)}
.tcard.is-sel .tc-sel .i{opacity:1}
.cz-none{max-width:460px;margin:8px auto 0;padding:24px 18px;text-align:center;border:1px dashed var(--btn-border);border-radius:18px;display:grid;gap:8px;justify-items:center;color:var(--text-dim)}
.cz-none b{color:var(--text)}

/* 2 - 100% custom banner */
.cz-custom{position:relative;overflow:hidden;isolation:isolate;margin-top:22px;display:grid;gap:16px;justify-items:start;padding:22px 18px;border-radius:22px;color:#fff;background:linear-gradient(125deg,#1a0b0d 0%,#3a0e14 38%,#a3121f 100%)}
.cz-custom-ico{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22)}
.cz-custom-ico .i{width:24px;height:24px}
.cz-custom-kicker{font-size:14px;font-weight:600;color:rgba(255,255,255,.85);margin-bottom:4px}
.cz-custom h3{font-size:clamp(21px,5.6vw,28px);margin-bottom:8px}
.cz-custom-txt p:last-child{color:rgba(255,255,255,.86);font-size:15px;max-width:38em}
.cz-custom .btn{width:100%}

/* 3 - Customize: one column of tappable feature rows */
.cz-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start}
.cz-col{min-width:0}
.cz-panel.pn-desktop{display:none}
.cz-typehead{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 14px;padding:14px;background:var(--surface);border:1px solid var(--card-border);border-radius:18px;box-shadow:var(--shadow)}
.cz-typehead-txt{min-width:0}
.cz-typehead h2{font-size:clamp(19px,5.4vw,25px)}
.cz-typehead p{color:var(--text-dim);font-size:14px;margin-top:2px}
.cz-typehead p.base{color:var(--text);font-weight:600;margin-top:4px;font-variant-numeric:tabular-nums}
.cz-typehead-txt #ctDesc:empty{display:none}
.cz-typehead .btn-line{grid-column:1/-1;min-height:44px;padding:8px 18px;font-size:14px}
.cz-sub{font-size:18px;margin:24px 0 4px}
.cz-subp{color:var(--text-dim);font-size:14px;margin-bottom:12px}
.cz-subrow{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;flex-wrap:wrap}
.cz-help{margin-top:22px;font-size:14.5px;color:var(--text-dim)}
.cz-help a{color:var(--red-text);font-weight:600;text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:44px}
.cz-inc{margin-top:18px}
.cz-inc summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:0 16px;background:var(--surface);border:1px dashed var(--btn-border);border-radius:14px;cursor:pointer;font:700 15.5px var(--font-h)}
.cz-inc summary::-webkit-details-marker{display:none}
.cz-inc summary .i{width:18px;height:18px;transition:transform .2s}
.cz-inc[open] summary .i{transform:rotate(180deg)}
.cz-inc-n{font:600 13px var(--font-b);color:var(--text-dim)}
.cz-inc .cz-subp{margin:12px 0}
.feat-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
/* feature row: icon | name + description + price | switch. The whole row is the tap target. */
.feat{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:72px;padding:12px 14px;background:var(--surface);border:1.5px solid var(--card-border);border-radius:16px;box-shadow:var(--shadow);transition:border-color .2s,background-color .2s}
label.feat{cursor:pointer;-webkit-tap-highlight-color:transparent}
.ft-ico{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--control);color:var(--text-dim);transition:background-color .2s,color .2s}
.ft-ico .i{width:20px;height:20px}
.ft-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.ft-name{font:700 15px/1.3 var(--font-h)}
.ft-desc{font-size:13px;line-height:1.4;color:var(--text-dim)}
.ft-foot{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.ft-price{font:700 14px var(--font-h);font-variant-numeric:tabular-nums;white-space:nowrap}
.sw{position:relative;width:48px;height:28px;flex:none;border-radius:999px;background:var(--sw-off);transition:background-color .2s}
.sw i{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s cubic-bezier(.3,.7,.4,1)}
.feat.on{border-color:var(--red);background:var(--red-tint);box-shadow:0 0 0 3px var(--red-glow),var(--shadow)}
.feat.on .ft-ico{background:var(--red);color:#fff}
.feat.on .ft-price{color:var(--red-text)}
.feat.on .sw{background:var(--red)}
.feat.on .sw i{transform:translateX(20px)}
.feat.inc{background:transparent;box-shadow:none;border-style:dashed;min-height:0}
.feat.inc .ft-foot{align-items:flex-end}
.inc-tag{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:var(--red-text);padding:3px 10px 3px 8px;border-radius:999px;background:var(--red-tint);white-space:nowrap}
.inc-tag .i{width:13px;height:13px;stroke-width:3}

/* 4 - One sticky bar (phones/tablets) + bottom sheet */
.cz-dock{position:fixed;left:10px;right:10px;bottom:calc(10px + var(--safe-b));z-index:97;margin-inline:auto;max-width:720px}
.dock-in{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 8px 8px 14px;background:var(--raised);border:1px solid var(--card-border);border-radius:22px;box-shadow:0 10px 28px rgba(20,10,10,.2)}
:root[data-theme="dark"] .dock-in{box-shadow:0 10px 28px rgba(0,0,0,.5);border-color:var(--glass-border)}
.dock-info{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:var(--tap);justify-content:center;text-align:left;line-height:1.25}
.dock-l{font-size:12px;color:var(--text-dim);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dock-p{display:flex;align-items:center;gap:4px;font:700 18px var(--font-h);font-variant-numeric:tabular-nums;white-space:nowrap}
.dock-chev{width:16px;height:16px;color:var(--text-dim)}
.dock-in .btn{flex:none;min-height:48px;padding:0 20px}
.dock-in .btn:disabled{background:var(--sw-off);color:#fff;transform:none;box-shadow:none}
.dock-info:disabled{cursor:default}.dock-info:disabled .dock-chev{display:none}
.sheet{position:fixed;inset:auto 0 0 0;margin:0 auto;width:100%;max-width:560px;max-height:min(86dvh,640px);padding:0;border:0;border-radius:22px 22px 0 0;background:var(--surface);color:var(--text);overflow:hidden;box-shadow:0 -12px 40px rgba(0,0,0,.28)}
.sheet[open]{display:flex;flex-direction:column;animation:sheetUp .22s ease}
.sheet::backdrop{background:rgba(10,6,7,.55)}
@keyframes sheetUp{from{transform:translateY(40px);opacity:0}}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 10px 6px 18px}
.sheet-head h2{font-size:18px}
.sheet-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 18px 8px}
.sheet-foot{padding:10px 18px calc(14px + var(--safe-b));border-top:1px solid var(--card-border)}
.sheet-foot .btn{width:100%}
.sheet .pn-name{font-size:19px;margin-bottom:10px}
.sheet .pn-total{padding:12px 0 4px}
html.sheet-open{overflow:hidden}

/* 6 - Wider screens */
@media (min-width:480px){
  .tcard{padding:14px 14px 14px 16px}
  .feat{padding:14px 16px}
}
@media (min-width:600px){
  .cz-chips{flex-wrap:wrap;justify-content:center;overflow:visible;margin:0;padding:0}
  .cz-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .cz-custom{grid-template-columns:auto 1fr auto;align-items:center;justify-items:stretch;gap:20px 26px;padding:clamp(22px,4vw,34px);border-radius:26px}
  .cz-custom .btn{width:auto}
  .cz-typehead{grid-template-columns:auto minmax(0,1fr) auto;padding:16px 18px}
  .cz-typehead .btn-line{grid-column:auto}
  .feat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
@media (min-width:820px){
  /* tablet: cards become vertical tiles */
  .cz-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .tcard{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"ico sel" "main main";align-items:start;align-content:start;gap:10px;padding:16px}
  .tcard .tc-ico{grid-area:ico}.tcard .tc-sel{grid-area:sel;justify-self:end}.tcard .tc-main{grid-area:main;gap:4px}
  .tc-price{flex-direction:column;align-items:flex-start;gap:0;margin-top:6px}
  .tc-price b{font-size:17px}
  .tcard:hover{border-color:rgba(225,29,46,.4)}
}
@media (min-width:960px){
  /* desktop: sidebar price panel replaces the sticky bar on step 2 */
  .cz-layout{grid-template-columns:minmax(0,1fr) 340px;gap:28px}
  .cz-panel.pn-desktop{display:block;position:sticky;top:92px}
  .feat{align-items:start;grid-template-columns:40px minmax(0,1fr)}
  .ft-foot{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;min-height:32px}
  .feat.inc .ft-foot{justify-content:flex-start}
}
@media (min-width:1100px){.cz-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (hover:hover){
  .tcard{transition:transform .2s ease,border-color .2s,background-color .2s,box-shadow .2s}.tcard:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
  label.feat:not(.on):hover{border-color:rgba(225,29,46,.4)}
  .chip[aria-pressed="false"]:hover{border-color:var(--red)}
}
.only-wide{display:none}
@media (min-width:960px){.only-wide{display:inline-flex}}
