.btn {
  text-decoration: none;
  cursor: pointer;
  color: inherit;
  fill: inherit;
  background: none;
  border: none;
  vertical-align: middle;
  display: inline-flex;
  gap: 0.6ex;
  align-items: center;
  justify-content: center;
  row-gap: 0;
  border-radius: 4px;
  padding: 6px 13px;
  width: fit-content;
  word-break: normal;

  &:hover {
    text-decoration: none;
  }

  &:active,
  &:focus {
    outline: 0;
  }

  svg {
    &:not(:first-child) {
      margin-left: 5px;
    }
    &:not(:last-child) {
      margin-right: 5px;
    }
  }

  /* Sizes */

  &.btn-sm {
    font-size: 14px;
    padding: 3px 10px;
  }
  &.btn-lg {
    font-size: 18px;
  }
  &.btn-xl {
    letter-spacing: 0.1em;
    font-size: 18px;
  }

  /* Variants */

  &.btn-primary {
    background-color: var(--primary-color-600);
    color: white;
    fill: white;

    &:hover {
      background-color: var(--primary-color-700);
    }
  }

  &.btn-secondary {
    color: var(--primary-color-700);
    border: 1px solid var(--primary-color-700);
    fill: var(--text-primary);
    .fal {
      opacity: 0.7;
    }

    &:hover {
      background-color: var(--grey-100);
    }
  }

  &.btn-danger {
    background-color: var(--red-600);
    border: 1px solid var(--red-600);
    color: white;
    fill: white;

    &:hover {
      background-color: var(--red-500);
      border-color: var(--red-500);
    }
  }

  &.btn-plain-icon {
    min-height: 30px;
    min-width: 30px;
    padding: 5px;
    &:hover {
      background: var(--grey-100);
    }
  }

  &.btn-dark-icon {
    background: var(--primary-color-800);
    color: var(--grey-100);
    fill: white;
    &:hover {
      background-color: var(--primary-color-600);
    }
  }

  &.disabled,
  &[disabled] {
    &,
    &:hover {
      opacity: 0.5;
      cursor: not-allowed;
      filter: grayscale(100%);
    }
  }
}

/* Group */
.btn-group {
  > .btn:not(:first-child) {
    border-left: none;
  }
  > .btn:not(:first-child):not(:last-child) {
    border-radius: 0;
  }
  > .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  > .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  > .btn-primary {
    border: 1px solid var(--primary-color);
  }
}
