.locale-switcher {
  position: relative;
  z-index: 120;
  display: inline-block;
}

.locale-switcher.is-open {
  z-index: 150;
}

.locale-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #e7e5e4;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: #1c1917;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.locale-switcher-toggle i {
  font-size: 0.62rem;
  color: #a8a29e;
}

.locale-switcher-flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.locale-switcher-flag .fi {
  width: 1.35em;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.locale-switcher-menu {
  position: absolute;
  z-index: 151;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 6px);
  min-width: 180px;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 6px;
}

.theme-default-toolbar,
.theme-elegant-toolbar,
.theme-toolbar-locale,
.theme-locale-bar {
  overflow: visible;
}

.theme-toolbar-locale {
  position: relative;
  z-index: 2;
}

.locale-switcher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #1c1917;
  font-size: 0.8rem;
}

.locale-switcher-item:hover {
  background: #f5f5f4;
}

.locale-switcher-item.is-active {
  background: #fff4ed;
  color: #c2410c;
  font-weight: 600;
}

.locale-switcher-modern .locale-switcher-toggle {
  border: none;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.theme-locale-bar {
  display: flex;
  justify-content: center;
  padding: 8px 16px 0;
}

.theme-elegant .theme-locale-bar {
  padding: 0 16px 10px;
  justify-content: flex-end;
}

.theme-toolbar-locale {
  flex-shrink: 0;
  margin-left: auto;
}

.theme-wifi-row--inline {
  padding: 0;
  margin: 0;
  width: auto;
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-start;
}

.theme-wifi-row--inline .theme-wifi-bar {
  width: auto;
  max-width: 100%;
  padding: 7px 12px;
  font-size: 0.68rem;
}

.theme-default .theme-default-toolbar {
  position: sticky;
  top: 6px;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 12px;
  overflow: visible;
}

.theme-elegant .theme-elegant-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  padding: 10px 0 0;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.theme-elegant .elegant-menu-header .theme-elegant-toolbar {
  padding: 0 0 12px;
}

.theme-default .theme-locale-bar {
  position: sticky;
  top: 6px;
  z-index: 95;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 16px;
  justify-content: flex-end;
}
