/* pa-qa6-vyber.css – prodavameapple.cz · karta iPhonu: výběr varianty Stav × Paměť × Barva (2026-12-04)
   Načítat ZA pa-skin-v5.css, pa-qa-v1.css, pa-qa3.css. Patří k pa-qa6-vyber.js (ten blok .pa6-vyber vkládá).
   Podle prototypu „2 · Stránka modelu – telefon“: karty stavů 2 ve sloupci, pilulky paměti a barvy.
   Dotyková místa min. 44 px. Nic jiného na kartě nemění. Návrat: odebrat řádek se stylem a skriptem. */

html body.type-product .pa6-vyber {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 16px 0 20px;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  color: #1d1d1f;
  text-align: left;
  box-sizing: border-box;
  min-width: 0;
}
html body.type-product .pa6-vyber *,
html body.type-product .pa6-vyber *::before,
html body.type-product .pa6-vyber *::after { box-sizing: border-box; }

html body.type-product .pa6-vyber .pa6-blok { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
html body.type-product .pa6-vyber .pa6-nadpis {
  margin: 0; padding: 0;
  font-size: 17px; line-height: 1.3; font-weight: 600; color: #1d1d1f;
}

/* ---------- 1. Stav: karty ---------- */
html body.type-product .pa6-vyber .pa6-stavy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
html body.type-product .pa6-vyber .pa6-stav {
  display: flex;
  flex-direction: column;
  min-height: 44px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 2px solid #fff;
  outline: 1px solid #d2d2d7;
  outline-offset: -1px;
  border-radius: 14px;
  background: #fff;
  color: #1d1d1f;
  font-size: 17px;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
}
html body.type-product .pa6-vyber a.pa6-stav { cursor: pointer; transition: outline-color .15s ease, background-color .15s ease; }
html body.type-product .pa6-vyber a.pa6-stav:hover { outline-color: #0077b6; text-decoration: none; color: #1d1d1f; }
html body.type-product .pa6-vyber .pa6-stav.pa6-on { background: #e8f4fb; border-color: #0077b6; outline-color: transparent; }
html body.type-product .pa6-vyber .pa6-stav.pa6-neni {
  background: transparent; border-color: transparent; outline: 1px dashed #c7c7cc; color: #6e6e73;
}
html body.type-product .pa6-vyber .pa6-stav__nazev { display: block; font-size: 17px; font-weight: 600; }
html body.type-product .pa6-vyber .pa6-stav__popis { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: #5e5e63; }
html body.type-product .pa6-vyber .pa6-stav__cena { display: block; margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 500; }
html body.type-product .pa6-vyber .pa6-stav__presny { display: block; font-size: 13px; line-height: 1.35; font-weight: 400; color: #5e5e63; }
html body.type-product .pa6-vyber .pa6-stav.pa6-neni .pa6-stav__popis,
html body.type-product .pa6-vyber .pa6-stav.pa6-neni .pa6-stav__cena { color: #6e6e73; font-weight: 400; }

/* přesný stav uvnitř skupiny (A / A-) */
html body.type-product .pa6-vyber .pa6-presne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html body.type-product .pa6-vyber .pa6-presne__n { flex: 0 0 100%; font-size: 13px; line-height: 1.35; color: #5e5e63; }

/* ---------- 2. Paměť, 3. Barva: pilulky ---------- */
html body.type-product .pa6-vyber .pa6-pily { display: flex; flex-wrap: wrap; gap: 8px; }
html body.type-product .pa6-vyber .pa6-pil {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid #fff;
  outline: 1px solid #d2d2d7;
  outline-offset: -1px;
  border-radius: 980px;
  background: #fff;
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
html body.type-product .pa6-vyber a.pa6-pil { cursor: pointer; transition: outline-color .15s ease; }
html body.type-product .pa6-vyber a.pa6-pil:hover { outline-color: #0077b6; text-decoration: none; color: #1d1d1f; }
html body.type-product .pa6-vyber .pa6-pil.pa6-on { background: #e8f4fb; border-color: #0077b6; outline-color: transparent; font-weight: 600; }
html body.type-product .pa6-vyber .pa6-pil.pa6-jinde { background: transparent; border-color: transparent; outline: 1px dashed #aeaeb2; color: #6e6e73; }
html body.type-product .pa6-vyber a.pa6-pil.pa6-jinde:hover { outline: 1px solid #0077b6; color: #1d1d1f; }
html body.type-product .pa6-vyber .pa6-pil__od { font-size: 13px; font-weight: 400; color: #5e5e63; }

html body.type-product .pa6-vyber a.pa6-stav:focus-visible,
html body.type-product .pa6-vyber a.pa6-pil:focus-visible { outline: 3px solid #0077b6; outline-offset: 2px; }

html body.type-product .pa6-vyber .pa6-pozn { margin: -6px 0 0; padding: 0; font-size: 13px; line-height: 1.45; color: #5e5e63; }

@media (prefers-reduced-motion: reduce) {
  html body.type-product .pa6-vyber a { transition: none; }
}

/* ---------- telefon: pořadí v kartě (název → výběr → „Jak poznám rozdíl…“ → cena) ---------- */
@media (max-width: 767px) {
  html body.type-product .p-detail-inner .p-data-wrapper > .pa6-vyber { order: 1; margin: 16px 0 4px; }
}

/* ---------- počítač: jednodušší podoba v pravém sloupci nad cenou ---------- */
@media (min-width: 768px) {
  html body.type-product .pa6-vyber { gap: 16px; margin: 4px 0 20px; }
  html body.type-product .pa6-vyber .pa6-blok { gap: 8px; }
  html body.type-product .pa6-vyber .pa6-nadpis { font-size: 15px; }
  html body.type-product .pa6-vyber .pa6-stavy { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html body.type-product .pa6-vyber .pa6-stav { padding: 10px 12px; border-radius: 12px; }
  html body.type-product .pa6-vyber .pa6-stav__nazev { font-size: 15px; }
  html body.type-product .pa6-vyber .pa6-stav__popis { display: none; }
  html body.type-product .pa6-vyber .pa6-stav__cena { font-size: 14px; padding-top: 2px; }
  html body.type-product .pa6-vyber .pa6-pil { font-size: 14px; padding: 0 14px; }
}

/* ---------- v2 (5. 12.): stavy, které nejsou skladem, až za skutečné volby; na počítači úsporněji ---------- */
html body.type-product .pa6-vyber .pa6-stav.pa6-neni { order: 9; }
@media (min-width: 768px) {
  html body.type-product .pa6-vyber { gap: 12px; margin: 4px 0 14px; }
  html body.type-product .pa6-vyber .pa6-stav.pa6-neni { display: none; }
  html body.type-product .pa6-vyber .pa6-pozn { display: none; }
}
