/* stylelint-disable selector-class-pattern -- AEM class names kept for DOM/CSS parity with revampedncproducts */
/* stylelint-disable no-descending-specificity -- AEM nested card selectors intentionally share element tags */

/* new-connection-a — parity with AEM revampedncproducts + sansuilangpopup */

.new-connection-a {
  background: #f5f5f5;
}

.new-connection-a .new-connection-a-inner {
  background: #f5f5f5;
}

/* component-header authoring toggle: .cmp-tabs__tablist sets display:flex
   unconditionally further down, which would override the browser's default
   [hidden]{display:none} rule (author CSS beats the UA stylesheet) — same fix
   pattern as new-connection-b's error-container. */
.new-connection-a .cmp-tabs__tablist[hidden] {
  display: none !important;
}

.new-connection-a .new-connection-a-heading,
.new-connection-a h4 {
  width: 90%;
  margin: 0 auto;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: #444;
  padding-top: 30px;
}

/* <span> can't actually be authored in this project's content model (Word/Google Docs/
   Universal Editor rich text has no way to produce an arbitrary HTML tag — typing
   "<span>" literally just renders as visible text). Bold formatting is what's
   authorable, and it becomes <strong> — same convention as .section-heading strong in
   styles/styles.css. span kept too in case markup is ever hand-authored via HTML. */
.new-connection-a h4 span,
.new-connection-a h4 strong,
.new-connection-a .new-connection-a-heading span,
.new-connection-a .new-connection-a-heading strong {
  color: #f04c23;
}

/* Optional — only rendered at all when authored, so no [hidden]/display toggle needed. */
.new-connection-a .new-connection-a-description {
  width: 90%;
  margin: 0 auto 1rem;
  text-align: center;
  font-size: 17px;
  font-weight: 400;
  color: #666;
}

.new-connection-a .cmp-tabs__tablist {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  gap: 2rem;
}

.new-connection-a .cmp-tabs__tab {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  cursor: default;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.new-connection-a .cmp-tabs__tab--active {
  border: none;
  color: #444;
  cursor: pointer;
  pointer-events: auto;
}

.new-connection-a .cmp-tabs__tab:nth-child(1),
.new-connection-a .cmp-tabs__tab--active:nth-child(1) {
  position: relative;
}

.new-connection-a .cmp-tabs__tab:nth-child(1)::before,
.new-connection-a .cmp-tabs__tab--active:nth-child(1)::before {
  content: "01";
  height: 1rem;
  width: 1rem;
  padding: 14px;
  border-radius: 50%;
  font-weight: 400;
  margin-right: 1rem;
  background-color: #fff;
  color: #c4c4c4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.new-connection-a .cmp-tabs__tab:nth-child(1)::after,
.new-connection-a .cmp-tabs__tab--active:nth-child(1)::after {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  padding: 1.8rem;
  border: 1px solid #dfdfdf;
  border-radius: 50%;
  position: absolute;
  left: 8px;
  top: -13px;
  background: transparent;
  box-sizing: border-box;
}

.new-connection-a .cmp-tabs__tab:nth-child(2)::before,
.new-connection-a .cmp-tabs__tab:nth-child(3)::before {
  content: "02";
  height: 1rem;
  width: 1rem;
  padding: 14px;
  border-radius: 50%;
  font-weight: 400;
  margin-right: 1rem;
  background-color: #bdbdbd;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.new-connection-a .cmp-tabs__tab:nth-child(3)::before {
  content: "03";
}

.new-connection-a .cmp-tabs__tab:nth-child(2),
.new-connection-a .cmp-tabs__tab:nth-child(3) {
  position: relative;
}

.new-connection-a .cmp-tabs__tab:nth-child(2)::after,
.new-connection-a .cmp-tabs__tab:nth-child(3)::after {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  padding: 1.8rem;
  border: 1px solid #dfdfdf;
  border-radius: 50%;
  position: absolute;
  left: 8px;
  top: -13px;
  background: transparent;
  box-sizing: border-box;
}

.new-connection-a .cmp-tabs__tab--active:nth-child(1)::before,
.new-connection-a .cmp-tabs__tab--active:nth-child(2)::before,
.new-connection-a .cmp-tabs__tab--active:nth-child(3)::before {
  background-color: #f04c23;
  color: #fff;
}

.new-connection-a .container--select-product-container {
  width: 80%;
  margin: 1rem auto 0;
  padding-bottom: 4rem;
  position: relative;
}

.new-connection-a .new-connection-revamped-product-container.swiper {
  padding-bottom: 55px;
}

.new-connection-a .new-connection-revamped-product-container .swiper-pagination {
  bottom: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.new-connection-a .swiper-pagination-bullet {
  background: #202020;
  opacity: 0.5;
  height: 8px;
  width: 8px;
}

.new-connection-a .swiper-pagination-bullet-active {
  background-color: transparent !important;
  opacity: 1;
  border: 2px solid #f04c23;
  height: 10px;
  width: 10px;
}

.new-connection-a .swiper-button-prev,
.new-connection-a .swiper-button-next {
  background-color: #f04c23;
  border-radius: 50%;
  color: #fff;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  top: 70%;
  padding: 10px;
  display: none;
}

.new-connection-a .swiper-button-disabled {
  opacity: 1 !important;
  background-color: #fff !important;
  box-shadow: 0 1px 15px 1px #96919133;
}

.new-connection-a .swiper-button-prev::after,
.new-connection-a .swiper-button-next::after {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-left: 4px;
}

.new-connection-a .swiper-button-next::after {
  transform: rotate(-135deg);
  margin-left: 0;
  margin-right: 4px;
}

.new-connection-a .swiper-button-disabled::after {
  border-color: #333;
}

.new-connection-a .swiper-button-prev {
  left: 44%;
}

.new-connection-a .swiper-button-next {
  right: 44%;
}

.new-connection-a .hideCarouselBtn .swiper-button-next,
.new-connection-a .hideCarouselBtn .swiper-button-prev {
  display: none;
}

.new-connection-a .getconnection-select-product.swiper-slide {
  padding: 1rem;
  display: flex;
  height: auto;
}

.new-connection-a .selectproduct {
  width: 100%;
  height: 100%;

  /* padding-top reserves the space for the blurb ribbon that pokes out above
     the card. This must be padding, not margin, on .Select-Product-Teaser:
     margin-top on that child has no border/padding above it to stop
     collapsing, so it collapses through and isn't counted in the swiper
     slide's height calc — causing the card to render taller than the slide
     reserves for it, which then gets clipped by the swiper's overflow:hidden
     and makes the pagination/GST text overlap the card. */
  padding-top: 60px;
  box-sizing: border-box;
}

/* Product card */
.new-connection-a .Select-Product-Teaser {
  box-shadow: 0 1px 15px 1px #96919133;
  border: 2px solid #d5cece3d;
  width: 100%;
  height: 100%;
  min-height: 350px;
  background: #fff;
  padding: 24px;
  position: relative;
  color: #f04c23;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 8px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.new-connection-a .Select-Product-Teaser:hover {
  border: 2px solid #ef4624;
}

/* South card only — matches its "HD Plan for South" tab colour */
.new-connection-a .Select-Product-Teaser:has(.south-pincode-section):hover {
  border-color: #5b4cad;
}

.new-connection-a .Select-Product-Teaser.blurb {
  padding-top: 20px;
  position: relative;
}

.new-connection-a .blurb-text {
  display: none;
}

.new-connection-a .Select-Product-Teaser.blurb .blurb-text {
  display: block;
  position: absolute;
  top: -33px;
  left: 0;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  height: 33px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.new-connection-a .Select-Product-Teaser .upper-body {
  display: flex;
  flex-direction: row-reverse;
  padding-bottom: 20px;
  justify-content: space-between;
  height: 110px;
}

.new-connection-a .Select-Product-Teaser .card-bg-image {
  position: absolute;
  height: auto;
  top: 0;
  right: 0;
  border-radius: 10px;
  max-width: 55%;
}

.new-connection-a .Select-Product-Teaser .product-image {
  display: none;
}

.new-connection-a .Select-Product-Teaser .product-addon-image__container {
  display: flex;
  position: relative;
}

.new-connection-a .Select-Product-Teaser .product-addon-image__container .product-addon-image {
  max-width: 124px;
  z-index: 3;
  object-fit: contain;
}

.new-connection-a .Select-Product-Teaser .upper-portion {
  display: flex;
  z-index: 2;
  justify-content: space-between;
  width: 70%;
}

.new-connection-a .Select-Product-Teaser .upper-portion .rate {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.new-connection-a .Select-Product-Teaser .upper-portion .rate .product-name {
  position: relative;
  font-size: 12px;
  color: #000;
  font-weight: 400;
}

.new-connection-a .Select-Product-Teaser .upper-portion .rate p {
  font-size: 21px;
  font-weight: 600;
  color: #ee4823;
  margin: 0;
}

.new-connection-a .Select-Product-Teaser .upper-portion .rate .cmp-new-connection-product-desc {
  font-size: 11px;
  font-weight: 400;
  margin-top: 5px;
  color: #ee4823;
  width: 70%;
  line-height: 14px;
}

.new-connection-a .Select-Product-Teaser .upper-portion .ott-image {
  margin-top: -60px;
  height: 115px;
  width: auto;
  display: none;
}

.new-connection-a .Select-Product-Teaser .key-feature-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px dotted #bebebe;
  border-bottom: 1px dotted #bebebe;
}

.new-connection-a .Select-Product-Teaser .key-feature-container .key-feature-title {
  color: #f04c23;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.new-connection-a .Select-Product-Teaser .key-feature-container-teaser-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.new-connection-a .Select-Product-Teaser .key-feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.new-connection-a .Select-Product-Teaser .key-feature > img {
  height: 20px;
  object-fit: contain;
  width: 20px;
}

.new-connection-a .Select-Product-Teaser .key-feature > p {
  color: #000;
  font-size: 11px;
  font-weight: 500;
  margin: 0;
}

.new-connection-a .Select-Product-Teaser .middleportion {
  margin: 20px 0 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  min-height: 150px;
}

.new-connection-a .Select-Product-Teaser .middleportion .middle-line {
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #000;
  gap: 10px;
}

.new-connection-a .Select-Product-Teaser .middleportion .middle-line .icon {
  width: 109px;
  height: 35px;
  object-fit: contain;
}

.new-connection-a .Select-Product-Teaser .middleportion .middle-line .text {
  font-size: 10px;
  text-align: center;
  font-weight: 500;
}

.new-connection-a .Select-Product-Teaser .middleportion .middle-line > button {
  font-size: 9px;
  color: #ee4823;
  font-weight: 400;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.new-connection-a .Select-Product-Teaser .middleportion .smart-plus-viewdetails button {
  display: none;
}

.new-connection-a .Select-Product-Teaser .lastportion {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  border-top: unset;
  position: relative;
}

.new-connection-a .Select-Product-Teaser .lastportion .select-product-bottom-buttons {
  width: 100%;
  padding-top: 5px;
  padding-bottom: 0;
  position: relative;
}

.new-connection-a .Select-Product-Teaser .show-proceed-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.new-connection-a .Select-Product-Teaser .add-antenna-new-connecction {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.new-connection-a .Select-Product-Teaser .antenna-text-nc {
  font-size: 13px;
  font-weight: 400;
  color: #929292;
}

.new-connection-a .Select-Product-Teaser .antenna-checkbox-container-nc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.new-connection-a .Select-Product-Teaser .antenna-checkbox-container {
  display: flex;
  gap: 6px;
  align-items: center;
}

.new-connection-a .Select-Product-Teaser .antenna-custom-checkbox-container {
  position: relative;
  cursor: pointer;
  width: 15px;
  height: 15px;
}

.new-connection-a .Select-Product-Teaser .antenna-custom-checkbox-container > input {
  width: 15px;
  height: 15px;
  opacity: 0;
  z-index: 1;
  position: relative;
  cursor: pointer;
  margin: 0;
}

.new-connection-a .Select-Product-Teaser .antenna-custom-checkbox {
  width: 15px;
  height: 15px;
  display: block;
  border: 1px solid #b1b1b1;
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
}

.new-connection-a .Select-Product-Teaser .antenna-custom-checkbox-container input:checked ~ .antenna-custom-checkbox {
  background-color: #4cc0ab;
  border-color: #4cc0ab;
}

.new-connection-a .Select-Product-Teaser .antenna-custom-checkbox-container input:checked ~ .antenna-custom-checkbox::after {
  content: "✓";
  color: #fff;
  position: absolute;
  left: 2px;
  top: 1px;
  font-size: 10px;
  line-height: 1;
}

.new-connection-a .Select-Product-Teaser .antenna-checkbox-container label {
  font-size: 11px;
  font-weight: 400;
  color: #929292;
}

.new-connection-a .Select-Product-Teaser .select,
.new-connection-a .Select-Product-Teaser .show-proceed-btn {
  width: 60%;
  background: #f04c23;
  font-size: 12px;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  height: 48px;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  border: none;
}

@media screen and (width >= 1025px) {
  .new-connection-a .Select-Product-Teaser .select,
  .new-connection-a .Select-Product-Teaser .show-proceed-btn {
    height: 55px;
  }
}

.new-connection-a .Select-Product-Teaser .show-proceed-btn-container-nc {
  width: 70%;
  display: flex;
  align-items: center;
  justify-content: end;
  position: relative;
}

.new-connection-a .Select-Product-Teaser .show-proceed-btn-container-nc .show-proceed-btn {
  width: 65%;
}

.new-connection-a .Select-Product-Teaser .info-tool-tip-container {
  position: relative;
}

.new-connection-a .Select-Product-Teaser .info-tool-tip {
  width: 20px;
  object-fit: contain;
  margin-left: 8px;
  cursor: pointer;
}

.new-connection-a .Select-Product-Teaser .info-tool-tip-message-container {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #111;
  width: 260px;
  padding: 10px 10px 10px 30px;
  border-radius: 4px;
  overflow-y: auto;
  max-height: 180px;
  display: none;
  z-index: 5;
  margin: 0;
  list-style: disc;
}

.new-connection-a .Select-Product-Teaser .info-tool-tip-message {
  color: #fff;
  font-size: 11px;
  margin-bottom: 4px;
}

.new-connection-a .Select-Product-Teaser .proceed-new-customer {
  display: none;
  text-align: center;
  padding-top: 20px;
}

.new-connection-a .new-connection-gst-extra-text {
  text-align: right;
  display: block;
  margin-bottom: -50px;
  margin-top: 10px;
  margin-right: 1rem;
  font-size: 11px;
  font-weight: 400;
}

/* Callback / "Unsure which offer to choose?" text — parity with AEM text--viewcomparison */
.new-connection-a .text--viewcomparison .cmp-text {
  padding-top: 27px;
  padding-bottom: 40px;
}

.new-connection-a .text--viewcomparison .cmp-text p {
  font-size: 14px;
  text-align: center;
  color: #444;
  margin: 0.5rem 0;
}

.new-connection-a .text--viewcomparison .cmp-text p a {
  color: #f04c23;
  text-decoration: none;
}

.new-connection-a .text--viewcomparison .cmp-text p .orange-colour-text {
  cursor: pointer;
}

@media screen and (width <= 650px) {
  .new-connection-a .text--viewcomparison .cmp-text p {
    width: 80%;
    margin: 0 auto;
    padding-bottom: 10px;
    padding-top: 0;
  }
}

/* South pincode */
.new-connection-a .south-pincode-section {
  padding: 1px 0 4px;
  border-bottom: 1px solid #e8e8e8;
  width: 55%;
  position: relative;
  margin-left: 2.5%;
}

.new-connection-a .south-pincode-input-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.new-connection-a .south-pincode-input {
  flex: 1;
  border: none;
  border-bottom: 1.5px solid #b0b0b0;
  outline: none;
  font-size: 11px;
  color: #333;
  background: transparent;
  padding-bottom: 3px;
  min-width: 0;
}

.new-connection-a .south-pincode-input::placeholder {
  color: #aaa;
}

.new-connection-a .south-pincode-apply-btn {
  background: #555;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.new-connection-a .south-pincode-apply-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.new-connection-a .south-pincode-apply-btn:hover:not(:disabled) {
  background: #333;
}

.new-connection-a .south-pincode-error {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  color: #f04c23;
  font-size: 10px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
  border: 1px solid #f04c23;
}

.new-connection-a .south-card-height-spacer {
  height: 28px;
}

.new-connection-a .show-proceed-btn.south-select-disabled,
.new-connection-a .show-proceed-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.new-connection-a .south-select-hover-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #f04c23;
  font-size: 10px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
  border: 1px solid #f04c23;
}

/* The disabled Select button has pointer-events:none (so it's genuinely unclickable),
   which means it can never register :hover itself — that's why this listens on the
   whole container instead. :not(:has(...)) excludes the case where the "i" icon
   specifically is what's being hovered, so the tooltip only shows for the button area. */
.new-connection-a .show-proceed-btn-container-nc.has-disabled-select:hover:not(:has(.info-tool-tip-container:hover)) .south-select-hover-tip {
  display: block;
}

.new-connection-a .cmp-proceed-new-customer__no-result {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
  margin: 3rem 0.7rem 1rem;
}

.new-connection-a .error-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Language popup */
.new-connection-a .nc-popup-component {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;

  /* Above the sticky header (z-index 1000), which otherwise paints over the top of the
     modal on short viewports. */
  z-index: 1002;
  backdrop-filter: brightness(0.3);
}

.new-connection-a .nc-popup-component:not([hidden]) {
  display: flex;
}

.new-connection-a .language-selection-modal {
  background: #fff;
  width: 550px;
  margin: 0 auto;
  padding: 1rem;
  height: 509px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 15px;
  align-items: center;
  position: relative;

  /* Never taller than the viewport; scrolls instead of running off-screen. */
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

/* Desktop only: 30px shorter than the 509px base height. Mobile and tablet (<=767px)
   keep 509px. */
@media screen and (width >= 768px) {
  .new-connection-a .language-selection-modal {
    height: 479px;
  }
}

.new-connection-a .language-selection-container {
  font-family: Roboto, sans-serif;
  color: #333;
  font-weight: 500;
  max-width: 356px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  row-gap: 1rem;
  height: 100%;

  /* Keeps the content from being squashed (and its top clipped by centring) when the
     modal is clamped by max-height and scrolls. */
  min-height: min-content;
}

.new-connection-a .language-selection-container > h2 {
  /* color inherits #333 from .language-selection-container (base has no
     override here — this is the light theme, unlike the dark sansuilangpopup
     variant which set color:#fff). font-size/margin below are still needed:
     they compensate for this project's own global h2 styles (44px desktop /
     0.8em margins), which have no equivalent on the legacy page. */
  font-size: 1.1rem;
  margin: 0;
}

.new-connection-a .language-button-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.new-connection-a .language-button-grid .language-button {
  position: relative;
  width: 150px;
  height: 40px;
  overflow: hidden;
  color: #f04c23;
  border: 1px solid #e3e3e3;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 14.06px;
  letter-spacing: 0.28px;
  border-radius: 100px;
  margin: 12px 14px 6.5px 0;
  background-color: #fff;
  cursor: pointer;
}

.new-connection-a .language-button.selected {
  background-color: #333;
  color: #fff;
}

.new-connection-a .language-button.selected::before {
  /* The legacy CSS pointed this at a DAM asset (.../newconnection/Vector.png)
     that 404s — it no longer exists, which is why no checkmark ever rendered.
     Inlined as an SVG data URI instead so it can't 404; reuses the exact
     checkmark path already used elsewhere in the legacy codebase for the
     same purpose (.radio-custom:after in sansuilangpopup's style.css). */
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  position: absolute;
  left: 20px;
  top: 14px;
}

.new-connection-a .continue-button {
  min-width: 228px;
  border: 1px solid #f04c23;
  background-color: #f04c23;
  color: #fff;
  height: 40px;
  border-radius: 4px;
  font-family: Roboto, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 16.41px;
  letter-spacing: 0.02em;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.new-connection-a .language-selection-modal .cross-img {
  position: absolute;
  right: 5px;
  top: 9px;
  height: 23px;
  width: 23px;
  cursor: pointer;
}

/* AEM parity note: sansuilangpopup repositions the close icon at max-width:767px,
   a different breakpoint than the rest of this component's ≤650px mobile block. */
@media screen and (width <= 767px) {
  .new-connection-a .language-selection-modal .cross-img {
    right: 15px;
    top: 15px;
  }
}

@media screen and (width >= 1025px) {
  .new-connection-a .cmp-tabs__tab:nth-child(1)::after,
  .new-connection-a .cmp-tabs__tab--active:nth-child(1)::after,
  .new-connection-a .cmp-tabs__tab:nth-child(2)::after,
  .new-connection-a .cmp-tabs__tab:nth-child(3)::after {
    left: -8px;
    top: -8px;
  }

  .new-connection-a .container--select-product-container {
    width: 85%;
  }
}

@media screen and (width <= 1024px) {
  .new-connection-a .container--select-product-container {
    width: 78%;
  }

  .new-connection-a .swiper-button-prev,
  .new-connection-a .swiper-button-next {
    top: 87%;
  }

  .new-connection-a .swiper-button-prev {
    left: 35%;
  }

  .new-connection-a .swiper-button-next {
    right: 35%;
  }
}

@media screen and (width <= 650px) {
  .new-connection-a .new-connection-a-heading,
  .new-connection-a h4 {
    /* Was display:flex; flex-direction:column — that wraps each child (the plain
       text run + the <strong> element) into its own flex item and stacks them
       vertically, forcing the colored <strong> text onto its own line. Plain block
       flow + the base rule's text-align:center already centers correctly whether
       the heading wraps or not, with <strong> staying inline. */
    font-size: 24px;
  }

  .new-connection-a .new-connection-a-description {
    font-size: 13px;
  }

  .new-connection-a .cmp-tabs__tablist {
    display: none;
  }

  .new-connection-a .container--select-product-container {
    width: 95%;
  }

  .new-connection-a .getconnection-select-product.swiper-slide {
    background-color: rgb(245 245 245);
    padding: 10px 8px;
    display: flex;
    height: auto;
  }

  .new-connection-a .selectproduct {
    /* mirrors the base rule: reserve the blurb-ribbon/spacer gap via padding
       on the parent instead of margin on the card, so it's counted in the
       swiper slide's height (see base .selectproduct rule for why). */
    padding-top: 40px;

    /* No padding-bottom here (unlike the earlier 64px) — desktop's .selectproduct has
       none either; the swiper container's own 55px padding-bottom already reserves
       enough room for the pagination dots. The extra 64px was stacking on top of that,
       producing a large empty gap between the card and the dots on mobile. */
  }

  .new-connection-a .Select-Product-Teaser {
    margin-bottom: 0;
    padding: 15px;
    padding-top: 20px;
    margin-top: 0;
    min-height: 560px;
  }

  .new-connection-a .Select-Product-Teaser.blurb {
    min-height: 540px;
  }

  .new-connection-a .Select-Product-Teaser .upper-body {
    padding-bottom: 10px;
    height: 90px;
  }

  .new-connection-a .Select-Product-Teaser .card-bg-image {
    max-width: 68%;
  }

  .new-connection-a .south-pincode-section {
    width: 70%;
  }

  .new-connection-a .south-pincode-input-wrapper {
    gap: 12px;
  }

  .new-connection-a .Select-Product-Teaser .upper-portion .rate p {
    font-size: 24px;
  }

  .new-connection-a .Select-Product-Teaser .upper-portion .rate .cmp-new-connection-product-desc {
    margin-top: 5px;
    font-size: 9px;
    width: 95%;
  }

  .new-connection-a .Select-Product-Teaser .middleportion {
    margin: 10px 0;
    gap: 10px;
    min-height: 165px;
  }

  .new-connection-a .Select-Product-Teaser .antenna-checkbox-container label {
    font-size: 9px;
  }

  .new-connection-a .Select-Product-Teaser .info-tool-tip-message-container {
    bottom: 16px;
    right: -40px;
    padding-left: 20px;
  }

  .new-connection-a .new-connection-gst-extra-text {
    font-size: 9px;
    position: absolute;
    bottom: 16px;
    z-index: 3;
    margin-bottom: unset;
    right: 0;
    width: 100%;
  }

  .new-connection-a .language-selection-modal {
    width: 90%;
  }
}

/* AEM parity note: the newconnectionpopup reference switches the button grid
   to a fixed 2-column layout at max-width:600px — a tighter breakpoint than
   this component's other ≤650px mobile rules, kept separate to stay exact. */
@media screen and (width <= 600px) {
  .new-connection-a .language-button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .new-connection-a .language-button-grid .language-button {
    width: 110px;
  }

  /* No tick on mobile: at 110px wide it overlaps the longer labels (e.g. MALAYALAM).
     The selected state is still shown by the dark fill. */
  .new-connection-a .language-button.selected::before {
    display: none;
  }

  /* A lone tile left over in the last row (odd VISIBLE count) sits in column 1 by
     default grid auto-placement — span the full row and center it instead, matching
     the flex-wrap + justify-content:center centering desktop already gets for free.
     JS-applied class, not :last-child:nth-child(odd) — nth-child counts every
     .language-button in the DOM regardless of display:none, so it can't tell "9
     languages, Kannada is the odd one out" apart from "4 south languages, no lone
     tile at all" (see toggleLoneLastLanguageButton()). */
  .new-connection-a .language-button-grid .language-button.is-lone-last {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* Reserved height for the product cards. The cards only render after Handlebars/Swiper,
   the auth token and the products API have all loaded; until then this area used to be
   0px tall, so the footer painted right under the heading and was pushed down ~630-690px
   when the cards arrived (CLS 0.29 mobile / 0.12 desktop). These are the measured card
   heights: 630px up to 650px wide, 692px above (the card layout changes at 650px). The
   error message also sits inside this area, so it doesn't shift the footer either. */
.new-connection-a .get-connection-cards {
  min-height: 630px;
}

@media screen and (width >= 651px) {
  .new-connection-a .get-connection-cards {
    min-height: 692px;
  }
}

/* Loading placeholders (see showSkeleton() in new-connection-a.js), laid out like the
   carousel: ~1.2 cards visible below 1025px, 3 from 1025px. */
.new-connection-a .get-connection-cards.is-loading {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  padding: 1rem;
  box-sizing: border-box;
}

.new-connection-a .new-connection-a-skeleton {
  flex: 0 0 80%;
  border-radius: 12px;
  background: linear-gradient(90deg, #e9e9e9 25%, #f4f4f4 50%, #e9e9e9 75%);
  background-size: 200% 100%;
  animation: new-connection-a-shimmer 1.4s ease-in-out infinite;
}

@media screen and (width >= 1025px) {
  .new-connection-a .new-connection-a-skeleton {
    flex-basis: calc((100% - 4rem) / 3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .new-connection-a .new-connection-a-skeleton {
    animation: none;
  }
}

@keyframes new-connection-a-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}