/* Grounded Footwear brand layer for the Restore Clogs funnel.
   Loaded AFTER next-core.css (frontmatter `styles: - css/brand-theme.css`) on select,
   checkout, upsell-1..4 and receipt. The first block only overrides next-core custom
   properties; the skin section below it covers chrome that next-core hardcodes, and
   the shared header, secure strip, progress row and footer. The select and checkout
   page bodies are styled by css/freedom-checkout.css.
   No price row, SDK display node or payment surface is hidden or rebuilt here. */

:root {
  /* Type */
  --_text---font-family--primary: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --_text---font-family--heading: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Surfaces and text */
  --brand--color--background: #ffffff;
  --brand--color--surface: #ffffff;
  --brand--color--foreground: #0a0a0a;
  --brand--color--border: #dddddd;
  --brand--color--black: #0a0a0a;
  --_labels---brand--color--label-status: #0a0a0a;
  --brand--color--text-primary: #0a0a0a;
  --brand--color--text-secondary: #0a0a0a;

  /* Primary: dark green header, footer, step heads, selected outline */
  --brand--color--primary: #002f28;
  --brand--color--primary-dark: #002f28;
  --brand--color--primary-light: #c9eae5;   /* mint info strip */
  --brand--color--primary-lighter: #eeeeee; /* light grey hover and selected rows */
  --brand--color--primary-foreground: #ffffff;

  /* Primary button: yellow, black bold label, 8px radius */
  --brand--color--cta-primary: #ffd431;
  --brand--color--cta-foreground: #0a0a0a;
  --radius-size--buttons: 8px;
  --radius--button: 8px;

  /* Labels, stars, accents */
  --brand--color--rating-star: #002f28;
  --brand--color--pill-primary: #002f28;
  --brand--color--pill-primary-surface: #d3edc2; /* soft green: Most Popular */
  --brand--color--pill-secondary: #0a0a0a;
  --brand--color--pill-secondary-surface: #ffd431; /* Best Deal */
  --brand--color--sale: #d92d20;                 /* struck price and savings accent */
  --brand--color--soft-green: #d3edc2;
  --brand--color--mint: #c9eae5;
  --brand--color--grey-light: #eeeeee;

  --component--color--outline: #002f28;
}

/* ---------- Skin rules (SDK-safe: colour, type, radius only) ---------- */

body {
  font-family: var(--_text---font-family--primary);
  color: var(--brand--color--text-primary);
}

/* Buttons: next-core paints the label with the inverse (white) text token. */
.button,
.submit-button,
.coupon-button {
  color: var(--brand--color--cta-foreground);
  font-weight: 700;
  border-radius: var(--radius--button);
}
.button.cc-gold {
  background-color: var(--brand--color--cta-primary);
  border-color: var(--brand--color--cta-primary);
  color: var(--brand--color--cta-foreground);
}
.button.is-outline {
  color: var(--brand--color--primary);
  border-color: var(--brand--color--primary);
}
.os-button {
  background-color: var(--brand--color--cta-primary);
  border-color: var(--brand--color--cta-primary);
  color: var(--brand--color--cta-foreground);
  font-weight: 700;
}

/* ---------- Shared chrome: header, secure strip, progress row, footer ----------
   Same blocks as the merchant's live Freedom funnel. Used by select, checkout and
   receipt (header, progress) and by the upsell pages (footer). Self-contained gf-
   classes so nothing here depends on, or leaks into, next-core components. */

.gf-header {
  letter-spacing: normal;
  background-color: #002f28;
  padding: 5px 0;
  font-family: "Poppins", sans-serif;
  max-width: 100%;
  overflow: hidden;
}
.gf-header__container {
  box-sizing: border-box;
  width: 100%;
  max-width: min(960px, 100%);
  min-height: 67px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}
.gf-header__left {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}
.gf-header__logo {
  display: block;
  width: 234px;
  max-width: 100%;
  height: auto;
  margin: 5px 0;
}
.gf-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: none;
  color: #fff;
  position: relative;
  top: 2.5px;
}
.gf-header__badge {
  display: block;
  width: 62px;
  height: 62px;
}
.gf-header__right p {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: #fff;
}
.gf-header__right p span {
  display: block;
  font-weight: 600;
}
.gf-header__contact {
  position: relative;
  margin-left: 5px !important;
  padding-left: 16px;
}
.gf-header__contact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: #777;
}
.gf-header__contact a {
  color: #fff;
  text-decoration: underline;
}

.gf-strip {
  letter-spacing: normal;
  background-color: #eee;
  padding: 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
}
.gf-strip__lock {
  display: block;
  width: 11px;
  height: 15px;
}
.gf-strip__text {
  font-size: 14px;
  line-height: 21px;
  font-weight: 700;
  color: #000;
}

.gf-progress {
  letter-spacing: normal;
  padding: 30px 0;
  font-family: "Poppins", sans-serif;
  background-color: #fff;
}
.gf-progress__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
}
.gf-progress__step {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: #858585;
}
.gf-progress__step.is-active {
  color: #000;
}
.gf-progress__arrow {
  display: block;
  line-height: 0;
}
.gf-progress__arrow img {
  display: block;
  max-width: 100%;
  height: auto;
}
.gf-progress__arrow-m {
  display: none !important;
}

.gf-footer {
  letter-spacing: normal;
  background-color: #002f28;
  padding: 40px 0;
  text-align: center;
  font-family: "Poppins", sans-serif;
}
.gf-footer__logo {
  display: block;
  box-sizing: content-box;
  width: 180px;
  max-width: 70%;
  height: auto;
  aspect-ratio: 203 / 31;
  margin: 0 auto 24px;
  padding: 0;
  object-fit: contain;
}
.gf-footer__copy {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: #a8a8a8;
}
.gf-footer__links {
  list-style: none;
  margin: 0 0 15px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.gf-footer__links li {
  margin: 0;
  padding: 0;
  line-height: 24px;
}
.gf-footer__links a {
  position: relative;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: #a8a8a8;
  text-decoration: none;
}
.gf-footer__links a::after {
  content: "";
  position: absolute;
  top: 2px;
  right: -8px;
  width: 1px;
  height: 70%;
  background-color: #a8a8a8;
}
.gf-footer__links li:last-child a::after {
  display: none;
}

@media (max-width: 991px) {
  .gf-header__container {
    padding: 0 4px;
  }
  .gf-header__left {
    flex-basis: 33.333%;
  }
  .gf-progress__row {
    gap: 10px;
  }
  .gf-progress__arrow {
    width: 32px;
  }
  .gf-progress__arrow-d {
    display: none !important;
  }
  .gf-progress__arrow-m {
    display: block !important;
  }
  .gf-footer {
    padding: 30px 0;
  }
}
@media (max-width: 768px) {
  .gf-header__right p span {
    font-size: 12px;
  }
  .gf-progress {
    padding: 15.6px 0;
  }
}
@media (max-width: 767px) {
  /* Freedom keeps the support email on mobile, stacked under the phone at 10px,
     so the three lines fit the header without widening the page. */
  .gf-header__right p span {
    font-size: 10px;
    line-height: 15px;
  }
  .gf-header__right p span.gf-header__email {
    display: block;
  }
  .gf-header__right {
    min-width: 0;
    flex: 1 1 auto;
  }
  .gf-header__contact {
    min-width: 0;
  }
  .gf-header__guarantee {
    display: none;
  }
  .gf-header__container {
    min-height: 54px;
  }
  .gf-header__right {
    top: 0;
  }
}
@media (max-width: 575px) {
  .gf-header__left {
    flex-basis: 25%;
    flex-shrink: 0;
    min-width: 110px;
  }
}
@media (max-width: 479px) {
  .gf-header__right {
    gap: 0;
  }
  .gf-header__badge {
    width: 40px;
    height: 40px;
  }
  .gf-header__right p span {
    font-size: 10px;
    line-height: 15px;
  }
  .gf-header__contact {
    padding-left: 5px;
  }
}
@media (max-width: 430px) {
  .gf-header__left {
    flex: none;
  }
  .gf-header__logo {
    width: 130px;
  }
}
@media (max-width: 400px) {
  .gf-header__right p span {
    font-size: 10px;
  }
  .gf-header__badge {
    width: 35px;
    height: 35px;
  }
}
@media (max-width: 380px) {
  .gf-header__logo {
    width: 110px;
  }
}

/* Select step and summary heads */
.section-checkout.cc-gray {
  background-color: var(--brand--color--background);
}
.step_sub-2 {
  background-color: var(--brand--color--cta-primary);
  color: var(--brand--color--cta-foreground);
}
.os-card.next-selected {
  border-color: var(--component--color--outline);
}

/* Savings accent */
.os-card__subtitle-text-2,
.order-totals__value.cc-disc {
  color: var(--brand--color--sale);
}

/* Variant dropdown focus ring (next-core ships a magenta outline) */
.os-card__variant-dropdown-toggle:focus {
  outline: 2px solid var(--brand--color--primary);
}

/* ---------- Brand components added by this campaign ---------- */

/* Receipt loading skeleton: white logo needs the dark green band */
.checkout__header-brand.gf-brand-band {
  background-color: var(--brand--color--primary);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
}
.receipt-check {
  color: var(--brand--color--primary);
}
.gf-receipt-logo {
  display: flex;
  justify-content: center;
  padding: 28px 16px 12px;
}
.gf-receipt-logo img { width: 203px; height: auto; }
.cart-item__content { gap: 18px; }
.cart-item__pricing { margin-left: 16px; }
