.wyj-product-allergens {
  margin-top: 0.35rem;
  font: 500 12px/1.35 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #6b7280;
}

.wyj-product-allergens__label {
  font-weight: 600;
  color: #4b5563;
}

.wyj-product-allergens__list {
  font-weight: 500;
}

/* Popup (ikonka info + modal) */
.wyj-allergens-popup {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 2;
  vertical-align: middle;
}

.wyj-allergens-popup .wyj-allergens-info-btn {
  all: unset !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  padding: 0 !important;
  margin: 0 0 0 5px !important;
  border: 1px solid rgba(107, 114, 128, 0.85) !important;
  border-radius: 50% !important;
  background: #f7f6f2 !important;
  box-shadow: none !important;
  color: #6b7280 !important;
  cursor: pointer !important;
  line-height: 0 !important;
  vertical-align: middle !important;
  -webkit-tap-highlight-color: transparent !important;
  pointer-events: auto !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: manipulation !important;
  box-sizing: border-box !important;
  flex-shrink: 0;
}

.wyj-allergens-popup .wyj-allergens-info-btn:hover {
  background: #f7f6f2 !important;
  color: #374151 !important;
  border-color: #374151 !important;
}

.wyj-allergens-popup .wyj-allergens-info-btn:focus,
.wyj-allergens-popup .wyj-allergens-info-btn:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
  background: #f7f6f2 !important;
}

.wyj-allergens-popup .wyj-allergens-info-btn:focus-visible {
  outline: 2px solid rgba(17, 24, 39, 0.2) !important;
  outline-offset: 2px !important;
}

.wyj-allergens-popup .wyj-allergens-info-btn:active {
  background: #f7f6f2 !important;
  box-shadow: none !important;
}

/* YITH quick view — bez „plamy” po X (iOS tap/focus) */
.yith-quick-view-close,
.yith-quick-view .yith-quick-view-close {
  -webkit-tap-highlight-color: transparent !important;
}

.yith-quick-view-close:focus,
.yith-quick-view-close:focus:not(:focus-visible),
.yith-quick-view-close:active {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Lightbox zdjęć (wyjlb) — bez „poświaty” po X na iOS */
.wyjlb__close,
.wyjlb__close * {
  -webkit-tap-highlight-color: transparent !important;
}

.wyjlb__close:focus,
.wyjlb__close:focus:not(:focus-visible),
.wyjlb__close:active {
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.wyj-allergens-popup .wyj-allergens-info-btn__icon {
  width: 11px;
  height: 11px;
  display: block;
  flex: 0 0 auto;
  pointer-events: none;
}

/* Większy obszar dotyku — bez pseudo-elementu (nie nakłada się na inne klikalne warstwy) */
@media (max-width: 768px) {
  .wyj-allergens-popup .wyj-allergens-info-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
  }
}

/* Stary markup (modal w karcie produktu) — nie renderuj warstwy */
.wyj-allergens-popup > .wyj-allergens-modal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#wyj-allergens-global-modal.wyj-allergens-modal {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#wyj-allergens-global-modal.wyj-allergens-modal.is-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 100050;
}

.wyj-allergens-modal * {
  box-sizing: border-box;
}

.wyj-allergens-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.wyj-allergens-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 24px));
  max-height: min(78vh, 640px);
  overflow: auto;
  border-radius: 18px;
  background: #1f1f24;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100000;
}

.wyj-allergens-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wyj-allergens-modal__head-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wyj-allergens-modal__title {
  font: 700 20px/1.2 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  letter-spacing: 0.01em;
}

.wyj-allergens-modal__chip {
  display: inline-flex;
  width: fit-content;
  font: 500 12px/1 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 10px;
  border-radius: 999px;
}

.wyj-allergens-modal .wyj-allergens-modal__close {
  all: unset !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  outline: none !important;
}

.wyj-allergens-modal .wyj-allergens-modal__close:focus {
  outline: none !important;
}

.wyj-allergens-modal .wyj-allergens-modal__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35) !important;
  outline-offset: 2px !important;
}

.wyj-allergens-modal .wyj-allergens-modal__close:active,
.wyj-allergens-modal .wyj-allergens-modal__close:focus:not(:focus-visible) {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  outline: none !important;
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .wyj-allergens-modal .wyj-allergens-modal__close:hover {
    background: rgba(255, 255, 255, 0.14) !important;
  }
}

.wyj-allergens-modal__close-icon {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
}

.wyj-allergens-modal__body {
  padding: 16px 18px 18px;
}

.wyj-allergens-modal__disclaimer {
  margin: 0;
  font: 500 14px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: rgba(255, 255, 255, 0.82);
}

.wyj-allergens-modal__section {
  margin-top: 16px;
}

.wyj-allergens-modal__section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 14px/1.2 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.wyj-allergens-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.wyj-allergens-list__item {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font: 600 14px/1.25 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

@media (min-width: 520px) {
  .wyj-allergens-list {
    grid-template-columns: 1fr 1fr;
  }
}
