.sign-up-and-save-section {
  position: relative;
  word-break: normal;
  /* fallback background (brand dark) so white text is legible before/without
     a background image; the image layer paints over this when present */
  background-color: #1b0c24;
}

/* ---- Background image layer (full-bleed, behind the content) ---- */
.sign-up-and-save__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.sign-up-and-save__media img,
.sign-up-and-save__media .sign-up-and-save__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* start slightly zoomed + transparent, settle on load */
  transform: scale(1.08);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 1200ms ease, opacity 900ms ease;
}
.sign-up-and-save-section.is-loaded .sign-up-and-save__media img,
.sign-up-and-save-section.is-loaded .sign-up-and-save__media .sign-up-and-save__bg {
  transform: scale(1);
  opacity: 1;
}

/* Dark overlay so the white text stays legible over the image */
.sign-up-and-save-section--has-image .sign-up-and-save__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* ---- Layout: centered content over the image, taller section ---- */
.sign-up-and-save__container {
  position: relative;
  z-index: 1;
  background-color: transparent;
}
.sign-up-and-save-section {
  display: flex;
  align-items: center;
  min-height: 460px;
}
.sign-up-and-save-section--has-image {
  min-height: 500px;
}
.sign-up-and-save-section .sign-up-and-save__container {
  width: 100%;
}
.sign-up-and-save__content {
  box-sizing: border-box;
  text-align: center;
}

/* White text over the dark background / image */
.sign-up-and-save-section .sign-up-and-save__content,
.sign-up-and-save-section .sign-up-and-save__content .block-heading,
.sign-up-and-save-section .sign-up-and-save__content .heading,
.sign-up-and-save-section .sign-up-and-save__content .rich-text,
.sign-up-and-save-section .sign-up-and-save__content .rich-text * {
  color: #ffffff;
}

/* Title — consistent with the other section titles (20px / 500 / 0.2em / upper) */
.sign-up-and-save__content .block-heading,
.sign-up-and-save__content .heading {
  margin: 0 0 12px;
  font-size: 20px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  line-height: 1.3;
}

/* Body copy — centered, balanced */
.sign-up-and-save__content .rich-text,
.sign-up-and-save__content .rich-text p,
.sign-up-and-save__content p {
  max-width: 620px;
  margin: 0 auto 24px;
  font-size: 14px;
  line-height: 1.6;
  text-wrap: balance;
}

/* ---- Form: inline row, transparent bordered input + button (live look) ---- */
.sign-up-and-save__subscription {
  display: flex;
  justify-content: center;
  max-width: 100%;
}
@media (max-width: 959px) {
  .sign-up-and-save__subscription form {
    width: 100%;
  }
}
.sign-up-and-save__inline-form {
  display: flex;
  flex: 0 1 auto;
  gap: 12px;
  justify-content: center;
}
.sign-up-and-save__inline-form .field {
  flex-shrink: 0;
  width: 300px;
  margin-block-end: 0;
  /* the field wrapper inherits the scheme background — force transparent so
     the section background image shows through the input */
  background-color: transparent;
}
@media (max-width: 959px) {
  .sign-up-and-save__inline-form .field {
    width: auto;
    flex: 1;
  }
}

/* Email input — fully transparent in every state, thin light border, white text */
.sign-up-and-save__inline-form .field__input,
.sign-up-and-save__inline-form .field__input:hover,
.sign-up-and-save__inline-form .field__input:focus,
.sign-up-and-save__inline-form .field__input:active,
.sign-up-and-save__inline-form .field__input:-webkit-autofill {
  height: 50px;
  padding: 12px 16px;
  color: #ffffff;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0;
  box-shadow: none;
}
.sign-up-and-save__inline-form .field__input::placeholder {
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
  /* the theme hides the native placeholder (opacity:0) in favour of the
     floating label; we hid that label, so restore the native placeholder */
  opacity: 1;
}
/* hide the theme's animated underline + floating label (use native placeholder,
   left-aligned, with no float transition — matches the live input). */
.sign-up-and-save__inline-form .field::after,
.sign-up-and-save__inline-form .field:hover::after {
  display: none;
}
.sign-up-and-save__inline-form .field__label {
  display: none !important;
}

/* Subscribe button — REST: full white panel + dark label.
   HOVER: the white panel swipes out left -> right to reveal a transparent
   button with a white label (reverse of the featured-collection swipe). */
.sign-up-and-save__inline-form .button,
.sign-up-and-save__inline-form .button:hover,
.sign-up-and-save__inline-form .button:focus,
.sign-up-and-save__inline-form .button:focus-visible,
.sign-up-and-save__inline-form .button:active {
  position: relative;
  flex: 0 0 auto;
  height: 50px;
  padding: 0 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  /* keep the button bg fully transparent in every state — the base .button
     hover style would otherwise reveal the brand pink behind the swipe panel */
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  transition: color 350ms ease;
}
/* white panel — fully covers at rest, slides out the RIGHT edge on hover.
   Motion is always left -> right: on hover the panel exits to the right; on
   leave it re-enters from the LEFT (never reverses back to the right). */
.sign-up-and-save__inline-form .button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #ffffff;
  transform: translateX(0);
  transition: transform 350ms ease;
}
.sign-up-and-save__inline-form .button:hover::before,
.sign-up-and-save__inline-form .button:focus-visible::before {
  transform: translateX(101%);
}
/* Leave: re-enter from the left (armed after first hover so it doesn't run on load) */
.sign-up-and-save__inline-form .button.is-armed:not(:hover)::before {
  animation: newsletter-swipe-in 350ms ease;
}
@keyframes newsletter-swipe-in {
  0% {
    transform: translateX(-101%);
  }
  100% {
    transform: translateX(0);
  }
}
/* label sits above the panel; dark at rest, white once the panel leaves */
.sign-up-and-save__submit-label {
  position: relative;
  z-index: 2;
  color: #1c1b1b;
  transition: color 350ms ease;
}
.sign-up-and-save__inline-form .button:hover .sign-up-and-save__submit-label,
.sign-up-and-save__inline-form .button:focus-visible .sign-up-and-save__submit-label {
  color: #ffffff;
}

/* Validation messaging */
.sign-up-and-save__subscription .field__info {
  display: inline-block;
  line-height: 1.5833;
}
.sign-up-and-save__subscription .field__info--error {
  color: rgb(227 38 25 / 100%);
}
.sign-up-and-save__subscription .field__info > svg {
  margin-inline-end: 4px;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  .sign-up-and-save__media img,
  .sign-up-and-save__media .sign-up-and-save__bg {
    transform: none;
    opacity: 1;
    transition: none;
  }
}
