/* Crystal Health CheckoutWC — logo + brand */

body.checkout-wc,
body.checkout-wc #cfw,
body.checkout-wc.copify {
  --cfw-buttons-primary-background-color: #2f3d2a;
  --cfw-buttons-primary-hover-background-color: #3a4a36;
  --cfw-buttons-primary-text-color: #fffcf8;
  --cfw-buttons-primary-hover-text-color: #fffcf8;
  --cfw-buttons-secondary-background-color: #2f3d2a;
  --cfw-buttons-secondary-hover-background-color: #3a4a36;
  --cfw-buttons-secondary-text-color: #fffcf8;
  --cfw-buttons-secondary-hover-text-color: #fffcf8;
  --cfw-body-link-color: #2f3d2a;
  --cfw-header-text-color: #2f3d2a;
  --cfw-body-text-color: #3d4038;
  --cfw-cart-summary-link-color: #2f3d2a;
  --cfw-cart-summary-item-quantity-background-color: #2f3d2a;
  --cfw-cart-summary-item-quantity-text-color: #fffcf8;
  --cfw-footer-text-color: #6b6458;
  --cfw-cart-summary-background-color: #f7f2eb;
  --cfw-cart-summary-mobile-background-color: #f7f2eb;
  --cfw-heading-font-family: "Cormorant Garamond", Georgia, serif;
  --cfw-body-font-family: Montserrat, system-ui, sans-serif;
  --cfw-logo-url: url("/wp-content/uploads/chb-email/logo-email.png");
  background: #fffcf8 !important;
  color: #3d4038;
  font-family: Montserrat, system-ui, sans-serif !important;
}

body.checkout-wc #cfw-logo-container,
body.checkout-wc #cfw-logo-container-mobile {
  display: flex !important;
  align-items: center;
  min-height: 0 !important;
  padding: 10px 8px 6px !important;
  margin: 0 0 8px !important;
}

body.checkout-wc .cfw-logo {
  display: block !important;
}

body.checkout-wc .cfw-logo a.logo,
body.checkout-wc .cfw-logo a {
  display: block !important;
  width: 168px !important;
  height: 78px !important;
  max-width: 168px;
  background-image: url("/wp-content/uploads/chb-email/logo-email.png") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-color: transparent !important;
  text-indent: 0 !important;
}

body.checkout-wc .cfw-logo a.logo img,
body.checkout-wc .cfw-logo img {
  display: block !important;
  width: 168px !important;
  height: auto !important;
  max-height: 78px !important;
  object-fit: contain !important;
  background: transparent !important;
}

body.checkout-wc #cfw h1,
body.checkout-wc #cfw h2,
body.checkout-wc #cfw h3,
body.checkout-wc #cfw h4 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: #2f3d2a !important;
  font-weight: 500 !important;
}

body.checkout-wc #cfw .cfw-primary-btn,
body.checkout-wc #cfw .cfw-secondary-btn,
body.checkout-wc #cfw #place_order,
body.checkout-wc #cfw .cfw-secondary-btn-inactive,
body.checkout-wc #cfw button[type="submit"] {
  background: #2f3d2a !important;
  color: #fffcf8 !important;
  border-color: #2f3d2a !important;
  border-radius: 999px !important;
  font-family: Montserrat, system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.checkout-wc #cfw .cfw-primary-btn:hover,
body.checkout-wc #cfw .cfw-secondary-btn:hover,
body.checkout-wc #cfw #place_order:hover {
  background: #3a4a36 !important;
  color: #fffcf8 !important;
}

body.checkout-wc #cfw a,
body.checkout-wc #cfw .cfw-input-wrap a {
  color: #2f3d2a !important;
}

body.checkout-wc #cfw input:focus,
body.checkout-wc #cfw select:focus,
body.checkout-wc #cfw textarea:focus {
  border-color: #c9a84c !important;
  box-shadow: 0 0 0 1px #c9a84c !important;
}

body.checkout-wc #cfw input[type="radio"]:checked,
body.checkout-wc #cfw input[type="checkbox"]:checked {
  accent-color: #2f3d2a;
}

body.checkout-wc #cfw-footer,
body.checkout-wc #cfw .cfw-footer-inner {
  color: #6b6458;
  font-size: 0.78rem;
}

@media (min-width: 901px) {
  body.checkout-wc #cfw-logo-container-mobile {
    display: none !important;
  }
}
@media (max-width: 900px) {
  body.checkout-wc #cfw-logo-container {
    display: none !important;
  }
  body.checkout-wc #cfw-logo-container-mobile {
    justify-content: center;
    padding: 8px 16px 4px 52px !important;
  }
  body.checkout-wc .cfw-logo a.logo,
  body.checkout-wc .cfw-logo a {
    width: 132px !important;
    height: 62px !important;
    margin: 0 auto;
    background-position: center !important;
  }
  body.checkout-wc .cfw-logo a.logo img {
    width: 132px !important;
    max-height: 62px !important;
    margin: 0 auto;
  }
}

html body .cfw-side-cart-free-shipping-progress-wrap,
html body #cfw .cfw-side-cart-free-shipping-progress-wrap,
html body #cfw-side-cart .cfw-side-cart-free-shipping-progress-wrap {
  --cfw-fill-color: #2f3d2a;
  --cfw-tier-color: #c9a84c;
  display: flex !important;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  margin: 0 0 1.1rem !important;
  padding: 0.9rem 1rem 1rem !important;
  background: #fffef8 !important;
  border: 1px solid #e8dfd4 !important;
  border-radius: 14px !important;
  overflow: visible !important;
}
html body .cfw-side-cart-free-shipping-progress-wrap > p,
html body .cfw-side-cart-free-shipping-progress-wrap .cfw-xtra-small {
  margin: 0 0 0.35rem !important;
  text-align: left;
  font-family: Montserrat, system-ui, sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.4;
  color: #2f3d2a !important;
}
html body .cfw-side-cart-free-shipping-progress-wrap strong,
html body .cfw-side-cart-free-shipping-progress-wrap .woocommerce-Price-amount {
  color: #2f3d2a !important;
  font-weight: 750 !important;
}
html body .cfw-side-cart-free-shipping-progress,
html body .cfw-side-cart-free-shipping-rail {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 10px !important;
  margin: 0.2rem 0 0.55rem !important;
  background: #efe6d8 !important;
  border-radius: 999px !important;
  overflow: visible !important;
}
html body .cfw-side-cart-free-shipping-progress-indicator {
  display: block !important;
  height: 10px !important;
  width: var(--cfw-fill, 0%) !important;
  max-width: 100% !important;
  background: #2f3d2a !important;
  border-radius: 999px !important;
}
html body .cfw-tier-node {
  position: absolute !important;
  left: var(--cfw-tier-pos, 100%) !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fffef8 !important;
  border: 2px solid #c9a84c !important;
  border-radius: 50% !important;
  color: #c9a84c !important;
  box-shadow: none !important;
  z-index: 2;
}
html body .cfw-tier-node svg {
  width: 11px !important;
  height: 11px !important;
  stroke: #c9a84c !important;
}
html body .cfw-tier-node--met {
  background: #2f3d2a !important;
  border-color: #2f3d2a !important;
  color: #fffcf8 !important;
}
html body .cfw-tier-node--met svg {
  stroke: #fffcf8 !important;
}
html body .cfw-tier-labels {
  position: relative !important;
  height: 2.3rem !important;
  margin: 0 !important;
  overflow: visible !important;
}
html body .cfw-tier-label {
  position: absolute !important;
  left: var(--cfw-tier-pos, 100%) !important;
  top: 0 !important;
  transform: translateX(-100%) !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
  text-align: right;
  white-space: nowrap;
  min-width: 0;
}
html body .cfw-tier-label__name {
  font-family: Montserrat, system-ui, sans-serif !important;
  font-size: 0.66rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a84c !important;
  line-height: 1.2;
}
html body .cfw-tier-label__threshold,
html body .cfw-tier-label__threshold .woocommerce-Price-amount {
  font-family: Montserrat, system-ui, sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  color: #2f3d2a !important;
}

@media (min-width: 992px) {
  body.checkout-wc #cfw-cart-summary {
    margin-top: -11.75rem !important;
    padding-top: 0.35rem !important;
  }
  body.checkout-wc #cfw-cart-summary-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

/* Side cart — Copify ships lavender; force Crystal forest / cream / gold. */
html body #cfw-side-cart {
  --cfw-buttons-primary-background-color: #2f3d2a;
  --cfw-buttons-primary-hover-background-color: #3a4a36;
  --cfw-buttons-primary-text-color: #fffcf8;
  --cfw-buttons-primary-hover-text-color: #fffcf8;
  --cfw-buttons-secondary-background-color: #2f3d2a;
  --cfw-buttons-secondary-hover-background-color: #3a4a36;
  --cfw-buttons-secondary-text-color: #fffcf8;
  --cfw-buttons-secondary-hover-text-color: #fffcf8;
  --cfw-body-link-color: #2f3d2a;
  --cfw-header-text-color: #2f3d2a;
  --cfw-body-text-color: #3d4038;
  --cfw-cart-summary-link-color: #2f3d2a;
  --cfw-cart-summary-item-quantity-background-color: #2f3d2a;
  --cfw-cart-summary-item-quantity-text-color: #fffcf8;
  --cfw-cart-summary-background-color: #f7f2eb;
  --cfw-cart-summary-mobile-background-color: #f7f2eb;
  --cfw-cart-summary-text-color: #3d4038;
  --cfw-footer-text-color: #6b6458;
  --cfw-body-background-color: #fffcf8;
  --cfw-header-background-color: #fffcf8;
  --cfw-heading-font-family: "Cormorant Garamond", Georgia, serif;
  --cfw-body-font-family: Montserrat, system-ui, sans-serif;
  --cfw-side-cart-free-shipping-progress-indicator: #2f3d2a;
  --cfw-side-cart-free-shipping-progress-background: #efe6d8;
  background: #fffcf8 !important;
  color: #3d4038 !important;
  font-family: Montserrat, system-ui, sans-serif !important;
}
html body #cfw-side-cart,
html body #cfw-side-cart .cfw-side-cart-contents-header,
html body #cfw-side-cart .cfw-side-cart-contents-footer,
html body #cfw-side-cart #cfw-side-cart-form {
  color: #3d4038 !important;
}
html body #cfw-side-cart a,
html body #cfw-side-cart .cfw-cart-item-title,
html body #cfw-side-cart .cfw-cart-item-title a,
html body #cfw-side-cart .cfw-cart-item-product-name,
html body #cfw-side-cart .cfw-remove-item-button,
html body #cfw-side-cart .cfw-cart-edit-item-variation,
html body #cfw-side-cart .woocommerce-Price-amount {
  color: #2f3d2a !important;
}
html body #cfw-side-cart .cfw-side-cart-close-btn,
html body #cfw-side-cart .cfw-quantity-stepper-btn-minus,
html body #cfw-side-cart .cfw-quantity-stepper-btn-plus {
  color: #2f3d2a !important;
  background: transparent !important;
  border-color: #2f3d2a !important;
}
html body #cfw-side-cart .cfw-quantity-stepper-value-label {
  color: #3d4038 !important;
}
html body #cfw-side-cart .cfw-primary-btn,
html body #cfw-side-cart .cfw-suggested-product-add-to-cart {
  background: #2f3d2a !important;
  color: #fffcf8 !important;
  border-color: #2f3d2a !important;
  font-family: Montserrat, system-ui, sans-serif !important;
  font-weight: 700 !important;
}
html body #cfw-side-cart .cfw-primary-btn:hover,
html body #cfw-side-cart .cfw-suggested-product-add-to-cart:hover {
  background: #3a4a36 !important;
  color: #fffcf8 !important;
}
html body #cfw-side-cart .cfw-secondary-btn {
  background: #fffcf8 !important;
  color: #2f3d2a !important;
  border: 1px solid #2f3d2a !important;
  font-family: Montserrat, system-ui, sans-serif !important;
  font-weight: 700 !important;
}
html body #cfw-side-cart .cfw-secondary-btn:hover {
  background: #f7f2eb !important;
  color: #2f3d2a !important;
}
html body #cfw-side-cart h1,
html body #cfw-side-cart h2,
html body #cfw-side-cart h3,
html body #cfw-side-cart h4 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: #2f3d2a !important;
}
