/* HB34 | Unified premium language dropdown across treatment and catalog pages */
.hb-lang-switch-wrap{
  position:relative;z-index:500;background:linear-gradient(100deg,#071831,#0b2850);
  border-bottom:1px solid rgba(231,192,132,.56);
  padding:7px max(18px,calc((100vw - 1180px)/2));
  display:flex;justify-content:flex-end;min-height:52px;box-sizing:border-box;
  isolation:isolate;
}
.hb-lang-switch{display:block;position:relative;min-width:200px;max-width:100%;font-family:inherit}
.hb-lang-switch>summary{
  color:#fff!important;background:linear-gradient(110deg,#173c66,#0b2546)!important;
  border:1px solid #dbb474;border-radius:11px;min-height:38px;padding:8px 14px;
  display:flex;align-items:center;gap:10px;cursor:pointer;
  box-shadow:inset 0 1px 0 #ffffff22,0 3px 12px #03122670;list-style:none;
  font-size:14px;font-weight:750;line-height:1.3;
}
.hb-lang-switch>summary::-webkit-details-marker{display:none}
.hb-lang-switch>summary::marker{content:""}
.hb-lang-switch>summary:hover{background:linear-gradient(110deg,#1c4979,#113963)!important}
.hb-lang-switch>summary:focus-visible{outline:3px solid #edc486;outline-offset:3px}
.hb-lang-switch>summary .hb-lang-selected{flex:1;white-space:nowrap}
.hb-lang-switch>summary .hb-lang-current-flag{font-size:18px;line-height:1.1}
.hb-lang-switch>summary .hb-lang-chevron{font-size:18px;color:#f7d69e;transition:transform .2s}
.hb-lang-switch[open]>summary .hb-lang-chevron{transform:rotate(180deg)}
.hb-lang-switch-wrap .hb-lang-options.hb-langs{
  position:absolute!important;right:0!important;top:calc(100% + 7px)!important;
  left:auto!important;display:grid!important;grid-template-columns:1fr 1fr!important;
  width:min(450px,calc(100vw - 32px))!important;min-width:unset!important;
  max-height:min(68vh,550px)!important;overflow-y:auto!important;overscroll-behavior:contain;
  padding:12px!important;margin:0!important;gap:5px!important;
  background:linear-gradient(150deg,#0d284b,#091a35)!important;
  border:1px solid #ecc98d!important;border-radius:15px!important;
  box-shadow:0 20px 56px #0009,0 0 0 2px #e9c88c1c!important;
  box-sizing:border-box!important;z-index:9000!important;
}
.hb-lang-switch-wrap .hb-lang-options.hb-langs a{
  color:#eef6ff!important;background:#123459!important;
  border:1px solid #345b7e!important;border-radius:9px!important;
  display:flex!important;align-items:center!important;gap:9px!important;
  padding:11px 12px!important;margin:0!important;text-decoration:none!important;
  font-size:14px!important;font-weight:650!important;line-height:1.4!important;
  min-height:44px!important;box-sizing:border-box!important;white-space:normal!important;
}
.hb-lang-switch-wrap .hb-lang-options.hb-langs a:hover,
.hb-lang-switch-wrap .hb-lang-options.hb-langs a:focus-visible{
  background:#284f78!important;color:#fff!important;border-color:#f4dba8!important;
}
.hb-lang-switch-wrap .hb-lang-options.hb-langs a.active{
  border:1px solid #f0cd8f!important;
  background:linear-gradient(110deg,#fff0cd,#e6c78a)!important;
  color:#173250!important;font-weight:800!important;
}
.hb-lang-switch-wrap .hb-lang-options.hb-langs a .hb-seo-flag{font-size:18px;flex:none}
.hb-lang-switch-wrap .hb-lang-options.hb-langs a:focus-visible{outline:3px solid #ffdd99;outline-offset:0}
@media(max-width:600px){
  .hb-lang-switch-wrap{justify-content:flex-end;padding:6px 15px}
  .hb-lang-switch{min-width:190px}
  .hb-lang-switch-wrap .hb-lang-options.hb-langs{grid-template-columns:1fr 1fr!important;max-height:65vh!important}
  .hb-lang-switch-wrap .hb-lang-options.hb-langs a{padding:11px 8px!important;font-size:12.5px!important}
}
@media(prefers-reduced-motion:reduce){.hb-lang-switch>summary .hb-lang-chevron{transition:none}}
/* Keep the complete 22-language list truly hidden until the button opens it. */
.hb-lang-switch:not([open])>.hb-lang-options.hb-langs{display:none!important}

/* CRITICAL: closed details must fully hide the grid even with display:grid!important above */
.hb-lang-switch-wrap details.hb-lang-switch:not([open]) > nav.hb-lang-options.hb-langs {display:none!important;visibility:hidden!important;pointer-events:none!important}
