/* Reuse Clear the Shelf's palette, typography and card/button treatments. */
.newsletter-popup {
  box-sizing: border-box;
  width: min(600px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 56px 40px 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  font-family: var(--font);
  box-shadow: 0 24px 80px rgb(28 46 40 / 20%);
}
.newsletter-popup::backdrop {
  background: rgb(20 36 31 / 50%);
}
.newsletter-popup h2 {
  margin: 0 0 16px;
  color: var(--ink-2);
  font: 800 clamp(28px, 4vw, 34px) / 1.12 var(--font);
  letter-spacing: -.02em;
}
.newsletter-popup .newsletter-description {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
}
.newsletter-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tint);
  color: var(--ink);
  cursor: pointer;
}
.newsletter-close svg {
  display: block;
  width: 20px;
  height: 20px;
}
.newsletter-close:hover {
  background: var(--line);
}
.newsletter-popup :focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
/* Initial focus announces the heading without highlighting an action. */
.newsletter-popup #newsletter-title:focus {
  outline: none;
}
.newsletter-popup iframe {
  display: block;
  width: 100%;
  border: 0;
}
.newsletter-status {
  margin: 18px 0;
  color: var(--muted);
}
.newsletter-status button {
  margin: 16px auto 0;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--cta);
  font: inherit;
  cursor: pointer;
}
#cabinet-newsletter-popup .hs-form {
  font-family: var(--font);
}
#cabinet-newsletter-popup .hs-form-field {
  margin-bottom: 16px;
}
#cabinet-newsletter-popup .hs-form fieldset {
  max-width: none;
}
#cabinet-newsletter-popup .hs-form .input {
  margin: 0;
}
#cabinet-newsletter-popup .hs-email > label,
#cabinet-newsletter-popup .hs-firstname > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#cabinet-newsletter-popup .hs-input:not([type="checkbox"]):not([type="radio"]) {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  height: auto;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 2px 8px rgb(28 46 40 / 3%);
  font: 16px / 1.5 var(--font);
}
#cabinet-newsletter-popup .hs-input::placeholder {
  color: var(--muted);
  opacity: 1;
}
#cabinet-newsletter-popup .hs-submit {
  margin-top: 20px;
}
#cabinet-newsletter-popup .hs-button {
  display: block;
  width: 100%;
  padding: 17px;
  border: 0;
  border-radius: 10px;
  background: var(--cta);
  color: #fff;
  font: 700 17px / 1.5 var(--font);
  text-shadow: none;
  box-shadow: none;
  transition: background .15s;
  cursor: pointer;
}
#cabinet-newsletter-popup .hs-button:hover {
  background: var(--cta-h);
}
#cabinet-newsletter-popup .hs-error-msgs {
  padding: 0;
  margin: 8px 0;
  list-style: none;
  color: #a02b20;
  text-align: left;
  font-size: 14px;
}
#cabinet-newsletter-popup .legal-consent-container,
#cabinet-newsletter-popup .hs-richtext {
  margin-top: 16px;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
}
.newsletter-popup a {
  color: var(--cta);
  text-decoration: underline;
}
#cabinet-newsletter-popup .submitted-message {
  padding: 24px 0;
  color: var(--ink);
  font-size: 20px;
}
html:has(.newsletter-popup[open]) {
  overflow: hidden;
}
@media (max-width: 600px) {
  .newsletter-popup {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 58px 22px 34px;
  }
  .newsletter-popup .newsletter-description {
    font-size: 16px;
    margin-bottom: 22px;
  }
  #cabinet-newsletter-popup .hs-submit {
    margin-top: 24px;
  }
}
