/**
 * The price block (`innowine_single_arblokk()`): the product page and, since
 * 2026-11-27, the quick view panel, so the two show prices the same way.
 * Split out of innowine-single-product.css; every rule is scoped
 * `:is(.single-product, .innowine-qv) .arblokk...`, the same specificity the
 * `.single-product` prefix had.
 */
/* ------------------------------------------------------------ price block */

/*
 * Az árblokk (2026-09-28, a bolt „Árazás rendszer, állapotok” terve szerint):
 * nagy ár, alatta egységár, majd a klubárak három dobozban és egy sor arról,
 * mi jön. Markup: innowine_single_arblokk() (innowine-single-product.php).
 * A szint színeit a dobozok `style`-ja adja (`--szint-sav`, `--szint-szoveg`,
 * utóbbi az AA-kontrasztos árnyalat, mert apró betű).
 */
:is(.single-product, .innowine-qv) .arblokk {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  inline-size: 100%;
  color: #111;
}

/* Every paragraph here sets its own margin: a one-class rule could not beat a
   `.arblokk p` reset. */
:is(.single-product, .innowine-qv) .arblokk__ar,
:is(.single-product, .innowine-qv) .arblokk__info p {
  margin: 0;
}

/* Globally links go `display: block` on this site, and hover black. */
:is(.single-product, .innowine-qv) .arblokk a {
  display: inline;
  color: #111;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

:is(.single-product, .innowine-qv) .arblokk a:hover {
  color: #111;
  text-decoration-thickness: 2px;
}

:is(.single-product, .innowine-qv) .arblokk__rejtett {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* "A te árad · Gold klubár", and "Akció" on a sale. */
:is(.single-product, .innowine-qv) .arblokk__cimkek {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-end: 10px;
}

:is(.single-product, .innowine-qv) .arblokk__cimke {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 2px;
  background-color: color-mix(in srgb, var(--szint-sav, #ececec) 70%, #fff);
  color: var(--szint-szoveg, #4a4a4a);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

:is(.single-product, .innowine-qv) .arblokk__cimke--akcio {
  background-color: #fbe9e9;
  color: #b4161b;
}

/* The price paid, the list price struck beside it and the saving in red. */
:is(.single-product, .innowine-qv) .arblokk__ar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
}

:is(.single-product, .innowine-qv) .arblokk__osszeg {
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

:is(.single-product, .innowine-qv) .arblokk__lista {
  color: #767676;
  font-size: 19px;
  white-space: nowrap;
}

/* "Listaár" over the struck price on hover, as a small black label. */
:is(.single-product, .innowine-qv) .arblokk__lista {
  position: relative;
  cursor: default;
}

:is(.single-product, .innowine-qv) .arblokk__lista-tipp {
  position: absolute;
  inset-block-end: calc(100% + 7px);
  inset-inline-start: 50%;
  z-index: 4;
  padding: 4px 9px;
  border-radius: 2px;
  background-color: #111;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}

:is(.single-product, .innowine-qv) .arblokk__lista-tipp::after {
  content: "";
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 50%;
  margin-inline-start: -5px;
  border: 5px solid transparent;
  border-block-start-color: #111;
}

:is(.single-product, .innowine-qv) .arblokk__lista:hover .arblokk__lista-tipp {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

:is(.single-product, .innowine-qv) .arblokk__megtakaritas {
  color: #b4161b;
  font-size: 15px;
  white-space: nowrap;
}

/* The saving sits beside the "Akció" label now (2026-11-27). */
:is(.single-product, .innowine-qv) .arblokk__cimkek {
  align-items: center;
}

:is(.single-product, .innowine-qv) .arblokk__cimkek .arblokk__megtakaritas {
  font-size: 14px;
  font-weight: 600;
}

/* Unit price and deposit under the club boxes. */
:is(.single-product, .innowine-qv) .arblokk__szintek + .arblokk__egyseg {
  margin-block-start: 10px;
}

/* One quiet line under the price (2026-11-27): the shelf price for a member
   and the 30-day lowest price, the latter explained on hover and focus. */
:is(.single-product, .innowine-qv) .arblokk__info-sor {
  margin: 6px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.45;
}

:is(.single-product, .innowine-qv) .arblokk__tipp-jel {
  position: relative;
  cursor: help;
  text-decoration: underline dotted #999;
  text-underline-offset: 3px;
}

:is(.single-product, .innowine-qv) .arblokk__tipp-jel:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

:is(.single-product, .innowine-qv) .arblokk__tipp {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 0;
  z-index: 5;
  inline-size: max-content;
  max-inline-size: 280px;
  padding: 7px 10px;
  border-radius: 2px;
  background-color: #111;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}

:is(.single-product, .innowine-qv) .arblokk__tipp-jel:hover .arblokk__tipp,
:is(.single-product, .innowine-qv) .arblokk__tipp-jel:focus .arblokk__tipp {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

:is(.single-product, .innowine-qv) .arblokk__30nap,
:is(.single-product, .innowine-qv) .arblokk__egyseg {
  margin: 8px 0 0;
  color: #666;
  font-size: 15px;
  line-height: 1.45;
}

:is(.single-product, .innowine-qv) .arblokk__30nap strong {
  color: #111;
  font-weight: 500;
}

/* "Klubárak" and the boxes, one per tier, in one row. */
:is(.single-product, .innowine-qv) .arblokk__klub-cim {
  margin: 22px 0 10px;
  color: #555;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

:is(.single-product, .innowine-qv) .arblokk__szintek {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(.single-product, .innowine-qv) .arblokk__szint {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-inline-size: 0;
  margin: 0;
  padding: 14px 16px 16px;
  border: 1px solid #e3e3e3;
  border-radius: 2px;
  background-color: #fff;
}

/* A promotion on a club box (2026-11-27): only its saving, "−412 Ft" or
   "−4%", small and in the sale's red beside the price (like the big price's
   saving above the boxes). 12px is the site's floor for text. */
:is(.single-product, .innowine-qv) .arblokk__szint-akcio {
  margin-inline-start: 4px;
  color: #b4161b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: 0.15em;
}

:is(.single-product, .innowine-qv) .arblokk__szint-fej {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 6px;
}

:is(.single-product, .innowine-qv) .arblokk__szint-nev {
  color: var(--szint-szoveg, #4a4a4a);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

:is(.single-product, .innowine-qv) .arblokk__te {
  color: #111;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

:is(.single-product, .innowine-qv) .arblokk__szint-ar {
  color: #111;
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}

/* On a sale: what the tier costs without it. */
:is(.single-product, .innowine-qv) .arblokk__szint-elozo {
  margin-block-start: -4px;
  color: #767676;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}

/* A member's own box stands out; the others are there to compare. */
:is(.single-product, .innowine-qv) .arblokk__szint.is-sajat {
  border-color: #111;
  background-color: color-mix(in srgb, var(--szint-sav, #fff) 70%, #fff);
}

/* Silver's band is plain grey, and the design leaves its box white. */
:is(.single-product, .innowine-qv) .arblokk__szint.is-sajat[data-szint="silver"] {
  background-color: #fff;
}

:is(.single-product, .innowine-qv) .arblokk[data-allapot="tag"] .arblokk__szint:not(.is-sajat) .arblokk__szint-ar {
  color: #767676;
}

/* What it takes to reach the tier, as the quick view's rows say it. Flush
   under the box so the pointer can travel into it to click the link. */
:is(.single-product, .innowine-qv) .arblokk__szint.is-hintable {
  cursor: default;
}

:is(.single-product, .innowine-qv) .arblokk__szint.is-hintable:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

:is(.single-product, .innowine-qv) .arblokk__hint {
  position: absolute;
  inset-inline: -1px;
  inset-block-start: calc(100% - 1px);
  z-index: 4;
  padding: 8px 10px;
  border-radius: 0 0 2px 2px;
  background-color: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}

:is(.single-product, .innowine-qv) .arblokk__szint.is-hintable:hover .arblokk__hint,
:is(.single-product, .innowine-qv) .arblokk__szint.is-hintable:focus-within .arblokk__hint {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

:is(.single-product, .innowine-qv) .arblokk .arblokk__hint a,
:is(.single-product, .innowine-qv) .arblokk .arblokk__hint a:hover {
  color: #fff;
  font-weight: 600;
}

/* "Klubárral már … · Jelentkezz be vagy regisztrálj ingyen.", guests only. */
:is(.single-product, .innowine-qv) .arblokk__lab {
  margin: 14px 0 0;
  color: #444;
  font-size: 15px;
  line-height: 1.5;
}

/* No club price: a product taken out of the tiers (párlat, borkóstoló), or
   a sale the tiers cannot go under. */
:is(.single-product, .innowine-qv) .arblokk__info {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-block-start: 18px;
  padding: 16px 18px;
  border: 1px solid #e3e3e3;
  border-radius: 2px;
  background-color: #f7f7f7;
}

:is(.single-product, .innowine-qv) .arblokk__info-ikon {
  flex: none;
  inline-size: 22px;
  block-size: 22px;
  margin-block-start: 1px;
  color: #6b6b6b;
}

:is(.single-product, .innowine-qv) .arblokk__info p {
  color: #333;
  font-size: 15px;
  line-height: 1.55;
}

/* "Az ár minden vásárlónak azonos." on the (i), as the struck list price's
   "Listaár": hover anywhere on the box, or focus the icon. */
:is(.single-product, .innowine-qv) .arblokk__info.has-tipp {
  cursor: default;
}

:is(.single-product, .innowine-qv) .arblokk__info-jel {
  display: flex;
  flex: none;
  border-radius: 50%;
}

:is(.single-product, .innowine-qv) .arblokk__info-jel:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

:is(.single-product, .innowine-qv) .arblokk__info-tipp {
  position: absolute;
  inset-block-end: calc(100% + 7px);
  inset-inline-start: 8px;
  z-index: 4;
  padding: 4px 9px;
  border-radius: 2px;
  background-color: #111;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}

/* The arrow points at the middle of the 22px icon, 18px in from the edge. */
:is(.single-product, .innowine-qv) .arblokk__info-tipp::after {
  content: "";
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 16px;
  border: 5px solid transparent;
  border-block-start-color: #111;
}

:is(.single-product, .innowine-qv) .arblokk__info.has-tipp:hover .arblokk__info-tipp,
:is(.single-product, .innowine-qv) .arblokk__info.has-tipp:focus-within .arblokk__info-tipp {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (width <= 767px) {
  :is(.single-product, .innowine-qv) .arblokk__osszeg {
    font-size: 36px;
  }

  :is(.single-product, .innowine-qv) .arblokk__lista {
    font-size: 17px;
  }
}

@media (width <= 479px) {
  :is(.single-product, .innowine-qv) .arblokk__szintek {
    gap: 6px;
  }

  :is(.single-product, .innowine-qv) .arblokk__szint {
    padding: 10px 10px 12px;
  }

  :is(.single-product, .innowine-qv) .arblokk__szint-nev {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  :is(.single-product, .innowine-qv) .arblokk__te {
    font-size: 10px;
  }

  :is(.single-product, .innowine-qv) .arblokk__szint-ar {
    font-size: 17px;
  }

  :is(.single-product, .innowine-qv) .arblokk__szint-elozo {
    font-size: 12px;
  }
}

/* A club box on hover and focus (2026-11-27): the saving gives way to the
   club price it is off, struck. */
:is(.single-product, .innowine-qv) .arblokk__szint-volt {
  display: none;
  color: #767676;
  font-weight: 400;
}

:is(.single-product, .innowine-qv) .arblokk__szint:is(:hover, :focus-within) .arblokk__szint-volt {
  display: inline;
}

:is(.single-product, .innowine-qv) .arblokk__szint:is(:hover, :focus-within) .arblokk__szint-megt {
  display: none;
}

/* How long the sale lasts, after the label and the saving (2026-11-27). */
:is(.single-product, .innowine-qv) .arblokk__akcio-vege {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}
