body.th-body header .th-nav-locale { position:relative; flex:0 0 auto; margin:0; order:0; }
body.th-body header .th-nav-locale summary { display:flex; align-items:center; justify-content:center; gap:7px; min-width:60px; min-height:40px; padding:8px 10px; border:1px solid #343a42; border-radius:10px; background:#11151a; color:#f5f7fa; font-size:13px; font-weight:600; cursor:pointer; list-style:none; }
body.th-body header .th-nav-locale summary::-webkit-details-marker { display:none; }
/* Same 8×4 CSS caret as the other navbar dropdowns; no font-baseline offset. */
body.th-body header .th-nav-locale summary::after { content:''; display:block; flex:0 0 auto; align-self:center; width:0; height:0; margin:0; line-height:0; color:rgba(255,255,255,.74); border-top:4px solid currentColor; border-right:4px solid transparent; border-bottom:0; border-left:4px solid transparent; }
body.th-body header .th-nav-locale[open] summary::after { transform:rotate(180deg); }
body.th-body header .th-nav-locale nav { position:absolute; top:calc(100% + 10px); right:0; z-index:1050; display:grid; min-width:190px; padding:8px; border:1px solid #414954; border-radius:12px; background:#171d25; box-shadow:0 12px 32px #0008; }
body.th-body header .th-nav-locale:not([open]) nav { display:none; }
body.th-body header .th-nav-locale nav a { display:flex; align-items:center; gap:12px; min-height:44px; padding:10px 12px; border-radius:8px; color:#e7edf4; text-decoration:none; font-size:14px; }
body.th-body header .th-nav-locale nav a>span { color:#b8c2cf; font-size:12px; min-width:22px; }
body.th-body header .th-nav-locale nav a:hover,body.th-body header .th-nav-locale nav a[aria-current=page] { background:#302318; color:#ffad68; }
body.th-body header .th-nav-locale :is(summary,a):focus-visible { outline:3px solid #ff7900; outline-offset:3px; }
body.th-body .th-navbar .th-brand { order:1; }
body.th-body .th-navbar #mainNavbar { order:2; }
/* Leave room for the native flag, dialling code and country dropdown arrow.
   Override theme shorthand padding without modifying the entered number. */
body.th-body.th-unified-ui .intl-tel-input { width:100%; min-width:0; }
body.th-body.th-unified-ui .intl-tel-input input[type=tel] { box-sizing:border-box; width:100%; }
body.th-body.th-unified-ui .intl-tel-input.separate-dial-code input[type=tel] { padding-left:108px!important; padding-right:14px!important; }
body.th-body.th-unified-ui .intl-tel-input.separate-dial-code .selected-flag { width:96px!important; border-right:1px solid #343a42; }
body.th-body.th-unified-ui .intl-tel-input.allow-dropdown:not(.separate-dial-code) input[type=tel] { padding-left:56px!important; }
body.th-body.th-unified-ui .intl-tel-input .selected-dial-code { white-space:nowrap; color:#e7edf4; }
body.th-body.th-unified-ui .intl-tel-input .country-list { max-width:calc(100vw - 48px); max-height:280px; background:#171d25; color:#e7edf4; border-color:#414954; border-radius:10px; z-index:1045; white-space:normal; }
body.th-body.th-unified-ui .intl-tel-input .country-list .country { min-height:40px; padding:10px 12px; }
body.th-body.th-unified-ui .intl-tel-input .country-list .country.highlight { background:#302318; }
@media(max-width:1199px) {
    body.th-body .th-navbar .th-brand { margin-right:auto; }
    body.th-body .th-navbar .th-nav-locale { order:2; margin-left:8px; }
    body.th-body .th-navbar .th-menu-toggle { order:3; margin-left:8px; }
    body.th-body .th-navbar #mainNavbar { order:4; }
    body.th-body .th-navbar .th-nav-locale summary { min-width:58px; min-height:42px; }
}
@media(max-width:600px) {
    body.th-body .intl-tel-input input[type=tel] { font-size:16px!important; }
    body.th-body .th-navbar .th-brand img { max-width:140px; }
}
