/* Shared shell. The route classes are attached only while the Storefront adapter runs. */
body.theme-storefront.gss-b1-active {
  --gss-b1-gutter: clamp(16px, 4vw, 96px);
  --gss-b1-paper: #f7f8f2;
  --gss-b1-white: #fff;
  --gss-b1-ink: #102a43;
  --gss-b1-muted: #465e74;
  --gss-b1-blue: #2155f5;
  --gss-b1-blue-dark: #1742ce;
  --gss-b1-lime: #dfff48;
  --gss-b1-line: #d2dce4;
  --gss-b1-image: #e6edf4;
  --gss-b1-radius: 14px;
  --gss-b1-font: Arial, Helvetica, sans-serif;
  --gss-b1-display: "GSS Court", Impact, "Arial Narrow", Arial, sans-serif;
  --gss-gutter: var(--gss-b1-gutter);
  background: var(--gss-b1-paper);
  padding-bottom: 0;
}

body.theme-storefront.gss-b1-active.gss-b1-home:has(.gss-home-electric) {
  --ec-gutter: var(--gss-b1-gutter);
}

/* Catalog owns these variables for Shop and the other three content pages. */
body.theme-storefront.gss-b1-active:is(.gss-shop-catalog, .gss-wholesale-active, .gss-about-active, .gss-contact-active) {
  --shop-gutter: var(--gss-b1-gutter);
  --shop-wall: 100%;
}

/* Storefront supplies the header/footer landmarks; restore the outer boxes on Home. */
body.theme-storefront.gss-b1-active #page > #masthead:has(> .gss-b1-header),
body.theme-storefront.gss-b1-active.gss-b1-home #page > #masthead:has(> .gss-b1-header) {
  position: relative;
  z-index: 30;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: var(--gss-b1-paper);
  border: 0;
  overflow: visible;
  pointer-events: auto;
}

body.theme-storefront.gss-b1-active #page > #colophon:has(.gss-b1-footer),
body.theme-storefront.gss-b1-active.gss-b1-home #page > #colophon:has(.gss-b1-footer) {
  display: block;
  margin: 0;
  padding: 0;
  background: var(--gss-b1-paper);
  border-top: 1px solid var(--gss-b1-line);
  color: var(--gss-b1-ink);
}

body.theme-storefront.gss-b1-active #page > #colophon > .col-full:has(.gss-b1-footer) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.gss-b1-active :is(.gss-b1-header, .gss-b1-footer) {
  box-sizing: border-box;
  color: var(--gss-b1-ink);
  font: 400 15px/1.5 var(--gss-b1-font);
}

.gss-b1-active :is(.gss-b1-header, .gss-b1-footer) *,
.gss-b1-active :is(.gss-b1-header, .gss-b1-footer) *::before,
.gss-b1-active :is(.gss-b1-header, .gss-b1-footer) *::after {
  box-sizing: border-box;
}

.gss-b1-active .gss-b1-wrap {
  width: calc(100% - 2 * var(--gss-b1-gutter));
  max-width: none;
  margin-inline: auto;
}

.gss-b1-active .gss-b1-announcement {
  background: var(--gss-b1-blue);
  color: var(--gss-b1-white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

.gss-b1-active .gss-b1-announcement > .gss-b1-wrap {
  display: grid;
  min-height: 29px;
  place-content: center;
}

.gss-b1-active .gss-b1-announcement p {
  margin: 0;
}

.gss-b1-active .gss-b1-header-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 2vw, 32px);
  min-height: 72px;
}

.gss-b1-active .gss-b1-header {
  border-bottom: 1px solid var(--gss-b1-line);
}

body.gss-b1-active :is(#masthead, #colophon) .gss-b1-brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  color: var(--gss-b1-blue);
  font: italic 800 clamp(19px, 1.75vw, 29px)/.91 var(--gss-b1-display);
  letter-spacing: -.035em;
  text-decoration: none;
  text-transform: uppercase;
}

body.gss-b1-active :is(#masthead, #colophon) :is(a, button, summary, input):focus-visible {
  outline: 2px solid var(--gss-b1-blue-dark);
  outline-offset: 3px;
}

.gss-b1-active .gss-b1-nav ul,
.gss-b1-active .gss-b1-footer ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gss-b1-active .gss-b1-nav ul {
  align-items: center;
  gap: clamp(4px, 1vw, 16px);
}

.gss-b1-active #masthead .gss-b1-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 .45em;
  color: var(--gss-b1-ink);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.gss-b1-active #masthead .gss-b1-nav a:is(:hover, [aria-current]) {
  color: var(--gss-b1-blue-dark);
  text-decoration: underline;
  text-underline-offset: .28em;
  text-decoration-thickness: 2px;
}

.gss-b1-active .gss-b1-menu-account,
.gss-b1-active .gss-b1-header .gss-b1-menu > summary {
  display: none;
}

.gss-b1-active .gss-b1-tools {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 4px;
}

.gss-b1-active .gss-b1-header .gss-b1-tool {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  color: var(--gss-b1-ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  text-decoration: none;
}

.gss-b1-active .gss-b1-header .gss-b1-tool:is(:hover, :focus-visible),
.gss-b1-active .gss-b1-header details[open] > summary.gss-b1-tool {
  color: var(--gss-b1-blue-dark);
  background: var(--gss-b1-white);
  border-color: var(--gss-b1-line);
}

.gss-b1-active .gss-b1-header summary.gss-b1-tool::-webkit-details-marker {
  display: none;
}

.gss-b1-active .gss-b1-header .gss-b1-tool svg {
  flex: 0 0 auto;
  display: block;
  width: 20px;
  height: 20px;
}

.gss-b1-active .gss-b1-header .gss-b1-cart {
  padding-inline: 8px;
}

.gss-b1-active .gss-b1-cart-label {
  font-weight: 700;
}

.gss-b1-active .gss-b1-cart-count {
  display: grid;
  place-items: center;
  min-width: 1.55em;
  min-height: 1.55em;
  padding-inline: .25em;
  background: var(--gss-b1-blue);
  color: var(--gss-b1-white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.gss-b1-active .gss-b1-cart-amount {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.gss-b1-active :is(.gss-b1-search-panel, .gss-b1-menu > .gss-b1-nav) {
  box-sizing: border-box;
  border-radius: var(--gss-b1-radius);
}

.gss-b1-active .gss-b1-search-panel {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 3;
  width: min(100%, 480px);
  padding: 18px;
  border: 1px solid var(--gss-b1-line);
  background: var(--gss-b1-white);
  box-shadow: 0 14px 30px #102a431f;
}

.gss-b1-active .gss-b1-header .gss-b1-search-close {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 4px;
}

.gss-b1-active .gss-b1-header .gss-b1-search-close[hidden] {
  display: none;
}

.gss-b1-active .gss-b1-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  margin: 0;
}

.gss-b1-active .gss-b1-search-form label {
  grid-column: 1 / -1;
  display: block;
  padding: 5px 42px 5px 0;
  font-size: 16px;
  font-weight: 700;
}

.gss-b1-active #masthead .gss-b1-search-form input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #a9bccb;
  border-radius: 8px;
  color: var(--gss-b1-ink);
  background: var(--gss-b1-white);
  box-shadow: none;
  font: inherit;
}

.gss-b1-active .gss-b1-search-form button[type="submit"] {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  color: var(--gss-b1-white);
  background: var(--gss-b1-blue);
  font: 700 14px/1.25 var(--gss-b1-font);
}

.gss-b1-active .gss-b1-search-form button[type="submit"]:hover {
  background: var(--gss-b1-blue-dark);
}

.gss-b1-active .gss-b1-search-clear {
  grid-column: 1 / -1;
  justify-self: start;
  padding-block: .45em;
  color: var(--gss-b1-blue-dark);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.gss-b1-active .gss-b1-footer {
  padding-block: clamp(28px, 5vw, 70px);
}

.gss-b1-active .gss-b1-footer-grid {
  display: grid;
  grid-template-columns: minmax(7.5em, 1.15fr) repeat(2, minmax(7.5em, 1fr)) minmax(10em, 1.4fr);
  gap: clamp(16px, 4vw, 64px);
}

.gss-b1-active .gss-b1-footer-grid > * {
  min-width: 0;
}

.gss-b1-active .gss-b1-footer ul {
  flex-direction: column;
}

.gss-b1-active #colophon .gss-b1-footer-title {
  margin: 0 0 8px;
  color: var(--gss-b1-ink);
  font: 700 15px/1.35 var(--gss-b1-font);
}

.gss-b1-active .gss-b1-footer p {
  margin: 6px 0 0;
}

.gss-b1-active #colophon .gss-b1-footer li a {
  display: inline-block;
  padding-block: .38em;
  color: var(--gss-b1-ink);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .2em;
}

.gss-b1-active #colophon .gss-b1-footer li a:hover {
  color: var(--gss-b1-blue-dark);
  text-decoration-color: currentColor;
}

.gss-b1-active .gss-b1-currency-context {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 4px 10px;
  border: 1px solid var(--gss-b1-line);
  border-radius: 999px;
  background: var(--gss-b1-white);
  color: var(--gss-b1-muted);
  font: 700 13px/1.4 var(--gss-b1-font);
}

.gss-b1-active #content .gss-b1-price-currency {
  display: inline-block;
  color: var(--gss-b1-muted);
  font-size: .72em;
  font-weight: 700;
  white-space: nowrap;
}

/* Preserve native templates and extend only their aligned outer containers. */
body.theme-storefront.gss-b1-active:is(.gss-b1-category, .gss-b1-product, .gss-b1-transaction, .gss-b1-account) #page #content {
  background: var(--gss-b1-paper);
}

body.theme-storefront.gss-b1-active:is(.gss-b1-category, .gss-b1-product, .gss-b1-transaction, .gss-b1-account) #page #content > .col-full {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--gss-b1-gutter);
}

body.theme-storefront.gss-b1-active:is(.gss-b1-category, .gss-b1-product, .gss-b1-transaction, .gss-b1-account) #primary {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
}

body.theme-storefront.gss-b1-active #page .storefront-breadcrumb {
  background: var(--gss-b1-paper);
  border-color: var(--gss-b1-line);
}

body.theme-storefront.gss-b1-active #page .storefront-breadcrumb > .col-full {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--gss-b1-gutter);
}

body.theme-storefront.gss-b1-active.gss-b1-category.woocommerce #main .woocommerce-products-header,
body.theme-storefront.gss-b1-active.page:is(.gss-b1-transaction, .gss-b1-account) #page #main > article > .entry-header {
  margin: 0 calc(-1 * var(--gss-b1-gutter)) clamp(24px, 4vw, 50px);
  padding: clamp(30px, 5.1vw, 80px) var(--gss-b1-gutter);
  background: var(--gss-b1-paper);
  border-bottom: 1px solid var(--gss-b1-line);
}

body.theme-storefront.gss-b1-active.gss-b1-category.woocommerce #main .woocommerce-products-header h1,
body.theme-storefront.gss-b1-active.page:is(.gss-b1-transaction, .gss-b1-account) #page #main > article > .entry-header h1 {
  margin: 0;
  color: var(--gss-b1-ink);
  font: italic 800 clamp(35px, 5vw, 70px)/.96 var(--gss-b1-display);
  letter-spacing: -.035em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

body.theme-storefront.gss-b1-active.page:is(.gss-b1-transaction, .gss-b1-account) #page #main > article > .entry-content {
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(36px, 5vw, 76px);
}

body.theme-storefront.gss-b1-active.gss-b1-transaction #page .wp-block-woocommerce-cart.alignwide,
body.theme-storefront.gss-b1-active.gss-b1-transaction #page .wp-block-woocommerce-checkout.alignwide {
  width: 100%;
  max-width: 94rem;
  margin-inline: 0;
}

body.theme-storefront.gss-b1-active.gss-b1-transaction :is(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) {
  border-color: var(--gss-b1-line);
  border-radius: var(--gss-b1-radius);
  background: var(--gss-b1-white);
}

body.theme-storefront.gss-b1-active.gss-b1-account .woocommerce-MyAccount-navigation {
  border-color: var(--gss-b1-line);
  border-radius: var(--gss-b1-radius);
  background: var(--gss-b1-white);
}

body.theme-storefront.gss-b1-active.gss-b1-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--gss-b1-ink);
}

body.theme-storefront.gss-b1-active.gss-b1-account .woocommerce-MyAccount-navigation .is-active a {
  color: var(--gss-b1-blue-dark);
  font-weight: 700;
}

body.theme-storefront.gss-b1-active.gss-b1-account .woocommerce-MyAccount-content {
  max-width: 75rem;
  overflow-wrap: anywhere;
}

body.theme-storefront.gss-b1-active.gss-b1-product #page #main div.product .summary {
  border-color: var(--gss-b1-line);
  border-radius: var(--gss-b1-radius);
}

body.theme-storefront.gss-b1-active.gss-b1-product #page #main div.product .woocommerce-product-gallery {
  border-color: var(--gss-b1-line);
  border-radius: var(--gss-b1-radius);
  background: var(--gss-b1-image);
}

body.theme-storefront.gss-b1-active.gss-b1-product #page #main div.product .product_title {
  color: var(--gss-b1-ink);
  font-style: normal;
  overflow-wrap: anywhere;
}

body.theme-storefront.gss-b1-active.gss-b1-product #page #main div.product .summary > .price {
  color: var(--gss-b1-ink);
}

body.theme-storefront.gss-b1-active.gss-b1-product #page .woocommerce-product-details__short-description,
body.theme-storefront.gss-b1-active.gss-b1-product #page .woocommerce-tabs .panel p {
  max-width: 75ch;
}

/* Shared card treatment. Shop and Home keep their display counts and native stock/variation links. */
body.theme-storefront.gss-b1-active:is(.gss-b1-home, .gss-b1-catalog, .gss-b1-category, .gss-b1-product) #page #main ul.products li.product {
  padding: clamp(10px, 1.25vw, 18px);
  border: 1px solid var(--gss-b1-line);
  border-radius: var(--gss-b1-radius);
  background: var(--gss-b1-white);
}

body.theme-storefront.gss-b1-active:is(.gss-b1-home, .gss-b1-catalog, .gss-b1-category, .gss-b1-product) #page #main ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 8px;
  color: var(--gss-b1-ink);
  font: 700 clamp(16px, 1.45vw, 22px)/1.32 var(--gss-b1-font);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

body.theme-storefront.gss-b1-active:is(.gss-b1-home, .gss-b1-catalog, .gss-b1-category, .gss-b1-product) #page #main ul.products li.product .price {
  margin: auto 0 0;
  color: var(--gss-b1-ink);
  font: 700 clamp(16px, 1.35vw, 22px)/1.4 var(--gss-b1-font);
  overflow-wrap: anywhere;
}

body.theme-storefront.gss-b1-active:is(.gss-b1-home, .gss-b1-catalog, .gss-b1-category, .gss-b1-product) #page #main ul.products li.product
  :is(.woocommerce-loop-product__link, .woocommerce-LoopProduct-link) > img {
  box-sizing: border-box;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin: 0 0 12px;
  padding: clamp(6px, 1.2vw, 16px);
  border-radius: calc(var(--gss-b1-radius) - 3px);
  background: var(--gss-b1-image);
}

body.theme-storefront.gss-b1-active:is(.gss-b1-home, .gss-b1-catalog, .gss-b1-category, .gss-b1-product, .gss-b1-transaction, .gss-b1-account)
  #page #content #main :is(ul.products li.product .button, .single_add_to_cart_button, .wc-block-components-button.contained, .woocommerce-MyAccount-content .button, .woocommerce-form-login .button, .woocommerce-form-register .button) {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--gss-b1-blue);
  color: var(--gss-b1-white);
  font: 700 15px/1.25 var(--gss-b1-font);
  text-decoration: none;
  white-space: normal;
}

body.theme-storefront.gss-b1-active.gss-b1-home #page #main ul.products li.product > :is(.button, .added_to_cart) {
  max-width: 100%;
  margin-inline: 0;
}

body.theme-storefront.gss-b1-active:is(.gss-b1-home, .gss-b1-catalog, .gss-b1-category, .gss-b1-product, .gss-b1-transaction, .gss-b1-account)
  #page #content #main :is(ul.products li.product .button, .single_add_to_cart_button, .wc-block-components-button.contained, .woocommerce-MyAccount-content .button, .woocommerce-form-login .button, .woocommerce-form-register .button):hover {
  background: var(--gss-b1-blue-dark);
  color: var(--gss-b1-white);
}

body.theme-storefront.gss-b1-active #page #content #main :is(ul.products li.product .button, .single_add_to_cart_button, .wc-block-components-button.contained):is(.disabled, :disabled, [aria-disabled="true"]) {
  opacity: .65;
  cursor: not-allowed;
}

@media (max-width: 1150px) {
  .gss-b1-active .gss-b1-cart-label {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
  }
}

@media (max-width: 899px) {
  .gss-b1-active .gss-b1-header-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 4px;
    min-height: 63px;
  }

  .gss-b1-active .gss-b1-header .gss-b1-menu > summary {
    display: inline-flex;
  }

  .gss-b1-active .gss-b1-menu {
    grid-column: 3;
    grid-row: 1;
  }

  .gss-b1-active .gss-b1-tools {
    grid-column: 2;
    grid-row: 1;
  }

  .gss-b1-active .gss-b1-header .gss-b1-account-tool {
    display: none;
  }

  .gss-b1-active .gss-b1-menu[open] .gss-b1-menu-account {
    display: block;
  }

  .gss-b1-active .gss-b1-menu > .gss-b1-nav {
    position: absolute;
    inset: calc(100% + 8px) 0 auto auto;
    z-index: 2;
    width: min(100%, 360px);
    padding: 12px;
    border: 1px solid var(--gss-b1-line);
    background: var(--gss-b1-white);
    box-shadow: 0 14px 30px #102a431f;
  }

  .gss-b1-active .gss-b1-nav ul {
    display: block;
  }

  .gss-b1-active #masthead .gss-b1-nav a {
    padding-inline: 12px;
  }
}

@media (max-width: 700px) {
  .gss-b1-active .gss-b1-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  body.theme-storefront.gss-b1-active.gss-b1-product #page #main div.product :is(.woocommerce-product-gallery, .summary) {
    float: none;
    width: 100%;
    margin-inline: 0;
    padding: clamp(14px, 4vw, 24px);
  }

  body.theme-storefront.gss-b1-active.gss-b1-transaction :is(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) {
    padding: clamp(10px, 4vw, 20px);
  }
}

@media (max-width: 480px) {
  .gss-b1-active .gss-b1-tools {
    gap: 1px;
  }

  .gss-b1-active .gss-b1-header .gss-b1-cart {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    justify-items: center;
    gap: 2px 4px;
    padding: 3px 7px;
  }

  .gss-b1-active .gss-b1-cart-amount {
    grid-column: 1 / -1;
    font-size: 11px;
    line-height: 1.1;
  }

  body.theme-storefront.gss-b1-active #page .gss-contact-hub .gssc-channels-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.theme-storefront.gss-b1-active #page .gss-contact-hub .gssc-channel {
    min-width: 0;
  }

  body.theme-storefront.gss-b1-active #page .gss-contact-hub .gssc-channel-body {
    min-width: 0;
    max-width: 100%;
  }

  body.theme-storefront.gss-b1-active #page .gss-contact-hub [data-gssc-channel="phone"] .gssc-channel-link {
    display: inline-flex;
    flex-wrap: nowrap;
    max-width: 100%;
    font-size: 14px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  body.theme-storefront.gss-b1-active #page .gss-contact-hub [data-gssc-channel="email"] .gssc-channel-link,
  body.theme-storefront.gss-b1-active #page .gss-contact-hub .gssc-featured-email {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.theme-storefront.gss-b1-active #page .gss-contact-hub [data-gssc-channel="email"] .gssc-channel-link {
    font-size: 14px;
  }
}
