/* Product page after the Tvorboshop video (BACKLOG #493, 30. 10. 2026). New file name because Cloudflare keeps CSS
   as immutable; the older product-*.css files stay as they are. */

/* bod 1: link to the guide of all tags at the end of the tag row */
.et-tag-row .et-tag-guide {
  align-self: center;
  color: var(--et-accent);
  font-size: 13px;
  text-decoration: underline;
}

/* bod 6: "více" after the cut intro */
.et-product-intro .et-intro-more {
  color: var(--et-accent);
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

/* bod 4: adapter and extension choices framed, "?" with a bubble on hover, focus and tap */
.et-product-options .et-option-highlight {
  padding: 10px 12px;
  border: 2px solid var(--et-accent);
  border-radius: var(--et-radius, 8px);
  background: var(--et-surface, #fff);
}

.et-product-options .et-option-highlight .control-label {
  font-weight: 700;
}

.et-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--et-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  cursor: help;
}

.et-help::after {
  content: attr(data-et-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: 220px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
  text-align: left;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s;
}

.et-help:hover::after,
.et-help:focus::after,
.et-help:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

/* bod 5: long lists show five items and a toggle */
.et-more-hidden {
  display: none !important;
}

.et-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 10px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--et-accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* bod 8: the help line of "Doporučujeme dokoupit" stands out; the lower button is hidden */
.et-accessories .et-accessories__help {
  padding: 8px 10px;
  border-left: 3px solid var(--et-accent);
  background: rgba(0, 0, 0, .03);
  color: var(--et-text);
  font-size: 14px;
  font-weight: 600;
}

#button-accessories[hidden] {
  display: none !important;
}

/* bod 10: Heureka reviews under the buy box */
.et-heureka-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--et-text);
  font-weight: 600;
  text-decoration: underline;
}

.et-heureka-link img {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

/* Phones move the tags and the intro below the buy box (eletur.css, order 1); Heureka and the expert box stay after them */
@media (max-width: 767px) {
  .et-storefront .et-product-summary > .et-heureka-link,
  .et-storefront .et-product-summary > .et-expert-box {
    order: 2;
  }
}

/* bod 9: expert box */
.et-expert-box {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--et-line);
  border-radius: var(--et-radius, 8px);
  background: var(--et-surface, #fff);
}

.et-expert-box__title {
  margin: 0 0 6px;
  font-weight: 700;
}

.et-expert-box__text p:last-child {
  margin-bottom: 0;
}

.et-expert-box__sign {
  margin: 8px 0 0;
  color: var(--et-muted);
  font-size: 13px;
  font-style: italic;
}

/* bod 2 and 3: tag text above the unchanged listing and the guide of all tags */
.et-tag-text {
  max-width: 900px;
  margin: 8px 0 0;
}

.et-tag-text__guide {
  display: inline-block;
  margin-top: 8px;
  color: var(--et-accent);
  text-decoration: underline;
}

.et-tag-guide-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}

.et-tag-guide-letters a {
  min-width: 32px;
  padding: 4px 8px;
  border: 1px solid var(--et-line);
  border-radius: 6px;
  text-align: center;
}

.et-tag-guide-group__letter {
  margin: 20px 0 8px;
  font-size: 20px;
}

.et-tag-guide-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.et-tag-guide-list li {
  padding: 6px 0;
}

.et-tag-guide-list li.has-text {
  padding: 10px 14px;
  border: 1px solid var(--et-line);
  border-radius: var(--et-radius, 8px);
  background: var(--et-surface, #fff);
}

.et-tag-guide-list__count {
  color: var(--et-muted);
  font-size: 13px;
}

.et-tag-guide-list p {
  margin: 4px 0 0;
}

@media (min-width: 768px) {
  .et-tag-guide-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .et-tag-guide-list li.has-text {
    grid-column: span 3;
  }
}
