.plain {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
}

/*
 * Changes to the height of the button component should be reflected in
 * the `chat-constants.js`component in the `editBoxBottomRowHeight`
 * variable as well.
 */
.btn {
  --border-width: 1px;
  --border-radius: 8px;

  position: relative;
  font-size: var(--m-font-16);
  padding: 12px 24px;
  color: var(--fg);
  border: var(--border-width) solid transparent;
  border-radius: var(--border-radius);
}

.btn.outline {
  border: var(--border-width) solid var(--button-border-outline-default);
  color: var(--text-background-secondary-default);
}

.btn > * {
  position: relative;
}

.btn::before {
  content: '';
  border: inherit;
  border-radius: inherit;
  background: inherit;
  position: absolute;
  top: calc(-1 * var(--border-width));
  left: calc(-1 * var(--border-width));
  width: 100%;
  height: 100%;
}

.btn.outline::before {
  top: 0;
  left: 0;
  border: none;
  border-radius: calc(var(--border-radius) - var(--border-width));
}

.btn:hover::before {
  transition-duration: 200ms;
  transition-property: filter;
}

.btn:hover:not(:disabled)::before {
  filter: brightness(0.8);
}

.btn.outline:hover:not(:disabled)::before {
  filter: brightness(2);
}

.btn:disabled {
  cursor: not-allowed;
  color: var(--button-label-primary-disabled);
}

.btn:not(.outline):disabled::before {
  background-color: var(--button-background-primary-disabled);
}

.text {
  font-size: var(--m-font-16);
  background: transparent;
  white-space: nowrap;
}
