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

/*
 * F1 - solution chips near the title / price (chips.tpl) + clickable medfeaturespictures pictograms
 * (demetzrxinfo-chips.js). Product page, outside the panel: every property the theme may change is set.
 */
.drx-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 12px;
  padding: 0;
  color: #1a1a1a;
  font-size: 13px;
  line-height: 18px;
  text-align: left;
}

.drx-chips .drx-chips__label {
  display: block;
  margin: 0;
  padding: 0;
  color: #555;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-transform: none;
}

.drx-chips .drx-chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.drx-chips .drx-chips__item {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.drx-chips .drx-chips__item::before,
.drx-chips .drx-chips__item::after {
  content: none;
}

.drx-chips a.drx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 32px;
  margin: 0;
  padding: 5px 12px 5px 10px;
  border: 1px solid #000;
  border-radius: 16px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0.3px;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Touch target of 44px around the 32px chip (rows 6px apart: the targets of two rows barely overlap) */
.drx-chips a.drx-chip {
  position: relative;
}

.drx-chips a.drx-chip::after {
  content: "";
  position: absolute;
  top: -6px;
  right: 0;
  bottom: -6px;
  left: 0;
}

.drx-chips a.drx-chip:hover,
.drx-chips a.drx-chip:focus {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.drx-chips a.drx-chip:focus {
  outline: none;
}

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

.drx-chips .drx-chip__icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.drx-chips .drx-chip__text {
  display: block;
  line-height: 18px;
}

/* Pictograms of medfeaturespictures made clickable (sub-option) */
.drx-picto,
img.drx-picto {
  cursor: pointer;
}

a.drx-picto:focus,
img.drx-picto:focus {
  outline: none;
}

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

@media (prefers-reduced-motion: reduce) {
  .drx-chips a.drx-chip {
    transition: none;
  }
}

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