body.newsletter-popup-open {
  overflow: hidden;
}

.newsletter-popup-backdrop {
  position: fixed;
  z-index: 275;
  inset: 0;
  opacity: 0;
  background: rgba(2, 14, 9, .42);
  backdrop-filter: blur(8px);
  transition: opacity .3s ease;
}

.newsletter-popup-backdrop.visible {
  opacity: 1;
}

.newsletter-popup {
  position: fixed;
  z-index: 280;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 42px);
  width: min(560px, calc(100vw - 36px));
  max-height: min(780px, calc(100dvh - 36px));
  overflow: auto;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(235, 207, 134, .25);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(50, 196, 137, .15), transparent 34%),
    linear-gradient(150deg, rgba(13, 47, 34, .985), rgba(5, 22, 15, .99));
  box-shadow: 0 34px 100px rgba(0, 0, 0, .52), inset 0 1px 0 rgba(255, 255, 255, .04);
  color: #f4f7f2;
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(.96);
  transform-origin: right bottom;
  transition: opacity .3s ease, transform .42s cubic-bezier(.22, 1, .36, 1);
  isolation: isolate;
}

.newsletter-popup.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.newsletter-popup-glow {
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  top: -150px;
  right: -90px;
  border-radius: 50%;
  background: rgba(235, 207, 134, .11);
  filter: blur(30px);
  pointer-events: none;
}

.newsletter-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235, 207, 134, .18);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  color: #e5ede8;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.newsletter-popup-close:hover {
  transform: rotate(4deg);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(235, 207, 134, .35);
}

.newsletter-popup-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.newsletter-popup-brand {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(235, 207, 134, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.newsletter-popup-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsletter-popup-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #ebcf86;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.newsletter-popup h2 {
  max-width: 470px;
  margin: 0 0 17px;
  color: #f7faf7;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.newsletter-popup-lead,
.newsletter-popup-success p {
  margin: 0;
  color: #b8c9bf;
  font-size: .98rem;
  line-height: 1.68;
}

.newsletter-popup-benefits {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.newsletter-popup-benefits li {
  position: relative;
  padding-left: 28px;
  color: #dbe5df;
  font-size: .9rem;
  line-height: 1.5;
}

.newsletter-popup-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #54d79b;
  font-weight: 900;
}

.newsletter-popup-form > label:first-of-type {
  display: block;
  margin-bottom: 8px;
  color: #eef4f0;
  font-size: .82rem;
  font-weight: 760;
}

.newsletter-popup-input-row input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(235, 207, 134, .22);
  border-radius: 15px;
  outline: 0;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.newsletter-popup-input-row input::placeholder {
  color: #82968a;
}

.newsletter-popup-input-row input:focus {
  border-color: rgba(50, 196, 137, .72);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 4px rgba(50, 196, 137, .1);
}

.newsletter-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.newsletter-consent-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  margin-top: 17px;
  color: #aebfb5;
  font-size: .78rem;
  line-height: 1.55;
  cursor: pointer;
}

.newsletter-consent-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.newsletter-checkmark {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border: 1px solid rgba(235, 207, 134, .36);
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.newsletter-consent-row input:checked + .newsletter-checkmark {
  border-color: #32c489;
  background: #159766;
}

.newsletter-consent-row input:checked + .newsletter-checkmark::after {
  content: "✓";
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
}

.newsletter-consent-row input:focus-visible + .newsletter-checkmark {
  box-shadow: 0 0 0 4px rgba(50, 196, 137, .14);
}

.newsletter-popup-privacy {
  margin: 12px 0 0;
  color: #7f9488;
  font-size: .74rem;
  line-height: 1.5;
}

.newsletter-popup-privacy a {
  color: #d9c17e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.newsletter-popup-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.newsletter-submit {
  min-height: 52px;
}

.newsletter-submit[disabled] {
  cursor: wait;
  opacity: .68;
  transform: none;
}

.newsletter-not-now {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #98aa9f;
  font-weight: 730;
}

.newsletter-not-now:hover {
  color: #fff;
}

.newsletter-popup-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #aabbb1;
  font-size: .77rem;
}

.newsletter-popup-status.error {
  color: #f1a3a3;
}

.newsletter-popup-status.loading {
  color: #ebcf86;
}

.newsletter-popup-success {
  padding: 26px 0 12px;
}

.newsletter-success-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(84, 215, 155, .32);
  border-radius: 22px;
  background: rgba(84, 215, 155, .1);
  color: #67dda5;
  box-shadow: 0 18px 40px rgba(20, 128, 84, .16);
}

.newsletter-success-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="light"] .newsletter-popup {
  border-color: rgba(17, 107, 74, .18);
  background:
    radial-gradient(circle at 100% 0%, rgba(50, 196, 137, .13), transparent 34%),
    linear-gradient(150deg, rgba(255, 255, 252, .99), rgba(238, 246, 241, .99));
  color: #10261a;
  box-shadow: 0 34px 100px rgba(19, 76, 52, .2);
}

[data-theme="light"] .newsletter-popup h2,
[data-theme="light"] .newsletter-popup-form > label:first-of-type,
[data-theme="light"] .newsletter-not-now:hover {
  color: #10261a;
}

[data-theme="light"] .newsletter-popup-lead,
[data-theme="light"] .newsletter-popup-benefits li,
[data-theme="light"] .newsletter-consent-row,
[data-theme="light"] .newsletter-popup-success p {
  color: #536b5e;
}

[data-theme="light"] .newsletter-popup-input-row input {
  border-color: rgba(17, 107, 74, .18);
  background: rgba(255, 255, 255, .78);
  color: #10261a;
}

[data-theme="light"] .newsletter-popup-close {
  border-color: rgba(17, 107, 74, .16);
  background: rgba(17, 107, 74, .035);
  color: #244a37;
}

@media (max-width: 680px) {
  .newsletter-popup-backdrop {
    background: rgba(1, 12, 7, .5);
  }

  .newsletter-popup {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 28px 22px 24px;
    border-radius: 26px;
    transform-origin: center bottom;
  }

  .newsletter-popup-brand {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    border-radius: 15px;
  }

  .newsletter-popup h2 {
    padding-right: 24px;
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .newsletter-popup-benefits {
    margin-block: 18px 22px;
  }

  .newsletter-popup-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .newsletter-not-now {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-popup,
  .newsletter-popup-backdrop,
  .newsletter-popup-close,
  .newsletter-checkmark {
    transition: none !important;
  }
}
