.ml-switcher {
  display: inline-block;
  position: relative;
  margin: 0 0 8px;
  font-size: 14px;
}

.ml-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.ml-switcher-toggle:hover {
  background: #333;
  color: #fff;
}

.ml-switcher-toggle[aria-expanded="true"] {
  background: #000;
}

.ml-switcher-list {
  position: absolute;
  left: 0;
  right: auto;
  top: 100%;
  margin: 6px 0 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 0;
  width: max-content;
  max-width: min(90vw, 320px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  display: none;
  z-index: 20;
}

.ml-switcher.open .ml-switcher-list {
  display: block;
}

.ml-switcher-list.measuring {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.ml-switcher-list li {
  margin: 0;
  padding: 0;
}

.ml-switcher-list a {
  display: block;
  padding: 6px 10px;
  color: #111;
  text-decoration: none;
}

.ml-switcher-list a:hover {
  background: #f2f2f2;
}

.ml-switcher.align-right .ml-switcher-list {
  left: auto;
  right: 0;
  text-align: right;
  transform-origin: top right;
}

.ml-switcher.align-right .ml-switcher-list a {
  text-align: right;
  white-space: nowrap;
}

.ml-switcher.align-right .ml-switcher-toggle {
  justify-content: flex-end;
}
