body[class*="page--personal-"] .atbank-content {
  width: min(calc(100% - 48px), 1240px);
  margin: clamp(42px, 6vw, 76px) auto;
}

.atbank-product-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 340px;
  margin: 0 0 clamp(38px, 5vw, 62px);
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid #d9e2dd;
  border-radius: 18px;
  background: linear-gradient(115deg, #f1f6f2 0%, #f5f7f4 62%, #f2e4d7 100%);
}

.atbank-product-hero::after {
  position: absolute;
  right: -156px;
  bottom: -295px;
  width: 480px;
  height: 480px;
  border: 1px solid rgb(161 81 27 / 12%);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgb(161 81 27 / 3%), 0 0 0 88px rgb(161 81 27 / 2%);
  content: "";
  pointer-events: none;
}

.atbank-product-hero__copy,
.atbank-product-hero__art {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.atbank-product-hero__copy h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 4.2vw, 4rem);
}

.atbank-product-hero__copy > p:last-child {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(1.03rem, 1.35vw, 1.2rem);
}

.atbank-product-hero__art {
  display: grid;
  min-height: 260px;
  place-items: center;
}

.atbank-product-hero__art img {
  display: block;
  width: min(100%, 490px);
  height: auto;
  filter: drop-shadow(0 20px 26px rgb(18 60 50 / 10%));
}

.atbank-product-hero__art--photo {
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
}

.atbank-product-hero__art--photo img {
  width: 100%;
  height: clamp(300px, 32vw, 410px);
  object-fit: cover;
  object-position: center 54%;
  filter: none;
}

.atbank-product-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: 0;
}

.atbank-product-section {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #d9e2dd;
  border-radius: 16px;
  background: #f1f6f2;
}

.atbank-product-section h2 {
  margin: 0 0 12px;
}

.atbank-product-section p,
.atbank-product-section li {
  max-width: none;
}

.atbank-product-section > :last-child {
  margin-bottom: 0;
}

body.page--personal-checking-debit-cards .debit-atm-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin: clamp(34px, 5vw, 62px) 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid #d9e2dd;
  border-radius: 18px;
  background: linear-gradient(120deg, #f1f6f2 0%, #f4e9df 100%);
}

body.page--personal-checking-debit-cards .debit-atm-feature__media {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 14px;
  background: #1d5949;
  box-shadow: 0 18px 40px rgb(18 60 50 / 14%);
}

body.page--personal-checking-debit-cards .debit-atm-feature__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.page--personal-checking-debit-cards .debit-atm-feature__copy {
  max-width: 540px;
}

body.page--personal-checking-debit-cards .debit-atm-feature__eyebrow {
  margin: 0 0 12px;
  color: #123c32;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.page--personal-checking-debit-cards .debit-atm-feature__copy h2 {
  margin: 0 0 14px;
  color: #192b26;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -.035em;
  line-height: 1.12;
}

body.page--personal-checking-debit-cards .debit-atm-feature__copy > p:not(.debit-atm-feature__eyebrow) {
  color: #61736d;
  line-height: 1.7;
}

body.page--personal-checking-debit-cards .debit-atm-feature__safety {
  padding: 14px 16px;
  border-left: 3px solid #7fa58f;
  border-radius: 0 8px 8px 0;
  background: rgb(255 255 255 / 72%);
}

body.page--personal-checking-debit-cards .debit-atm-feature__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 4px;
  padding: 11px 20px;
  border-radius: 6px;
  background: #123c32;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

body.page--personal-checking-debit-cards .debit-atm-feature__link:hover,
body.page--personal-checking-debit-cards .debit-atm-feature__link:focus-visible {
  background: #164537;
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Debit cards page: give the legacy content a consistent, compact page rhythm. */
body.page--personal-checking-debit-cards > .page-block {
  padding: clamp(38px, 5vw, 68px) 0;
}

body.page--personal-checking-debit-cards > .page-block:first-of-type {
  padding-top: clamp(30px, 4vw, 54px);
  padding-bottom: clamp(28px, 3.5vw, 46px);
}

body.page--personal-checking-debit-cards > .page-block:first-of-type .container-fluid {
  width: min(calc(100% - 48px), 1280px);
  max-width: 1280px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid #edf3ef;
  border-radius: 22px;
  background: linear-gradient(120deg, #f1f6f2 0%, #f5ece4 100%);
  box-shadow: 0 18px 48px rgb(18 60 50 / 7%);
}

body.page--personal-checking-debit-cards > .page-block:first-of-type .col--text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  max-width: none;
  margin: 0;
}

body.page--personal-checking-debit-cards > .page-block:first-of-type h1 {
  grid-column: 1 / -1;
  max-width: 850px;
  margin: 0 0 4px;
  color: #241a15;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}

body.page--personal-checking-debit-cards > .page-block:first-of-type .col--text > p {
  height: 100%;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgb(139 98 74 / 15%);
  border-radius: 12px;
  background: rgb(255 255 255 / 78%);
  color: #67574d;
  line-height: 1.65;
}

body.page--personal-checking-debit-cards > .page-block:first-of-type .col--text > p strong {
  display: block;
  margin-bottom: 4px;
  color: #573e30;
}

body.page--personal-checking-debit-cards > .page-block:nth-of-type(2) {
  padding-top: 24px;
  padding-bottom: clamp(38px, 5vw, 68px);
}

body.page--personal-checking-debit-cards > .page-block:nth-of-type(2) .container-fluid {
  width: min(calc(100% - 48px), 1280px);
  max-width: 1280px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid #edf3ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgb(18 60 50 / 6%);
}

body.page--personal-checking-debit-cards > .page-block:nth-of-type(2) .row {
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
}

body.page--personal-checking-debit-cards > .page-block:nth-of-type(2) .col--text {
  margin: 0;
}

body.page--personal-checking-debit-cards > .page-block:nth-of-type(2) .col--text > :last-child {
  margin-bottom: 0;
}

body.page--personal-checking-debit-cards > .page-block:nth-of-type(2) .col--image {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
}

body.page--personal-checking-debit-cards > .page-block:nth-of-type(2) .col--image img {
  display: block;
  width: 100%;
  height: clamp(280px, 31vw, 390px);
  object-fit: cover;
}

body.page--personal-checking-debit-cards #page-block__13669 {
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid #edf3ef;
  border-radius: 20px;
  background: #f5f7f4;
}

body.page--personal-checking-debit-cards #page-block__13669 .col--text {
  flex: 0 0 100%;
  max-width: 100%;
  margin: 0 0 26px;
}

body.page--personal-checking-debit-cards #page-block__13669 .col--text h2 {
  margin-bottom: 10px;
}

body.page--personal-checking-debit-cards #page-block__13669 .col--grid {
  flex: 0 0 100%;
  max-width: 100%;
  margin: 0;
}

body.page--personal-checking-debit-cards #page-block__13669 .row--inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

body.page--personal-checking-debit-cards #page-block__13669 .row--inner > .col {
  max-width: none;
  margin: 0 !important;
  padding: 0;
}

body.page--personal-checking-debit-cards #page-block__13669 .page-block-result--grid {
  min-height: 100%;
  padding: 24px;
  border-color: #eadfd5;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

body.page--personal-checking-debit-cards #page-block__13669 .card__text h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

body.page--personal-checking-debit-cards #page-block__13669 .card__text p:last-child {
  margin-bottom: 0;
}

body.page--personal-checking-debit-cards .debit-atm-feature {
  width: min(calc(100% - 48px), 1280px);
  margin: clamp(26px, 3vw, 38px) auto clamp(38px, 5vw, 64px);
}

body.page--personal-checking-debit-cards > .page-block:nth-of-type(5),
body.page--personal-checking-debit-cards > .page-block:nth-of-type(6) {
  width: min(calc(100% - 48px), 1280px);
  margin-right: auto;
  margin-left: auto;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid #edf3ef;
  border-radius: 18px;
  background: #fff;
}

body.page--personal-checking-debit-cards > .page-block:nth-of-type(5) {
  margin-bottom: 24px;
  background: #f5f7f4;
}

body.page--personal-checking-debit-cards > .page-block:nth-of-type(5) .container-fluid,
body.page--personal-checking-debit-cards > .page-block:nth-of-type(6) .container-fluid {
  max-width: 100%;
}

body.page--personal-checking-debit-cards > .page-block:nth-of-type(5) .col--text,
body.page--personal-checking-debit-cards > .page-block:nth-of-type(6) .col--text {
  max-width: 920px;
  margin: 0 auto;
}

body.page--personal-checking-debit-cards > .page-block:nth-of-type(6) .col--text > p:has(a.btn-primary),
body.page--personal-checking-debit-cards > .page-block:nth-of-type(6) .col--text > p:has(a.btn-secondary) {
  display: inline-block;
  margin: 8px 12px 0 0;
}

body.page--personal-checking-debit-cards > .page-block:nth-of-type(7) {
  padding-top: 20px;
}

body.page--personal-checking-debit-cards > .page-block:nth-of-type(7) .container-fluid {
  width: min(calc(100% - 48px), 1000px);
  max-width: 1000px;
}

@media (max-width: 900px) {
  .atbank-product-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, .9fr);
    gap: 24px;
    padding: 32px;
  }
}

@media (max-width: 680px) {
  body[class*="page--personal-"] .atbank-content {
    width: min(calc(100% - 32px), 1240px);
    margin: 32px auto 48px;
  }

  .atbank-product-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    margin-bottom: 34px;
    padding: 24px 20px 18px;
    border-radius: 14px;
  }

  .atbank-product-hero__copy h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .atbank-product-hero__art {
    min-height: 0;
    max-height: 245px;
    overflow: hidden;
  }

  .atbank-product-hero__art img {
    width: min(100%, 350px);
  }

  .atbank-product-hero__art--photo img {
    width: 100%;
    height: 245px;
  }

  .atbank-product-sections {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .atbank-product-section {
    padding: 22px 20px;
  }

  body.page--personal-checking-debit-cards .debit-atm-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin: 30px 0;
    padding: 18px;
    border-radius: 14px;
  }

  body.page--personal-checking-debit-cards .debit-atm-feature__media img {
    aspect-ratio: 4 / 3;
  }

  body.page--personal-checking-debit-cards > .page-block {
    padding: 30px 0;
  }

  body.page--personal-checking-debit-cards > .page-block:first-of-type .container-fluid,
  body.page--personal-checking-debit-cards > .page-block:nth-of-type(2) .container-fluid,
  body.page--personal-checking-debit-cards #page-block__13669,
  body.page--personal-checking-debit-cards > .page-block:nth-of-type(5),
  body.page--personal-checking-debit-cards > .page-block:nth-of-type(6) {
    width: min(calc(100% - 32px), 1280px);
    padding: 22px 18px;
    border-radius: 14px;
  }

  body.page--personal-checking-debit-cards > .page-block:first-of-type .col--text {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.page--personal-checking-debit-cards > .page-block:first-of-type h1 {
    grid-column: auto;
  }

  body.page--personal-checking-debit-cards > .page-block:first-of-type .col--text > p {
    padding: 15px 16px;
  }

  body.page--personal-checking-debit-cards > .page-block:nth-of-type(2) .col--image img {
    height: 230px;
  }

  body.page--personal-checking-debit-cards #page-block__13669 .row--inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.page--personal-checking-debit-cards #page-block__13669 .page-block-result--grid {
    padding: 18px;
  }

  body.page--personal-checking-debit-cards .debit-atm-feature {
    width: min(calc(100% - 32px), 1280px);
    margin: 24px auto 32px;
    padding: 16px;
  }

  body.page--personal-checking-debit-cards > .page-block:nth-of-type(7) {
    padding-top: 12px;
  }

  body.page--personal-checking-debit-cards > .page-block:nth-of-type(7) .container-fluid {
    width: min(calc(100% - 32px), 1000px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atbank-product-hero *,
  .atbank-product-hero *::before,
  .atbank-product-hero *::after {
    scroll-behavior: auto !important;
  }
}
