/* Above-the-fold EMI introduction. The card is illustrative, flat and SF branded. */
.premium-home .emi-top-section {
  margin-top: 24px;
}

.premium-home .emi-top-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  align-items: center;
  gap: 36px;
  padding: 24px 44px;
  border-radius: 12px;
  background: #213969;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.premium-home .emi-top-copy,
.premium-home .emi-top-visual {
  min-width: 0;
}

.premium-home .emi-top-copy h2 {
  max-width: 19ch;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.1vw, 43px);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.premium-home .emi-top-offer {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 12px 0 0;
}

.premium-home .emi-top-offer > strong {
  flex-shrink: 0;
  color: #fff;
  font-size: clamp(54px, 5.6vw, 74px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.04em;
  font-variant-numeric: lining-nums tabular-nums;
}

.premium-home .emi-top-offer > span {
  max-width: 13ch;
  color: #e0e9f9;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.3;
}

.premium-home .emi-top-message {
  min-height: 2.7em;
  max-width: 38ch;
  margin: 10px 0 0;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  text-wrap: pretty;
}

.premium-home .emi-top-eligibility {
  max-width: 48ch;
  margin: 6px 0 0;
  color: #d9e4f6;
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.premium-home .emi-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 23px;
  margin-top: 14px;
}

.premium-home .emi-top-actions .emi-top-apply {
  min-height: 46px;
  max-width: 100%;
  gap: 12px;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: #e32629;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.premium-home .emi-top-actions .emi-top-apply:hover {
  background: #c91e23;
}

.premium-home .emi-top-apply > .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.premium-home .emi-top-calculate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-block: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.premium-home .emi-top-calculate:hover {
  color: #cfe8ff;
}

.premium-home .emi-top-actions a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.premium-home .emi-top-terms {
  max-width: 61ch;
  margin: 10px 0 0;
  color: #d4dff1;
  font-size: 12px;
  line-height: 1.6;
  text-wrap: pretty;
}

.premium-home .emi-top-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 16px 32px;
  border-left: 1px solid #50658c;
  perspective: none;
}

.premium-home .emi-top-banner .emi-reference-card,
.premium-home .emi-top-banner:hover .emi-reference-card {
  position: relative;
  display: grid;
  grid-template-rows: 26% 48% 26%;
  width: min(100%, 320px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1.59;
  flex-shrink: 1;
  border: 1px solid #8295b5;
  border-radius: 13px;
  background: #213969;
  box-shadow: none;
  transform: none;
  transform-style: flat;
  transition: none;
  animation: none;
  container-type: inline-size;
  overflow: hidden;
}

.premium-home .emi-top-banner .emi-reference-top {
  min-height: 0;
  height: auto;
  gap: 9px;
  padding: 10px 14px;
}

.premium-home .emi-top-banner .emi-reference-brand {
  min-width: 0;
  gap: 6px;
}

.premium-home .emi-top-banner .emi-reference-brand > img {
  width: clamp(17px, 6cqi, 23px);
  height: clamp(17px, 6cqi, 23px);
  flex-shrink: 0;
}

.premium-home .emi-top-banner .emi-reference-brand > span {
  font-size: clamp(7px, 2.5cqi, 9px);
  line-height: 1.3;
}

.premium-home .emi-top-banner .emi-reference-top > strong {
  font-size: clamp(11px, 4.4cqi, 16px);
}

.premium-home .emi-top-banner .emi-contactless {
  width: clamp(17px, 6.5cqi, 24px);
  height: clamp(17px, 6.5cqi, 24px);
  flex-shrink: 0;
}

.premium-home .emi-top-banner .emi-reference-band {
  min-height: 0;
  height: auto;
  padding: 6px 8px;
}

.premium-home .emi-top-banner .emi-device-grid .icon {
  width: clamp(17px, 6.5cqi, 25px);
  height: clamp(17px, 6.5cqi, 25px);
}

.premium-home .emi-top-banner .emi-chip {
  top: 14%;
  left: 15%;
  width: 14%;
  transform: none;
}

.premium-home .emi-top-banner .emi-reference-bottom {
  min-height: 0;
  padding: 8px 14px;
}

.premium-home .emi-top-banner .emi-reference-bottom > span {
  font-size: clamp(6px, 1.9cqi, 7px);
  letter-spacing: .06em;
}

.premium-home .emi-top-banner .emi-reference-bottom > span > strong {
  font-size: clamp(7px, 2.2cqi, 8px);
}

.premium-home .emi-top-banner .emi-reference-bottom > b {
  font-size: clamp(21px, 7.5cqi, 28px);
}

.premium-home .emi-top-banner .emi-reference-bottom > b > span {
  font-size: clamp(8px, 2.7cqi, 10px);
}

.premium-home .emi-top-card-caption {
  color: #d4dff1;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 1050px) {
  .premium-home .emi-top-banner {
    gap: 25px;
    padding: 22px 30px;
  }

  .premium-home .emi-top-visual {
    padding-left: 23px;
  }

  .premium-home .emi-top-copy h2 {
    font-size: 33px;
  }

  .premium-home .emi-top-offer > strong {
    font-size: 60px;
  }
}

@media (max-width: 760px) {
  .premium-home .emi-top-section {
    margin-top: 18px;
  }

  .premium-home .emi-top-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 20px 26px;
    border-radius: 10px;
  }

  .premium-home .emi-top-copy h2 {
    max-width: 20ch;
    font-size: 31px;
  }

  .premium-home .emi-top-offer {
    margin-top: 10px;
  }

  .premium-home .emi-top-offer > strong {
    font-size: 56px;
  }

  .premium-home .emi-top-offer > span {
    font-size: 18px;
  }

  .premium-home .emi-top-message {
    margin-top: 8px;
    font-size: 16px;
  }

  .premium-home .emi-top-eligibility {
    margin-top: 5px;
    font-size: 13px;
  }

  .premium-home .emi-top-actions {
    gap: 5px 20px;
    margin-top: 10px;
  }

  .premium-home .emi-top-actions .emi-top-apply {
    min-height: 44px;
    padding: 11px 16px;
    font-size: 13px;
  }

  .premium-home .emi-top-calculate {
    font-size: 13px;
  }

  .premium-home .emi-top-terms {
    margin-top: 8px;
  }

  .premium-home .emi-top-visual {
    gap: 8px;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid #50658c;
  }

  .premium-home .emi-top-banner .emi-reference-card {
    width: min(100%, 230px);
  }
}

@media (max-width: 400px) {
  .premium-home .emi-top-banner {
    gap: 14px;
    padding: 18px;
  }

  .premium-home .emi-top-copy h2 {
    font-size: 28px;
  }

  .premium-home .emi-top-offer {
    gap: 13px;
  }

  .premium-home .emi-top-offer > strong {
    font-size: 50px;
  }

  .premium-home .emi-top-offer > span {
    font-size: 16px;
  }

  .premium-home .emi-top-actions {
    column-gap: 13px;
  }

  .premium-home .emi-top-actions .emi-top-apply {
    gap: 7px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .premium-home .emi-top-apply > .icon {
    width: 14px;
    height: 14px;
  }

  .premium-home .emi-top-calculate {
    font-size: 12px;
  }

  .premium-home .emi-top-banner .emi-reference-top {
    padding-inline: 11px;
    gap: 6px;
  }

  .premium-home .emi-top-banner .emi-reference-bottom {
    padding-inline: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-home .emi-top-banner .emi-reference-card::after {
    content: none;
    animation: none;
  }

  .premium-home .emi-top-banner *,
  .premium-home .emi-top-banner *::before,
  .premium-home .emi-top-banner *::after {
    animation: none;
    transition: none;
  }
}
