/* One language at a time on the whole public store (owner 28.11). public/store/lang.js sets <html data-lang> before the
   first paint and marks the Thai and the English half of every bilingual line (data-l); this hides the other half.
   Loaded by every store page (resources/views/store/partials/lang.blade.php), also the ones without style.css. */
html[data-lang="th"] [data-l="en"],html[data-lang="en"] [data-l="th"],.lx-sep{display:none!important}
/* The second half of a pair is the small line of the bilingual layout. Alone on the line, it reads as the line itself. */
[data-lx2]{font-size:inherit!important;font-weight:inherit!important;font-style:inherit!important;color:inherit!important;letter-spacing:inherit!important;text-transform:inherit!important;margin:0!important;padding:0!important}
[data-lx2]:not(.rise){opacity:1!important}
h1 [data-lx2],h2 [data-lx2],h3 [data-lx2]{line-height:inherit!important}
[data-lx2][data-l="en"]{font-family:inherit!important}
[data-l="th"]{font-family:var(--thai,"Anuphan","Noto Sans Thai",sans-serif);letter-spacing:0!important}
/* The big switch: top of the checkout and of the legal pages, the mobile menu, the small pages. */
.lx-switch{display:inline-flex;margin-top:14px;border:1px solid rgba(46,33,25,.28);border-radius:999px;padding:2px;background:#fff}
.lx-switch button{min-height:44px;min-width:76px;margin:0;width:auto;padding:0 16px;border:0;border-radius:999px;background:none;font:inherit;font-size:15px;font-weight:400;color:#2E2119;color:var(--espresso,#2E2119);cursor:pointer}
.lx-switch button[lang="th"]{font-family:var(--thai,"Anuphan","Noto Sans Thai",sans-serif)}
.lx-switch button[aria-pressed="true"]{background:#2E2119;background:var(--royal,#2E2119);color:#fff}
.lx-switch button:focus-visible{outline:2px solid var(--royal,#2E2119);outline-offset:2px}
.lx-switch.lx-corner{position:absolute;top:10px;right:12px;margin:0;z-index:60}
.lx-switch.lx-corner button{min-width:56px;padding:0 12px;font-size:14px}
/* The header switch: EN / ไทย, the language in use is the strong one. Fixed width, so the header never moves. */
.lang-sw{display:inline-flex;align-items:center;flex:none;font-size:13px;letter-spacing:.06em;color:inherit}
.lang-sw button{min-height:44px;min-width:30px;padding:0 4px;border:0;background:none;color:inherit;font:inherit;font-weight:500;cursor:pointer;opacity:.55;border-radius:6px}
.lang-sw button[lang="th"]{font-family:var(--thai,"Anuphan","Noto Sans Thai",sans-serif);letter-spacing:0;font-size:14px}
.lang-sw button[aria-pressed="true"]{opacity:1;font-weight:700;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.lang-sw button:hover{opacity:1}
.lang-sw button:focus-visible{outline:2px solid currentColor;outline-offset:-4px}
.lang-sw i{font-style:normal;opacity:.4;padding:0 1px}
.menu .lx-switch{margin-top:0;justify-self:start}
@media(min-width:900px){.nav>.lang-sw{margin-left:auto}.nav>.lang-sw+[href="#saved"]{margin-left:0}}
@media(max-width:380px){.lang-sw{font-size:12px}.lang-sw button{min-width:26px;padding:0 2px}}
/* Phone header: the logo sits in the middle, so there is room for one word: the language to switch TO. */
@media(max-width:899px){.lang-sw i,html[data-lang="en"] .lang-sw [data-lx="en"],html[data-lang="th"] .lang-sw [data-lx="th"]{display:none}.lang-sw button{opacity:.85;min-width:36px}}
.toast a{margin-left:6px}

/* QA 1.12: the Thai label of the EN / ไทย switch sits on the same line as EN */
.lang-sw [lang=th]{position:relative;top:1px;line-height:1}

/* UX council 2.12 (R2-2): the "convenience translation" line belongs to the Thai text only. */
html[data-lang="en"] .legal-tr{display:none}
/* A11y 1.12: the language switch is a 44 px tap target (it was 32 wide, 26 on the smallest phones). */
.lang-sw button,html .lang-sw button{min-width:44px;min-height:44px}
