/* Public form fields and dropdown arrows */
:root {
  --bb-select-appearance: none;
  --bb-select-chevron:
    linear-gradient(45deg, transparent 38%, currentColor 38% 62%, transparent 62%),
    linear-gradient(135deg, transparent 38%, currentColor 38% 62%, transparent 62%);
}

html:root body select:not(.select2-hidden-accessible):not(.select2-offscreen),
html:root body select :is(option, optgroup),
html:root body .bb-product-summary :is(.quantity input.qty, .bb-merch-personalize input[type="text"]),
html:root body :is(
  input:not([type="button"], [type="submit"], [type="reset"], [type="image"],
    [type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="hidden"]),
  textarea, [role="textbox"], [role="searchbox"], [role="spinbutton"],
  [role="combobox"], [role="listbox"] [role="option"],
  .select2-selection__rendered, .select2-selection__placeholder,
  .select2-results__option, .select2-search__field
):not(:where(#wpadminbar *)) {
  font-family: 'Roboto Mono', ui-monospace, monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.02em;
  text-transform: uppercase !important;
}

html:root body :is(input, textarea):not(:where(#wpadminbar *))::placeholder,
html:root body input[type="file"]::file-selector-button {
  font-family: inherit !important;
  font-size: inherit !important;
  letter-spacing: inherit;
  text-transform: inherit !important;
}

html body select:not([multiple]):not(.select2-hidden-accessible, .select2-offscreen, .wc-blocks-components-select__select):is(:not([size]), [size=""], [size="0"], [size="1"]) {
  -webkit-appearance: var(--bb-select-appearance) !important;
  appearance: var(--bb-select-appearance) !important;
  box-sizing: border-box;
  text-overflow: ellipsis;
  padding-inline-end: 38px !important;
  background-image: var(--bb-select-chevron) !important;
  background-repeat: no-repeat !important;
  background-size: 6px 6px !important;
  background-position: var(--bb-select-position, right 21px center, right 16px center) !important;
}

html body select:dir(rtl) {
  --bb-select-position: left 16px center, left 21px center;
}

/* WooCommerce supplies its own arrow for these controls. */
html body .select2-selection--single .select2-selection__rendered,
html body .wc-blocks-components-select .wc-blocks-components-select__select {
  padding-inline-end: 38px !important;
}

html body .select2-selection--single .select2-selection__arrow,
html body .wc-blocks-components-select .wc-blocks-components-select__expand {
  inset-inline-start: auto !important;
  inset-inline-end: 16px !important;
}

@media (forced-colors: active) {
  :root {
    --bb-select-appearance: auto;
    --bb-select-chevron: none;
  }
}

/* The same approved Work Sans font files embedded in the current homepage. */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/work-sans-400.woff') format('woff');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/work-sans-500.woff') format('woff');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/work-sans-600.woff') format('woff');
}

/* Preserve each module's size, line height, weight and heading/label families. */
html body {
  font-family: 'Work Sans', Arial, sans-serif !important;
}

/* A remaining paragraph rule in the original origin-story module names Arial. */
html body .bb22-result p {
  font-family: 'Work Sans', Arial, sans-serif !important;
}

/* Bio copy also has legacy paragraph shorthands and font:inherit rules. */
html body.about-editorial .author-hero .hero-description,
html body.about-editorial .author-hero .hero-description p,
html body #her-story .intro-body,
html body #her-story .bbAbout-story-paragraph > p {
  font-family: 'Work Sans', Arial, sans-serif !important;
}

/* Bully Bully: reserve room for the account and cart in the site header. */
@media (min-width: 951px) {
  html body .bbph-site-header .bbph-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    column-gap: 20px;
  }
  html body .bbph-site-header .bbph-wordmark,
  html body .bbph-site-header .bbap-site-tools,
  html body .bbph-site-header .bbcc-header-cart {
    flex: 0 0 auto;
  }
}
@media (min-width: 1401px) {
  html body .bbph-site-header .bbph-navigation { gap: 18px; }
  html body .bbph-site-header .bbph-navigation a {
    font-size: 11px;
    letter-spacing: .025em;
  }
}
@media (min-width: 951px) and (max-width: 1400px) {
  html body .bbph-site-header .bbph-wordmark { margin-right: auto; }
  html body .bbph-site-header .bbph-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 10px;
    min-width: 80px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--bbph-ink, #34222f);
    border-radius: 3px;
    background: transparent;
    color: var(--bbph-ink, #34222f);
    font: 400 11px/1.5 'Roboto Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  html body .bbph-site-header .bbph-menu-toggle span {
    font-size: 20px;
    line-height: 1;
  }
  html body .bbph-site-header .bbph-navigation {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    width: auto;
    margin: 0;
    padding: 10px 36px 20px;
    max-height: calc(100dvh - 125px);
    overflow-y: auto;
    background: var(--bbph-paper, #fffefb);
    border-bottom: 1px solid var(--bbph-line, #34222f2d);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 10001;
  }
  html body .bbph-site-header .bbph-navigation.is-open { display: flex; }
  html body .bbph-site-header .bbph-navigation a {
    display: block;
    min-height: 44px;
    box-sizing: border-box;
    padding: 12px 0;
    border-bottom: 1px solid var(--bbph-line, #34222f2d);
    font-size: 12px;
    line-height: 1.6;
    white-space: normal;
    text-align: left;
  }
  html body .bbph-site-header .bbph-shop-link span { display: inline; }
  html body .bbph-site-header .bbcc-cart-word { display: none; }
}
