:host {
  display: flex;
}

button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  max-width: 2.75rem;
  max-height: 2.75rem;
  border-style: solid;
  border-radius: 0.3125rem;
  border-width: 1px;
  flex: 1;
  background-color: var(--licious-default-background);
  border-color: var(--light-gray);
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
  color: var(--licious-secondary);
  cursor: pointer;
}

button.sm {
  max-height: 2.25rem;
  max-width: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
}

button:hover {
  background-color: var(--licious-pressed-background);
  border-color: var(--licious-pressed-foreground);
  color: var(--licious-primary);
}

button:active {
  box-shadow: none;
  background-color: var(--licious-secondary);
  color: var(--licious-default-background);
  border-color: var(--licious-default-background);
}

button:disabled, button:disabled:hover, button:disabled:active {
  background: none;
  border-color: var(--licious-disabled-foreground);
  color: var(--licious-disabled-foreground);
  cursor: default;
  box-shadow: none;
}

button div:first-child {
  display: flex;
  align-content: center;
  justify-content: center;
}

button div:first-child > svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--licious-primary);
}

button.sm div:first-child > svg {
  width: .9rem;
  height: .9rem;
}

button:disabled div:first-child > svg,
button:disabled:hover div:first-child > svg,
button:disabled:active div:first-child > svg {
  color: var(--licious-disabled-foreground);
}

button:hover div:first-child > svg {
  color: var(--licious-primary);
}

button:active div:first-child > svg {
  color: var(--licious-default-background);
}
