:root {
  --offers-text: #111827;
  --offers-muted: #5f6b7a;
  --offers-green: #4fbd4f;
  --offers-green-dark: #3fa63f;
  --offers-focus: rgba(11, 151, 63, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.offers-page {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--offers-text);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.offers-page a {
  color: inherit;
  text-decoration: none;
}

body.offers-page button,
body.offers-page input {
  font: inherit;
}

body.offers-page img {
  display: block;
  max-width: 100%;
}

.offers-benefits-page {
  padding: 38px 0 24px;
}

.offers-benefits {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.offers-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #9aa2ae;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.offers-breadcrumbs a {
  text-decoration: underline;
  text-decoration-color: #c8cdd4;
  text-underline-offset: 3px;
}

.offers-breadcrumbs .material-icons-round {
  color: #b8bec7;
  font-size: 17px;
}

.offers-benefits__intro {
  margin: 36px 0 84px;
  text-align: left;
}

.offers-benefits__intro h1 {
  margin: 0;
  color: #252d3b;
  font-size: clamp(38px, 4.2vw, 50px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.offers-benefits__panel {
  display: flex;
  flex-direction: column;
  gap: clamp(68px, 7.5vw, 94px);
}

.benefit-tile {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  align-items: center;
  column-gap: clamp(58px, 7vw, 92px);
  min-height: 300px;
}

.benefit-tile__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1042 / 596;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  isolation: isolate;
}

.benefit-tile__media .benefit-tile__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* Blend the pale generated canvas into the page without altering the artwork. */
.benefit-tile__media::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      rgba(255, 255, 255, 0.92) 2.5%,
      rgba(255, 255, 255, 0) 10%,
      rgba(255, 255, 255, 0) 90%,
      rgba(255, 255, 255, 0.92) 97.5%,
      #fff 100%
    ),
    linear-gradient(
      180deg,
      #fff 0%,
      rgba(255, 255, 255, 0.92) 2.5%,
      rgba(255, 255, 255, 0) 10%,
      rgba(255, 255, 255, 0) 90%,
      rgba(255, 255, 255, 0.92) 97.5%,
      #fff 100%
    );
}

.benefit-tile__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 6px 0 0;
}

.benefit-tile__value {
  display: none;
}

.benefit-tile h2 {
  max-width: 460px;
  margin: 0;
  color: #252d3b;
  font-size: clamp(31px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.benefit-tile p {
  max-width: 440px;
  margin: 27px 0 0;
  color: #555f6e;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.benefit-tile__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
}

.benefit-tile__button,
.benefit-tile__coupon,
.benefit-tile__details {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border-radius: 8px;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
  font-synthesis: none;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.benefit-tile__button,
.benefit-tile__coupon {
  border: 1px solid var(--offers-green);
  background: var(--offers-green);
  color: #fff;
}

.benefit-tile__details {
  border: 1px solid #d8dee7;
  background: #fff;
  color: #252d3b;
}

body.offers-page a.benefit-tile__button {
  color: #fff;
}

body.offers-page .benefit-tile__button,
body.offers-page .benefit-tile__coupon,
body.offers-page .benefit-tile__details {
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

.benefit-tile__coupon-label {
  font: inherit;
  letter-spacing: inherit;
}

.benefit-tile__button:hover,
.benefit-tile__coupon:hover,
.benefit-tile__button:focus-visible,
.benefit-tile__coupon:focus-visible {
  background: var(--offers-green-dark);
  border-color: var(--offers-green-dark);
  transform: translateY(-1px);
}

.benefit-tile__details:hover,
.benefit-tile__details:focus-visible {
  border-color: #a8d9a8;
  background: #f3fbf3;
  color: #277b2d;
  transform: translateY(-1px);
}

.benefit-tile__button:focus-visible,
.benefit-tile__coupon:focus-visible,
.benefit-tile__details:focus-visible {
  outline: 3px solid var(--offers-focus);
  outline-offset: 3px;
}

.benefit-tile__coupon.is-copied {
  background: var(--offers-green-dark);
}

.benefit-tile__coupon .material-icons-round {
  font-size: 19px;
}

.offers-copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body.offers-modal-open {
  overflow: hidden !important;
}

.offer-details-modal[hidden] {
  display: none !important;
}

.offer-details-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.offer-details-modal.is-open {
  opacity: 1;
}

.offer-details-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.52);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.offer-details-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 40px;
  border: 1px solid #e2e7ed;
  border-radius: 22px;
  background: #fff;
  color: #252d3b;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.24);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 0.18s ease, transform 0.18s ease;
  overscroll-behavior: contain;
}

.offer-details-modal.is-open .offer-details-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.offer-details-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #dce3eb;
  border-radius: 12px;
  background: #fff;
  color: #252d3b;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.offer-details-modal__close:hover {
  border-color: #cbd3dd;
  background: #f5f7f9;
}

.offer-details-modal__close:focus-visible,
.offer-details-modal__confirm:focus-visible,
.offer-details-modal__action:focus-visible {
  outline: 3px solid var(--offers-focus);
  outline-offset: 3px;
}

.offer-details-modal__close .material-icons-round {
  font-size: 22px;
}

.offer-details-modal__eyebrow {
  margin: 0 64px 12px 0;
  color: #358f3b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-details-modal h2 {
  max-width: 580px;
  margin: 0;
  color: #252d3b;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.offer-details-modal__intro {
  max-width: 600px;
  margin: 18px 0 0;
  color: #566171;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.offer-details-modal__sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid #e5e9ee;
}

.offer-details-modal__sections h3 {
  margin: 0 0 14px;
  color: #252d3b;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.offer-details-modal__sections ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-details-modal__sections li {
  position: relative;
  padding-left: 23px;
  color: #566171;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.offer-details-modal__sections li::before {
  content: "check";
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--offers-green);
  font-family: "Material Icons Round";
  font-size: 17px;
  font-weight: normal;
  line-height: 1;
}

.offer-details-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
}

.offer-details-modal__confirm,
.offer-details-modal__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 8px;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.offer-details-modal__confirm {
  border: 1px solid #dce3eb;
  background: #f5f7f9;
  color: #252d3b;
}

.offer-details-modal__confirm:hover {
  border-color: #cbd3dd;
  background: #eceff3;
}

body.offers-page a.offer-details-modal__action,
body.offers-page a.offer-details-modal__action:visited {
  min-width: 164px;
  border: 1px solid var(--offers-green);
  background: var(--offers-green);
  color: #fff;
}

body.offers-page a.offer-details-modal__action:hover,
body.offers-page a.offer-details-modal__action:active {
  border-color: var(--offers-green-dark);
  background: var(--offers-green-dark);
  color: #fff;
}

.offer-details-modal__action[hidden] {
  display: none;
}

/* Match the reference flow: promotions first, then the regular site footer. */
.offer-steps,
.offers-faq-section,
.offers-trust-strip,
.offers-cta-block {
  display: none !important;
}

body.offers-page .site-footer.site-footer--directory {
  margin-top: clamp(78px, 9vw, 126px) !important;
}

@media (max-width: 900px) {
  .offers-benefits {
    width: min(720px, calc(100% - 40px));
  }

  .offers-benefits__intro {
    margin: 30px 0 64px;
  }

  .offers-benefits__panel {
    gap: 70px;
  }

  .benefit-tile {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    min-height: 0;
  }

  .benefit-tile__media {
    width: min(620px, 100%);
    justify-self: center;
  }

  .benefit-tile__content {
    width: min(620px, 100%);
    justify-self: center;
  }

  .benefit-tile h2,
  .benefit-tile p {
    max-width: 100%;
  }

  .benefit-tile p {
    margin-top: 18px;
  }

  .benefit-tile__actions {
    margin-top: 25px;
  }
}

@media (max-width: 640px) {
  body.home-page.offers-page {
    padding-top: 74px !important;
    overflow-x: clip;
  }

  .offers-benefits-page {
    padding-top: 18px;
  }

  .offers-benefits {
    width: calc(100% - 28px);
  }

  .offers-breadcrumbs {
    font-size: 12px;
  }

  .offers-benefits__intro {
    margin: 24px 0 46px;
  }

  .offers-benefits__intro h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .offers-benefits__panel {
    gap: 58px;
  }

  .benefit-tile {
    gap: 20px;
  }

  .benefit-tile h2 {
    font-size: clamp(27px, 8.3vw, 34px);
  }

  .benefit-tile p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.52;
  }

  .benefit-tile__actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 22px;
  }

  .benefit-tile__button,
  .benefit-tile__coupon {
    width: 100%;
    min-height: 52px;
  }

  .benefit-tile__details {
    min-height: 52px;
  }

  .offer-details-modal {
    align-items: end;
    padding: 12px;
  }

  .offer-details-modal__dialog {
    max-height: calc(100dvh - 24px);
    padding: 30px 20px 22px;
    border-radius: 20px;
  }

  .offer-details-modal__close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .offer-details-modal__eyebrow {
    margin-right: 52px;
  }

  .offer-details-modal h2 {
    padding-right: 36px;
    font-size: clamp(28px, 8vw, 34px);
  }

  .offer-details-modal__intro {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.55;
  }

  .offer-details-modal__sections {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 22px;
    padding-top: 22px;
  }

  .offer-details-modal__footer {
    margin-top: 24px;
  }

  .offer-details-modal__confirm,
  .offer-details-modal__action {
    flex: 1 1 0;
    min-width: 0;
  }

  body.offers-page .site-footer.site-footer--directory {
    margin-top: 68px !important;
  }
}

@media (max-width: 390px) {
  .benefit-tile__actions {
    grid-template-columns: 1fr;
  }

  .benefit-tile__details {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .benefit-tile__button,
  .benefit-tile__coupon,
  .benefit-tile__details,
  .offer-details-modal,
  .offer-details-modal__dialog {
    transition: none;
  }
}
