/* Customer language selector */
#ez-language-switcher{
  position:fixed;
  top:8px;
  right:8px;
  z-index:99999;
  font-family:Arial,"Noto Sans Thai",sans-serif;
}
#ez-language-switcher.ez-lang-mounted{
  position:relative;
  top:auto;
  right:auto;
  z-index:40;
  display:inline-block;
  margin-right:10px;
}
#ez-language-switcher .ez-lang-current{
  height:38px;
  min-width:58px;
  padding:4px 8px;
  border:1px solid rgba(255,215,0,.55);
  border-radius:999px;
  background:linear-gradient(180deg,#252525,#080808);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
  cursor:pointer;
}
#ez-language-switcher.ez-lang-mounted .ez-lang-current{
  height:32px;
  min-width:52px;
  padding:3px 8px;
  box-shadow:0 4px 12px rgba(0,0,0,.28);
}
#ez-language-switcher .ez-lang-current .ez-flag,
#ez-language-switcher .ez-lang-item .ez-flag{
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
#ez-language-switcher .ez-flag-img{
  display:block;
  width:20px;
  height:20px;
  object-fit:cover;
  border-radius:50%;
  box-shadow:0 0 0 1px rgba(255,255,255,.2);
}
#ez-language-switcher .ez-lang-current .ez-code{
  font-size:12px;
  font-weight:700;
  color:#ffd84d;
}
#ez-language-switcher.ez-lang-mounted .ez-lang-current .ez-code{
  font-size:11px;
}
#ez-language-switcher .ez-lang-menu{
  position:absolute;
  top:44px;
  right:0;
  width:222px;
  max-height:calc(100vh - 70px);
  overflow:auto;
  padding:5px 0;
  margin:0;
  list-style:none;
  background:linear-gradient(180deg,#071b49,#030711 58%,#07090d);
  border:1px solid rgba(255,215,0,.42);
  border-radius:8px;
  box-shadow:0 12px 30px rgba(0,0,0,.58);
  display:none;
}
#ez-language-switcher.ez-lang-mounted .ez-lang-menu{
  top:calc(100% + 8px);
  left:0;
  right:auto;
}
#ez-language-switcher.open .ez-lang-menu{display:block;}
#ez-language-switcher .ez-lang-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px 14px;
  color:#fff;
  font-family:Georgia,"Times New Roman",serif;
  font-size:20px;
  line-height:1.15;
  cursor:pointer;
  transition:.15s ease;
}
#ez-language-switcher .ez-lang-item:hover,
#ez-language-switcher .ez-lang-item.active{background:#356c91;}
#ez-language-switcher .ez-lang-item .ez-flag{width:31px;flex:0 0 31px;}
#ez-language-switcher .ez-lang-item .ez-flag-img{width:26px;height:26px;}
#ez-language-switcher .ez-lang-item .ez-label{white-space:nowrap;}
.ez-language-switcher-mount{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;}
.ct-topbar{position:relative;z-index:35;}
.ct-topbar .container{display:flex;align-items:center;}

@media(max-width:991.98px){
  #ez-language-switcher{top:6px;right:62px}
  #ez-language-switcher .ez-lang-current{height:34px;min-width:50px;padding:3px 7px;border-radius:999px}
  #ez-language-switcher .ez-flag-img{width:18px;height:18px}
  #ez-language-switcher .ez-lang-menu{width:205px;top:40px}
  #ez-language-switcher .ez-lang-item{font-size:18px;padding:8px 12px}
  #ez-language-switcher.ez-lang-mounted{margin-right:8px}
  #ez-language-switcher.ez-lang-mounted .ez-lang-current{height:30px;min-width:46px;padding:2px 7px}
  #ez-language-switcher.ez-lang-mounted .ez-lang-current .ez-code{font-size:10px}
  #ez-language-switcher.ez-lang-mounted .ez-lang-menu{top:calc(100% + 6px);width:185px}
  #ez-language-switcher .ez-lang-item .ez-flag-img{width:24px;height:24px}
}

/* Header alignment for language / support / balance / profile */
.ez-header-action-bar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:nowrap;
  width:100%;
}
.ez-header-action-bar > *{flex:0 0 auto;}
.ez-header-action-bar .ez-language-switcher-mount{margin:0 2px 0 0;}
.ez-header-action-bar #ez-language-switcher.ez-lang-mounted{margin-right:0;}
.ez-header-action-bar #ez-language-switcher.ez-lang-mounted .ez-lang-current{
  height:36px;
  min-width:58px;
  padding:4px 8px;
}
.ez-header-action-bar #ez-language-switcher.ez-lang-mounted .ez-lang-current .ez-code{font-size:11px;}
.ez-header-action-bar .x-header-btn-support,
.ez-header-action-bar .-balance-container,
.ez-header-action-bar .-profile-container,
.ez-header-action-bar .-deposit-container,
.ez-header-action-bar .-withdraw-container{
  margin:0 !important;
  display:flex;
  align-items:center;
}
.ez-header-action-bar .-profile-container .-btn-wrapper{display:flex;align-items:center;justify-content:center;}

@media(max-width:991.98px){
  .ez-header-action-bar{gap:4px !important;width:auto;}
  .ez-header-action-bar .ez-language-switcher-mount{margin-left:6px !important;margin-right:0 !important;}
  .ez-header-action-bar #ez-language-switcher.ez-lang-mounted .ez-lang-current{
    min-width:44px !important;
    height:30px !important;
    padding:2px 6px !important;
    gap:4px !important;
  }
  .ez-header-action-bar #ez-language-switcher.ez-lang-mounted .ez-flag-img{width:16px;height:16px;}
  .ez-header-action-bar #ez-language-switcher.ez-lang-mounted .ez-lang-current .ez-code{font-size:9px !important;}
}

/* Hidden Google Translate engine; custom selector is the only visible language UI. */
#ez_google_translate_element,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-menu-value,
#goog-gt-tt,
.goog-tooltip,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-suEOdc {
  display:none !important;
  visibility:hidden !important;
}
html,body{top:0 !important;margin-top:0 !important;}
#ez-language-switcher,#ez-language-switcher *{unicode-bidi:isolate;}

/* === RUNWAY888 definitive language button background override === */
html body #ez-language-switcher .ez-lang-current,
html body #ez-language-switcher.ez-lang-mounted .ez-lang-current,
html body .ez-header-action-bar #ez-language-switcher.ez-lang-mounted .ez-lang-current,
html body .ct-topbar #ez-language-switcher.ez-lang-mounted .ez-lang-current {
  background: linear-gradient(180deg, #610e0e 0%, #4e0909 100%) !important;
  background-color: #610e0e !important;
  background-image: linear-gradient(180deg, #610e0e 0%, #4e0909 100%) !important;
  border-color: rgba(255, 215, 0, .55) !important;
}

html body #ez-language-switcher .ez-lang-current:hover,
html body #ez-language-switcher .ez-lang-current:focus,
html body #ez-language-switcher .ez-lang-current:active {
  background: linear-gradient(180deg, #711313 0%, #570b0b 100%) !important;
  background-color: #610e0e !important;
  background-image: linear-gradient(180deg, #711313 0%, #570b0b 100%) !important;
}

/* === RUNWAY888 premium red/gold language selector === */
html body #ez-language-switcher .ez-lang-current,
html body #ez-language-switcher.ez-lang-mounted .ez-lang-current,
html body .ez-header-action-bar #ez-language-switcher.ez-lang-mounted .ez-lang-current,
html body .ct-topbar #ez-language-switcher.ez-lang-mounted .ez-lang-current {
  background: linear-gradient(180deg, #6b1111 0%, #4a0808 100%) !important;
  border: 1px solid #c99a32 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 0 0 1px rgba(255,214,102,.08),
    0 3px 9px rgba(0,0,0,.34),
    0 0 0 1px rgba(86,8,8,.55) !important;
}

html body #ez-language-switcher .ez-lang-current:hover,
html body #ez-language-switcher .ez-lang-current:focus,
html body #ez-language-switcher .ez-lang-current:active {
  background: linear-gradient(180deg, #7b1717 0%, #570b0b 100%) !important;
  border-color: #e5bc55 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 4px 12px rgba(0,0,0,.38),
    0 0 8px rgba(218,169,55,.18) !important;
}

html body #ez-language-switcher .ez-lang-current .ez-code {
  color: #f4c95d !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.45) !important;
}

html body #ez-language-switcher .ez-flag-img {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.70),
    0 0 0 2px rgba(71,5,5,.60),
    0 2px 5px rgba(0,0,0,.35) !important;
}

html body #ez-language-switcher .ez-lang-menu,
html body #ez-language-switcher.ez-lang-mounted .ez-lang-menu {
  background: linear-gradient(180deg, #4f0a0a 0%, #250303 42%, #090202 100%) !important;
  border: 1px solid #c99a32 !important;
  border-radius: 10px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 12px 28px rgba(0,0,0,.55),
    0 0 14px rgba(201,154,50,.10) !important;
  padding: 5px 0 !important;
  overflow: hidden auto !important;
}

html body #ez-language-switcher .ez-lang-item {
  color: #fff !important;
  background: transparent !important;
  border-left: 3px solid transparent !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.45);
}

html body #ez-language-switcher .ez-lang-item:hover {
  background: linear-gradient(90deg, rgba(131,25,25,.98) 0%, rgba(91,12,12,.96) 100%) !important;
  border-left-color: #d9aa3a !important;
}

html body #ez-language-switcher .ez-lang-item.active {
  background: linear-gradient(90deg, #8b1c1c 0%, #611010 100%) !important;
  border-left-color: #f0c45a !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.24) !important;
}

html body #ez-language-switcher .ez-lang-item.active .ez-label {
  color: #ffd86a !important;
}
