/* THE 8TH KNOT — compact locale controls, using native SHOPLINE localization. */
theme-locale-picker.knot-locale { display:block; position:relative; flex-shrink:0; font-family:var(--body-font-family,inherit); font-size:13px; line-height:1.5; letter-spacing:.01em; }
.knot-locale form { margin:0; }
.knot-locale summary { list-style:none; cursor:pointer; }
.knot-locale summary::-webkit-details-marker { display:none; }
.knot-locale__trigger { display:flex; align-items:center; gap:9px; min-height:42px; padding:4px 0; color:inherit; font-size:13px; font-weight:400; white-space:nowrap; }
.knot-locale__current-language,.knot-locale__current-currency { display:inline-flex; align-items:center; gap:7px; }
.knot-locale__separator { opacity:.38; margin:0 1px; }
.knot-locale__flag { display:inline-block; width:21px; height:14px; flex:0 0 21px; background-position:center; background-size:cover; border-radius:2px; box-shadow:0 0 0 1px #8883; vertical-align:middle; }
.knot-locale__chevron { margin-left:2px; transition:transform .18s ease; }
.knot-locale__popup[open]>.knot-locale__trigger .knot-locale__chevron { transform:rotate(180deg); }
.knot-locale__panel { position:absolute; top:calc(100% + 10px); inset-inline-start:0; z-index:110; width:302px; max-width:calc(100vw - 32px); padding:23px; color:#262626; background:#fafaf8; border:1px solid #dadad5; border-radius:5px; box-shadow:0 14px 40px #0002; font-size:14px; text-align:start; }
.knot-locale__field+.knot-locale__field { margin-top:21px; }
.knot-locale__heading { display:block; margin-bottom:9px; color:#666; font-size:11px; letter-spacing:.12em; text-transform:uppercase; font-weight:500; }
.knot-locale__select { position:relative; }
.knot-locale__select>summary { display:flex; align-items:center; gap:9px; min-height:47px; padding:11px 13px; border:1px solid #d5d5d0; border-radius:3px; background:#fff; font-size:13px; font-weight:400; }
.knot-locale__select>summary>svg { margin-inline-start:auto; flex-shrink:0; }
.knot-locale__options { position:absolute; top:calc(100% + 5px); inset-inline:0; z-index:2; padding:5px; max-height:min(330px,42vh); overflow-y:auto; overscroll-behavior:contain; background:#fff; border:1px solid #d5d5d0; border-radius:3px; box-shadow:0 8px 20px #0002; scrollbar-width:thin; }
.knot-locale__option { display:flex; align-items:center; gap:9px; width:100%; min-height:41px; margin:0; padding:9px; border:0; border-radius:2px; color:#292929; background:transparent; font-family:inherit; font-size:12px; font-weight:400; line-height:1.4; text-align:start; cursor:pointer; }
.knot-locale__option:hover,.knot-locale__option:focus-visible { background:#f1f1ed; }
.knot-locale__option[aria-selected="true"] { background:#f3f3ef; }
.knot-locale__code { margin-inline-start:auto; color:#858580; font-size:10px; letter-spacing:.04em; }
.knot-locale__check { margin-inline-start:auto; width:10px; visibility:hidden; font-size:12px; }
.knot-locale__code+.knot-locale__check { margin-inline-start:0; }
.knot-locale__option[aria-selected="true"] .knot-locale__check { visibility:visible; }
.knot-locale__apply { display:block; width:100%; min-height:45px; margin-top:23px; padding:11px 16px; border:1px solid #292929; border-radius:3px; color:#fff; background:#292929; font:inherit; font-size:12px; letter-spacing:.09em; cursor:pointer; }
.knot-locale__apply:hover { background:#464642; }
.knot-locale summary:focus-visible,.knot-locale button:focus-visible { outline:2px solid #99917c; outline-offset:3px; }
.header-action-bar.left .knot-locale { order:20; }
.header-action-bar.left .header-action-bar__search { order:10; }
.header-action-bar.right .knot-locale__panel { inset-inline-start:auto; inset-inline-end:0; }
@media(min-width:960px) and (max-width:1199px) { .knot-locale__trigger { font-size:12px; gap:6px; } .knot-locale__current-currency [data-current-currency] { max-width:78px; overflow:hidden; text-overflow:ellipsis; } }
@media(max-width:959px) {
  .header-action-bar theme-locale-picker.knot-locale { display:none; }
  .header-nav-drawer__footer theme-locale-picker.knot-locale { display:block; width:100%; }
  .knot-locale__panel { top:auto; bottom:calc(100% + 8px); width:290px; padding:19px; }
  .knot-locale__options { top:auto; bottom:calc(100% + 5px); max-height:35vh; }
  .knot-locale__option { min-height:44px; }
}
