/* ToneTrade chrome UI — mini-cart drawer + mobile sticky footer
 *
 * Global stacking (body-level; drawer/backdrop are portaled to <body>):
 *   page content ...................... auto / low
 *   nav.tt-mobile-sticky .............. 10020  (--tt-chrome-z-sticky)
 *   #tt-helpford-root (FAB) ........... 10030  (--tt-chrome-z-helpford)
 *   .td-site-header / .td-hdr-sticky .... 10050  (td-site-header-layout)
 *   #tt-helpford-root (panel open) .... 109000 (--tt-chrome-z-helpford-open)
 *   header while cart open (under) .... 10040  (--tt-chrome-z-header-under)
 *   .td-megamenu-backdrop ............. 10100
 *   .td-megamenu-panel ................ 10110
 *   header while megamenu open ........ 10120
 *   .tt-mini-cart__backdrop ........... 110000  (drawer - 10)
 *   header while cart open ............ 10040  (--tt-chrome-z-header-under)
 *   #tt-mini-cart-drawer .............. 110010  (--tt-chrome-z-drawer)
 *   .iziModal-overlay (report listing) . 120000
 *   #dokan-modal-report-abuse-popup ... 120010
 *   Elementor lightbox ................ ~120050 (shortcodes)
 *
 * Stack while cart/mega/sheets open: invisible catchers only (no dim). Header pins at
 * measured --tt-header-pin-top (stable under WP admin). Cart drawer over chrome;
 * mega panel below chrome. Background scroll locked via JS.
 * JS portals drawer/backdrop to <body> so header stacking context cannot trap them.
 */
:root {
  --tt-chrome-primary: var(--e-global-color-primary, #1B1B1B);
  --tt-chrome-secondary: var(--e-global-color-secondary, #FF5A00);
  --tt-chrome-white: #fff;
  --tt-chrome-muted: color-mix(in srgb, var(--tt-chrome-primary) 55%, transparent);
  --tt-chrome-line: color-mix(in srgb, var(--tt-chrome-primary) 12%, transparent);
  --tt-chrome-surface: #f7f6f5;
  --tt-chrome-z-drawer: 110010;
  --tt-chrome-z-header-over: 110020;
  --tt-chrome-z-header-under: 10040;
  --tt-chrome-z-sticky: 10020;
  --tt-chrome-z-helpford: 10030;
  --tt-chrome-z-helpford-open: 109000;
  --tt-chrome-sticky-h: 64px;
}

/* Hide leftover Elementor Menu Cart when ToneTrade mini-cart is present */
body.tt-has-mini-cart .elementor-widget-woocommerce-menu-cart,
body.tt-has-mini-cart .elementor-widget-menu-cart,
body.tt-has-mini-cart #elementor-menu-cart__toggle_button {
  display: none !important;
}

/* ── Mini-cart toggle ─────────────────────────────────── */
.tt-mini-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 2;
}
.tt-mini-cart__toggle {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--tt-chrome-primary) !important;
  cursor: pointer;
  line-height: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, color .15s ease;
}
.tt-mini-cart__toggle:hover,
.tt-mini-cart__toggle:focus-visible,
.tt-mini-cart.is-open .tt-mini-cart__toggle {
  background: color-mix(in srgb, var(--tt-chrome-secondary) 12%, transparent) !important;
  color: var(--tt-chrome-secondary) !important;
}
.tt-mini-cart__toggle:focus-visible {
  outline: 2px solid var(--tt-chrome-secondary);
  outline-offset: 2px;
}
.tt-mini-cart__toggle svg {
  width: 22px !important;
  height: 22px !important;
  display: block;
  stroke: currentColor;
  fill: none;
}
.tt-mini-cart__count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--tt-chrome-secondary);
  color: var(--tt-chrome-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
}
.tt-mini-cart__count.is-empty {
  display: none;
}

/* ── Drawer + invisible outside-click catcher (no dim; --tt-cart-top = admin bar) ─ */
.tt-mini-cart__backdrop,
html body .tt-mini-cart__backdrop {
  position: fixed !important;
  inset: auto 0 0 0 !important;
  top: var(--tt-cart-top, 0px) !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: calc(var(--tt-chrome-z-drawer) - 10) !important; /* 110000 */
  background: transparent !important;
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
  transition: visibility .22s ease;
}
.tt-mini-cart.is-open .tt-mini-cart__backdrop,
html.tt-mini-cart-open .tt-mini-cart__backdrop,
html.tt-mini-cart-open body .tt-mini-cart__backdrop,
html.tt-mini-cart-open .tt-mini-cart__backdrop.is-open {
  opacity: 0 !important;
  background: transparent !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.tt-mini-cart__drawer,
html body #tt-mini-cart-drawer,
html body .tt-mini-cart__drawer {
  position: fixed !important;
  top: var(--tt-cart-top, 0px) !important;
  right: 0 !important;
  left: auto !important;
  bottom: 0 !important;
  z-index: var(--tt-chrome-z-drawer) !important; /* 110010 */
  width: min(100vw - 28px, 380px);
  max-width: 100%;
  height: auto !important;
  max-height: none !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--tt-chrome-white);
  color: var(--tt-chrome-primary);
  box-shadow: -12px 0 40px rgba(27, 27, 27, .18);
  /* Closed only — never select html.tt-mini-cart-open here (specificity landmine). */
  transform: translateX(104%);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1);
  box-sizing: border-box;
}
/* Fragment panel fills space under head; body scrolls, foot stays pinned. */
.tt-mini-cart__panel,
html body #tt-mini-cart-drawer .tt-mini-cart__panel,
html body .tt-mini-cart__drawer .tt-mini-cart__panel {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
}
/* Portaled drawer is a body child — match html/body + !important so open always wins. */
.tt-mini-cart.is-open .tt-mini-cart__drawer,
html.tt-mini-cart-open .tt-mini-cart__drawer,
html.tt-mini-cart-open #tt-mini-cart-drawer,
html.tt-mini-cart-open body #tt-mini-cart-drawer,
html.tt-mini-cart-open body .tt-mini-cart__drawer {
  transform: translateX(0) !important;
  top: var(--tt-cart-top, 0px) !important;
  z-index: var(--tt-chrome-z-drawer) !important;
}
/*
 * Pin header shell while cart/mega open — overflow:hidden unsticks sticky mid-scroll.
 * Header stays bright at z-index 10050; cart drawer (110010) covers it visually.
 */
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) #tt-site-chrome,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) #tt-site-chrome.td-hdr-sticky,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .tt-site-chrome-shell,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .tt-site-chrome-shell.td-hdr-sticky,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .elementor-location-header,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .elementor-location-header.td-hdr-sticky,
html.td-chip-sheet-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) #tt-site-chrome,
html.td-chip-sheet-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) #tt-site-chrome.td-hdr-sticky,
html.td-chip-sheet-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .tt-site-chrome-shell,
html.td-chip-sheet-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .tt-site-chrome-shell.td-hdr-sticky,
html.td-chip-sheet-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .elementor-location-header,
html.td-chip-sheet-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .elementor-location-header.td-hdr-sticky {
  position: fixed !important;
  top: var(--tt-header-pin-top, 0px) !important;
  left: 0 !important;
  right: var(--tt-scrollbar-w, 0px) !important;
  width: auto !important;
  max-width: none !important;
  z-index: 10050 !important;
  background: #fff !important;
  background-color: var(--e-global-color-accent, #fff) !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  height: auto !important;
  margin-top: 0 !important;
}
html.tt-mini-cart-open:not(.elementor-html) body:not(.admin-bar) #tt-site-chrome,
html.tt-mini-cart-open:not(.elementor-html) body:not(.admin-bar) #tt-site-chrome.td-hdr-sticky,
html.tt-mini-cart-open:not(.elementor-html) body:not(.admin-bar) .tt-site-chrome-shell,
html.tt-mini-cart-open:not(.elementor-html) body:not(.admin-bar) .tt-site-chrome-shell.td-hdr-sticky,
html.tt-mini-cart-open:not(.elementor-html) body:not(.admin-bar) .elementor-location-header,
html.tt-mini-cart-open:not(.elementor-html) body:not(.admin-bar) .elementor-location-header.td-hdr-sticky,
html.td-megamenu-open:not(.elementor-html) body:not(.admin-bar) #tt-site-chrome,
html.td-megamenu-open:not(.elementor-html) body:not(.admin-bar) .tt-site-chrome-shell,
html.td-megamenu-open:not(.elementor-html) body:not(.admin-bar) .elementor-location-header,
html.td-chip-sheet-open:not(.elementor-html) body:not(.admin-bar) #tt-site-chrome,
html.td-chip-sheet-open:not(.elementor-html) body:not(.admin-bar) .tt-site-chrome-shell,
html.td-chip-sheet-open:not(.elementor-html) body:not(.admin-bar) .elementor-location-header,
html.tt-scroll-locked:not(.elementor-html) body:not(.admin-bar) #tt-site-chrome,
html.tt-scroll-locked:not(.elementor-html) body:not(.admin-bar) .tt-site-chrome-shell,
html.tt-scroll-locked:not(.elementor-html) body:not(.admin-bar) .elementor-location-header,
body.tt-sidebar-mobile-open:not(.admin-bar) #tt-site-chrome,
body.tt-sidebar-mobile-open:not(.admin-bar) .tt-site-chrome-shell,
body.tt-sidebar-mobile-open:not(.admin-bar) .elementor-location-header {
  top: var(--tt-header-pin-top, 0px) !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) #tt-site-chrome .td-site-chrome,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) #tt-site-chrome .td-site-header,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .tt-site-chrome-shell .td-site-chrome,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .tt-site-chrome-shell .td-site-header,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .elementor-location-header .e-con,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .elementor-location-header .elementor-element.e-con,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .elementor-location-header .elementor-widget,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .elementor-location-header .elementor-sticky,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .elementor-location-header .elementor-sticky--active,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .elementor-location-header .td-site-header,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .elementor-location-header .td-site-header.td-hdr-sticky {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  z-index: auto !important;
  transform: none !important;
  isolation: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
/* Fallback when no Elementor Theme Builder header shell. */
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active):not(:has(.elementor-location-header)) .td-site-header.td-hdr-sticky,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active):not(:has(.elementor-location-header)) .td-site-chrome,
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active):not(:has(.elementor-location-header)) .td-site-header {
  position: fixed !important;
  top: var(--tt-header-pin-top, 0px) !important;
  left: 0 !important;
  right: var(--tt-scrollbar-w, 0px) !important;
  width: auto !important;
  z-index: 10050 !important;
  background: #fff !important;
  background-color: var(--e-global-color-accent, #fff) !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
/* Elementor sticky clones stay under the cart overlay — never demote the header shell. */
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .elementor-sticky--active:not(.elementor-location-header):not(.td-site-header):not(.td-site-chrome),
html.tt-mini-cart-open:not(.elementor-html):not(.elementor-editor-active) body:not(.elementor-editor-active) .elementor-sticky.elementor-sticky__spacer + .elementor-sticky:not(.elementor-location-header),
html.tt-mini-cart-open body .e-con.elementor-sticky--active {
  z-index: var(--tt-chrome-z-header-under) !important;
}
.tt-mini-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--tt-chrome-line);
  flex: 0 0 auto;
}
.tt-mini-cart__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--tt-chrome-primary);
}
.tt-mini-cart__close {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 10px !important;
  background: var(--tt-chrome-surface) !important;
  color: var(--tt-chrome-primary) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  line-height: 0 !important;
  font-size: 0 !important;
  text-decoration: none !important;
}
.tt-mini-cart__close svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex: 0 0 auto !important;
  stroke: currentColor !important;
  fill: none !important;
  color: inherit !important;
  pointer-events: none;
}
.tt-mini-cart__close svg * {
  stroke: currentColor !important;
  fill: none !important;
}
.tt-mini-cart__close:hover,
.tt-mini-cart__close:focus-visible {
  color: var(--tt-chrome-secondary) !important;
  background: color-mix(in srgb, var(--tt-chrome-secondary) 12%, var(--tt-chrome-surface)) !important;
  outline: none;
}
.tt-mini-cart__close:focus-visible {
  outline: 2px solid var(--tt-chrome-secondary) !important;
  outline-offset: 2px;
}
.tt-mini-cart__body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.tt-mini-cart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
  padding: 24px 12px;
  text-align: center;
  color: var(--tt-chrome-muted);
}
.tt-mini-cart__empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--tt-chrome-secondary) 12%, transparent);
  color: var(--tt-chrome-secondary);
}
.tt-mini-cart__empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.tt-mini-cart__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 22px;
  gap: 12px 8px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--tt-chrome-line);
}
.tt-mini-cart__item:last-child {
  border-bottom: none;
}
.tt-mini-cart__thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--tt-chrome-surface);
  display: block;
}
.tt-mini-cart__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  border-radius: 10px !important;
}
.tt-mini-cart__meta {
  min-width: 0;
}
.tt-mini-cart__name {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--tt-chrome-primary);
  text-decoration: none !important;
}
.tt-mini-cart__name:hover {
  color: var(--tt-chrome-secondary);
}
.tt-mini-cart__qty {
  margin: 0;
  font-size: 12px;
  color: var(--tt-chrome-muted);
}
.tt-mini-cart__vendor {
  margin: 4px 0 0;
}
.tt-mini-cart__vendor .td-wc-vendor-meta {
  font-size: 11px !important;
  gap: 3px !important;
}
.tt-mini-cart__price {
  margin: 0;
  padding-top: 1px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tt-chrome-primary);
  white-space: nowrap;
  text-align: right;
}
.tt-mini-cart__remove {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  align-self: start !important;
  justify-self: end !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--tt-chrome-secondary) !important;
  font-family: inherit !important;
  font-size: 0 !important;
  font-weight: 600 !important;
  line-height: 0 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
  max-width: 100% !important;
}
.tt-mini-cart__remove svg {
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  flex: 0 0 auto !important;
  stroke: currentColor !important;
  fill: none !important;
  color: inherit !important;
  pointer-events: none;
}
.tt-mini-cart__remove svg * {
  stroke: currentColor !important;
  fill: none !important;
}
.tt-mini-cart__remove:hover,
.tt-mini-cart__remove:focus-visible {
  color: var(--tt-chrome-secondary) !important;
  background: color-mix(in srgb, var(--tt-chrome-secondary) 14%, transparent) !important;
  outline: none;
}
.tt-mini-cart__remove:focus-visible {
  outline: 2px solid var(--tt-chrome-secondary) !important;
  outline-offset: 1px;
}
.tt-mini-cart__foot {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--tt-chrome-line);
  background: var(--tt-chrome-white);
  position: relative;
  z-index: 1;
}
.tt-mini-cart__subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 14px;
}
.tt-mini-cart__subtotal strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--tt-chrome-primary);
}
.tt-mini-cart__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tt-mini-cart__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-align: center;
  box-sizing: border-box;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tt-mini-cart__btn--ghost {
  background: transparent !important;
  color: var(--tt-chrome-primary) !important;
  border: 1.5px solid var(--tt-chrome-line) !important;
}
.tt-mini-cart__btn--ghost:hover {
  border-color: var(--tt-chrome-primary) !important;
}
.tt-mini-cart__btn--solid {
  background: var(--tt-chrome-secondary) !important;
  color: var(--tt-chrome-white) !important;
  border: 1.5px solid var(--tt-chrome-secondary) !important;
}
.tt-mini-cart__btn--solid:hover {
  background: var(--tt-chrome-primary) !important;
  border-color: var(--tt-chrome-primary) !important;
}
.tt-mini-cart__btn--full {
  grid-column: 1 / -1;
  background: var(--tt-chrome-secondary) !important;
  color: var(--tt-chrome-white) !important;
  border: none !important;
}
/*
 * Scroll lock: body overflow + JS pin (top:-scrollY). Never overflow:hidden on
 * html — iOS/Safari jumps the page to the top, then close restores scrollY.
 */
html.tt-scroll-locked body,
html.tt-mini-cart-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
html.tt-scroll-locked,
html.tt-mini-cart-open,
html.td-megamenu-open {
  overscroll-behavior: none;
}
#tt-hdr-lock-spacer {
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  visibility: hidden;
  flex: 0 0 auto;
}

/* ── Mobile sticky footer ─────────────────────────────── */
.tt-mobile-sticky {
  display: none;
}
@media (max-width: 1024px) {
  body.tt-has-mobile-sticky {
    padding-bottom: calc(var(--tt-chrome-sticky-h) + env(safe-area-inset-bottom, 0px)) !important;
  }
  .tt-mobile-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--tt-chrome-z-sticky);
    display: block;
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: color-mix(in srgb, var(--tt-chrome-primary) 96%, #000);
    color: var(--tt-chrome-white) !important;
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 -8px 28px rgba(27, 27, 27, .28);
    box-sizing: border-box;
  }
  .tt-mobile-sticky__inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    min-height: var(--tt-chrome-sticky-h);
    max-width: 560px;
    margin: 0 auto;
    padding: 4px 4px 6px;
  }
  /* Beat Elementor/theme link + SVG color overrides (dark-on-charcoal). */
  nav.tt-mobile-sticky a.tt-mobile-sticky__item,
  nav.tt-mobile-sticky button.tt-mobile-sticky__item,
  .tt-mobile-sticky .tt-mobile-sticky__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 6px 2px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, .88) !important;
    text-decoration: none !important;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border-radius: 12px;
    transition: color .15s ease, background .15s ease;
  }
  nav.tt-mobile-sticky a.tt-mobile-sticky__item:hover,
  nav.tt-mobile-sticky a.tt-mobile-sticky__item:focus-visible,
  nav.tt-mobile-sticky button.tt-mobile-sticky__item:hover,
  nav.tt-mobile-sticky button.tt-mobile-sticky__item:focus-visible,
  .tt-mobile-sticky .tt-mobile-sticky__item:hover,
  .tt-mobile-sticky .tt-mobile-sticky__item:focus-visible {
    color: #fff !important;
    background: rgba(255, 255, 255, .06);
  }
  .tt-mobile-sticky__item:focus-visible {
    outline: 2px solid var(--tt-chrome-secondary);
    outline-offset: -2px;
  }
  nav.tt-mobile-sticky a.tt-mobile-sticky__item.is-active,
  .tt-mobile-sticky .tt-mobile-sticky__item.is-active {
    color: #fff !important;
  }
  nav.tt-mobile-sticky a.tt-mobile-sticky__item.is-active .tt-mobile-sticky__icon,
  nav.tt-mobile-sticky a.tt-mobile-sticky__item.is-active .tt-mobile-sticky__icon svg,
  nav.tt-mobile-sticky a.tt-mobile-sticky__item.is-active .tt-mobile-sticky__icon svg *,
  .tt-mobile-sticky .tt-mobile-sticky__item.is-active .tt-mobile-sticky__icon,
  .tt-mobile-sticky .tt-mobile-sticky__item.is-active .tt-mobile-sticky__icon svg,
  .tt-mobile-sticky .tt-mobile-sticky__item.is-active .tt-mobile-sticky__icon svg * {
    color: var(--tt-chrome-secondary) !important;
    stroke: currentColor !important;
    fill: none !important;
  }
  .tt-mobile-sticky .tt-mobile-sticky__item.is-active .tt-mobile-sticky__icon svg circle {
    fill: currentColor !important;
    stroke: none !important;
  }
  nav.tt-mobile-sticky a.tt-mobile-sticky__item--sell .tt-mobile-sticky__icon,
  .tt-mobile-sticky .tt-mobile-sticky__item--sell .tt-mobile-sticky__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--tt-chrome-secondary) !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -10px;
    box-shadow: 0 4px 14px rgba(255, 90, 0, .45);
  }
  nav.tt-mobile-sticky a.tt-mobile-sticky__item--sell .tt-mobile-sticky__icon svg,
  nav.tt-mobile-sticky a.tt-mobile-sticky__item--sell .tt-mobile-sticky__icon svg *,
  .tt-mobile-sticky .tt-mobile-sticky__item--sell .tt-mobile-sticky__icon svg,
  .tt-mobile-sticky .tt-mobile-sticky__item--sell .tt-mobile-sticky__icon svg * {
    color: #fff !important;
    stroke: #fff !important;
    fill: none !important;
  }
  nav.tt-mobile-sticky a.tt-mobile-sticky__item--sell .tt-mobile-sticky__label,
  .tt-mobile-sticky .tt-mobile-sticky__item--sell .tt-mobile-sticky__label {
    color: var(--tt-chrome-secondary) !important;
    font-weight: 700;
  }
  .tt-mobile-sticky__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 0;
    color: inherit !important;
  }
  nav.tt-mobile-sticky .tt-mobile-sticky__icon svg,
  .tt-mobile-sticky .tt-mobile-sticky__icon svg {
    width: 22px;
    height: 22px;
    display: block;
    color: inherit !important;
    stroke: currentColor !important;
    fill: none !important;
  }
  nav.tt-mobile-sticky .tt-mobile-sticky__icon svg *,
  .tt-mobile-sticky .tt-mobile-sticky__icon svg * {
    color: inherit !important;
    stroke: currentColor !important;
    fill: none !important;
  }
  .tt-mobile-sticky .tt-mobile-sticky__icon svg circle {
    fill: currentColor !important;
    stroke: none !important;
  }
  .tt-mobile-sticky__item--sell .tt-mobile-sticky__icon svg {
    width: 18px;
    height: 18px;
  }
  nav.tt-mobile-sticky .tt-mobile-sticky__label,
  .tt-mobile-sticky .tt-mobile-sticky__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: inherit !important;
  }
  .tt-mobile-sticky__badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--tt-chrome-secondary);
    color: var(--tt-chrome-white) !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
  }
  .tt-mobile-sticky__badge.is-empty {
    display: none;
  }
  /* Footer sticky already has cart — hide header toggle only (drawer stays). */
  .td-site-header .tt-mini-cart__toggle,
  .td-site-header__actions .tt-mini-cart__toggle,
  .td-site-header button.tt-mini-cart__toggle,
  .td-site-header .tt-mini-cart > .tt-mini-cart__toggle {
    display: none !important;
  }
}
@media (min-width: 1025px) {
  .tt-mobile-sticky {
    display: none !important;
  }
}
/*
 * Drawer/sheets clear chrome via --tt-cart-top / --tt-overlay-top.
 */
/* Kill Elementor sticky spacer / extra top hole while overlays pin the header. */
html.td-megamenu-open .elementor-sticky__spacer,
html.tt-mini-cart-open .elementor-sticky__spacer,
html.td-chip-sheet-open .elementor-sticky__spacer,
html.td-megamenu-open #tt-hdr-lock-spacer,
html.td-chip-sheet-open #tt-hdr-lock-spacer {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
html.td-megamenu-open .td-site-header__inner,
html.tt-mini-cart-open .td-site-header__inner,
html.td-chip-sheet-open .td-site-header__inner {
  margin-top: 0 !important;
}
/* Report abuse / iziModal: keep scrim above chrome */
html body .iziModal-overlay,
html body div.iziModal-overlay {
  background: rgba(15, 15, 18, 0.72) !important;
  background-color: rgba(15, 15, 18, 0.72) !important;
  z-index: 120000 !important;
  opacity: 1 !important;
}
html.tt-mini-cart-open.tt-phone-cart .tt-mini-cart__backdrop,
html.tt-mini-cart-open.tt-phone-cart body .tt-mini-cart__backdrop {
  top: var(--tt-cart-top, 0px) !important;
  z-index: 2147482990 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
html.tt-mini-cart-open.tt-phone-cart #tt-mini-cart-drawer,
html.tt-mini-cart-open.tt-phone-cart .tt-mini-cart__drawer,
html.tt-mini-cart-open.tt-phone-cart body #tt-mini-cart-drawer,
html.tt-mini-cart-open.tt-phone-cart body .tt-mini-cart__drawer {
  top: var(--tt-cart-top, 0px) !important;
  z-index: 2147483000 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
  -webkit-transform: translateX(0) !important;
}
@media (max-width: 1024px) {
  html.tt-mini-cart-open .tt-mini-cart__backdrop,
  html.tt-mini-cart-open body .tt-mini-cart__backdrop,
  html.tt-mini-cart-open #tt-mini-cart-drawer,
  html.tt-mini-cart-open body #tt-mini-cart-drawer,
  html.tt-mini-cart-open .tt-mini-cart__drawer,
  html.tt-mini-cart-open body .tt-mini-cart__drawer {
    top: var(--tt-cart-top, 0px) !important;
    z-index: 2147483000 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tt-mini-cart__drawer,
  .tt-mini-cart__backdrop,
  .tt-mini-cart__toggle,
  .tt-mobile-sticky__item {
    transition: none !important;
  }
}

/* Leftover Create Account username field (cached HTML / native WP register). */
#td_reg_user_login,
label[for="td_reg_user_login"],
.td-auth-field:has(#td_reg_user_login),
.td-auth-card p:has(> #td_reg_user_login),
#registerform #user_login,
#registerform label[for="user_login"],
#registerform p:has(#user_login) {
  display: none !important;
}

/* Mobile Shop by category sheet — kit text is white; force charcoal on the white panel. */
html body .td-hdr-sheet.is-open,
html body .td-hdr-sheet.is-open[hidden] {
  display: block !important;
  pointer-events: auto !important;
}
html body .td-hdr-sheet__scrim {
  z-index: 1;
  background: transparent !important;
  opacity: 0 !important;
}
html body .td-hdr-sheet__panel {
  z-index: 2;
  /* Fill the sheet container (already cleared via --tt-overlay-top), not the viewport. */
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  max-height: none !important;
  background: #fff !important;
  color: #1b1b1b !important;
  -webkit-text-fill-color: #1b1b1b;
}
html body .td-hdr-sheet.is-open,
html body .td-hdr-sheet.is-open[hidden] {
  top: var(--tt-overlay-top, 72px) !important;
}
html body .td-hdr-sheet__item,
html body .td-hdr-sheet__item .td-hdr-sheet__label,
html body .td-hdr-sheet__label {
  color: #1b1b1b !important;
  -webkit-text-fill-color: #1b1b1b;
  font-size: 16px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
html body .td-hdr-sheet__item.is-active,
html body .td-hdr-sheet__item.is-active .td-hdr-sheet__label {
  color: #ff5a00 !important;
  -webkit-text-fill-color: #ff5a00;
}
@media (min-width: 1025px) {
  html body .td-hdr-sheet,
  html body .td-hdr-sheet.is-open,
  html body .td-hdr-sheet.is-open[hidden] {
    display: none !important;
  }
}
