/* product-configurator.css - jen to, co produktova stranka nema (bot16, 2026-10-02). Pilulky (.pd-pill), prepinac (.pd-switch)
   a kartu voleb (.pd-options-card) bere z product.html, takze configurator vypada jako zbytek stranky (WORKFLOW 34, HUD styl:
   hranate rohy s useknutym rohem, obrys v --accent, systemove pismo). Soubor se nacita az na produktech, ktere server oznaci
   jako konfigurovatelne (js/product-configurator.js). Vse pod prefixem .pdc-. */

/* configurator nahrazuje posuvnik provedeni a karty voleb montaze/boxu (jinak by byly dve sady voleb) */
body.pdc-configurable #pdAssemblyVariants,
body.pdc-configurable #pdVariantOptionsWrap,
body.pdc-configurable #pdSupplierMontazWrap { display: none !important; }

/* v pohledu Configurator se nehodi miniatury fotek a zakreslovani zmen do fotek (patri k otocce/galerii) */
body.pdc-active #pdThumbs,
body.pdc-active #pdMarkupActions,
body.pdc-active .pd-gallery-media-wrap,
body.pdc-active #pdGalleryTabs { display: none !important; }

/* sirsi sloupec s modelem, dokud je configurator otevreny (puvodni pravidlo ma :has() s ID, proto !important) */
@media (min-width: 601px) {
  body.pdc-active .pd-layout { grid-template-columns: minmax(360px, 1.25fr) minmax(320px, 1fr) !important; max-width: 1280px; }
}

.pdc-tabs { display: flex; gap: 6px; margin: 0 0 8px; flex-wrap: wrap; }
.pdc-tabs .pd-gallery-tab { min-height: 36px; }

.pdc-cta {
  display: block; width: 100%; margin: 8px 0 0; padding: 13px 18px;
  border: 1px solid var(--accent); border-radius: 0; background: transparent; color: var(--accent); cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  font-family: "SF Mono", "Cascadia Code", "Consolas", monospace; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .18s ease, color .18s ease;
}
.pdc-cta:hover { background: var(--accent); color: #06140c; }
.pdc-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdc-cta[hidden], .pdc-mini[hidden], .pdc-notice[hidden], .pdc-stage[hidden], .pdc-stage-msg[hidden] { display: none; }
.pdc-mini { margin: 6px 0 0; font-size: 12.5px; color: var(--text-muted); }

/* model */
.pdc-stage { position: relative; width: 100%; height: min(60vh, 560px); min-height: 320px; overflow: hidden; border: 1px solid var(--border-card); background: var(--panel-bg); }
.pdc-stage-canvas { position: absolute; inset: 0; }
.pdc-stage-msg {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; max-width: calc(100% - 24px); padding: 8px 14px; pointer-events: none; text-align: center;
  font: 600 13px/1.3 "SF Mono", "Cascadia Code", "Consolas", monospace; color: #e9f3ee; background: rgba(13, 22, 36, .84); border: 1px solid rgba(47, 224, 122, .42);
}
.pdc-lock {
  display: none; position: absolute; inset: 0; z-index: 4; width: 100%; margin: 0; padding: 0; border: 0; cursor: pointer;
  align-items: center; justify-content: center; color: #fff; font: 700 14px/1.3 var(--font-main, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  background: rgba(8, 10, 14, .38);
}
@media (pointer: coarse) {
  .pdc-stage:not(.pdc-unlocked) .pdc-lock { display: flex; }
  .pdc-stage:not(.pdc-unlocked) .pdc-stage-canvas { pointer-events: none; }
  .pdc-slot .pd-pill span { padding: 12px 16px; }
}

/* panel voleb */
.pdc-panel { margin: 0 0 14px; }
.pdc-panel-bar { margin: 0; }
.pdc-ov { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.pdc-group-win { border-top: 0; padding: 0; }
.pdc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 4px; }
.pdc-link { padding: 6px 2px; border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 12.5px; text-decoration: underline; }
.pdc-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdc-notice { margin: 4px 0 6px; padding: 8px 10px; border: 1px solid var(--border-soft); background: var(--panel-bg); font-size: 13px; line-height: 1.4; }
.pdc-group { padding: 4px 0 2px; border-top: 1px solid var(--border-soft); }
.pdc-head + .pdc-notice + .pdc-group, .pdc-head + .pdc-group { border-top: 0; }
.pdc-group-h { min-height: 32px; padding: 6px 0; cursor: pointer; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em;
  font-family: "SF Mono", "Cascadia Code", "Consolas", monospace; font-size: 11px; }
.pdc-slot { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; padding: 0; border: 0; min-width: 0; }
.pdc-slot > legend { padding: 0; margin-bottom: 4px; }
.pdc-delta { margin-left: 6px; opacity: .85; font-size: 11px; }
.pdc-sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(128, 128, 128, .6); }
.pd-pill.pdc-na span { opacity: .45; }
.pd-opt.pdc-na { opacity: .55; }
.pdc-select, .pdc-num {
  min-height: 44px; padding: 6px 10px; border: 1px solid var(--border-soft); border-radius: 0; background: var(--panel-bg); color: var(--text); font: inherit; font-size: 14px;
}
.pdc-select:focus-visible, .pdc-num:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdc-sliderrow { display: flex; align-items: center; gap: 10px; }
.pdc-range { flex: 1 1 auto; min-width: 0; min-height: 28px; accent-color: var(--accent); }
.pdc-num { flex: 0 0 auto; width: 6.5em; }
.pdc-unit { flex: 0 0 auto; color: var(--text-muted); font-size: 13px; }
.pdc-err { color: var(--error); font-size: 12.5px; line-height: 1.35; }
.pdc-err:empty { display: none; }
.pdc-range-note { color: var(--text-muted); font-size: 12px; line-height: 1.3; }
.pdc-range-note:empty { display: none; }
.pdc-flash { outline: 2px solid var(--accent); outline-offset: 3px; }

.pdc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 10px 0 2px; }
.pdc-price-lbl { color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; font-family: "SF Mono", "Cascadia Code", "Consolas", monospace; font-size: 10.5px; }
.pdc-price-main { font-size: 20px; font-weight: 700; }
.pdc-price-vat { color: var(--text-muted); font-size: 13px; }
.pdc-price[aria-busy="true"] .pdc-price-main { opacity: .6; }
.pdc-code { color: var(--text-muted); font-family: "SF Mono", "Cascadia Code", "Consolas", monospace; font-size: 11px; }
.pdc-summary { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 6px 0 0; font-size: 13px; }
.pdc-summary dt { color: var(--text-muted); }
.pdc-summary dd { margin: 0; }

@media (max-width: 600px) {
  .pdc-stage { height: min(50vh, 420px); }
  /* cena a "Do kosiku" zustanou na dosah, dokud se voli */
  body.pdc-active #pdBuyRow { position: sticky; bottom: 0; z-index: 30; padding: 8px 0; border-top: 1px solid var(--border-soft); background: var(--panel-bg); }
}
@media (prefers-reduced-motion: reduce) { .pdc-cta { transition: none; } }

/* oznameni od serveru (automaticky odebrane prislusenstvi, nabidky odebrani, navrh rozsireni stolu) */
.pdc-notices[hidden], .pdc-suggest[hidden] { display: none; }
.pdc-notices { margin: 8px 0 4px; padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--panel-bg); font-size: 13px; line-height: 1.4; color: var(--text-soft); }
.pdc-notices p { margin: 0 0 6px; } .pdc-notices p:last-child { margin-bottom: 0; }
.pdc-suggest { margin: 2px 0 6px 48px; font-size: 13px; }
.pdc-offer-btn, .pdc-suggest-btn { font-size: 13px; text-align: left; }

.pdc-slot[hidden], .pdc-group[hidden] { display: none; }

/* HUSTSI RADKY ve volbach v oknech (okenni rezim: mini-shop i stranka Generator stolu; Robert 2026-10-04: "trochu vic nahustit radkove na sebe, at se tam dostane vic voleb").
   Mys (pointer: fine) = kompaktni; dotyk drzi vetsi cile (min. 40 px). */
.pdc-group-win .pdc-slot { margin: 3px 0; gap: 2px; }
.pdc-group-win .pdc-slot .pd-opt-sub-label { font-size: .62rem; line-height: 1.15; white-space: normal; }
.pdc-group-win .pdc-sliderrow { gap: 8px; }
.pdc-group-win .pdc-range { min-height: 20px; }
.pdc-group-win .pdc-num, .pdc-group-win .pdc-select { min-height: 40px; padding: 4px 8px; font-size: 13px; }
.pdc-group-win .pdc-range-note, .pdc-group-win .pdc-err { font-size: 11px; line-height: 1.2; }
.pdc-group-win .pd-opt { gap: 8px; align-items: center; }
.pdc-group-win .pd-opt-text { font-size: .85rem; line-height: 1.2; }
.pdc-group-win .pd-switch { margin-top: 0; }
.pdc-group-win .pdc-delta { font-size: 10.5px; }
@media (pointer: fine) {
  .pdc-group-win .pdc-num, .pdc-group-win .pdc-select { min-height: 28px; padding: 1px 8px; width: 5.6em; }
  .pdc-group-win .pdc-select { width: auto; }
  .pdc-group-win .pdc-range { min-height: 18px; }
  .pdc-group-win .pdc-slot { margin: 2px 0; }
}
