.dt-icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--dt-radius-sm);
  color: var(--dt-color-text-muted);
  cursor: pointer;
  display: inline-flex;
  height: var(--dt-control-height);
  justify-content: center;
  padding: 0;
  transition: background-color 150ms ease, border-color 150ms ease,
    color 150ms ease, transform 150ms ease;
  width: var(--dt-control-height);
}

.dt-icon-button svg {
  height: 1.125rem;
  width: 1.125rem;
}

.dt-icon-button:hover:not(:disabled) {
  color: var(--dt-color-text);
  transform: none;
}

.dt-icon-button:focus-visible {
  outline: 0.1875rem solid var(--dt-color-focus);
  outline-offset: 2px;
}

.dt-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.dt-icon-button--subtle:hover:not(:disabled) {
  background: var(--dt-color-surface-muted);
}

.dt-icon-button--outlined {
  background: var(--dt-color-surface);
  border-color: var(--dt-color-border);
}

.dt-icon-button--outlined:hover:not(:disabled) {
  background: var(--dt-color-surface-muted);
  border-color: var(--dt-color-border-strong);
  color: var(--dt-color-text);
}

.dt-icon-button--danger {
  border-color: color-mix(in srgb, var(--dt-color-danger) 40%, var(--dt-color-border));
  color: var(--dt-color-danger);
}

.dt-icon-button--danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--dt-color-danger) 9%, transparent);
}

.dt-icon-button--small {
  height: var(--dt-control-height-sm);
  width: var(--dt-control-height-sm);
}

.dt-icon-button--small svg {
  height: 1rem;
  width: 1rem;
}

.dt-icon-button--xsmall {
  height: var(--dt-control-height-xs);
  width: var(--dt-control-height-xs);
}

.dt-icon-button--xsmall svg {
  height: 0.875rem;
  width: 0.875rem;
}

.dt-icon-button--large {
  height: var(--dt-control-height-lg);
  width: var(--dt-control-height-lg);
}

.dt-icon-button--large svg {
  height: 1.25rem;
  width: 1.25rem;
}

.dt-icon-button--xlarge {
  height: var(--dt-control-height-xl);
  width: var(--dt-control-height-xl);
}

.dt-icon-button--xlarge svg {
  height: 1.5rem;
  width: 1.5rem;
}
