.q-switch {
  display: flex;
  padding: 4px;
  border-radius: 6px;
  background: var(--ss-surface-light);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  height: 36px;
  width: max-content;
  max-width: 100%;
}
.q-switch[data-size='small'] {
  height: 32px;
}
.q-switch[data-size='large'] {
  height: 40px;
  border-radius: 8px;
}
.q-switch[data-full-width='true'] {
  width: 100%;
}
.q-switch__control {
  display: flex;
  align-self: stretch;
  flex: 1;
  height: 100%;
}
.q-switch__input,
.q-switch__hidden-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.q-switch__visual {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  color: #4d4d4d;
  transition:
    color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  padding: 0 12px;
  text-decoration: none;
}
.q-switch__control[data-size='large'] .q-switch__visual {
  font-size: 16px;
  line-height: 24px;
  padding: 0 16px;
}
.q-switch__visual:hover {
  color: #171717;
}
.q-switch__input:checked + .q-switch__visual {
  color: #171717;
  background: #f2f2f2;
  border-radius: 4px;
}
.q-switch__control[data-size='large'] .q-switch__input:checked + .q-switch__visual {
  border-radius: 6px;
}
.q-switch__input:focus-visible + .q-switch__visual {
  outline: 0;
  box-shadow:
    0 0 0 2px var(--ss-surface-light),
    0 0 0 4px var(--ss-primary);
}
.q-switch__input:disabled + .q-switch__visual {
  color: #7d7d7d;
  cursor: not-allowed;
  pointer-events: none;
}
.q-switch__control:has(input:disabled) {
  cursor: not-allowed;
}
.q-switch__control[data-icon='true'] .q-switch__visual {
  padding: 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}
.q-switch__control[data-icon='true'] svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.q-switch__control[data-icon='true'][data-size='large'] .q-switch__visual {
  padding: 12px;
}
.q-switch__control[data-icon='true'][data-size='large'] svg {
  width: 20px;
  height: 20px;
}
.q-switch__tooltip {
  height: 100% !important;
}
[data-theme='dark'] .q-switch {
  background: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
[data-theme='dark'] .q-switch__visual {
  color: #a1a1a1;
}
[data-theme='dark'] .q-switch__visual:hover {
  color: #ededed;
}
[data-theme='dark'] .q-switch__input:checked + .q-switch__visual {
  color: #ededed;
  background: #1a1a1a;
}
[data-theme='dark'] .q-switch__input:disabled + .q-switch__visual {
  color: #7d7d7d;
}
[data-theme='dark'] .q-switch__input:focus-visible + .q-switch__visual {
  box-shadow:
    0 0 0 2px #0a0a0a,
    0 0 0 4px var(--ss-primary);
}
