/* Phase 5H footer concept implementation.
   This intentionally loads after earlier footer patches. It keeps the same pink Blob3 structure,
   removes the floating dark panel, and positions only the footer text/buttons on top of the blob. */

:root {
  --footer-concept-ink: #14051f;
  --footer-concept-ink-soft: rgba(20, 5, 31, .76);
  --footer-concept-line: rgba(68, 21, 112, .58);
  --footer-concept-glow: rgba(246, 117, 255, .28);
  --footer-concept-button-bg: rgba(255, 255, 255, .08);
  --footer-concept-button-bg-hover: rgba(255, 255, 255, .20);
}

/* Keep the older background copy suppressed. Footer owns the visible Blob3 artwork. */
.bg.-desktop .blobs > .blob-3 {
  display: none !important;
}

.main-footer,
.main-footer.legal-footer {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  z-index: 20 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: clamp(380px, 31vw, 560px) !important;
  margin: clamp(120px, 11vw, 210px) 0 0 !important;
  padding: 0 !important;
  display: block !important;
  text-align: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--footer-concept-ink) !important;
  content-visibility: visible !important;
  contain: none !important;
  contain-intrinsic-size: auto !important;
}

/* Kill previous glass-card treatment. The concept places the UI directly on the pink structure. */
.main-footer::before,
.main-footer.legal-footer::before,
.main-footer::after,
.main-footer.legal-footer::after {
  content: none !important;
  display: none !important;
}

.footer-blob3 {
  display: block !important;
  position: absolute !important;
  z-index: -1 !important;
  width: clamp(1120px, 74vw, 1660px) !important;
  max-width: none !important;
  height: auto !important;
  right: clamp(-470px, -21vw, -245px) !important;
  bottom: clamp(-455px, -24vw, -285px) !important;
  opacity: .96 !important;
  transform: rotate(-1deg) scale(1.08) !important;
  transform-origin: 68% 74% !important;
  pointer-events: none !important;
  user-select: none !important;
  filter: drop-shadow(0 -18px 48px rgba(205, 91, 255, .20)) !important;
}

.main-footer .footer-title,
.main-footer.legal-footer .footer-title,
.footer-title {
  position: absolute !important;
  right: clamp(86px, 8.6vw, 190px) !important;
  bottom: clamp(156px, 10.8vw, 224px) !important;
  width: min(520px, 42vw) !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--footer-concept-ink) !important;
  background: transparent !important;
  border: 0 !important;
  font-family: var(--font-heading, 'Montserrat', 'Inter', sans-serif) !important;
  font-size: clamp(28px, 2.35vw, 43px) !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: -.035em !important;
  text-transform: none !important;
  text-align: center !important;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .10) !important;
}

.main-footer .footer-tagline,
.main-footer.legal-footer .footer-tagline,
.footer-tagline {
  position: absolute !important;
  right: clamp(86px, 8.6vw, 190px) !important;
  bottom: clamp(119px, 8.35vw, 177px) !important;
  width: min(520px, 42vw) !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--footer-concept-ink-soft) !important;
  font-family: var(--font-body, 'Inter', sans-serif) !important;
  font-size: clamp(16px, 1.18vw, 22px) !important;
  line-height: 1.25 !important;
  font-weight: 650 !important;
  letter-spacing: -.02em !important;
  text-align: center !important;
}

.main-footer .footer-nav,
.main-footer.legal-footer .footer-nav,
.footer-nav {
  position: absolute !important;
  right: clamp(58px, 6.4vw, 155px) !important;
  bottom: clamp(70px, 5.18vw, 115px) !important;
  width: min(600px, 48vw) !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: clamp(12px, 1.1vw, 22px) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-footer .footer-nav-item,
.main-footer.legal-footer .footer-nav-item,
.footer-nav-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  min-height: 42px !important;
  padding: 10px clamp(16px, 1.25vw, 24px) !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 2px solid var(--footer-concept-line) !important;
  background: var(--footer-concept-button-bg) !important;
  color: #38105e !important;
  font-family: var(--font-heading, 'Montserrat', 'Inter', sans-serif) !important;
  font-size: clamp(13px, .92vw, 16px) !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 9px 24px rgba(50, 12, 90, .08) !important;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.main-footer .footer-nav-item::before,
.main-footer.legal-footer .footer-nav-item::before,
.footer-nav-item::before {
  display: inline-grid !important;
  place-items: center !important;
  width: 20px !important;
  height: 20px !important;
  color: #4b1480 !important;
  font-family: 'Material Icons' !important;
  font-size: 20px !important;
  font-weight: normal !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-wrap: normal !important;
  white-space: nowrap !important;
  direction: ltr !important;
  -webkit-font-feature-settings: 'liga' !important;
  -webkit-font-smoothing: antialiased !important;
}

.main-footer .footer-nav-item[data-footer-icon="privacy"]::before,
.footer-nav-item[data-footer-icon="privacy"]::before {
  content: 'verified_user' !important;
}

.main-footer .footer-nav-item[data-footer-icon="refund"]::before,
.footer-nav-item[data-footer-icon="refund"]::before {
  content: 'sync' !important;
}

.main-footer .footer-nav-item[data-footer-icon="website"]::before,
.footer-nav-item[data-footer-icon="website"]::before {
  content: 'open_in_new' !important;
}

/* Remove older arrow suffixes from previous footer experiments. */
.main-footer .footer-nav-item::after,
.main-footer.legal-footer .footer-nav-item::after,
.footer-nav-item::after,
.main-footer .footer-nav-item[href^="http"]::after,
.footer-nav-item[href^="http"]::after {
  content: none !important;
  display: none !important;
}

.main-footer .footer-nav-item:hover,
.main-footer .footer-nav-item:focus-visible,
.main-footer.legal-footer .footer-nav-item:hover,
.main-footer.legal-footer .footer-nav-item:focus-visible,
.footer-nav-item:hover,
.footer-nav-item:focus-visible {
  color: #210735 !important;
  border-color: rgba(66, 15, 111, .82) !important;
  background: var(--footer-concept-button-bg-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .30),
    0 14px 30px rgba(50, 12, 90, .15),
    0 0 28px var(--footer-concept-glow) !important;
  outline: none !important;
}

.main-footer .footer-copy,
.main-footer.legal-footer .footer-copy,
.footer-copy {
  position: absolute !important;
  right: clamp(86px, 8.6vw, 190px) !important;
  bottom: clamp(31px, 2.45vw, 58px) !important;
  width: min(520px, 42vw) !important;
  margin: 0 !important;
  color: rgba(20, 5, 31, .84) !important;
  font-family: var(--font-body, 'Inter', sans-serif) !important;
  font-size: clamp(13px, .95vw, 17px) !important;
  line-height: 1.25 !important;
  font-weight: 550 !important;
  text-align: center !important;
}

/* Cart/legal pages can have shorter content; keep the footer low and composition-based. */
.page.-cart .main-footer,
body:has(.cart-layout) .main-footer,
.main-footer.legal-footer {
  margin-top: clamp(96px, 9vw, 180px) !important;
}

@media (max-width: 1180px) {
  .footer-blob3 {
    width: clamp(940px, 112vw, 1280px) !important;
    right: clamp(-530px, -44vw, -310px) !important;
    bottom: clamp(-365px, -34vw, -265px) !important;
  }

  .main-footer .footer-title,
  .main-footer .footer-tagline,
  .main-footer .footer-copy,
  .footer-title,
  .footer-tagline,
  .footer-copy {
    right: clamp(34px, 6vw, 82px) !important;
    width: min(480px, 58vw) !important;
  }

  .main-footer .footer-nav,
  .footer-nav {
    right: clamp(24px, 4.2vw, 66px) !important;
    width: min(548px, 66vw) !important;
  }
}

@media (max-width: 840px) {
  .main-footer,
  .main-footer.legal-footer {
    min-height: 430px !important;
    margin-top: 86px !important;
    background: transparent !important;
  }

  .footer-blob3 {
    width: 980px !important;
    right: -520px !important;
    bottom: -310px !important;
    opacity: .96 !important;
    transform: rotate(-1deg) scale(1.02) !important;
  }

  .main-footer .footer-title,
  .main-footer.legal-footer .footer-title,
  .footer-title {
    right: 18px !important;
    bottom: 220px !important;
    width: min(430px, calc(100vw - 36px)) !important;
    font-size: 30px !important;
  }

  .main-footer .footer-tagline,
  .footer-tagline {
    right: 18px !important;
    bottom: 184px !important;
    width: min(430px, calc(100vw - 36px)) !important;
    font-size: 16px !important;
  }

  .main-footer .footer-nav,
  .footer-nav {
    right: 18px !important;
    bottom: 92px !important;
    width: min(430px, calc(100vw - 36px)) !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .main-footer .footer-nav-item,
  .footer-nav-item {
    width: 100% !important;
    min-height: 42px !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
    justify-content: center !important;
  }

  .main-footer .footer-copy,
  .footer-copy {
    right: 18px !important;
    bottom: 46px !important;
    width: min(430px, calc(100vw - 36px)) !important;
    font-size: 13px !important;
  }
}

@media (max-width: 500px) {
  .main-footer,
  .main-footer.legal-footer {
    min-height: 455px !important;
  }

  .footer-blob3 {
    right: -590px !important;
    bottom: -318px !important;
    width: 1040px !important;
  }
}
