/* Local fonts work without an external font service; licenses are in fonts/locales. */
@font-face { font-family: "Noto Sans Myanmar"; src: url("../fonts/locales/notosansmyanmar.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans JP"; src: url("../fonts/locales/notosansjp.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans Thai"; src: url("../fonts/locales/notosansthai.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Locale typography only: retain the supplied POS layout and theme. */
html:lang(my) body, html:lang(my) input, html:lang(my) select,
html:lang(my) textarea, html:lang(my) button {
    font-family: "Noto Sans Myanmar", "Myanmar Text", "Padauk", sans-serif;
    line-height: 1.8;
}
html:lang(ja) body, html:lang(ja) input, html:lang(ja) select,
html:lang(ja) textarea, html:lang(ja) button {
    font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}
html:lang(th) body, html:lang(th) input, html:lang(th) select,
html:lang(th) textarea, html:lang(th) button {
    font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
    line-height: 1.7;
}
.bp-language { position: relative; display: inline-block; margin: 0 8px; white-space: nowrap; }
.bp-language summary { cursor: pointer; font-size: 14px; }
.theme-header-bg .bp-language > summary, .right-col .bp-language > summary { color: white; }
.bp-language ul { position: absolute; right: 0; left: auto; z-index: 1050; min-width: 145px; padding: 6px; margin: 8px 0; list-style: none; background: white; color: #1e293b; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 8px 24px #0002; }
.bp-language a { display: block; padding: 8px 12px; border-radius: 6px; color: #1e293b; }
.bp-language a:hover, .bp-language a[aria-current="true"] { background: #eef2ff; color: #4f46e5; }
@media print { .bp-language { display: none; } }
