/* Segmented “switch” control — two (or more) mutually exclusive options; radiogroup semantics. */

.vault-switch-radio {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 0.5rem;
  border: none;
  padding: 0.25rem;
  gap: 0.2rem;
  background: var(--vault-bg-muted, #f3f4f6);
  vertical-align: middle;
}

.vault-switch-radio__option {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.25;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--vault-text-muted, #64748b);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.vault-switch-radio__option:hover:not(:disabled) {
  color: var(--vault-text, #0f172a);
}

.vault-switch-radio__option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vault-switch-radio__option--active {
  background: var(--vault-primary-light, color-mix(in srgb, var(--vault-primary, #0492b5) 18%, #fff));
  color: var(--vault-primary, #0492b5);
  font-weight: 600;
}

.vault-switch-radio__option:focus-visible {
  outline: 2px solid var(--vault-primary, #0492b5);
  outline-offset: 2px;
  z-index: 1;
}
