/* JakSkyV3 — Glossy Champagne Navigation v1.0
 * Cosmetic override for legacy desktop bar and existing More menus.
 * Mobile Shadow DOM navbar is styled by jaksky-navbar-glossy-v1.js.
 * No navigation handlers, checkout, or server behavior are modified.
 */
:root {
  --jks-glossy-ink: #49382f;
  --jks-glossy-cream: #fff7ec;
}

/* Fallback/desktop navbar: keep original click targets and position. */
html body nav.bottomNav {
  box-sizing: border-box !important;
  left: max(12px, calc((100vw - 470px) / 2)) !important;
  right: max(12px, calc((100vw - 470px) / 2)) !important;
  width: auto !important;
  max-width: 470px !important;
  height: 76px !important;
  bottom: calc(11px + env(safe-area-inset-bottom, 0px)) !important;
  padding: 6px !important;
  display: flex;
  align-items: center !important;
  border: 1px solid rgba(255, 253, 244, .86) !important;
  border-radius: 25px !important;
  background: linear-gradient(145deg,
    rgba(255, 252, 246, .97) 0%,
    rgba(245, 228, 212, .96) 53%,
    rgba(221, 194, 176, .96) 100%) !important;
  box-shadow:
    0 13px 32px rgba(53, 32, 22, .23),
    0 3px 8px rgba(83, 50, 31, .09),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(139, 98, 77, .12) !important;
  -webkit-backdrop-filter: blur(9px) saturate(122%) !important;
  backdrop-filter: blur(9px) saturate(122%) !important;
  isolation: isolate;
}
html body nav.bottomNav::before {
  display: none !important;
  content: none !important;
}
html body nav.bottomNav::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 16px !important;
  right: 16px !important;
  top: 1px !important;
  width: auto !important;
  height: 19px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.63), transparent) !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
  transform: none !important;
  animation: none !important;
  z-index: 0 !important;
}
html body nav.bottomNav > button {
  position: relative !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  height: 62px !important;
  margin: 0 !important;
  padding: 6px 2px !important;
  gap: 4px !important;
  border: 1px solid transparent !important;
  border-radius: 19px !important;
  background: transparent !important;
  color: var(--jks-glossy-ink) !important;
  -webkit-text-fill-color: var(--jks-glossy-ink) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: background-color .14s ease, color .14s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}
html body nav.bottomNav > button span {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  font: 600 10.5px/1.15 system-ui, sans-serif !important;
  letter-spacing: .01em !important;
}
html body nav.bottomNav > button svg {
  width: 24px !important;
  height: 24px !important;
  color: inherit !important;
  stroke: currentColor !important;
}
html body nav.bottomNav > button.activeNav,
html body nav.bottomNav > button.active,
html body nav.bottomNav > button.jakNavActive {
  background: linear-gradient(150deg, #765c4e 0%, #594238 56%, #47332c 100%) !important;
  border-color: rgba(255, 240, 226, .38) !important;
  color: #fff6ec !important;
  -webkit-text-fill-color: #fff6ec !important;
  box-shadow: 0 4px 11px rgba(65, 37, 24, .19), inset 0 1px rgba(255,255,255,.33) !important;
}
html body nav.bottomNav > button.activeNav::after,
html body nav.bottomNav > button.active::after,
html body nav.bottomNav > button.jakNavActive::after {
  display: none !important;
  content: none !important;
}
html body nav.bottomNav > button:focus-visible {
  outline: 2px solid #8c5949 !important;
  outline-offset: -3px !important;
}

/* All three possible original More panels. Retain their original events. */
html body #jakNativeMoreV2266,
html body #jks2265More,
html body #jks226NavMore {
  box-sizing: border-box !important;
  position: fixed !important;
  bottom: calc(98px + env(safe-area-inset-bottom, 0px)) !important;
  right: 14px !important;
  width: min(208px, calc(100vw - 28px)) !important;
  min-width: 0 !important;
  max-width: 208px !important;
  height: auto !important;
  padding: 7px !important;
  border: 1px solid rgba(255, 251, 244, .85) !important;
  border-radius: 19px !important;
  background: linear-gradient(150deg,
    rgba(255, 252, 246, .98) 0%,
    rgba(247, 233, 221, .97) 56%,
    rgba(235, 213, 197, .97) 100%) !important;
  color: #49372e !important;
  -webkit-text-fill-color: #49372e !important;
  box-shadow:
    0 17px 38px rgba(55, 31, 20, .25),
    0 4px 9px rgba(85, 50, 31, .09),
    inset 0 1px rgba(255,255,255,.95) !important;
  -webkit-backdrop-filter: blur(10px) saturate(118%) !important;
  backdrop-filter: blur(10px) saturate(118%) !important;
  overflow: hidden !important;
  z-index: 2147483000 !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}
html body #jakNativeMoreV2266[hidden],
html body #jks2265More[hidden],
html body #jks226NavMore[hidden] {
  display: none !important;
}
html body #jakNativeMoreV2266 button,
html body #jks2265More button,
html body #jks226NavMore button {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-height: 47px !important;
  height: auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 11px !important;
  padding: 11px 12px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #49372e !important;
  -webkit-text-fill-color: #49372e !important;
  text-align: left !important;
  font: 650 13px/1.2 system-ui, sans-serif !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background-color .14s ease !important;
}
html body #jakNativeMoreV2266 button + button,
html body #jks2265More button + button,
html body #jks226NavMore button + button {
  margin-top: 2px !important;
}
html body #jakNativeMoreV2266 button:hover,
html body #jks2265More button:hover,
html body #jks226NavMore button:hover,
html body #jakNativeMoreV2266 button:focus-visible,
html body #jks2265More button:focus-visible,
html body #jks226NavMore button:focus-visible {
  background: rgba(131, 91, 70, .11) !important;
  border-color: rgba(133, 94, 73, .15) !important;
  outline: none !important;
}
html body #jakNativeMoreV2266 button:active,
html body #jks2265More button:active,
html body #jks226NavMore button:active {
  background: rgba(126, 85, 65, .20) !important;
}
html body :is(#jakNativeMoreV2266, #jks2265More, #jks226NavMore) .jksGlossyMenuIcon {
  display: block !important;
  flex: 0 0 21px !important;
  width: 21px !important;
  height: 21px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.75 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
html body :is(#jakNativeMoreV2266, #jks2265More, #jks226NavMore) .jksGlossyMenuLabel {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

@media(max-width: 360px) {
  html body nav.bottomNav {left: 8px !important; right: 8px !important;}
  html body nav.bottomNav > button {border-radius: 15px !important; padding-inline: 0 !important;}
  html body nav.bottomNav > button span {font-size: 10px !important;}
  html body #jakNativeMoreV2266,
  html body #jks2265More,
  html body #jks226NavMore {right: 9px !important;}
}
/* Do not pay for blur while running the site's energy-saving mode. */
html.jk207Lite body nav.bottomNav,
html.jk207Lite body #jakNativeMoreV2266,
html.jk207Lite body #jks2265More,
html.jk207Lite body #jks226NavMore {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
@media(prefers-reduced-motion:reduce) {
  html body nav.bottomNav > button,
  html body #jakNativeMoreV2266 button,
  html body #jks2265More button,
  html body #jks226NavMore button {transition: none !important;}
}
