/* k2print.hu — „Készítsd el egyedi tárgyadat” (egyedi-szoveg oldal). A base.css / public.css osztályaira épül: .field, .choices/.choice, .btn, .card, .label. */
.cx-root { padding: 22px 0 56px; }
.cx { --cx-head: 64px; display: grid; gap: 22px; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); align-items: start; }
.cx-controls { display: grid; gap: 16px; min-width: 0; grid-column: 2; grid-row: 1; }
.cx-side { grid-column: 1; grid-row: 1; display: grid; gap: 16px; position: sticky; top: calc(var(--cx-head) + 12px); min-width: 0; }
.cx-offline { grid-column: 1 / -1; }

/* ---------- 3D előnézet ---------- */
.cx-view { padding: 0; overflow: hidden; display: grid; }
.cx-stage { position: relative; height: clamp(300px, 46vh, 460px); background: radial-gradient(120% 90% at 50% 30%, #fbf9f5 0%, #efe9df 70%, #e6dfd3 100%); }
.cx-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline-offset: -3px; }
.cx-canvas:active { cursor: grabbing; }
.cx-stage-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--graphite); font-size: 14px; }
.cx-viewbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 14px; border-top: 1px solid var(--rule); }
.cx-dims { margin: 0; font-size: 13px; color: var(--graphite); font-variant-numeric: tabular-nums; }
/* a nézet-gombok egy sorban */
.cx-viewbar .row { flex-wrap: nowrap; }
.cx-vbtn { padding-inline: 10px; flex: 0 0 auto; }
.cx-vbtn[aria-pressed="true"] { border-color: var(--navy); color: var(--navy); background: var(--navy-soft); }
.cx-warns { display: grid; gap: 8px; padding: 0 14px; }
.cx-warns:not(:empty) { padding: 0 14px 14px; }
.cx-warn { margin: 0; }

/* ---------- ár és kosár ---------- */
.cx-buy { display: grid; gap: 12px; }
.cx-price { min-height: 54px; display: grid; gap: 4px; align-content: center; }
.cx-price-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; }
.cx-buyrow { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.cx-qty { width: 110px; }
.cx-add { flex: 1 1 180px; }
.cx-buymsg:empty { display: none; }
.cx-buymsg .notice, .cx-price .notice { margin: 0; }
.cx-note { margin: 0; }

/* ---------- vezérlők ---------- */
.cx-sec { display: grid; gap: 16px; }
.cx-sec > .label { display: flex; gap: 8px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--rule-soft); }
.cx-num { font-family: var(--display); font-size: 20px; letter-spacing: .04em; color: var(--navy); font-weight: 400; }
.cx-types { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.choices.cx-tight { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.choice { min-height: 44px; }
.cx-fonts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cx-fonttile .t { font-size: 17px; line-height: 1.25; font-weight: inherit; }
.cx-fonttile .d { font-size: 13px; }
.choices.colors { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.choice.color { grid-template-columns: 1fr; }

.cx-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 190px); gap: 10px 14px; align-items: end; }
.cx-linerow { display: flex; gap: 8px; }
.cx-linerow input { flex: 1; min-width: 0; font-size: 17px; }
.cx-x { min-width: 44px; padding: 0 12px; font-size: 20px; letter-spacing: 0; }
.cx-addline { justify-self: start; }
.cx-syms { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-sym { width: 44px; height: 44px; display: inline-grid; place-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); cursor: pointer; padding: 0; transition: border-color .15s, background .15s, color .15s; }
.cx-sym:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.cx-sym:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.cx-slider { gap: 4px; }
.cx-slider > label { display: flex; justify-content: space-between; gap: 10px; }
.cx-val { color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: .04em; white-space: nowrap; }
.cx-range { width: 100%; min-height: 40px; margin: 0; accent-color: var(--navy); background: transparent; padding: 0; cursor: pointer; touch-action: pan-y; }
.cx-check { min-height: 40px; align-items: center; }
.cx-check input { width: 22px; height: 22px; margin: 0; }
.stock { font-size: 12px; }

/* ---------- keskeny kijelző: az előnézet felül, tapadva marad szerkesztés közben ---------- */
@media (max-width: 940px) {
  .cx { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cx-side { display: contents; }
  .cx-controls { grid-column: auto; grid-row: auto; }
  .cx-view { order: 0; position: sticky; top: var(--cx-head); z-index: 6; box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .35); }
  .cx-controls { order: 1; }
  .cx-buy { order: 2; }
  .cx-stage { height: clamp(190px, 28vh, 260px); }
  .cx-viewbar { padding: 8px 12px; }
  .cx-warns:not(:empty) { padding: 0 12px 10px; max-height: 20vh; overflow: auto; }
}
@media (max-width: 520px) {
  .cx-line { grid-template-columns: minmax(0, 1fr); }
  .cx-root { padding-top: 14px; }
  .choices.cx-tight, .cx-fonts, .cx-types, .choices.colors { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .cx-sym:active { transform: scale(.94); }
  .cx-stage-msg { animation: cx-fade .25s ease both; }
  @keyframes cx-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* soronkénti méret és sorköz */
.cx-gap { margin: -4px 0 6px 14px; padding-left: 12px; border-left: 2px dotted var(--rule); }
.cx-gap > label { font-size: 12px; color: var(--graphite); }
.cx-shapes .choice.disabled { opacity: .45; cursor: not-allowed; }
.cx-holepos { flex-wrap: wrap; }
.cx-matnote { margin: 0 0 6px; }

/* tömörebb beállítók: kisebb függőleges és vízszintes távolságok, egy sorba férő szimbólumok, a sorköz egy sorban a csúszkájával */
.cx-sec { gap: 10px; }
.cx-sec > .label { padding-bottom: 6px; }
.cx-line { gap: 4px 14px; }
.cx-range { min-height: 28px; }
.cx-slider { gap: 0; }
.cx-linerow input { min-height: 40px; }
.cx-x { min-height: 40px; min-width: 40px; }
.cx-gap { display: grid; grid-template-columns: minmax(150px, auto) minmax(0, 1fr); align-items: center; gap: 0 12px; margin: -2px 0 2px 10px; padding-left: 10px; }
.cx-gap > label { white-space: nowrap; }
.cx-addline { min-height: 34px; padding: 4px 12px; font-size: 12px; }
.cx-syms { gap: 6px; }
.cx-sym { width: 36px; height: 36px; }
.cx-sec .choice { min-height: 38px; }
.cx-sec .field { gap: 4px; }
@media (max-width: 520px) { .cx-gap { grid-template-columns: minmax(0, 1fr); } }

/* admin eszköz: modell-letöltés a rendelő kártyán */
.cx-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--rule); }
.cx-admin[hidden], .cx-admin .btn[hidden] { display: none; }
.cx-admin > .label { margin: 0 4px 0 0; }

/* felhasználóbarát kiegészítők: súgó-sorok, ötlet-gombok, összecsukható haladó beállítások, nézet-tipp, tapadó rendelősáv mobilon */
.cx-lead { margin: -2px 0 0; color: var(--graphite); font-size: 14px; }
.cx-ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cx-chip { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.cx-chip:hover { border-color: var(--navy); background: #fff; color: var(--navy); }
.cx-chip:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.cx-adv { border-top: 1px solid var(--rule-soft); padding-top: 8px; }
.cx-adv > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; font-weight: 650; letter-spacing: .06em; color: var(--navy); user-select: none; }
.cx-adv > summary::-webkit-details-marker { display: none; }
.cx-adv > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--navy); font-size: 15px; line-height: 1; }
.cx-adv[open] > summary::before { content: "−"; }
.cx-adv-n { color: var(--graphite); font-weight: 500; }
.cx-adv > :not(summary) { margin-top: 10px; }
.cx-adv[open] { display: grid; gap: 0; }
.cx-added { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.cx-stage { position: relative; }
.cx-tip { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 14px; border-radius: 99px; background: rgba(29, 29, 27, .78); color: #fff; font-size: 12px; letter-spacing: .02em; pointer-events: none; transition: opacity .5s; white-space: nowrap; }
.cx-tip.gone { opacity: 0; }
@media (max-width: 940px) {
  .cx-buy { position: sticky; bottom: 0; z-index: 8; padding: 10px 14px calc(10px + var(--sab, 0px)); box-shadow: 0 -10px 24px -14px rgba(0, 0, 0, .35); gap: 6px; }
  .cx-buy > .label, .cx-buy .cx-note { display: none; }
  .cx-buy .cx-price-main .display-sm { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .cx-tip { transition: none; } }
@media (max-width: 940px) {
  .cx-buy .cx-qty > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cx-buy .cx-qty input { width: 76px; min-height: 44px; }
  .cx-buy .cx-buyrow { align-items: center; gap: 10px; }
  .cx-buy .cx-price p.small, .cx-buy .cx-price .small { font-size: 12px; line-height: 1.3; margin: 0; }
  .cx-buy .cx-admin { display: none; }
}
/* lyuk helye: bal / jobb oldal × fent / középen / lent (2 sor × 3 oszlop) */
.choices.cx-tight.cx-holepos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* színválasztó: kis lekerekített négyzetek + a kiválasztott szín neve */
.cx-swhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 8px; }
.cx-selname { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.cx-selname b { font-weight: 650; }
.cx-selname .swatch { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); display: inline-block; }
.cx-swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.sq { position: relative; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: block; }
.sq input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sq .c { display: block; width: 100%; height: 100%; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); transition: transform .12s; }
.sq:hover .c { transform: scale(1.08); }
.sq:has(input:checked) { outline: 2px solid var(--navy); outline-offset: 2px; }
.sq:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 3px; }
@media (max-width: 520px) { .sq { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .sq .c { transition: none; } }

/* ---------- kompakt, ikonos vezérlők ---------- */
.cx-sec { padding: 16px 18px; gap: 10px; }
.ib { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); color: var(--graphite); cursor: pointer; text-align: center; transition: border-color .15s, color .15s, background .15s, box-shadow .15s; }
.ib input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ib .cap { font-size: 12px; font-weight: 600; line-height: 1.1; }
.ib:hover { border-color: var(--navy); color: var(--navy); }
.ib:has(input:checked) { border-color: var(--navy); background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.ib:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.ib.disabled { opacity: .38; cursor: not-allowed; }
.ib.disabled input { cursor: not-allowed; }
.cx-ico { display: inline-flex; line-height: 0; }
.cx-typebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cx-shaperow { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; max-width: 420px; }
.cx-colorcount { display: flex; gap: 8px; }
.cx-colorcount .ib { flex-direction: row; gap: 8px; min-height: 40px; padding: 4px 16px; }
.cx-aligns { display: inline-flex; gap: 4px; margin-left: auto; }
.cx-aligns .ib { min-height: 38px; width: 38px; padding: 4px; border-radius: 8px; }
.cx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cx-tools .cx-syms { flex: 1 1 260px; gap: 4px; }
.cx-tools .cx-sym { width: 32px; height: 32px; }
.cx-tools .cx-addline { min-height: 38px; padding: 4px 14px; }
.cx-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.cx-sub { display: grid; gap: 6px; padding-top: 4px; }
.cx-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.cx-fonttile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 58px; padding: 6px; text-align: center; }
.cx-fonttile .d { font-size: 19px; line-height: 1.15; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-fonttile .fn { font-size: 12px; color: var(--faint); letter-spacing: .04em; }
.cx-holerow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.cx-holemap { position: relative; width: 156px; height: 84px; flex: none; }
.cx-holemap .plate { position: absolute; inset: 0; border: 1.5px solid var(--ink); border-radius: 9px; background: var(--card-2); }
.cx-holemap .plate::after { content: ""; position: absolute; left: 36px; right: 36px; top: 50%; height: 10px; margin-top: -5px; border-radius: 5px; background: var(--rule); }
.hp { position: absolute; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; }
.hp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hp i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--deco); background: var(--cream); transition: background .12s, border-color .12s, box-shadow .12s; }
.hp:hover i { border-color: var(--navy); }
.hp:has(input:checked) i { background: var(--navy); border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 58, 95, .2); }
.hp:has(input:focus-visible) i { outline: 2px solid var(--navy); outline-offset: 3px; }
.hp-bal-fent, .hp-bal-kozep, .hp-bal-lent { left: 3px; }
.hp-jobb-fent, .hp-jobb-kozep, .hp-jobb-lent { right: 3px; }
.hp-bal-fent, .hp-jobb-fent { top: 3px; }
.hp-bal-kozep, .hp-jobb-kozep { top: 50%; margin-top: -15px; }
.hp-bal-lent, .hp-jobb-lent { bottom: 3px; }
@media (max-width: 520px) { .cx-pair { grid-template-columns: minmax(0, 1fr); } .cx-aligns { margin-left: 0; } .cx-sec { padding: 14px; } }

/* beírható mm-mezők (0,1 mm) */
.cx-numfield { gap: 4px; }
.cx-numbox { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); transition: border-color .15s; }
.cx-numbox:focus-within { border-color: var(--navy); background: #fff; }
.cx-numbox .cx-num-in { flex: 1; min-width: 0; width: 100%; height: 100%; min-height: 0; border: 0; background: transparent; box-shadow: none; padding: 0; font-variant-numeric: tabular-nums; font-size: 16px; text-align: right; }
.cx-numbox .cx-num-in:focus { outline: none; }
.cx-numbox:has(.bad) { border-color: var(--alert); background: var(--alert-soft); }
.cx-unit { font-size: 12px; color: var(--faint); letter-spacing: .04em; }
/* egy sor = szöveg | betűméret | sorköz (az előző sortól) | törlés */
.cx-line { display: grid; grid-template-columns: minmax(0, 1fr) 104px 104px 40px; gap: 6px 8px; align-items: end; }
.cx-line > .cx-x { height: 40px; min-height: 40px; }
.cx-line .field { gap: 4px; }
.cx-line .cx-textf input { height: 40px; min-height: 40px; }
@media (max-width: 560px) { .cx-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; } .cx-line .cx-textf { grid-column: 1 / -1; } .cx-line .cx-gapf:empty, .cx-line > span:empty { display: none; } }
/* a „További beállítások” mezői két oszlopban */
.cx-adv[open] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.cx-adv[open] > summary, .cx-adv[open] > .cx-shaperow { grid-column: 1 / -1; }
.cx-adv > :not(summary) { margin-top: 0; }
@media (max-width: 560px) { .cx-adv[open] { grid-template-columns: minmax(0, 1fr); } }
/* a „További beállítások” sorai: a megnevezés és a mm-mező egy sorban; a párosított mezők (alap/betű vastagság, szár/nyak) maradnak egymás alatt */
.cx-adv[open] { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cx-numfield:not(.cx-pair .cx-numfield) { display: grid; grid-template-columns: minmax(0, 1fr) 124px; align-items: center; gap: 2px 14px; }
.cx-numfield:not(.cx-pair .cx-numfield) > label { margin: 0; }
.cx-numfield:not(.cx-pair .cx-numfield) > .hint { grid-column: 1 / -1; margin-top: -2px; }
@media (max-width: 380px) { .cx-numfield:not(.cx-pair .cx-numfield) { grid-template-columns: minmax(0, 1fr) 108px; } }
/* a k2print többi részéhez illő, szögletes gombok: nincs lekerekítés (a színnégyzetek maradnak lekerekítettek) */
.cx .btn, .cx-buy .btn { border-radius: var(--radius); }
.ib, .cx-aligns .ib, .cx-colorcount .ib, .cx-chip, .cx-sym, .cx-numbox, .cx-fonttile { border-radius: var(--radius); }
.cx-adv > summary::before { border-radius: var(--radius); }
.cx-holemap .plate { border-radius: var(--radius); }
.cx-tip { border-radius: var(--radius); }
.ib:hover, .cx-chip:hover { background: #fff; }

/* megjegyzés mező */
.cx-note-in { width: 100%; min-height: 76px; resize: vertical; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); font: inherit; font-size: 15px; line-height: 1.45; color: var(--ink); }
.cx-note-in:focus { outline: none; border-color: var(--navy); background: #fff; }
.cx-notefoot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; }
.cx-count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- telefon: a tapadó rész legyen alacsony, a beállítások az oldal normál görgetésével járjanak ----------
   Korábban az előnézet (kb. 430 px) + az ártábla (128 px) is tapadt, a beállítások egy kis sávban görögtek. Most: a fejléc nem tapad ezen az oldalon,
   az előnézet kicsi (a nézet-gombok és a méret az előnézet sarkában), az ártábla egyetlen sor (ár balra, darabszám + gomb jobbra). */
@media (max-width: 940px) {
  body:has(#cx-root) .site-head { position: static; }
  .cx { --cx-head: 0px; }
  .cx-view { top: 0; position: sticky; display: block; }
  .cx-stage { height: clamp(130px, 22vh, 190px); }
  .cx-tip { bottom: 6px; padding: 3px 10px; font-size: 11px; }
  .cx-viewbar { position: absolute; top: 6px; left: 6px; right: 6px; bottom: auto; padding: 0; border: 0; background: none; pointer-events: none; align-items: flex-start; flex-wrap: nowrap; }
  .cx-viewbar .row { gap: 4px; pointer-events: auto; }
  .cx-vbtn { min-height: 30px; padding: 2px 10px; font-size: 11px; background: rgba(255, 255, 255, .85); }
  .cx-dims { font-size: 11px; text-align: right; background: rgba(255, 255, 255, .7); padding: 2px 6px; border-radius: 6px; max-width: 48%; line-height: 1.25; }
  .cx-warns:not(:empty) { position: relative; padding: 6px 10px; max-height: none; overflow: visible; }
  .cx-warns .notice { padding: 6px 10px; font-size: 12px; line-height: 1.3; }
  /* ártábla: egy sor */
  .cx-buy { padding: 8px 12px calc(8px + var(--sab, 0px)); gap: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
  .cx-buy .cx-price { min-height: 0; }
  .cx-buy .cx-price-main { flex-wrap: nowrap; gap: 4px; }
  .cx-buy .cx-price-main .display-sm { font-size: 24px; line-height: 1.1; }
  .cx-buy .cx-price p.small, .cx-buy .cx-price .small { font-size: 11px; }
  .cx-buy .cx-price p.small:not(.cx-price-main) { display: none; }
  .cx-buy .cx-buyrow { flex-wrap: nowrap; gap: 8px; }
  .cx-buy .cx-qty input { width: 56px; min-height: 40px; }
  .cx-buy .cx-add { flex: 0 0 auto; min-height: 40px; padding: 0 16px; }
  .cx-buy .cx-buymsg { grid-column: 1 / -1; }
}
@media (max-width: 940px) {
  .cx-stage { height: clamp(120px, 17vh, 150px); }
  .cx-buy .cx-price-main .display-sm { white-space: nowrap; font-size: 22px; }
  .cx-buy .cx-price-main .small { white-space: nowrap; font-size: 11px; }
  .cx-warns .notice { padding: 4px 10px; }
}
@media (max-width: 940px) { .cx-buy .cx-price-main .small { display: none; } }

/* =====================================================================================================
   v2 (2026-11-05, audit B7, B9–B11, B21, A13): tapadó rész ≤ ~170 px, érintési célok, 12 px minimum, :has() nélküli tartalék, fókusz.
   ===================================================================================================== */

/* A13: :has() nélküli böngészők — .is-checked osztály (checked.js) + body osztály a :has(#cx-root) helyett */
.sq.is-checked { outline: 2px solid var(--navy); outline-offset: 2px; }
.ib.is-checked { border-color: var(--navy); background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.hp.is-checked i { background: var(--navy); border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 58, 95, .2); }
@supports not selector(:has(*)) { .sq:focus-within, .hp:focus-within i { outline: 2px solid var(--navy); outline-offset: 3px; } }
.hp i { border-color: var(--deco); }
.hp:hover i, .hp.is-checked i { border-color: var(--navy); }
@media (max-width: 940px) { body.cx-page .site-head { position: static; } }

/* B21: számmezők és csúszkák látható fókusza */
.cx-numbox:focus-within { outline: 2px solid var(--navy); outline-offset: 1px; }
.cx-numbox .cx-num-in:focus { outline: none; }
.cx-note-in:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.cx-range:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* B11: semmi 11 px */
.cx-tip { font-size: 12px; }
@media (max-width: 940px) {
  .cx-tip { font-size: 12px; }
  .cx-dims { font-size: 12px; }
  .cx-vbtn { font-size: 12px; }
  .cx-buy .cx-price p.small, .cx-buy .cx-price .small, .cx-buy .cx-price-main .small { font-size: 12px; }
}
.cx-count, .cx-unit, .cx-fonttile .fn, .cx .hint { font-size: 12px; }

/* B7: tapadó rész telefonon ≤ ~170 px — mini előnézet (116 px) + egysoros vásárlósáv (≤56 px) */
@media (max-width: 940px) {
  .cx-stage { height: 116px; }
  .cx-tip { display: none; }
  .cx-buy { padding: 6px 12px calc(6px + var(--sab, 0px)); min-height: 56px; }
  .cx-buy .cx-price-main .display-sm { font-size: 24px; }
  .cx-buy .cx-buyrow { gap: 8px; }
  .cx-buy .cx-add { min-height: 44px; }
  .cx-buy .cx-qty input { min-height: 44px; }
  .cx-warns .notice { font-size: 12px; }
}

/* B9/B10: érintési célok ≥44 px (telefon / érintős) */
@media (pointer: coarse), (max-width: 719px) {
  .cx-vbtn { min-height: 44px; min-width: 44px; padding-inline: 10px; }
  .cx-sym, .cx-tools .cx-sym { width: 44px; height: 44px; }
  .cx-syms, .cx-tools .cx-syms { gap: 4px; }
  .sq, .cx-swatches .sq { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 0; }
  .sq .c { width: 34px; height: 34px; }
  .sq.is-checked { outline: none; }
  .sq:has(input:checked) { outline: none; }
  .sq.is-checked .c { outline: 2px solid var(--navy); outline-offset: 2px; }
  .sq:has(input:checked) .c { outline: 2px solid var(--navy); outline-offset: 2px; }
  .cx-chip { height: 44px; padding: 0 16px; }
  .cx-ideas { gap: 6px 8px; }
  .cx-range { min-height: 44px; }
  .cx-adv > summary { min-height: 44px; }
  .cx-x, .cx-line > .cx-x { min-width: 44px; min-height: 44px; height: 44px; }
  .cx-linerow input, .cx-line .cx-textf input { min-height: 44px; height: 44px; }
  .cx-addline, .cx-tools .cx-addline { min-height: 44px; }
  .cx-colorcount .ib { min-height: 44px; }
  .cx-aligns .ib { min-height: 44px; width: 44px; }
  .cx-sec .choice { min-height: 44px; }
  .cx-check { min-height: 44px; }
  .cx-numbox { height: 44px; }
  .cx-numfield:not(.cx-pair .cx-numfield) { grid-template-columns: minmax(0, 1fr) 124px; }
  .hp { width: 44px; height: 44px; }
  .hp-bal-kozep, .hp-jobb-kozep { margin-top: -22px; }
  .cx-holemap { width: 200px; height: 140px; }
  .cx-holemap .plate::after { left: 52px; right: 52px; }
  .cx-gap > label { white-space: normal; }
}

/* v2 kiegészítés: a figyelmeztetés a tapadó előnézetben egy sor (a teljes szöveg a cím-attribútumban és a színválasztónál is megvan), kisebb előnézet */
@media (max-width: 940px) {
  .cx-stage { height: 108px; }
  .cx-warns:not(:empty) { padding: 0; }
  .cx-warns .notice { padding: 3px 10px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; border-left-width: 3px; }
  .cx-buy { padding-top: 4px; padding-bottom: calc(4px + var(--sab, 0px)); }
}
@media (pointer: coarse), (max-width: 719px) { .cx-numbox { height: 46px; } }

/* ---------- kompakt hero (az ajánlatkérés oldal vékony fejlécének mintájára: kisebb cím, rövid lead, kis térköz; a sötét hero marad) ---------- */
.cx-page .hero-slim .hero-in { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 12px; padding-bottom: 12px; }
.cx-page .hero-slim .hs-title { display: grid; gap: 4px; min-width: 0; }
.cx-page .hero-slim .hs-title .label { display: none; }
.cx-page .hero-slim .hero-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.05; }
.cx-page .hero-slim .hero-lead { flex: 0 1 46ch; max-width: 46ch; font-size: 14px; margin: 0; }
.cx-page .hero-slim::after { display: none; }
.cx-page .hero-page.hero-slim + .wrap { padding-top: 14px; }
@media (max-width: 720px) { .cx-page .hero-slim .hero-in { flex-wrap: wrap; } }

/* Alacsony asztali ablak (pl. 1366×768): a tapadó bal oszlop (előnézet + ár + Kosárba) férjen el a kijelzőn, hogy a Kosárba végig látszódjon */
@media (min-width: 941px) and (max-height: 900px) {
  .cx-side { gap: 10px; top: 76px; }
  .cx-stage { height: clamp(200px, 30vh, 300px); }
  .cx-viewbar { padding: 6px 12px; }
  .cx-warns:not(:empty) { padding: 0 12px 8px; max-height: 15vh; overflow: auto; }
  .cx-buy { gap: 8px; padding: 12px 14px; }
  .cx-buy > .label, .cx-buy .cx-note, .cx-buy .cx-admin { display: none; }
  .cx-price { min-height: 0; }
}

/* ---------- v3 (2026-11-13, AUDIT P13) ---------- */
/* telefon: a méret-szöveg külön sorban az előnézet ALATT (nem ül rá a képre); a nézet-gombok maradnak az előnézet sarkában. A tapadó rész ≤ ~190 px. */
@media (max-width: 940px) {
  .cx-viewbar { display: contents; }
  .cx-viewbar .row { position: absolute; top: 6px; left: 6px; z-index: 1; gap: 4px; pointer-events: auto; }
  .cx-stage { height: 98px; }
  .cx-dims { position: static; max-width: none; text-align: left; background: none; padding: 3px 12px; border-top: 1px solid var(--rule); font-size: 12px; line-height: 1.3; border-radius: 0; }
}
/* a „rendelésre” jelzés feltűnő: címke-pirula a kiválasztott színnél, narancs pont a négyzeten, magyarázat a paletta alatt */
.cx-selname .stock.wait { padding: 1px 9px; border: 1px solid var(--warn); border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.cx-selname .stock.ok { padding: 1px 9px; border: 1px solid var(--ok); border-radius: 999px; background: var(--ok-soft); font-weight: 700; }
.sq .c { position: relative; }
.sq.wait .c::after { content: ""; position: absolute; right: 2px; top: 2px; width: 9px; height: 9px; border-radius: 50%; background: #d98400; box-shadow: 0 0 0 1.5px #fff; }
.cx-legend { margin: 6px 0 0; color: var(--graphite); }
.cx-dot { display: inline-block; width: 9px; height: 9px; margin-right: 2px; border-radius: 50%; background: #d98400; }
