/* GWL Shop Purchase UI v1.0.0 — exact GWL digital-product body scope.
   Match approved custom toolkit gold/navy buttons; preserve all WooCommerce form logic. */
body.gwl-shop-r1-product {
  --gwl-r1-gold: #e4b955;
  --gwl-r1-gold-hover: #f0cb77;
  --gwl-r1-navy: #092341;
  --gwl-r1-button-ink: #111e2f;
  --gwl-r1-light-border: #d4e3ef;
}

/* Purchase action: visible filled button rather than bare uppercase text. */
body.gwl-shop-r1-product .single_add_to_cart_button,
body.gwl-shop-r1-product .woocommerce button.button.single_add_to_cart_button,
body.gwl-shop-r1-product .woocommerce div.product form.cart button.single_add_to_cart_button,
body.gwl-shop-r1-product .woocommerce div.product form.cart .button.single_add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 12px 23px !important;
  border: 2px solid var(--gwl-r1-gold) !important;
  border-radius: 5px !important;
  background: var(--gwl-r1-gold) !important;
  background-color: var(--gwl-r1-gold) !important;
  color: var(--gwl-r1-button-ink) !important;
  font: 800 15px/1.45 Inter, Arial, sans-serif !important;
  text-transform: none !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  white-space: normal !important;
}
body.gwl-shop-r1-product .single_add_to_cart_button:hover,
body.gwl-shop-r1-product .single_add_to_cart_button:focus-visible,
body.gwl-shop-r1-product .woocommerce div.product form.cart button.single_add_to_cart_button:hover {
  background: var(--gwl-r1-gold-hover) !important;
  background-color: var(--gwl-r1-gold-hover) !important;
  border-color: var(--gwl-r1-gold-hover) !important;
  color: var(--gwl-r1-button-ink) !important;
}
body.gwl-shop-r1-product .single_add_to_cart_button:focus-visible,
body.gwl-shop-r1-product .related.products a.button:focus-visible {
  outline: 3px solid var(--gwl-r1-navy) !important;
  outline-offset: 3px !important;
}
body.gwl-shop-r1-product .single_add_to_cart_button:disabled,
body.gwl-shop-r1-product .single_add_to_cart_button.disabled {
  cursor: not-allowed !important;
  opacity: .55 !important;
}

/* A shared visual hierarchy on individual-item templates. */
body.gwl-shop-r1-product .woocommerce div.product .product_title,
body.gwl-shop-r1-product .product_title.entry-title {
  color: var(--gwl-r1-navy) !important;
  font-family: Archivo, Inter, Arial, sans-serif !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}
body.gwl-shop-r1-product .woocommerce div.product p.price,
body.gwl-shop-r1-product .woocommerce div.product span.price,
body.gwl-shop-r1-product div.product .summary p.price {
  color: var(--gwl-r1-navy) !important;
  font-weight: 800 !important;
  font-size: clamp(22px, 2.4vw, 28px) !important;
  line-height: 1.35 !important;
}
body.gwl-shop-r1-product .woocommerce-breadcrumb,
body.gwl-shop-r1-product .woocommerce .woocommerce-breadcrumb {
  color: #38536c !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  overflow-wrap: anywhere !important;
}
body.gwl-shop-r1-product .woocommerce-breadcrumb a,
body.gwl-shop-r1-product .woocommerce .woocommerce-breadcrumb a {
  color: #056c59 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}
body.gwl-shop-r1-product form.cart .quantity input.qty {
  min-height: 46px !important;
  border: 1px solid #bfcfdc !important;
  border-radius: 5px !important;
  font-size: 16px !important;
  color: var(--gwl-r1-navy) !important;
}

/* Plain, factual link to currently published product terms. */
body.gwl-shop-r1-product .gwl-shop-r1-terms-note {
  clear: both;
  max-width: 36rem;
  margin: 12px 0 20px !important;
  font: 500 14px/1.6 Inter, Arial, sans-serif !important;
  color: #38536c !important;
}
body.gwl-shop-r1-product .gwl-shop-r1-terms-note a {
  color: #056c59 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}
body.gwl-shop-r1-product .gwl-shop-r1-terms-note a:focus-visible {
  outline: 2px solid var(--gwl-r1-navy) !important;
  outline-offset: 3px !important;
}

/* Consistent related-resource cards and CTAs, without modifying add-to-cart links. */
body.gwl-shop-r1-product .related.products h2,
body.gwl-shop-r1-product .upsells.products h2 {
  color: var(--gwl-r1-navy) !important;
  font-family: Archivo, Inter, Arial, sans-serif !important;
  font-weight: 800 !important;
}
body.gwl-shop-r1-product .related.products ul.products li.product .button,
body.gwl-shop-r1-product .related.products ul.products li.product a.add_to_cart_button,
body.gwl-shop-r1-product .upsells.products ul.products li.product .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  background: var(--gwl-r1-gold) !important;
  border: 1px solid var(--gwl-r1-gold) !important;
  border-radius: 5px !important;
  color: var(--gwl-r1-button-ink) !important;
  font: 800 14px/1.45 Inter, Arial, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}
body.gwl-shop-r1-product .related.products ul.products li.product .button:hover,
body.gwl-shop-r1-product .related.products ul.products li.product .button:focus-visible,
body.gwl-shop-r1-product .upsells.products ul.products li.product .button:hover {
  background: var(--gwl-r1-gold-hover) !important;
  border-color: var(--gwl-r1-gold-hover) !important;
}
@media (max-width: 600px) {
  body.gwl-shop-r1-product .single_add_to_cart_button {
    min-width: min(100%, 210px) !important;
  }
  body.gwl-shop-r1-product .woocommerce-breadcrumb {
    font-size: 14px !important;
  }
}
