/* The banners' newsletter popup (Easy2Rest\Banners\Newsletter). Same look as the banner:
   warm dark ground, gold hairline frame, white + gold headline, the gold button. Loaded
   only on pages that show a newsletter banner, so it is a plain file outside the bundle. */

.e2r-banner__btn--open { gap: 10px; }
.e2r-banner__btn--open svg { flex: none; }

html.e2r-nl-open { overflow: hidden; }

.e2r-nl {
  width: min(520px, calc(100vw - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
  font-family: inherit;
  direction: rtl;
  text-align: right;
}

.e2r-nl::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.e2r-nl__card {
  position: relative;
  box-sizing: border-box;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 40px 40px 32px;
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(227, 180, 7, 0.22) 0%, rgba(227, 180, 7, 0) 55%) padding-box,
    linear-gradient(#17120a, #0b0907) padding-box,
    linear-gradient(to left, #E3B407 0%, #FFEECB 81.975%) border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

/* The site's popup close button (.e2r-popup__close): black disc, white ring, on the corner.
   A child of the dialog, not of the card, so the card's own scrolling can't clip it. */
.e2r-nl__close {
  position: absolute;
  top: -22px;
  right: -22px;
  z-index: 2;
  width: 68px;
  height: 68px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s, transform 0.12s;
}
.e2r-nl__close:hover { filter: brightness(1.1); transform: scale(1.08); }
.e2r-nl__close:active { transform: scale(0.93); }
.e2r-nl__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.e2r-nl p { opacity: 1; }

.e2r-nl__eyebrow {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: #FFEECB;
}

.e2r-nl__title {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
.e2r-nl__title span,
.e2r-nl__title b { display: block; }
.e2r-nl__title b,
.e2r-nl__title--done b {
  font-weight: 800;
  background: linear-gradient(to left, #E3B407 0%, #FFEECB 81.975%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.e2r-nl__title:focus { outline: none; }

.e2r-nl__text {
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.e2r-nl__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 18px 0 0;
}
.e2r-nl__text:not([hidden]) + .e2r-nl__form { margin-top: 0; }

.e2r-nl__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.e2r-nl__field > label {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.e2r-nl__input {
  height: 56px;
  box-sizing: border-box;
  padding: 0 18px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 19px;
  font-weight: 300;
  direction: ltr;
  text-align: right;
}
.e2r-nl__input::placeholder { color: rgba(255, 255, 255, 0.45); }
.e2r-nl__input:focus-visible { outline: 2px solid #E3B407; outline-offset: 2px; }
.e2r-nl__field.is-invalid .e2r-nl__input { border-color: #FF9F7A; }

.e2r-nl__field > .e2r-nl__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: #fff;
  cursor: pointer;
}
.e2r-nl__consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: #E3B407;
  cursor: pointer;
}
.e2r-nl__field.is-invalid > .e2r-nl__consent {
  padding: 12px;
  border-color: #FF9F7A;
  background: rgba(255, 159, 122, 0.08);
}

.e2r-nl__err {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #FF9F7A;
}

/* Hidden from people, filled by bots. */
.e2r-nl__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.e2r-nl__submit {
  width: 100%;
  height: 58px;
  margin-top: 4px;
  font-size: 21px;
  filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 0.55));
}
.e2r-nl__submit:disabled { cursor: progress; opacity: 0.75; }

.e2r-nl__fine {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}
.e2r-nl__fine a { color: #FFEECB; }
.e2r-nl__fine a:hover { color: #E3B407; }

/* After the signup. */
.e2r-nl__step--done {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  text-align: center;
}
.e2r-nl__step[hidden] { display: none; }
.e2r-nl__tick {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(to left, #E3B407 0%, #FFEECB 81.975%);
}
.e2r-nl__title--done { font-size: 34px; }
.e2r-nl__title--done b { display: inline; }
.e2r-nl__step--done .e2r-nl__text { margin-bottom: 28px; font-size: 18px; }
.e2r-nl__back {
  min-width: 200px;
  height: 54px;
  padding: 0 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}
.e2r-nl__back:hover { border-color: #fff; }
.e2r-nl__back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Phones: a sheet rising from the bottom; the close button sits inside its corner. */
@media (max-width: 640px) {
  .e2r-nl {
    width: 100%;
    margin: auto 0 0;
  }
  .e2r-nl__card {
    max-height: calc(100dvh - 24px);
    padding: 64px 20px 30px;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
  }
  .e2r-nl__card::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    width: 44px;
    height: 5px;
    margin-left: -22px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
  }
  .e2r-nl__close {
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
  }
  .e2r-nl__close svg { width: 22px; height: 22px; }
  .e2r-nl__eyebrow { font-size: 15px; }
  .e2r-nl__title { font-size: 26px; }
  .e2r-nl__text { font-size: 16px; margin-bottom: 20px; }
  .e2r-nl__input { height: 54px; font-size: 18px; }
  .e2r-nl__submit { height: 56px; font-size: 20px; }
  .e2r-nl__fine { font-size: 13px; }
  .e2r-nl__title--done { font-size: 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  .e2r-nl[open] .e2r-nl__card { animation: e2r-nl-in 0.22s ease-out; }
  @keyframes e2r-nl-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* The side card's button is narrow (the rail is 280px): a longer button text wraps onto a
   second line instead of spilling out of the fixed-height button. */
.e2r-banner-card__btn[data-e2r-nl-open] {
  height: auto;
  min-height: 46px;
  padding: 10px 16px;
  line-height: 1.25;
  text-align: center;
}

/* Phones: the banner's button text fits one line - a touch smaller, without the arrow; on a
   very narrow screen it may still wrap, so the button grows instead of clipping. */
@media (max-width: 480px) {
  .e2r-banner .e2r-banner__form .e2r-banner__btn--open {
    height: auto;
    min-height: 54px;
    padding: 8px 12px;
    font-size: 17px;
    line-height: 1.25;
    text-align: center;
  }
  .e2r-banner .e2r-banner__form .e2r-banner__btn--open svg { display: none; }
}
