/*
  Shoptet Apollo – POVRH obrázkové varianty
  VERZE 10.0

  Oprava v10:
  - vybraný POVRH už nepoužívá zelené označení šablony
  - zůstane jen modrý rámeček a modrá fajfka jako u rozměrové varianty
*/

:root {
  --apollo-povrh-blue: #0b72ce;
  --apollo-povrh-blue-light: #2f9df4;
  --apollo-povrh-text: #253041;
  --apollo-povrh-border: #dfe7ef;
}

.apollo-povrh-v10-area,
.apollo-povrh-v10-area * {
  box-sizing: border-box !important;
}

/* tvrdé odstranění starých doplňkových nadpisů */
body.apollo-povrh-v10-loaded .apollo-povrh-v2-title,
body.apollo-povrh-v10-loaded .apollo-povrh-v3-title,
body.apollo-povrh-v10-loaded .apollo-povrh-v4-title,
body.apollo-povrh-v10-loaded .apollo-povrh-v5-title,
body.apollo-povrh-v10-loaded .apollo-povrh-v6-title,
body.apollo-povrh-v10-loaded .apollo-povrh-v7-title,
body.apollo-povrh-v10-loaded .apollo-povrh-title:not(.apollo-povrh-v10-title),
body.apollo-povrh-v10-loaded .apollo-povrh-v2-title-row,
body.apollo-povrh-v10-loaded .apollo-povrh-v3-title-row,
body.apollo-povrh-v10-loaded .apollo-povrh-v4-title-row,
body.apollo-povrh-v10-loaded .apollo-povrh-v5-title-row,
body.apollo-povrh-v10-loaded .apollo-povrh-v6-title-row,
body.apollo-povrh-v10-loaded .apollo-povrh-v7-title-row {
  display: none !important;
}

.apollo-povrh-v10-title,
.detail-parameters-block.apollo-povrh-v10-single-title .detail-grid-title,
.detail-grid-item.detail-parameters-block.apollo-povrh-v10-single-title .detail-grid-title {
  position: relative !important;
  display: block !important;
  width: auto !important;
  max-width: max-content !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  color: var(--apollo-povrh-text) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

.apollo-povrh-v10-title::after,
.detail-parameters-block.apollo-povrh-v10-single-title .detail-grid-title::after,
.detail-grid-item.detail-parameters-block.apollo-povrh-v10-single-title .detail-grid-title::after {
  content: "" !important;
  display: block !important;
  width: 40px !important;
  height: 3px !important;
  margin: 7px 0 0 0 !important;
  background: var(--apollo-povrh-blue-light) !important;
  border-radius: 999px !important;
}

.apollo-povrh-v10-hidden-label,
.apollo-povrh-v10-hidden-original,
tr.apollo-povrh-v10-area > th.apollo-povrh-v10-hidden-label,
tr.apollo-povrh-v10-area > td.apollo-povrh-v10-hidden-label {
  display: none !important;
}

tr.apollo-povrh-v10-area > td,
tr.apollo-povrh-v10-area > td:last-child {
  padding-left: 0 !important;
}

.apollo-povrh-v10-options {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* základ karty */
.apollo-povrh-v10-option,
.apollo-povrh-v10-option.selected,
.apollo-povrh-v10-option.active,
.apollo-povrh-v10-option.checked,
.apollo-povrh-v10-option.is-selected,
.apollo-povrh-v10-option[aria-pressed="true"],
.apollo-povrh-v10-option[aria-selected="true"],
.apollo-povrh-v10-option[aria-checked="true"] {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  outline: 0 !important;
  outline-color: transparent !important;
  box-shadow: none !important;
  color: var(--apollo-povrh-text) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  overflow: visible !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/*
  Tohle je hlavní oprava:
  Shoptet Apollo dává zelený rámeček/fajfku na původní elementy a pseudo-elementy.
  Vše uvnitř původní možnosti vynulujeme a níže znovu zapneme jen náš modrý rámeček + fajfku.
*/
.apollo-povrh-v10-option,
.apollo-povrh-v10-option *,
.apollo-povrh-v10-option.selected,
.apollo-povrh-v10-option.selected *,
.apollo-povrh-v10-option.active,
.apollo-povrh-v10-option.active *,
.apollo-povrh-v10-option.checked,
.apollo-povrh-v10-option.checked *,
.apollo-povrh-v10-option.is-selected,
.apollo-povrh-v10-option.is-selected *,
.apollo-povrh-v10-option[aria-pressed="true"],
.apollo-povrh-v10-option[aria-pressed="true"] *,
.apollo-povrh-v10-option[aria-selected="true"],
.apollo-povrh-v10-option[aria-selected="true"] *,
.apollo-povrh-v10-option[aria-checked="true"],
.apollo-povrh-v10-option[aria-checked="true"] * {
  background-image: none !important;
  outline: 0 !important;
  outline-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.apollo-povrh-v10-option *:not(.apollo-povrh-v10-image-frame):not(.apollo-povrh-v10-check):not(.apollo-povrh-v10-name):not(img):not(input) {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  background: transparent !important;
  background-image: none !important;
}

/* vypne zelenou fajfku/růžky z původní šablony */
.apollo-povrh-v10-option::before,
.apollo-povrh-v10-option::after,
.apollo-povrh-v10-option *::before,
.apollo-povrh-v10-option *::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.apollo-povrh-v10-option input[type="radio"],
.apollo-povrh-v10-option input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* náš čistý modrý rámeček kolem obrázku */
.apollo-povrh-v10-image-frame {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  margin: 0 auto !important;
  padding: 4px !important;
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid var(--apollo-povrh-border) !important;
  border-radius: 5px !important;
  outline: 0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
  overflow: visible !important;
  transition: border-color 150ms ease, box-shadow 150ms ease !important;
}

.apollo-povrh-v10-option:hover .apollo-povrh-v10-image-frame,
.apollo-povrh-v10-option:focus-visible .apollo-povrh-v10-image-frame {
  border-color: #8dc7fb !important;
  box-shadow: 0 2px 8px rgba(20, 118, 212, 0.14) !important;
}

.apollo-povrh-v10-option.is-selected .apollo-povrh-v10-image-frame,
.apollo-povrh-v10-option.selected .apollo-povrh-v10-image-frame,
.apollo-povrh-v10-option.active .apollo-povrh-v10-image-frame,
.apollo-povrh-v10-option.checked .apollo-povrh-v10-image-frame,
.apollo-povrh-v10-option[aria-pressed="true"] .apollo-povrh-v10-image-frame,
.apollo-povrh-v10-option[aria-selected="true"] .apollo-povrh-v10-image-frame,
.apollo-povrh-v10-option[aria-checked="true"] .apollo-povrh-v10-image-frame {
  border: 2px solid var(--apollo-povrh-blue) !important;
  box-shadow: 0 0 0 1px rgba(11, 114, 206, 0.08), 0 3px 10px rgba(11, 114, 206, 0.16) !important;
  background: #fff !important;
  background-image: none !important;
}

.apollo-povrh-v10-image-frame img,
.apollo-povrh-v10-option img,
.apollo-povrh-v10-option.selected img,
.apollo-povrh-v10-option.active img,
.apollo-povrh-v10-option.checked img,
.apollo-povrh-v10-option.is-selected img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 56px !important;
  max-height: 56px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.apollo-povrh-v10-name {
  display: block !important;
  width: 100% !important;
  margin: 7px 0 0 0 !important;
  padding: 0 !important;
  color: var(--apollo-povrh-text) !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.01em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: normal !important;
  pointer-events: none !important;
}

/* naše modrá fajfka */
.apollo-povrh-v10-check {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  z-index: 12 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  background: var(--apollo-povrh-blue) !important;
  background-image: none !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.22) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

.apollo-povrh-v10-check::before {
  content: "✓" !important;
  display: block !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

.apollo-povrh-v10-option.is-selected .apollo-povrh-v10-check,
.apollo-povrh-v10-option.selected .apollo-povrh-v10-check,
.apollo-povrh-v10-option.active .apollo-povrh-v10-check,
.apollo-povrh-v10-option.checked .apollo-povrh-v10-check,
.apollo-povrh-v10-option[aria-pressed="true"] .apollo-povrh-v10-check,
.apollo-povrh-v10-option[aria-selected="true"] .apollo-povrh-v10-check,
.apollo-povrh-v10-option[aria-checked="true"] .apollo-povrh-v10-check {
  display: flex !important;
}

.apollo-povrh-v10-option.is-disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.35) !important;
}

@media (max-width: 767px) {
  .apollo-povrh-v10-title,
  .detail-parameters-block.apollo-povrh-v10-single-title .detail-grid-title,
  .detail-grid-item.detail-parameters-block.apollo-povrh-v10-single-title .detail-grid-title {
    font-size: 19px !important;
    margin-bottom: 16px !important;
  }

  .apollo-povrh-v10-options {
    gap: 16px !important;
  }
}


/* ===== V10 finální oprava výběru podle modré karty ===== */
.apollo-povrh-v10-options {
  gap: 18px !important;
  overflow: visible !important;
  padding-top: 10px !important;
}

.apollo-povrh-v10-option,
.apollo-povrh-v10-option.selected,
.apollo-povrh-v10-option.active,
.apollo-povrh-v10-option.checked,
.apollo-povrh-v10-option.is-selected,
.apollo-povrh-v10-option[aria-pressed="true"],
.apollo-povrh-v10-option[aria-selected="true"],
.apollo-povrh-v10-option[aria-checked="true"] {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.apollo-povrh-v10-option,
.apollo-povrh-v10-option * {
  overflow: visible !important;
}

/* znovu povolíme náš check, protože předchozí reset vypíná všechny pseudo prvky */
.apollo-povrh-v10-option .apollo-povrh-v10-check,
.apollo-povrh-v10-option.is-selected .apollo-povrh-v10-check,
.apollo-povrh-v10-option.selected .apollo-povrh-v10-check,
.apollo-povrh-v10-option.active .apollo-povrh-v10-check,
.apollo-povrh-v10-option.checked .apollo-povrh-v10-check,
.apollo-povrh-v10-option[aria-pressed="true"] .apollo-povrh-v10-check,
.apollo-povrh-v10-option[aria-selected="true"] .apollo-povrh-v10-check,
.apollo-povrh-v10-option[aria-checked="true"] .apollo-povrh-v10-check {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.apollo-povrh-v10-option:not(.is-selected):not(.selected):not(.active):not(.checked):not([aria-pressed="true"]):not([aria-selected="true"]):not([aria-checked="true"]) .apollo-povrh-v10-check {
  display: none !important;
}

.apollo-povrh-v10-image-frame {
  width: 66px !important;
  height: 66px !important;
  min-width: 66px !important;
  min-height: 66px !important;
  padding: 4px !important;
  margin: 0 auto !important;
  border: 1px solid var(--apollo-povrh-border) !important;
  border-radius: 6px !important;
  overflow: visible !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

.apollo-povrh-v10-option.is-selected .apollo-povrh-v10-image-frame,
.apollo-povrh-v10-option.selected .apollo-povrh-v10-image-frame,
.apollo-povrh-v10-option.active .apollo-povrh-v10-image-frame,
.apollo-povrh-v10-option.checked .apollo-povrh-v10-image-frame,
.apollo-povrh-v10-option[aria-pressed="true"] .apollo-povrh-v10-image-frame,
.apollo-povrh-v10-option[aria-selected="true"] .apollo-povrh-v10-image-frame,
.apollo-povrh-v10-option[aria-checked="true"] .apollo-povrh-v10-image-frame {
  border: 2px solid var(--apollo-povrh-blue) !important;
  box-shadow: 0 0 0 1px rgba(11, 114, 206, 0.08), 0 3px 10px rgba(11, 114, 206, 0.16) !important;
}

.apollo-povrh-v10-check {
  top: -10px !important;
  right: -10px !important;
  width: 21px !important;
  height: 21px !important;
  z-index: 9999 !important;
  background: var(--apollo-povrh-blue) !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.22) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 17px !important;
  text-align: center !important;
}

.apollo-povrh-v10-option .apollo-povrh-v10-check::before,
.apollo-povrh-v10-option.is-selected .apollo-povrh-v10-check::before,
.apollo-povrh-v10-option.selected .apollo-povrh-v10-check::before,
.apollo-povrh-v10-option.active .apollo-povrh-v10-check::before,
.apollo-povrh-v10-option.checked .apollo-povrh-v10-check::before,
.apollo-povrh-v10-option[aria-pressed="true"] .apollo-povrh-v10-check::before,
.apollo-povrh-v10-option[aria-selected="true"] .apollo-povrh-v10-check::before,
.apollo-povrh-v10-option[aria-checked="true"] .apollo-povrh-v10-check::before {
  content: "✓" !important;
  display: block !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

.apollo-povrh-v10-name {
  width: 82px !important;
  text-align: center !important;
  margin-top: 7px !important;
}

/* ===== V10 oprava dvojité fajfky =====
   JS už do kolečka nevkládá text ✓, fajfka je pouze přes ::before.
   font-size:0 zároveň schová případný starý text z cache. */
.apollo-povrh-v10-check {
  font-size: 0 !important;
  line-height: 0 !important;
}

.apollo-povrh-v10-check::before {
  content: "✓" !important;
  display: block !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

/* Původní fajfky/růžky ze Shoptetu vypnout, ale naši modrou fajfku ponechat. */
.apollo-povrh-v10-option::before,
.apollo-povrh-v10-option::after,
.apollo-povrh-v10-image-frame::before,
.apollo-povrh-v10-image-frame::after,
.apollo-povrh-v10-option *:not(.apollo-povrh-v10-check)::before,
.apollo-povrh-v10-option *:not(.apollo-povrh-v10-check)::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ===== V11 oprava mobilu: text LESKLÝ / MATNÝ už nebude schovaný pod obrázkem ===== */
.apollo-povrh-v10-option,
.apollo-povrh-v10-option.selected,
.apollo-povrh-v10-option.active,
.apollo-povrh-v10-option.checked,
.apollo-povrh-v10-option.is-selected,
.apollo-povrh-v10-option[aria-pressed="true"],
.apollo-povrh-v10-option[aria-selected="true"],
.apollo-povrh-v10-option[aria-checked="true"] {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 22px !important;
}

.apollo-povrh-v10-image-frame {
  position: relative !important;
  z-index: 2 !important;
  flex: 0 0 auto !important;
  margin-bottom: 0 !important;
}

.apollo-povrh-v10-name {
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
  flex: 0 0 auto !important;
  clear: both !important;
  width: 100% !important;
  min-height: 18px !important;
  height: auto !important;
  max-height: none !important;
  margin: 10px auto 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  line-height: 1.25 !important;
  text-align: center !important;
  background: transparent !important;
}

@media (max-width: 767px) {
  .apollo-povrh-v10-options {
    align-items: flex-start !important;
    gap: 18px !important;
    padding-bottom: 8px !important;
    margin-bottom: 24px !important;
    overflow: visible !important;
  }

  .apollo-povrh-v10-option,
  .apollo-povrh-v10-option.selected,
  .apollo-povrh-v10-option.active,
  .apollo-povrh-v10-option.checked,
  .apollo-povrh-v10-option.is-selected,
  .apollo-povrh-v10-option[aria-pressed="true"],
  .apollo-povrh-v10-option[aria-selected="true"],
  .apollo-povrh-v10-option[aria-checked="true"] {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 96px !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 24px !important;
    vertical-align: top !important;
  }

  .apollo-povrh-v10-image-frame {
    display: flex !important;
    flex: 0 0 auto !important;
    margin: 0 auto !important;
  }

  .apollo-povrh-v10-name {
    display: block !important;
    position: relative !important;
    z-index: 20 !important;
    width: 100% !important;
    min-height: 18px !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    color: var(--apollo-povrh-text) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ===== V12 finální oprava polohy textu na telefonu =====
   Text LESKLÝ / MATNÝ je natvrdo pod obrázkem, uprostřed, a o kousek níž. */
.apollo-povrh-v10-option,
.apollo-povrh-v10-option.selected,
.apollo-povrh-v10-option.active,
.apollo-povrh-v10-option.checked,
.apollo-povrh-v10-option.is-selected,
.apollo-povrh-v10-option[aria-pressed="true"],
.apollo-povrh-v10-option[aria-selected="true"],
.apollo-povrh-v10-option[aria-checked="true"] {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 120px !important;
  max-height: none !important;
  padding-bottom: 34px !important;
  text-align: center !important;
}

.apollo-povrh-v10-image-frame {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 2 !important;
}

.apollo-povrh-v10-name {
  display: block !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  position: static !important;
  z-index: 30 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  min-height: 20px !important;
  height: auto !important;
  max-height: none !important;
  margin: 20px auto 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  text-align: center !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  background: transparent !important;
  pointer-events: none !important;
}

@media (max-width: 767px) {
  .apollo-povrh-v10-options {
    align-items: flex-start !important;
    gap: 28px !important;
    overflow: visible !important;
    padding-bottom: 18px !important;
    margin-bottom: 32px !important;
  }

  .apollo-povrh-v10-option,
  .apollo-povrh-v10-option.selected,
  .apollo-povrh-v10-option.active,
  .apollo-povrh-v10-option.checked,
  .apollo-povrh-v10-option.is-selected,
  .apollo-povrh-v10-option[aria-pressed="true"],
  .apollo-povrh-v10-option[aria-selected="true"],
  .apollo-povrh-v10-option[aria-checked="true"] {
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 138px !important;
    padding-bottom: 42px !important;
  }

  .apollo-povrh-v10-name {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    margin: 24px auto 0 auto !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
}


/* === v16 fix: popisek přesně pod obrázkem a bez velké mezery pod variantami === */
.apollo-povrh-v16-options {
  align-items: flex-start !important;
  gap: 18px !important;
  margin-bottom: 24px !important;
  padding-bottom: 0 !important;
}

.apollo-povrh-v16-option,
.apollo-povrh-v16-option.selected,
.apollo-povrh-v16-option.active,
.apollo-povrh-v16-option.checked,
.apollo-povrh-v16-option.is-selected,
.apollo-povrh-v16-option[aria-pressed="true"],
.apollo-povrh-v16-option[aria-selected="true"],
.apollo-povrh-v16-option[aria-checked="true"] {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto !important;
  justify-items: center !important;
  align-items: start !important;
  width: 152px !important;
  min-width: 152px !important;
  max-width: 152px !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 0 4px 0 !important;
  overflow: visible !important;
}

.apollo-povrh-v16-image-frame {
  grid-row: 1 !important;
  grid-column: 1 !important;
  display: flex !important;
  margin: 0 auto !important;
  overflow: visible !important;
}

.apollo-povrh-v16-name {
  grid-row: 2 !important;
  grid-column: 1 !important;
  display: block !important;
  width: 100% !important;
  max-width: 152px !important;
  margin: 14px auto 0 auto !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
  text-align: center !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  clear: both !important;
}

.apollo-povrh-v16-area,
.apollo-povrh-v16-options,
.detail-parameters-block.apollo-povrh-v16-single-title,
.detail-grid-item.detail-parameters-block.apollo-povrh-v16-single-title {
  min-height: 0 !important;
  height: auto !important;
}

.detail-parameters-block.apollo-povrh-v16-single-title .apollo-povrh-v16-options,
.detail-grid-item.detail-parameters-block.apollo-povrh-v16-single-title .apollo-povrh-v16-options {
  margin-bottom: 22px !important;
}

/* Mobil: menší karta, popisek pořád na střed a bez zbytečné mezery k ceně */
@media (max-width: 767px) {
  .apollo-povrh-v16-options {
    gap: 16px !important;
    margin-bottom: 22px !important;
  }

  .apollo-povrh-v16-option,
  .apollo-povrh-v16-option.selected,
  .apollo-povrh-v16-option.active,
  .apollo-povrh-v16-option.checked,
  .apollo-povrh-v16-option.is-selected,
  .apollo-povrh-v16-option[aria-pressed="true"],
  .apollo-povrh-v16-option[aria-selected="true"],
  .apollo-povrh-v16-option[aria-checked="true"] {
    width: 138px !important;
    min-width: 138px !important;
    max-width: 138px !important;
  }

  .apollo-povrh-v16-name {
    max-width: 138px !important;
    margin-top: 12px !important;
    font-size: 24px !important;
    line-height: 1.15 !important;
  }
}


/* === v16 fix: menší mezera pod variantami + popisek přesně pod obrázkem === */
.apollo-povrh-v16-options {
  align-items: flex-start !important;
  gap: 18px !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}

.apollo-povrh-v16-option,
.apollo-povrh-v16-option.selected,
.apollo-povrh-v16-option.active,
.apollo-povrh-v16-option.checked,
.apollo-povrh-v16-option.is-selected,
.apollo-povrh-v16-option[aria-pressed="true"],
.apollo-povrh-v16-option[aria-selected="true"],
.apollo-povrh-v16-option[aria-checked="true"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 152px !important;
  min-width: 152px !important;
  max-width: 152px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.apollo-povrh-v16-image-frame {
  display: flex !important;
  flex: 0 0 auto !important;
  margin: 0 auto !important;
  overflow: visible !important;
}

.apollo-povrh-v16-name {
  display: block !important;
  position: static !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 152px !important;
  margin: 12px auto 0 auto !important;
  padding: 0 !important;
  transform: none !important;
  text-align: center !important;
  line-height: 1.12 !important;
  white-space: nowrap !important;
  clear: both !important;
}

.apollo-povrh-v16-area,
.apollo-povrh-v16-area > td,
.apollo-povrh-v16-area > td:last-child,
.apollo-povrh-v16-area .apollo-povrh-v16-options,
.detail-parameters-block.apollo-povrh-v16-single-title,
.detail-grid-item.detail-parameters-block.apollo-povrh-v16-single-title {
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 0 !important;
}

.detail-parameters-block.apollo-povrh-v16-single-title,
.detail-grid-item.detail-parameters-block.apollo-povrh-v16-single-title {
  margin-bottom: 18px !important;
}

.detail-parameters-block.apollo-povrh-v16-single-title .apollo-povrh-v16-options,
.detail-grid-item.detail-parameters-block.apollo-povrh-v16-single-title .apollo-povrh-v16-options {
  margin-bottom: 14px !important;
}

/* Shoptet/Apollo někdy drží velkou rezervu v detail-grid položce; u POVRH ji stáhneme. */
.detail-parameters-block.apollo-povrh-v16-single-title + .detail-grid-item,
.detail-grid-item.detail-parameters-block.apollo-povrh-v16-single-title + .detail-grid-item,
.apollo-povrh-v16-area + .detail-grid-item,
.apollo-povrh-v16-area + .price-wrapper,
.apollo-povrh-v16-area + .availability-value {
  margin-top: 0 !important;
}

@media (max-width: 767px) {
  .apollo-povrh-v16-options {
    gap: 16px !important;
    margin-bottom: 12px !important;
  }

  .apollo-povrh-v16-option,
  .apollo-povrh-v16-option.selected,
  .apollo-povrh-v16-option.active,
  .apollo-povrh-v16-option.checked,
  .apollo-povrh-v16-option.is-selected,
  .apollo-povrh-v16-option[aria-pressed="true"],
  .apollo-povrh-v16-option[aria-selected="true"],
  .apollo-povrh-v16-option[aria-checked="true"] {
    width: 138px !important;
    min-width: 138px !important;
    max-width: 138px !important;
  }

  .apollo-povrh-v16-name {
    width: 100% !important;
    max-width: 138px !important;
    margin-top: 10px !important;
    font-size: 24px !important;
    line-height: 1.1 !important;
  }

  .detail-parameters-block.apollo-povrh-v16-single-title,
  .detail-grid-item.detail-parameters-block.apollo-povrh-v16-single-title {
    margin-bottom: 14px !important;
  }

  .detail-parameters-block.apollo-povrh-v16-single-title .apollo-povrh-v16-options,
  .detail-grid-item.detail-parameters-block.apollo-povrh-v16-single-title .apollo-povrh-v16-options {
    margin-bottom: 10px !important;
  }
}


/* === v16 fix: odstranění velké mezery mezi POVRH variantami a CENA/DOSTUPNOST === */
.apollo-povrh-v16-options {
  margin-bottom: 8px !important;
  padding-bottom: 0 !important;
}

.detail-parameters-block.apollo-povrh-v16-single-title,
.detail-grid-item.detail-parameters-block.apollo-povrh-v16-single-title,
.apollo-povrh-v16-compact {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}

/* Mobilní Apollo má někdy velkou fixní rezervu pod blokem variant – stáhneme ji. */
@media (max-width: 767px) {
  .detail-parameters-block.apollo-povrh-v16-single-title,
  .detail-grid-item.detail-parameters-block.apollo-povrh-v16-single-title,
  .apollo-povrh-v16-compact {
    margin-bottom: -210px !important;
    padding-bottom: 0 !important;
  }

  .detail-parameters-block.apollo-povrh-v16-single-title .apollo-povrh-v16-options,
  .detail-grid-item.detail-parameters-block.apollo-povrh-v16-single-title .apollo-povrh-v16-options,
  .apollo-povrh-v16-compact .apollo-povrh-v16-options {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .apollo-povrh-v16-area {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* O něco jemnější na menších mobilech, aby se nic nepřekrylo. */
@media (max-width: 420px) {
  .detail-parameters-block.apollo-povrh-v16-single-title,
  .detail-grid-item.detail-parameters-block.apollo-povrh-v16-single-title,
  .apollo-povrh-v16-compact {
    margin-bottom: -170px !important;
  }
}


/* === v16 fix: tvrdé stažení mezery mezi POVRH a CENA/DOSTUPNOST === */
.apollo-povrh-v16-options {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.apollo-povrh-v16-area,
.apollo-povrh-v16-compact,
.detail-parameters-block.apollo-povrh-v16-single-title,
.detail-grid-item.detail-parameters-block.apollo-povrh-v16-single-title {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}

@media (max-width: 767px) {
  .apollo-povrh-v16-options {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .apollo-povrh-v16-area,
  .apollo-povrh-v16-compact,
  .detail-parameters-block.apollo-povrh-v16-single-title,
  .detail-grid-item.detail-parameters-block.apollo-povrh-v16-single-title {
    margin-bottom: -320px !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }
}
