/**
 * Hírlevél gomb: a fejléc fekete sávjának gombja, a mobilmenü sora és a
 * felugró feliratkozó ablak.
 *
 * Az ablak a Selection értesítő ablakának (innowine-selection-ertesito.css)
 * kinézetét követi, saját osztályokkal, mert az a fájl csak a Selection
 * oldalakon és a főoldalon töltődik be. px, mert az ACSS miatt 1rem = 10px.
 */

/* ------------------------------------------------- a fekete sáv gombja */

/* „Blog | Hírlevél | telefon | e-mail”: a gomb és az utána rajzolt
   elválasztó a csoport saját flex-eleme, mint a Blog link. */
.header__contact .iw-hl-hely {
  display: contents;
}

.header__contact .iw-hl-gomb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}

.header__contact .iw-hl-gomb__icon {
  flex: none;
}

.header__contact .iw-hl-gomb:hover,
.header__contact .iw-hl-gomb:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobilon a menüben van, mint a Blog (a hamburger 991px alatt jelenik meg). */
@media (width <= 991px) {
  .header__contact .iw-hl-hely {
    display: none;
  }
}

/* ------------------------------------------------- a mobilmenü sora */

.offcanvas__item .iw-hl-gomb--menu {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  line-height: inherit;
  text-align: start;
}

.offcanvas__item .iw-hl-gomb--menu:hover,
.offcanvas__item .iw-hl-gomb--menu:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------------------------------------------------------- a dialógus */

.iw-hl {
  box-sizing: border-box;
  inline-size: min(520px, calc(100vw - 32px));
  max-inline-size: none;
  max-block-size: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #111;
  box-shadow: 0 24px 64px rgb(17 18 22 / 28%);
  font-family: inherit;
  text-align: start;
}

.iw-hl::backdrop {
  background: rgb(17 18 22 / 72%);
  backdrop-filter: blur(3px);
}

html:has(.iw-hl[open]) {
  overflow: hidden;
}

.iw-hl:focus {
  outline: none;
}

.iw-hl :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline-color: #B3161E;
}

.iw-hl[open] {
  animation: iw-hl-in .22s cubic-bezier(.2, .7, .2, 1);
}

@keyframes iw-hl-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .iw-hl[open] {
    animation: none;
  }
}

.iw-hl__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px 40px 32px;
}

@media (width <= 480px) {
  .iw-hl__inner {
    padding: 36px 20px 24px;
  }
}

.iw-hl .iw-hl__close {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6b6b6b;
  cursor: pointer;
}

.iw-hl .iw-hl__close:hover,
.iw-hl .iw-hl__close:focus-visible {
  background: #f3f0ea;
  color: #111;
}

.iw-hl .iw-hl__close:focus-visible {
  outline: 2px solid #B3161E;
  outline-offset: 0;
}

.iw-hl__eyebrow {
  color: #B3161E;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.iw-hl .iw-hl__title {
  margin: 0;
  padding-inline-end: 28px;
  color: #111;
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.iw-hl .iw-hl__lead {
  margin: 0 0 8px;
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------------------------------------- az űrlap: egymás alatti sorok */

.iw-form--hl fieldset {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.iw-form--hl .iw-hl__input {
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: 48px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #111;
  border-radius: var(--iw-btn-radius, 0);
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 15px;
}

/* A Selection értesítő pipája: halvány arany dobozban, hogy a kötelező
   hozzájárulástól külön, választható tételnek látsszon. */
.iw-form--hl .iw-hl__sel {
  padding: 14px 16px;
  border: 1px solid #e6dbc2;
  border-radius: var(--iw-kartya-radius, 6px);
  background: #faf6ec;
}

.iw-form--hl .iw-hl__sel .ff-el-form-check-label {
  color: #4a4a4a;
}

.iw-form--hl .iw-hl__sel .ff_t_c strong {
  display: block;
  margin-block-end: 2px;
  color: #6f540c;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}

.iw-form--hl .iw-hl__sel input[type="checkbox"] {
  accent-color: #8a6a12;
}

.iw-form--hl .ff_submit_btn_wrapper {
  display: flex;
  margin: 0;
}

.iw-form--hl .ff-btn.iw-hl__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  min-block-size: 48px;
  margin: 0;
  padding: 14px 22px;
  border: 1px solid #B3161E;
  border-radius: var(--iw-btn-radius, 0);
  background-color: #B3161E;
  background-image: linear-gradient(#7d0f15, #7d0f15);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  box-shadow: none;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-size .4s cubic-bezier(.2, .7, .2, 1), border-color .25s ease;
}

.iw-form--hl .ff-btn.iw-hl__submit:hover,
.iw-form--hl .ff-btn.iw-hl__submit:focus-visible {
  border-color: #7d0f15;
  background-size: 100% 100%;
  color: #fff;
  opacity: 1;
}

.iw-form--hl .ff-btn.iw-hl__submit:focus-visible {
  outline: 2px solid #B3161E;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .iw-form--hl .ff-btn.iw-hl__submit {
    transition: none;
  }
}

.iw-form--hl .iw-form__note {
  margin: 0;
}
