/* Typography shared by the static mockups and the live storefront. */
:root {
  --type-family: Manrope, system-ui, sans-serif;
  --type-display: 44px;
  --type-title: 30px;
  --type-price: var(--type-title);
  --type-section: 22px;
  --type-card: 18px;
  --type-body: 16px;
  --type-small: 14px;

  --type-regular: 400;
  --type-medium: 500;
  --type-bold: 700;
  --type-leading-title: 1.2;
  --type-leading-body: 1.5;
  --type-leading-small: 1.4;

  --type-ink: #0b2240;
  --type-heading: #12335b;
  --type-muted: #526579;
  --type-inverse: #fff;
  --type-stock: #157a42;
  --type-sale: #c85508;
  --type-warning: #a94806;
}

@media (max-width: 640px) {
  :root {
    --type-display: 30px;
    --type-title: var(--type-section);
  }
}

body {
  font-family: var(--type-family);
  font-size: var(--type-body);
  font-weight: var(--type-regular);
  line-height: var(--type-leading-body);
  color: var(--type-ink);
}

:where(h1, h2, h3, h4, h5, h6) {
  font-weight: var(--type-bold);
  line-height: var(--type-leading-title);
}
:where(h1) { font-size: var(--type-title); }
:where(h2) { font-size: var(--type-section); }
:where(h3, h4, h5, h6) { font-size: var(--type-card); }
body small { font-size: var(--type-small); }
b, strong { font-weight: var(--type-bold); }
:where(button, input, select, textarea) { font-family: inherit; }
:where(button, input, select, textarea)::placeholder { color: var(--type-muted); opacity: 1; }

/* Shared headings, including markup generated by WooCommerce. */
.sec-h { margin-bottom: 22px; }
.sec-h h2, .faq-h, .guide-main h2, .vm-side h3, .gc-bd b {
  letter-spacing: normal;
  line-height: var(--type-leading-title);
  font-weight: var(--type-bold);
}
.sec-h h2, .faq-h { font-size: var(--type-section); }
.sec-h h2 span, .faq-h span { color: inherit; font-weight: inherit; }
.sec-h a { font-size: var(--type-small); font-weight: var(--type-medium); }

.hs-txt h1, .hp-txt h1, .hb-main h1 { font-size: var(--type-display); }
.hb-gold h2, .deal-l h2 { font-size: var(--type-section); }
.guide-hero h1 { font-size: var(--type-title); }
.ptabs-tabs { gap: 8px; }
.ptabs-tabs button { font-size: var(--type-small); font-weight: var(--type-medium); height: 42px; }
footer h4 { font-size: var(--type-small); font-weight: var(--type-bold); }

.breakdance :is(.av-related, .related.products, .upsells.products) > h2,
.breakdance :is(.av-related, .related.products, .upsells.products) h2:first-child {
  margin: 0 0 20px;
  color: var(--type-heading);
  font-size: var(--type-section);
  font-weight: var(--type-bold);
  line-height: var(--type-leading-title);
}

/* Builder typography variables also feed stock WooCommerce elements and forms. */
body.breakdance {
  --bde-base-font-size: var(--type-body);
  --bde-body-font-size: var(--type-body);
  --bde-h1-font-size: var(--type-title);
  --bde-h2-font-size: var(--type-section);
  --bde-h3-font-size: var(--type-card);
  --bde-h4-font-size: var(--type-card);
  --bde-h5-font-size: var(--type-card);
  --bde-h6-font-size: var(--type-card);
  --bde-body-font-family: var(--type-family);
  --bde-heading-font-family: var(--type-family);
  --bde-body-text-color: var(--type-ink);
  --bde-headings-color: var(--type-heading);
  --bde-links-color: var(--type-heading);
  --bde-links-color-hover: var(--type-heading);
  --bde-button-font-size: var(--type-small);
  --bde-button-font-weight: var(--type-bold);
  --bde-button-primary-background-color: var(--gold);
  --bde-button-primary-text-color: var(--type-ink);
  --bde-button-primary-text-color-hover: var(--type-ink);
  --bde-form-font-size: var(--type-body);
  --bde-form-label-font-weight: var(--type-medium);
  --bde-form-label-required-color: var(--type-warning);
  --bde-form-input-placeholder-color: var(--type-muted);
  --bde-woo-base-text-color: var(--type-ink);
  --bde-woo-base-headings-color: var(--type-heading);
  --bde-woo-notices__success-link-text: var(--type-heading);
  --bde-woo-notices__success-link-text-hover: var(--type-heading);
  --bde-woo-forms__inputs-text-color: var(--type-ink);
  --bde-woo-forms__inputs-placeholder-color: var(--type-muted);
  --bde-woo-forms__labels-required-color: var(--type-warning);
  --bde-woo-typography__size-small: var(--type-small);
  --bde-woo-typography__size-standard: var(--type-body);
  --bde-woo-typography__size-medium: var(--type-card);
  --bde-woo-typography__size-large: var(--type-section);
  --bde-woo-typography__size-extra-large: var(--type-title);
  --bde-woo-typography-font-weight-normal: var(--type-regular);
  --bde-woo-typography-font-weight-medium: var(--type-medium);
  --bde-woo-typography-font-weight-heavy: var(--type-bold);
}

.breakdance :is(.woocommerce, .woocommerce-page, .bde-woo-product-footer) .button,
.breakdance :is(.woocommerce-message, .woocommerce-thankyou-order-received) a {
  text-transform: none !important;
}

.breakdance .av-shop-sidebar :is(
  .wc-block-product-filter-checkbox-list__text,
  .wc-block-product-filter-checkbox-list__count,
  .wc-block-product-filter-checkbox-list__show-more-button,
  .wc-block-product-filter-price-slider input
) {
  color: var(--type-ink);
  font-size: var(--type-small);
  line-height: var(--type-leading-small);
}
.breakdance :is(.bde-woo-select, .av-offer-search) select { color: var(--type-ink); }
.breakdance .required { color: var(--type-warning); }
.breakdance .av-pdp-tax .woocommerce-Price-amount {
  color: inherit;
  font-weight: var(--type-medium);
}

.cart-progress-copy { font-size: var(--type-small); }

.search input::placeholder { color: var(--type-inverse); }
.search form:focus-within input::placeholder,
.h-light .search input::placeholder { color: var(--type-muted); }
.nav .all-cats span[aria-hidden] { color: inherit; }
@media (max-width: 640px) {
  .search input::placeholder { font-size: var(--type-small); }
}

.product-page .pinfo .pricebox .price { font-size: var(--type-price); }
.product-page .detail-copy { color: var(--type-ink); }
.product-page .detail-copy :is(p, ul, ol, li) {
  color: inherit;
  font-size: var(--type-body);
  line-height: var(--type-leading-body);
}
.product-page .detail-copy li > :is(ul, ol) { margin-block-start: .35em; }
.product-page .detail-copy ul ul { list-style-type: circle; }
.product-page .detail-specs :is(dt, dd) { font-size: var(--type-small); }
.product-page .detail-specs dl > div[hidden] { display: none; }
.product-page .pvideo :is(h2, p, div > small) { text-shadow: none; }
.product-page .pvideo h2 { font-size: var(--type-section); }
.product-page .pvideo p { font-size: var(--type-body); }
.product-page .pvideo div > small {
  color: var(--type-muted);
  font-size: var(--type-small);
  font-weight: var(--type-medium);
  text-transform: none;
}
.breakdance.product-page .pvideo div > small { color: var(--type-muted); }

