/*
 * Componente compartilhado de checkout dos séruns HOF Stars.
 * A estrutura comercial segue a referência aprovada em 25/08/2026.
 * Preços e apresentação seguem a referência comercial aprovada em 27/08/2026.
 * URLs permanecem em validação até confirmação oficial.
 */
.serum-checkout {
  --checkout-accent: #6b503e;
  --checkout-accent-strong: #493426;
  --checkout-accent-soft: #f2e7df;
  --checkout-gold: #d79b27;
  --checkout-gold-soft: #fff1af;
  --checkout-surface: #ffffff;
  --checkout-ink: #1f2022;
  --checkout-muted: #66686b;
  --checkout-line: #d9d9d6;
  --checkout-page: #f5f5f3;
  position: relative;
  isolation: isolate;
  min-height: auto !important;
  padding: clamp(72px, 7vw, 112px) 24px !important;
  background: linear-gradient(180deg, #ffffff 0%, var(--checkout-page) 100%) !important;
  color: var(--checkout-ink) !important;
  overflow: hidden;
}

.serum-checkout *,
.serum-checkout *::before,
.serum-checkout *::after {
  box-sizing: border-box;
}

.serum-checkout--lumera {
  --checkout-accent: #a06d4c;
  --checkout-accent-strong: #754832;
  --checkout-accent-soft: #f3e6dc;
  --checkout-page: #f7f1ec;
}

.serum-checkout--aura {
  --checkout-accent: #726159;
  --checkout-accent-strong: #463b36;
  --checkout-accent-soft: #eee7e3;
  --checkout-page: #f5f2ef;
}

.serum-checkout--verdere {
  --checkout-accent: #657146;
  --checkout-accent-strong: #3f4a2e;
  --checkout-accent-soft: #e9eddf;
  --checkout-page: #f4f5ef;
}

.serum-checkout--intensive {
  --checkout-accent: #173c56;
  --checkout-accent-strong: #071f32;
  --checkout-accent-soft: #f1e7d5;
  --checkout-gold: #c99a3d;
  --checkout-gold-soft: #f6df9d;
  --checkout-surface: #fffdf8;
  --checkout-ink: #0c2233;
  --checkout-muted: #667079;
  --checkout-line: #d9d3c8;
  --checkout-page: #f4eee3;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 154, 61, 0.15), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, var(--checkout-page) 100%) !important;
}

.serum-checkout--newskin {
  --checkout-accent: #b57e5c;
  --checkout-accent-strong: #80533b;
  --checkout-accent-soft: #f3e7de;
  --checkout-page: #f8f2ed;
}

.serum-checkout--skincode {
  --checkout-accent: #a5824e;
  --checkout-accent-strong: #74562f;
  --checkout-accent-soft: #f3eadb;
  --checkout-page: #f8f4eb;
}

.serum-checkout--granskin {
  --checkout-accent: #9b2634;
  --checkout-accent-strong: #701722;
  --checkout-accent-soft: #f4e2e4;
  --checkout-page: #f8f1f1;
}

.serum-checkout--fiorini {
  --checkout-accent: #a27167;
  --checkout-accent-strong: #704943;
  --checkout-accent-soft: #f2e7e4;
  --checkout-page: #f8f4f2;
}

.serum-checkout--peptide {
  --checkout-accent: #62634d;
  --checkout-accent-strong: #414332;
  --checkout-accent-soft: #e9e9df;
  --checkout-page: #f5f5f0;
}

.serum-checkout--caetana {
  --checkout-accent: #667148;
  --checkout-accent-strong: #3f4b2d;
  --checkout-accent-soft: #e8ecde;
  --checkout-page: #f4f5ef;
}

.serum-checkout--dual {
  --checkout-accent: #7b2438;
  --checkout-accent-strong: #501424;
  --checkout-accent-soft: #f0e2e6;
  --checkout-page: #f7f1f3;
}

.serum-checkout__container {
  width: min(1220px, 100%);
  margin-inline: auto;
}

.serum-checkout__heading {
  max-width: 760px;
  margin: 0 auto clamp(62px, 6vw, 88px);
  text-align: center;
}

.serum-checkout__eyebrow {
  margin: 0 0 10px !important;
  color: var(--checkout-accent) !important;
  font: 700 0.76rem/1.2 inherit !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.serum-checkout__heading h2 {
  max-width: none !important;
  margin: 0 !important;
  color: var(--checkout-ink) !important;
  font-size: clamp(2rem, 4vw, 3.6rem) !important;
  line-height: 0.98 !important;
  text-wrap: balance;
}

.serum-checkout__heading p:last-child {
  max-width: 650px;
  margin: 18px auto 0 !important;
  color: var(--checkout-muted) !important;
  font-size: clamp(0.98rem, 1.4vw, 1.1rem) !important;
  line-height: 1.55 !important;
}

.serum-checkout__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start;
  gap: clamp(18px, 2.3vw, 30px) !important;
  width: 100%;
}

.serum-checkout__card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  min-height: 790px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(20, 20, 20, 0.08) !important;
  border-radius: 18px !important;
  background: var(--checkout-surface) !important;
  box-shadow: 0 22px 55px rgba(31, 32, 34, 0.1) !important;
  color: var(--checkout-ink) !important;
  overflow: hidden;
}

.serum-checkout__card.is-best-seller {
  z-index: 2;
  min-height: 830px;
  transform: translateY(-26px);
  border-color: rgba(215, 155, 39, 0.45) !important;
  box-shadow: 0 28px 70px rgba(91, 65, 19, 0.17) !important;
}

.serum-checkout__band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 18px;
  background: var(--checkout-accent);
  color: #fff;
  text-align: center;
}

.is-best-seller .serum-checkout__band {
  background: linear-gradient(105deg, #cf8a19 0%, #f6cf61 52%, #fff2a9 100%);
  color: #242424;
}

.is-best-value .serum-checkout__band {
  background: var(--checkout-accent-strong);
}

.serum-checkout__band strong {
  font: 800 clamp(1.02rem, 1.7vw, 1.32rem)/1 inherit !important;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.serum-checkout__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px clamp(18px, 2.2vw, 28px) 24px;
}

.serum-checkout__deal {
  min-height: 54px;
  margin: 0 !important;
  color: var(--checkout-ink) !important;
  font-size: clamp(1.02rem, 1.7vw, 1.28rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  text-align: center;
  text-transform: uppercase;
}

.serum-checkout__deal span {
  display: block;
  margin-top: 5px;
  color: var(--checkout-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.serum-checkout__visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 250px;
  margin: 8px 0 12px;
  overflow: hidden;
}

.serum-checkout__split {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 !important;
  color: var(--checkout-accent-strong) !important;
  font-size: 0.66rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-transform: uppercase;
}

.serum-checkout__split span {
  padding: 6px 8px;
  border: 1px solid rgba(7, 31, 50, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 7px 18px rgba(7, 31, 50, 0.1);
}

.serum-checkout__split b {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.serum-checkout__split b img {
  position: absolute !important;
  top: 50%;
  left: 50%;
  width: 226% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  transform: translate(-50%, -50%);
}

.serum-checkout__visual::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 15px;
  left: 12%;
  height: 18px;
  border-radius: 50%;
  background: rgba(35, 35, 35, 0.12);
  filter: blur(12px);
}

.serum-checkout__visual img {
  position: relative;
  z-index: 1;
  display: block !important;
  width: auto !important;
  max-width: 96% !important;
  height: 232px !important;
  max-height: 232px !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain !important;
}

.serum-checkout__visual > img {
  mix-blend-mode: multiply;
}

.serum-checkout__kit {
  position: relative;
  z-index: 1;
  width: min(318px, 96%);
  height: 232px;
  margin-inline: auto;
}

.serum-checkout__kit img {
  position: absolute !important;
  bottom: 7px;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  mix-blend-mode: multiply;
}

.serum-checkout__kit .serum-checkout__kit-box {
  right: 3px;
  z-index: 1 !important;
  width: 24% !important;
}

.serum-checkout__kit .serum-checkout__kit-bottle {
  z-index: 2 !important;
  width: 16.5% !important;
}

.serum-checkout__kit-bottle--1 { left: 0; }
.serum-checkout__kit-bottle--2 { left: 14%; }
.serum-checkout__kit-bottle--3 { left: 28%; }
.serum-checkout__kit-bottle--4 { left: 42%; }
.serum-checkout__kit-bottle--5 { left: 56%; }

.serum-checkout__visual.is-photo img {
  width: 180px !important;
  height: 180px !important;
  max-width: 180px !important;
  max-height: 180px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 12px !important;
  object-fit: cover !important;
}

.serum-checkout__quantity {
  position: absolute;
  z-index: 3;
  right: 4px;
  bottom: 12px;
  display: grid;
  place-items: center;
  min-width: 62px;
  min-height: 62px;
  padding: 7px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--checkout-accent);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1;
}

.is-best-seller .serum-checkout__quantity {
  background: var(--checkout-gold);
  color: #262626;
}

.serum-checkout__gift {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0 -28px 14px;
  padding: 8px 14px;
  background: linear-gradient(90deg, var(--checkout-accent-soft), #fff7da);
  color: var(--checkout-accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-align: center;
  text-transform: uppercase;
}

.serum-checkout__gift-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 29px;
  width: 29px;
  height: 27px;
  margin-right: 8px;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.serum-checkout__gift-icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 185%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.serum-checkout__gift-icon::before {
  content: none;
}

.serum-checkout__gift-icon::after {
  content: none;
}

.serum-checkout__gift.is-quiet {
  background: var(--checkout-accent-soft);
  color: var(--checkout-accent-strong);
}

.serum-checkout__price-block {
  position: relative;
  min-height: 158px;
  margin-bottom: 14px;
  text-align: center;
}

.serum-checkout__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(201, 154, 61, 0.62);
  border-radius: 999px;
  background: var(--checkout-accent-strong);
  box-shadow: 0 6px 16px rgba(7, 31, 50, 0.18);
  color: #f4d382;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.is-best-seller .serum-checkout__discount {
  background: linear-gradient(105deg, #8b631c 0%, #c99a3d 100%);
  color: #fff;
}

.serum-checkout__list-price {
  margin: 0 0 2px !important;
  color: #555d63 !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-transform: uppercase;
}

.serum-checkout__list-price s {
  color: #555d63;
  text-decoration-thickness: 1px;
}

.serum-checkout__installment {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 0 !important;
  color: var(--checkout-ink) !important;
  line-height: 0.9 !important;
}

.serum-checkout__installment span {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 800 !important;
  letter-spacing: -0.04em;
}

.serum-checkout__installment strong {
  color: var(--checkout-ink) !important;
  font-size: clamp(3.25rem, 4.7vw, 4.55rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em;
}

.serum-checkout__cash {
  margin: 5px 0 0 !important;
  color: #596168 !important;
  font-size: 0.78rem !important;
  line-height: 1.3 !important;
}

.serum-checkout__cash strong {
  color: var(--checkout-accent-strong) !important;
  font-weight: 800 !important;
}

.serum-checkout__benefits {
  display: grid !important;
  gap: 0 !important;
  min-height: 146px;
  margin: 0 0 20px !important;
  padding: 0 !important;
  list-style: none !important;
}

.serum-checkout__benefits li {
  position: relative;
  margin: 0 !important;
  padding: 10px 0 10px 26px !important;
  border-top: 1px solid var(--checkout-line);
  color: #3b3c3e !important;
  font-size: 0.84rem !important;
  font-weight: 600;
  line-height: 1.28 !important;
}

.serum-checkout__benefits li::before {
  content: "✓";
  position: absolute;
  top: 10px;
  left: 2px;
  color: var(--checkout-accent);
  font-weight: 900;
}

.is-best-seller .serum-checkout__benefits li::before {
  color: #aa6f00;
}

.serum-checkout__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 50px !important;
  margin: auto 0 0 !important;
  padding: 13px 18px !important;
  border: 1px solid transparent !important;
  border-radius: 5px !important;
  background: var(--checkout-accent) !important;
  box-shadow: none !important;
  color: #fff !important;
  font: 800 1rem/1 inherit !important;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: transform 180ms ease, filter 180ms ease;
}

.serum-checkout__button:hover,
.serum-checkout__button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(0.93);
}

.is-best-seller .serum-checkout__button {
  background: var(--checkout-accent-strong) !important;
}

.serum-checkout__status {
  max-width: 760px;
  margin: 24px auto 0 !important;
  color: var(--checkout-muted) !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
  text-align: center;
}

@media (max-width: 900px) {
  .serum-checkout {
    padding: 72px 18px !important;
  }

  .serum-checkout__grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    width: min(520px, 100%);
    margin-inline: auto;
  }

  .serum-checkout__card,
  .serum-checkout__card.is-best-seller {
    min-height: 0;
    transform: none;
  }

  .serum-checkout__card.is-best-seller {
    order: 0;
  }
}

@media (max-width: 520px) {
  .serum-checkout {
    padding: 58px 14px 68px !important;
  }

  .serum-checkout__heading {
    margin-bottom: 36px;
  }

  .serum-checkout__heading h2 {
    font-size: clamp(1.9rem, 10vw, 2.55rem) !important;
  }

  .serum-checkout__content {
    padding: 18px 18px 20px;
  }

  .serum-checkout__deal {
    min-height: 46px;
  }

  .serum-checkout__visual {
    height: 240px;
  }

  .serum-checkout__gift {
    margin-right: -18px;
    margin-left: -18px;
  }

  .serum-checkout__price-block {
    min-height: 150px;
  }

  .serum-checkout__installment strong {
    font-size: clamp(3.2rem, 18vw, 4.25rem) !important;
  }

  .serum-checkout__benefits {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  html.serum-checkout-in-view .mobile-sticky,
  html.serum-checkout-in-view .mobile-sticky-cta,
  html.serum-checkout-in-view .mobile-cta {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(130%) !important;
  }
}

html.serum-checkout-in-view .commerce-whatsapp-float {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(130%) !important;
}

@media (prefers-reduced-motion: reduce) {
  .serum-checkout__button {
    transition: none;
  }
}
