.toggle-group {
  width: fit-content;
}

.toggle-item {
  min-width: 35px;
  padding: 10px;
  border: none;
  border-radius: 0;
  background-color: transparent;
  color: var(--secondary-color-4);
  font-size: 14px;
  outline: none;
  transition: background-color 200ms ease, border 200ms ease;
}

.toggle-group[data-allow-multiple-pressed="true"]
  .toggle-item {
  border-top: 1px solid var(--primary-color-6);
  border-right: 1px solid var(--primary-color-6);
  border-bottom: 1px solid var(--primary-color-6);
}

.toggle-item:hover,
.toggle-item:focus-visible {
  background-color: var(--primary-color-4);
  cursor: pointer;
}

.toggle-item[data-state="on"] {
  background-color: var(--primary-color-7);
  color: var(--secondary-color-1);
}

.toggle-group[data-allow-multiple-pressed="true"]
  .toggle-item[data-state="on"] {
  border-top: 1px solid var(--secondary-color-6);
  border-right: 1px solid var(--secondary-color-6);
  border-bottom: 1px solid var(--secondary-color-6);
}

.toggle-group[data-allow-multiple-pressed="true"]
  .toggle-item:first-child[data-state="on"] {
  border: 1px solid var(--secondary-color-6);
}

.toggle-item:first-child {
  border-bottom-left-radius: 0.5rem;
  border-top-left-radius: 0.5rem;
}

.toggle-group[data-allow-multiple-pressed="true"] .toggle-item:first-child {
  border: 1px solid var(--primary-color-6);
}

.toggle-item:last-child {
  border-bottom-right-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}
