/* Vertical OTT price-card polish.
   Loaded after the legacy mobile card layers; selectors also outrank the
   runtime-injected PC reference skin without changing carousel behavior. */

.home .lowest-price-carousel {
  box-sizing: border-box;
  padding-top: 16px;
}

/* Keep the portrait card at a measured size. The carousel decides whether
   two, three, or four of these fixed-width cards fit in its current rail. */
html body .home .lowest-price-track {
  --lowest-card-width: 172px;
}

html body .home .lowest-price-card {
  overflow: visible;
}

/* Keep every service mark inside the same YouTube-style app tile. The
   original Laftel PNG is 204x192 and its artwork touches the canvas edges,
   so its inner artwork gets a little breathing room below. */
html body .home .lowest-price-card .lowest-price-logo {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  margin-top: 10px;
  border: 0;
  border-radius: 22%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(42, 62, 93, .12);
}

html body .home .lowest-price-card .lowest-price-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

html body:not(.host-app):not(.ops-app) .home
  .lowest-price-card.service-laftel .lowest-price-logo img {
  width: 88%;
  height: 88%;
  border-radius: 16%;
}

html body .home .lowest-price-card .lowest-price-offer {
  margin-top: auto;
  margin-bottom: 0;
}

html body .home .lowest-price-card .lowest-price-offer.lowest-price-offer--glass {
  min-height: 164px;
  align-content: center;
  gap: 7px;
  padding: 16px;
  border-color: rgba(255, 255, 255, .78);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    0 12px 26px rgba(30, 46, 70, .10);
}

html body .home .lowest-price-card .lowest-price-service-label {
  display: inline-flex;
  max-width: calc(100% - 12px);
  min-height: 23px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 6px auto 0;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 999px;
  color: #334156;
  background: rgba(255, 255, 255, .68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .84),
    0 5px 14px rgba(50, 75, 113, .08);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
}

html body .home .lowest-price-card
  .lowest-price-offer.lowest-price-offer--airy {
  align-content: stretch;
  gap: 0;
  padding: 14px;
  grid-template-rows: auto 1fr auto;
}

html body .home .lowest-price-card
  .lowest-price-offer.lowest-price-offer--airy
  .lowest-price-name {
  display: block !important;
  flex-direction: initial;
  align-items: initial;
  overflow: hidden;
  white-space: nowrap;
  word-break: keep-all;
  text-overflow: clip;
}

/* YouTube is the reference card: keep the same top-row geometry for every
   service, even when older service-specific selectors are still loaded. */
html body .home .lowest-price-card
  .lowest-price-offer.lowest-price-offer--glass.lowest-price-offer--airy
  .lowest-price-offer-top {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

html body .home .lowest-price-card
  .lowest-price-offer.lowest-price-offer--glass.lowest-price-offer--airy
  .lowest-price-name {
  display: block !important;
  flex-direction: initial;
  align-items: initial;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  word-break: keep-all;
  text-overflow: clip;
}

html body .home .lowest-price-card .lowest-price-hero {
  display: grid;
  min-width: 0;
  align-self: stretch;
  align-content: end;
  gap: 3px;
  padding-block: 0 8px;
}

html body .home .lowest-price-card .lowest-price-hero > small {
  color: #738196;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .015em;
}

html body .home .lowest-price-card .lowest-price-meta {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding-top: 5px;
  border-top: 1px solid #e8eef4;
}

html body .home .lowest-price-card .lowest-price-meta .lowest-price-regular {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

html body .home .lowest-price-card .lowest-price-meta .lowest-price-savings {
  display: block;
  white-space: nowrap;
}

html body .home .lowest-price-card
  .lowest-price-offer.lowest-price-offer--glass
  .lowest-price-offer-top {
  gap: 7px;
}

html body .home .lowest-price-card
  .lowest-price-offer.lowest-price-offer--glass
  .lowest-price-name {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.055em;
}

html body .home .lowest-price-card
  .lowest-price-offer.lowest-price-offer--glass
  .lowest-price-discount {
  min-height: 26px;
  padding-inline: 8px;
  justify-self: end;
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
}

html body .home .lowest-price-card
  .lowest-price-offer.lowest-price-offer--glass
  .lowest-price-regular,
html body .home .lowest-price-card
  .lowest-price-offer.lowest-price-offer--glass
  .lowest-price-regular s {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
}

html body .home .lowest-price-card
  .lowest-price-offer.lowest-price-offer--glass
  .lowest-price-regular small {
  font-size: 10px;
  font-weight: 750;
}

html body .home .lowest-price-card
  .lowest-price-offer.lowest-price-offer--glass
  .lowest-price-savings {
  font-size: 12px;
  font-weight: 750;
  line-height: 1.18;
}

html body .home .lowest-price-card
  .lowest-price-offer.lowest-price-offer--glass
  .lowest-price-divider {
  opacity: .68;
}

html body .home .lowest-price-card
  .lowest-price-offer.lowest-price-offer--glass
  .lowest-price-monthly {
  font-size: 24px;
  font-weight: 900;
}

html body .home .lowest-price-card
  .lowest-price-offer.lowest-price-offer--glass
  .lowest-price-monthly small {
  margin-left: 6px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0;
}

html body .home .lowest-price-card .lowest-price-hot {
  position: absolute;
  z-index: 6;
  top: -10px;
  right: 2px;
  display: inline-flex;
  width: 70px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  padding: 2px 13px 0;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(241, 247, 255, .74));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 12px 28px rgba(63, 91, 142, .20),
    0 3px 8px rgba(50, 78, 124, .10);
  clip-path: none;
  color: #e52f48;
  font-family: "Luckiest Guy", sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .035em;
  filter: none;
  -webkit-backdrop-filter: blur(18px) saturate(148%);
  backdrop-filter: blur(18px) saturate(148%);
  animation: lowest-price-hot-float 2.2s ease-in-out infinite;
  pointer-events: none;
}

html body .home .lowest-price-card .lowest-price-hot::after {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
  content: "🔥";
  transform: translateY(0);
}

@keyframes lowest-price-hot-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -2px, 0);
  }
}

@media (max-width: 800px) {
  .home .lowest-price-carousel {
    padding-top: 16px;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass {
    min-height: 154px;
    gap: 6px;
    padding: 15px 12px;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--airy {
    gap: 0;
    padding: 13px 12px;
  }

  html body .home .lowest-price-card .lowest-price-service-label {
    min-height: 22px;
    margin-top: 6px;
    padding-inline: 8px;
    font-size: 9px;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass
    .lowest-price-offer-top {
    gap: 4px;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass
    .lowest-price-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -.07em;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass
    .lowest-price-discount {
    min-height: 24px;
    padding-inline: 5px;
    font-size: 9px;
    font-weight: 800;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass
    .lowest-price-regular,
  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass
    .lowest-price-regular s {
    font-size: 11px;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass
    .lowest-price-regular small {
    font-size: 9px;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass
    .lowest-price-savings {
    font-size: 11px;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass
    .lowest-price-monthly {
    font-size: 20px;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass
    .lowest-price-monthly small {
    margin-left: 5px;
    font-size: 9.5px;
  }

  html body .home .lowest-price-card .lowest-price-hot {
    top: -10px;
    right: 2px;
    width: 62px;
    height: 30px;
    gap: 0;
    padding: 2px 11px 0;
    font-size: 9.5px;
  }

  html body .home .lowest-price-card .lowest-price-hot::after {
    font-size: 12px;
  }

  html body .home .lowest-price-card .lowest-price-hero {
    gap: 3px;
    padding-block: 0 6px;
  }
}

@media (max-width: 350px) {
  html body .home .lowest-price-track {
    --lowest-card-width: 136px;
  }

  html body .home .lowest-price-card .lowest-price-logo {
    width: 48px;
    height: 48px;
    margin-top: 8px;
  }

  html body .home .lowest-price-card .lowest-price-service-label {
    min-height: 18px;
    margin-top: 3px;
    padding-inline: 6px;
    font-size: 7.5px;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass {
    gap: 5px;
    padding: 12px 9px;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass
    .lowest-price-offer-top {
    gap: 2px;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass
    .lowest-price-name {
    font-size: 10px;
    letter-spacing: -.1em;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass
    .lowest-price-discount {
    min-height: 20px;
    padding-inline: 2px;
    font-size: 7.5px;
  }

  html body .home .lowest-price-card .lowest-price-hero {
    gap: 2px;
    padding-block: 0 5px;
  }

  html body .home .lowest-price-card .lowest-price-hero > small {
    font-size: 7.5px;
  }

  html body .home .lowest-price-card
    .lowest-price-offer.lowest-price-offer--glass
    .lowest-price-monthly small {
    margin-left: 4px;
    font-size: 8.5px;
  }

  html body .home .lowest-price-card .lowest-price-meta {
    gap: 2px;
    padding-top: 5px;
  }
}

@media (min-width: 801px) {
  html body .home .lowest-price-track {
    --lowest-card-width: 216px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .home .lowest-price-card .lowest-price-hot {
    animation: none;
  }
}
