/**
 * Demetz - Prescription info panel
 *
 * @author    JFO
 * @copyright 2026 Opal
 * @license   Proprietary - All rights reserved
 */

/*
 * F1 sub-option - "Adaptable to your eyesight" mention on the product miniatures of the lists (miniature.tpl).
 * Loaded on the pages showing product miniatures, only when the sub-option is enabled.
 */
.product-miniature a.drx-thumb,
a.drx-thumb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
  max-width: 100%;
  margin: 4px 0;
  padding: 3px 8px 3px 6px;
  border: 1px solid #000;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.2px;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.product-miniature a.drx-thumb:hover,
.product-miniature a.drx-thumb:focus,
a.drx-thumb:hover,
a.drx-thumb:focus {
  background: #000;
  color: #fff;
  text-decoration: none;
}

a.drx-thumb:focus {
  outline: none;
}

a.drx-thumb:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

a.drx-thumb .drx-thumb__icon {
  display: block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

a.drx-thumb .drx-thumb__text {
  overflow: hidden;
  line-height: 16px;
  text-overflow: ellipsis;
}

/*
 * Default location (displayProductListReviews): the theme hides its .review-list block in the grid views of the
 * product lists (child_theme _categories.scss). Show the block when it holds the mention, without its other content
 * (the review stars stay hidden there), except in the list view where the theme shows that content.
 * Browsers without :has() keep the theme rule (mention hidden in the grids).
 */
.review-list:has(> a.drx-thumb) {
  display: block !important;
}

.review-list:has(> a.drx-thumb) > :not(a.drx-thumb) {
  display: none !important;
}

.product_list.list .review-list:has(> a.drx-thumb) > :not(a.drx-thumb) {
  display: block !important;
}

/* The theme strokes every svg (vinova_salehub theme.css: svg {stroke: #000}): these icons are fills */
a.drx-thumb svg {
  stroke: none;
}
