/* ClickPass · acceso al boletín y formulario bajo demanda. */
.newsletter {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 12px;
  border-radius: 9px;
  background: #f6ebf7;
  color: var(--cp-ink);
  font-family: "Source Sans 3", sans-serif;
}
.newsletter__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #e9cdec;
  color: var(--cp-magenta);
}
.newsletter__copy { min-width: 0; }
.newsletter__title {
  margin: 0 0 3px;
  font: 700 16px/1.18 "Source Sans 3", sans-serif;
  letter-spacing: -.15px;
}
.newsletter__description {
  margin: 0;
  color: #51475c;
  font-size: 15px;
  line-height: 1.25;
}
.newsletter__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--cp-teal);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.newsletter__open:hover,
.newsletter-dialog__return:hover { background: #095a71; color: #fff; }
.newsletter__open:focus-visible,
.newsletter-dialog button:focus-visible,
.newsletter-dialog a:focus-visible {
  outline: 3px solid var(--cp-teal);
  outline-offset: 3px;
}

html.newsletter-is-open,
html.newsletter-is-open body { overflow: hidden; overscroll-behavior: none; }
.newsletter-dialog {
  width: min(580px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--cp-magenta);
  border-radius: 12px;
  background: #fff;
  color: var(--cp-ink);
  box-shadow: 0 18px 65px rgb(8 8 12 / 24%);
  font-family: "Source Sans 3", sans-serif;
}
/* Explicitly hide the shell in browsers that do not support dialog. */
.newsletter-dialog:not([open]) { display: none; }
.newsletter-dialog::backdrop { background: rgb(8 8 12 / 64%); }
.newsletter-dialog__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: 4px 5px 0;
  background: #fff;
}
.newsletter-dialog__close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--cp-muted);
}
.newsletter-dialog__close:hover { background: #f6ebf7; color: var(--cp-magenta); }
.newsletter-dialog__content { position: relative; min-width: 0; }
.newsletter-dialog__loading {
  position: absolute;
  inset: 12px 16px auto;
  margin: 0;
  text-align: center;
  color: var(--cp-muted);
  font-size: 16px;
}
.newsletter-dialog__frame {
  display: block;
  width: 100%;
  height: 540px;
  border: 0;
  background: #fff;
}
.newsletter-dialog__content:not(.is-loaded) .newsletter-dialog__frame { visibility: hidden; }
.newsletter-dialog__foot { padding: 12px 20px 20px; text-align: center; }
.newsletter-dialog__return {
  min-height: 44px;
  width: min(100%, 320px);
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--cp-teal);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.newsletter-dialog__fallback { margin: 12px 0 0; color: var(--cp-muted); font-size: 14px; line-height: 1.35; }
.newsletter-dialog__fallback a { display: inline-block; padding: 5px 0; font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 359px) {
  .newsletter { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; padding: 12px 9px; }
  .newsletter__icon { width: 34px; height: 34px; }
  .newsletter__icon .ic { width: 22px; height: 22px; }
  .newsletter__title { font-size: 15px; }
  .newsletter__description { font-size: 14px; }
  .newsletter__open { min-width: 70px; padding-inline: 11px; font-size: 14px; }
  .newsletter-dialog__foot { padding-inline: 14px; }
}
@media (forced-colors: active) {
  .newsletter { border: 1px solid CanvasText; }
  .newsletter__open, .newsletter-dialog__return, .newsletter-dialog__close { border: 1px solid ButtonText; }
  .newsletter-dialog::backdrop { background: Canvas; opacity: .75; }
}
