/* Shared desktop actions. The main header owns the switch to mobile navigation. */
#siteHeader #desktopMenu #enbHeaderActions {
  --action-ink: #312e2b;
  --action-soft: #f2eee7;
  align-items: center;
  gap: clamp(6px, .8vw, 14px) !important;
  padding-inline-start: clamp(9px, 1vw, 18px);
  margin-inline-start: auto !important;
  border-inline-start: 1px solid #dfdbd6;
}

#enbHeaderActions .enb-shortcut-icon {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#enbHeaderActions .enb-shortcuts-chevron { width: 12px; color: #776e65; }
#enbHeaderActions .enb-shortcuts > summary svg:first-child rect:nth-child(2) { fill: #aa8751; stroke: #aa8751; }
#enbHeaderActions .enb-shortcuts[open] .enb-shortcuts-chevron { transform: rotate(180deg); }

/* The shared CSS bundles give these triggers fixed square dimensions. */
#siteHeader #desktopMenu #enbHeaderActions .enb-action-tile,
#siteHeader #desktopMenu #enbHeaderActions > .enb-header-planla {
  position: relative !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 44px !important;
  max-width: none !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 7px !important;
  border: 0 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--action-ink) !important;
  transform: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

#siteHeader #desktopMenu #enbHeaderActions .enb-action-tile > svg:not(.enb-shortcuts-chevron) { width: 16px; height: 16px; }
#enbHeaderActions .enb-header-action--cart [data-cart-count] { top: 0; right: 0; }
#enbHeaderActions .enb-account-menu__dot { position: absolute; top: 5px; right: 3px; }

#siteHeader #desktopMenu #enbHeaderActions details[open] > summary,
#siteHeader #desktopMenu #enbHeaderActions .enb-action-tile:hover { background: var(--action-soft) !important; }

#siteHeader #desktopMenu #enbHeaderActions > .enb-header-planla {
  isolation: isolate;
  padding: 0 17px !important;
  gap: 9px !important;
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px !important;
  font-weight: 400 !important;
  letter-spacing: .01em;
}

#siteHeader #desktopMenu #enbHeaderActions > .enb-header-planla::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px 0;
  width: auto;
  height: auto;
  border: 1px solid #544733;
  border-radius: 7px;
  background: linear-gradient(112deg, #2b2823, #191816 78%);
  box-shadow: inset 0 1px rgb(255 223 157 / 18%);
  opacity: 1;
  transform: none;
  pointer-events: none;
}
#siteHeader #desktopMenu #enbHeaderActions > .enb-header-planla::after { content: none; }
#siteHeader #desktopMenu #enbHeaderActions > .enb-header-planla:hover::before { background: linear-gradient(112deg, #393025, #27231e); }
#siteHeader #desktopMenu #enbHeaderActions > .enb-header-planla svg { color: #e8c992; stroke-width: 2; }

#siteHeader #desktopMenu #enbHeaderActions :is(a, button, summary):focus-visible {
  outline: 2px solid #96691d;
  outline-offset: 2px;
}

#enbHeaderActions .enb-shortcuts { position: relative; }
#enbHeaderActions .enb-shortcuts-panel {
  box-sizing: border-box;
  position: absolute;
  inset: calc(100% + 5px) auto auto 0;
  z-index: 100;
  --panel-text: #f4f0e8;
  --panel-muted: #c4b9a6;
  --panel-gold: #e4c38c;
  --panel-rule: #51483b;
  width: 320px;
  max-height: calc(100vh - 82px);
  max-height: calc(100dvh - 82px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px 18px 15px;
  border: 1px solid #6c5a40;
  border-radius: 12px;
  color-scheme: dark;
  background: radial-gradient(ellipse at 0 0, #393026, transparent 65%), #23221f;
  box-shadow: inset 0 1px rgb(236 208 151 / 15%), 0 12px 32px rgb(21 18 12 / 20%);
  color: var(--panel-text);
  font-size: 13px;
  line-height: 1.35;
  text-align: start;
  white-space: normal;
}
#enbHeaderActions .enb-shortcuts:not([open]) > .enb-shortcuts-panel { display: none; }

#enbHeaderActions .enb-shortcuts-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}

#enbHeaderActions a.enb-shortcut-budget {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 51px;
  padding: 0 2px;
  gap: 11px;
  border-bottom: 1px solid var(--panel-rule);
  color: var(--panel-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -.015em;
}
#enbHeaderActions .enb-shortcut-budget svg,
#enbHeaderActions .enb-shortcut-budget span:last-child { color: var(--panel-gold); }
#enbHeaderActions .enb-shortcut-budget span:last-child { margin-inline-start: auto; }
#enbHeaderActions .enb-shortcuts-section { padding: 11px 2px 0; }
#enbHeaderActions .enb-shortcuts-section + .enb-shortcuts-section { padding-top: 4px; border-top: 1px solid var(--panel-rule); }
#enbHeaderActions .enb-shortcuts-heading { display: block; color: var(--panel-muted); font-size: 12px; font-weight: 500; }
#enbHeaderActions .enb-shortcuts-channels { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
#enbHeaderActions .enb-shortcuts-channels a { padding: 0 2px; }
#enbHeaderActions .enb-shortcuts-channels svg { width: 16px; height: 16px; color: var(--panel-gold); }
#enbHeaderActions .enb-shortcut-language { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#enbHeaderActions .enb-shortcut-language svg { width: 15px; height: 15px; color: var(--panel-gold); }
#enbHeaderActions .enb-shortcut-currencies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 6px; }
/* The currency runtime writes its original light palette inline on each sync. */
#enbHeaderActions .enb-shortcut-currencies button {
  min-height: 44px;
  padding: 0 4px;
  border: 1px solid var(--panel-rule) !important;
  border-radius: 6px;
  background: transparent !important;
  color: var(--panel-text);
  box-shadow: none !important;
  font: inherit;
  font-size: 12px;
  font-weight: 500 !important;
  letter-spacing: .03em;
  cursor: pointer;
}
#enbHeaderActions .enb-shortcut-currencies [aria-pressed="true"] {
  border-color: #d7bd86 !important;
  background: #e6d3ac !important;
  color: #29251e;
  font-weight: 650 !important;
}
#enbHeaderActions .enb-shortcut-currencies [aria-pressed="false"]:hover { background: #37322b !important; }
#siteHeader #desktopMenu #enbHeaderActions .enb-shortcuts-panel :is(a,button):focus-visible { outline-color: #efcf92; }
#enbHeaderActions .enb-shortcuts-panel a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  #enbHeaderActions .enb-shortcuts-chevron,
  #siteHeader #desktopMenu #enbHeaderActions > .enb-header-planla svg { transition: transform .18s ease; }
  #enbHeaderActions .enb-shortcuts[open] > .enb-shortcuts-panel { animation: enb-shortcuts-open .16s ease-out; }
  #siteHeader #desktopMenu #enbHeaderActions > .enb-header-planla:is(:hover, :focus-visible) svg { transform: translate(2px, -2px); }
}
@keyframes enb-shortcuts-open { from { opacity: .2; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  #siteHeader #desktopMenu #enbHeaderActions :is(.enb-shortcuts-panel, .enb-action-tile, .enb-header-planla, svg),
  #siteHeader #desktopMenu #enbHeaderActions > .enb-header-planla::before { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  #siteHeader #desktopMenu #enbHeaderActions > .enb-header-planla { color: LinkText !important; }
  #siteHeader #desktopMenu #enbHeaderActions > .enb-header-planla::before,
  #enbHeaderActions .enb-shortcut-currencies [aria-pressed="true"] { border: 2px solid ButtonText !important; }
}
