/* Header language switcher (snippets/cola-language-switcher.liquid) and per-language type fixes. */
html body .cola-lang-switch{position:relative;flex:none;font:600 14px/20px Gilroy,Arial,sans-serif}
html body .cola-lang-switch summary{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px 0 11px;border:1px solid #3a3a3a;border-radius:999px;background:#161616;color:#f5f5f5;cursor:pointer;list-style:none;user-select:none;white-space:nowrap;transition:border-color .15s,background .15s}
html body .cola-lang-switch summary::-webkit-details-marker{display:none}
html body .cola-lang-switch summary:hover,html body .cola-lang-switch[open] summary{border-color:var(--accent,#f04452);background:#1d1d1d}
html body .cola-lang-switch summary:focus-visible{outline:2px solid var(--accent,#f04452);outline-offset:3px}
html body .cola-lang-switch .cola-lang-globe{flex:none;color:var(--accent,#f04452)}
html body .cola-lang-switch .cola-lang-caret{font-size:13px;line-height:1;margin-top:-5px;color:#a8a8a8}
html body .cola-lang-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:80;display:grid;gap:2px;min-width:168px;padding:6px;background:#171717;border:1px solid var(--line,#272727);border-radius:12px;box-shadow:0 16px 40px rgba(0,0,0,.55)}
html body .cola-lang-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:8px;background:none;color:#e8e8e8;font:500 15px/1.2 Gilroy,"PingFang SC","Microsoft YaHei",Arial,sans-serif;text-align:left;cursor:pointer}
html body .cola-lang-menu button:hover,html body .cola-lang-menu button:focus-visible{background:#242424;color:#fff;outline:none}
html body .cola-lang-menu button[aria-current="true"]{color:#fff}
html body .cola-lang-menu button[aria-current="true"]::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent,#f04452)}
@media(max-width:600px){
  html body .cola-lang-switch summary{height:36px;padding:0 9px;gap:5px;font-size:13px}
  html body .cola-lang-switch .cola-lang-caret{display:none}
  html body .cola-lang-menu{right:-60px}
}
/* Small phones: the header had no room left for the language pill, so the Media Maker pill shows only its
   key icon (its label stays for screen readers; the mobile menu still lists Media Maker in full). */
@media(max-width:460px){
  html body .nav-actions .pill.free-keys{width:36px;min-width:36px;padding:0!important;justify-content:center;gap:0}
  html body .nav-actions .pill.free-keys>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
/* Narrow desktops, where the full nav and account buttons share the row: a slimmer switcher. */
@media(min-width:1061px) and (max-width:1200px){html body .cola-lang-switch .cola-lang-caret{display:none}html body .cola-lang-switch summary{padding:0 10px}}
/* Very narrow phones (320px): the globe alone, so the menu button still fits. */
@media(max-width:360px){html body .cola-lang-switch [data-lang-current]{display:none}html body .cola-lang-switch summary{padding:0 8px}}

/* Chinese: system CJK fonts after Gilroy (which has no CJK glyphs); no tracking on CJK text. */
html[lang="zh-Hans"] body{font-family:Gilroy,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",Arial,sans-serif!important}
html[lang="zh-Hans"] body :is(h1,h2,h3,h4,p,a,span,strong,b,small,li,button,summary,label,dt,dd,td,th){letter-spacing:normal}
html[lang="zh-Hans"] body :is(p,li,dd){line-height:1.75}
/* Russian: longer words; allow hyphenation in body copy and keep buttons on one line where they fit. */
html[lang="ru"] body :is(p,li,dd,h1,h2,h3){hyphens:auto;overflow-wrap:break-word}
/* Russian nav labels are longer; between the mobile menu and wide screens, tighten the header so it fits. */
@media(min-width:1061px) and (max-width:1320px){
  html[lang="ru"] body .nav-links{gap:12px!important}
  html[lang="ru"] body .site-header .nav{gap:16px!important}
  html[lang="ru"] body .nav-actions{gap:10px!important}
  html[lang="ru"] body .nav-actions .pill.cola-account-link{padding:0 13px!important}
  html[lang="ru"] body .cola-lang-switch .cola-lang-caret{display:none}
}

/* Checkout, order and account pages (layouts/novinzo.liquid): the switcher sits after the nav. */
.cola-native-header>div>nav{margin-left:auto}
.cola-native-header .cola-lang-switch{position:relative;z-index:30}
@media(max-width:600px){.cola-native-header>div{gap:14px}}
