.switch-wd {
  position: relative;
  display: inline-block;
  min-width: 230px;
}

.switch-wd__label {
  display: block;
  margin-bottom: .375rem;
  font-size: .8125rem;
  line-height: 1.2;
  color: var(--pscart-color-muted);
}

/* Кнопка-триггер */
.switch-wd__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .625rem .875rem;
  font-family: inherit;
  font-size: var(--pscart-font-base);
  line-height: 1.4;
  text-align: left;
  color: var(--pscart-color-text);
  background: var(--pscart-bg-card);
  border: 1px solid var(--pscart-color-border);
  border-radius: .5rem;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.switch-wd__toggle:hover {
  color: var(--pscart-color-text);
}

.switch-wd__toggle:focus,
.switch-wd__dd.show .switch-wd__toggle {
  outline: none;
  box-shadow: none;
}

.switch-wd__current-code {
  margin-left: .25em;
  color: var(--pscart-color-muted);
}

.switch-wd__current--empty {
  color: var(--pscart-color-muted);
}

/* Выпадающий список */
.switch-wd__dd .switch-wd__menu {
  min-width: 100%;
  margin-top: .375rem;
  padding: .375rem;
  background: var(--pscart-bg-card);
  border: 1px solid var(--pscart-color-border);
  border-radius: .5rem;
  box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .45);
}

.switch-wd__menu .switch-wd__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5625rem .75rem;
  font-size: .875rem;
  color: var(--pscart-color-text);
  border-radius: .375rem;
  transition: background-color .12s ease, color .12s ease;
}

.switch-wd__menu .switch-wd__item:hover,
.switch-wd__menu .switch-wd__item:focus {
  background: var(--pscart-bg-input);
  color: var(--pscart-color-text);
}

.switch-wd__item-title {
  font-weight: 500;
}

.switch-wd__item-meta {
  white-space: nowrap;
  font-size: .8125rem;
  color: var(--pscart-color-muted);
}
