/*
 * Tink's modern responsive header — v0.0.4
 * Load after the BurnEngine and /2026 stylesheets.
 * Requires tinks-modern-header-v004.js.
 *
 * V4 uses a dedicated shell containing the original live widgets. No element
 * ID is changed or duplicated.
 */

html.tinks-modern-header-v4 {
  --tmh-bg: #303234;
  --tmh-bg-deep: #303234;
  --tmh-nav: #aaa9a6;
  --tmh-nav-hover: #bebdb9;
  --tmh-ink: #f7f8f8;
  --tmh-dark-ink: #22262a;
  --tmh-field: #ffffff;
  --tmh-field-ink: #25282c;
  --tmh-line: rgba(255, 255, 255, 0.14);
  --tmh-green: #78cc00;
  --tmh-green-hover: #66b000;
  --tmh-green-dark: #4c8e00;
  --tmh-focus: rgba(120, 204, 0, 0.38);
  --tmh-shadow: 0 6px 22px rgba(0, 0, 0, 0.2);
  --tmh-control-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
  --tmh-edge: clamp(14px, 2.25vw, 38px);
}

html.tinks-modern-header-v4 body {
  padding-top: 0 !important;
}

html.tinks-modern-header-v4 #header,
html.tinks-modern-header-v4 #header *,
html.tinks-modern-header-v4 #header *::before,
html.tinks-modern-header-v4 #header *::after {
  box-sizing: border-box;
}

html.tinks-modern-header-v4 #header {
  position: sticky !important;
  top: 0 !important;
  right: auto !important;
  left: auto !important;
  z-index: 1000 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: none !important;
  color: var(--tmh-ink) !important;
  background: var(--tmh-bg) !important;
  border: 0 !important;
  box-shadow: var(--tmh-shadow) !important;
}

/* The original BurnEngine rows remain in the DOM as harmless placeholders. */
html.tinks-modern-header-v4 #header > .row_6JMb0,
html.tinks-modern-header-v4 #header > .row_mmsQR {
  display: none !important;
}

html.tinks-modern-header-v4 #header .tmh-v4-main {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  background: var(--tmh-bg) !important;
}

html.tinks-modern-header-v4 #header .tmh-v4-nav {
  display: block !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--tmh-dark-ink) !important;
  background: var(--tmh-nav) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14) !important;
}

html.tinks-modern-header-v4 #HeaderLogoSystem_TXk8xnRf,
html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn,
html.tinks-modern-header-v4 #Menu_I7WjR8GS,
html.tinks-modern-header-v4 #Menu_JVh77V8A,
html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Logo ------------------------------------------------------------------- */
html.tinks-modern-header-v4 #HeaderLogoSystem_TXk8xnRf {
  grid-area: logo;
  align-self: center;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

html.tinks-modern-header-v4 #site_logo {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

html.tinks-modern-header-v4 #site_logo img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 56px !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
}

/* Search ----------------------------------------------------------------- */
html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn {
  grid-area: search;
  align-self: center;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #search,
html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn .tb_search_wrap {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 48px !important;
  width: 100% !important;
  max-width: none !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn .tb_search_wrap.fa-search::before {
  content: none !important;
  display: none !important;
}

html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #filter_keyword {
  position: relative !important;
  inset: auto !important;
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  color: var(--tmh-field-ink) !important;
  background: var(--tmh-field) !important;
  border: 1px solid #c9ced2 !important;
  border-right: 0 !important;
  border-radius: 10px 0 0 10px !important;
  box-shadow: inset 0 1px 2px rgba(16, 24, 32, 0.06) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 44px !important;
  outline: 0 !important;
}

html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #filter_keyword::placeholder {
  color: #747b82 !important;
  opacity: 1 !important;
}

html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #filter_keyword:focus {
  border-color: var(--tmh-green) !important;
  box-shadow: 0 0 0 3px var(--tmh-focus) !important;
}

/* Two IDs intentionally outrank BurnEngine's generated .btn rule. */
html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #search_button,
html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #search_button:not(:hover) {
  position: relative !important;
  inset: auto !important;
  grid-column: 2 !important;
  display: block !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #fff !important;
  background: var(--tmh-green) !important;
  border: 1px solid var(--tmh-green) !important;
  border-radius: 0 10px 10px 0 !important;
  box-shadow: var(--tmh-control-shadow) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
}

html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #search_button::before {
  content: "" !important;
  position: absolute !important;
  top: 11px !important;
  left: 14px !important;
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  background: transparent !important;
  transform: none !important;
}

html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #search_button::after {
  content: "" !important;
  position: absolute !important;
  top: 26px !important;
  left: 29px !important;
  display: block !important;
  width: 9px !important;
  height: 2px !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 2px !important;
  transform: rotate(45deg) !important;
  transform-origin: left center !important;
}

html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #search_button:hover,
html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #search_button:focus-visible {
  background: var(--tmh-green-hover) !important;
  border-color: var(--tmh-green-hover) !important;
}

/* Shared green control language ----------------------------------------- */
html.tinks-modern-header-v4 #header .tbToggleHeader,
html.tinks-modern-header-v4 #header .tbToggleCart,
html.tinks-modern-header-v4 #Menu_I7WjR8GS nav > ul > li > a,
html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO .heading > a {
  color: #fff !important;
  background: var(--tmh-green) !important;
  border: 1px solid var(--tmh-green-dark) !important;
  border-radius: 10px !important;
  box-shadow: var(--tmh-control-shadow) !important;
}

html.tinks-modern-header-v4 #header .tbToggleHeader:hover,
html.tinks-modern-header-v4 #header .tbToggleCart:hover,
html.tinks-modern-header-v4 #Menu_I7WjR8GS nav > ul > li > a:hover,
html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO .heading > a:hover {
  color: #fff !important;
  background: var(--tmh-green-hover) !important;
}

/* Account --------------------------------------------------------------- */
html.tinks-modern-header-v4 #Menu_I7WjR8GS {
  grid-area: account;
  align-self: center;
  justify-self: end;
  display: block !important;
  width: 48px !important;
  min-width: 48px !important;
}

html.tinks-modern-header-v4 #Menu_I7WjR8GS nav,
html.tinks-modern-header-v4 #Menu_I7WjR8GS nav > ul,
html.tinks-modern-header-v4 #Menu_I7WjR8GS nav > ul > li {
  position: relative !important;
  width: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.tinks-modern-header-v4 #Menu_I7WjR8GS nav > ul > li > .tb_toggle {
  display: none !important;
}

html.tinks-modern-header-v4 #Menu_I7WjR8GS nav > ul > li > a {
  display: grid !important;
  place-items: center !important;
  width: 48px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.tinks-modern-header-v4 #Menu_I7WjR8GS .tb_icon,
html.tinks-modern-header-v4 #Menu_I7WjR8GS .tb_icon i {
  margin: 0 !important;
  color: #fff !important;
  font-size: 25px !important;
  line-height: 1 !important;
}

html.tinks-modern-header-v4 #Menu_I7WjR8GS nav > ul > li > a > .tb_text,
html.tinks-modern-header-v4 #Menu_I7WjR8GS nav > ul > li > a .tb_icon {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

html.tinks-modern-header-v4 #Menu_I7WjR8GS .tb_icon i::before {
  display: block !important;
  margin: 0 !important;
  line-height: 1 !important;
}

html.tinks-modern-header-v4 #Menu_I7WjR8GS .dropdown-menu {
  right: 0 !important;
  left: auto !important;
}

/* Cart ------------------------------------------------------------------ */
html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO {
  grid-area: cart;
  align-self: center;
  justify-self: end;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
}

html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO #cart,
html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO #cart > ul,
html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO .heading {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO .heading > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 48px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 10px !important;
}

html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO .tb_icon {
  margin: 0 !important;
  color: #fff !important;
  font-size: 23px !important;
}

html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO .tb_label {
  margin-left: 8px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO .tb_items {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 21px !important;
  height: 21px !important;
  margin: 0 0 0 7px !important;
  padding: 0 5px !important;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
}

html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO .tb_items::before,
html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO .tb_items::after {
  content: none !important;
  display: none !important;
}

/* Silver desktop navigation -------------------------------------------- */
html.tinks-modern-header-v4 #Menu_JVh77V8A {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  color: var(--tmh-dark-ink) !important;
  background: transparent !important;
}

html.tinks-modern-header-v4 #Menu_JVh77V8A > nav,
html.tinks-modern-header-v4 #Menu_JVh77V8A > nav > ul {
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.tinks-modern-header-v4 #Menu_JVh77V8A > nav > ul {
  display: flex !important;
  align-items: stretch !important;
  padding-inline: var(--tmh-edge) !important;
}

html.tinks-modern-header-v4 #Menu_JVh77V8A > nav > ul > li > a {
  display: flex !important;
  align-items: center !important;
  min-height: 48px !important;
  padding: 0 18px !important;
  color: var(--tmh-dark-ink) !important;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 760 !important;
}

html.tinks-modern-header-v4 #Menu_JVh77V8A > nav > ul > li > a:hover {
  color: #111 !important;
  background: var(--tmh-nav-hover) !important;
}

html.tinks-modern-header-v4 #header a:focus-visible,
html.tinks-modern-header-v4 #header [role="button"]:focus-visible,
html.tinks-modern-header-v4 #header input:focus-visible {
  outline: 3px solid var(--tmh-focus) !important;
  outline-offset: 2px !important;
}

/* Desktop/tablet landscape --------------------------------------------- */
@media (min-width: 901px) {
  html.tinks-modern-header-v4 #header .tmh-v4-main {
    grid-template-columns: minmax(160px, 235px) minmax(250px, 1fr) auto 48px !important;
    grid-template-areas: "logo search cart account" !important;
    grid-template-rows: 78px !important;
    column-gap: clamp(12px, 1.6vw, 24px) !important;
    align-items: center !important;
    padding: 0 var(--tmh-edge) !important;
  }

  html.tinks-modern-header-v4 #header .tbToggleHeader,
  html.tinks-modern-header-v4 #header .tbToggleCart {
    display: none !important;
  }

  html.tinks-modern-header-v4 #header .tbToggleButtons {
    display: none !important;
  }
}

@media (min-width: 901px) and (max-width: 1179px) {
  html.tinks-modern-header-v4 #header .tmh-v4-main {
    grid-template-columns: minmax(155px, 195px) minmax(230px, 1fr) 48px 48px !important;
    column-gap: 12px !important;
  }

  html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO .tb_label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO .heading > a {
    width: 48px !important;
    padding: 0 !important;
  }

  html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO .tb_items {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    border: 2px solid var(--tmh-bg) !important;
  }
}

/* Phone/tablet ---------------------------------------------------------- */
@media (max-width: 900px) {
  html.tinks-modern-header-v4 #header .tmh-v4-main {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 62px 56px !important;
    gap: 0 !important;
    align-items: center !important;
    min-height: 118px !important;
    padding: 0 !important;
  }

  html.tinks-modern-header-v4 #HeaderLogoSystem_TXk8xnRf {
    grid-area: 1 / 1 !important;
    padding: 6px 8px !important;
    z-index: 1 !important;
  }

  html.tinks-modern-header-v4 #site_logo {
    justify-content: center !important;
  }

  html.tinks-modern-header-v4 #site_logo img {
    max-width: min(195px, 100%) !important;
    max-height: 48px !important;
    object-position: center !important;
  }

  html.tinks-modern-header-v4 #header .tbToggleButtons {
    position: relative !important;
    inset: auto !important;
    grid-area: 1 / 1 !important;
    align-self: stretch !important;
    display: block !important;
    width: 100% !important;
    height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    z-index: 2 !important;
  }

  html.tinks-modern-header-v4 #header .tbToggleHeader,
  html.tinks-modern-header-v4 #header .tbToggleCart {
    position: absolute !important;
    top: 8px !important;
    display: grid !important;
    place-items: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 23px !important;
    line-height: 1 !important;
    pointer-events: auto !important;
  }

  html.tinks-modern-header-v4 #header .tbToggleHeader {
    right: auto !important;
    bottom: auto !important;
    left: 6px !important;
  }

  html.tinks-modern-header-v4 #header .tbToggleCart {
    right: 6px !important;
    bottom: auto !important;
    left: auto !important;
  }

  html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn {
    grid-area: 2 / 1 !important;
    align-self: start !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 6px 8px !important;
    background: var(--tmh-bg-deep) !important;
    border-top: 1px solid var(--tmh-line) !important;
  }

  html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #search,
  html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn .tb_search_wrap {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: none !important;
  }

  html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #filter_keyword {
    grid-column: 1 !important;
    border-right: 1px solid #c9ced2 !important;
    border-radius: 10px !important;
  }

  html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #search_button,
  html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #search_button:not(:hover),
  html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #search_button::before,
  html.tinks-modern-header-v4 #HeaderSearchSystem_L8WUcHtn #search_button::after {
    display: none !important;
  }

  html.tinks-modern-header-v4 #Menu_I7WjR8GS,
  html.tinks-modern-header-v4 #HeaderCartMenuSystem_HJ4nU3fO,
  html.tinks-modern-header-v4 #header .tmh-v4-nav {
    display: none !important;
  }

  /*
   * slide-cart.js moves the live cart widget into this off-canvas container.
   * Keep it hidden in our header grid, but allow it to render after that move.
   */
  html.tinks-modern-header-v4 #tb_mobile_car_menu #HeaderCartMenuSystem_HJ4nU3fO,
  html.tinks-modern-header-v4 #tb_mobile_car_menu .tb_system_cart_menu {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 480px) {
  html.tinks-modern-header-v4 #header .tbToggleHeader,
  html.tinks-modern-header-v4 #header .tbToggleCart {
    width: 44px !important;
    min-width: 44px !important;
  }

  html.tinks-modern-header-v4 #site_logo img {
    max-width: min(178px, 100%) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.tinks-modern-header-v4 #header *,
  html.tinks-modern-header-v4 #header *::before,
  html.tinks-modern-header-v4 #header *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
