.tdr-woo-language-bar {
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
  padding: .35rem clamp(1rem, 4vw, 4.5rem);
  background: #080a08;
  border-bottom: 1px solid #293026;
  color: #eef2ea;
  font: 600 .85rem/1.2 system-ui, sans-serif;
}

.tdr-woo-language-bar a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2rem;
  padding: .2rem .55rem;
  border: 1px solid transparent;
  border-radius: .3rem;
  color: inherit;
  text-decoration: none;
}

.tdr-woo-language-bar a[aria-current="page"] {
  color: #b7ff2a;
  border-color: #51622a;
  background: #151b0e;
}

.tdr-woo-language-bar a:hover { color: #b7ff2a; }
.tdr-woo-language-bar a:focus-visible { outline: 2px solid #b7ff2a; outline-offset: 2px; }

.tdr-woo-language-bar .tdr-flag {
  width: 1.25rem;
  height: .8rem;
  flex: none;
  border-radius: 2px;
  background: center / cover no-repeat;
}

.tdr-woo-language-bar .tdr-flag-es { background-image: url(es.png); }
.tdr-woo-language-bar .tdr-flag-en { background-image: url(en.png); }

body:has(.tdr-woo-language-bar) :is(#trp-floater-ls, .trp-floating-switcher) {
  display: none !important;
}

html[lang|="en"] body.single-product.postid-3477 .summary.entry-summary::before {
  content: "LAUNCH PRICE · DIGITAL PACK";
}

@media (min-width: 922px) {
  /* The English CTA is wider. Move its right edge to keep the gap beside the cart. */
  html[lang|="en"] #masthead #ast-desktop-header :is(.main-header-menu, .ast-nav-menu) > .menu-item:last-child {
    right: 30px !important;
  }

  html[lang|="en"] #masthead #ast-desktop-header .header-cart-btn::after {
    content: "Basket" !important;
  }
}

@media (922px <= width < 1300px) {
  /* Keep the two actions in the top row and give the navigation its own row. */
  #masthead #ast-desktop-header {
    display: block;
    --tdr-header-actions-height: 72px;
    --tdr-header-menu-height: 44px;
  }

  #masthead #ast-desktop-header :is(.ast-primary-header-bar, .site-primary-header-wrap, .ast-builder-grid-row) {
    height: auto !important;
    min-height: calc(var(--tdr-header-actions-height) + var(--tdr-header-menu-height)) !important;
  }

  #masthead #ast-desktop-header .site-header-primary-section-left {
    align-self: start !important;
    min-height: var(--tdr-header-actions-height);
  }

  #masthead #ast-desktop-header .site-header-primary-section-center {
    height: auto !important;
    align-items: flex-end !important;
  }

  #masthead #ast-desktop-header .site-header-primary-section-center :is(.ast-builder-menu-1, .ast-main-header-bar-alignment, .main-header-bar-navigation, nav, .main-navigation) {
    height: var(--tdr-header-menu-height) !important;
  }

  #masthead #ast-desktop-header :is(.main-header-menu, .ast-nav-menu) {
    position: static !important;
    height: var(--tdr-header-menu-height) !important;
    min-height: var(--tdr-header-menu-height) !important;
  }

  #masthead #ast-desktop-header :is(.main-header-menu, .ast-nav-menu) > .menu-item:not(:last-child) > .menu-link {
    height: auto !important;
    min-height: var(--tdr-header-menu-height) !important;
  }
}

/* WooCommerce still submits the hidden quantity for a product sold individually. */
body.single-product.postid-3477 .summary form.cart > .quantity:has(> input.qty[type="hidden"]),
body.single-product.postid-3477 .summary form.cart::before,
body.single-product.postid-3477 .summary form.cart::after {
  display: none !important;
}

@media (pointer: coarse) {
  .tdr-woo-language-bar a { min-height: 44px; }
}

@media (max-width: 767px) {
  body.single-product.postid-3477 #product-3477 .summary.entry-summary > :is(p.ast-stock-detail, p.stock) {
    display: block !important;
    position: static !important;
    float: none !important;
    line-height: 1.45 !important;
  }

  body.single-product.postid-3477 #product-3477 .summary.entry-summary > p.ast-stock-detail > .stock {
    margin: 0 !important;
  }

  body.single-product.postid-3477 #product-3477 .summary.entry-summary > :is(p.ast-stock-detail, p.stock) ~ form.cart {
    margin-top: 16px !important;
  }

  body.single-product.postid-3477 #product-3477 .summary.entry-summary > form.cart > .single_add_to_cart_button {
    position: static !important;
    transform: none !important;
  }
}
