.button-primary,
.button-secondary,
.button-ghost,
.button-ghost-alt {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 11px 32px;

  font-weight: bold;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  white-space: nowrap;

  border: 1px solid transparent;

  &:disabled,
  &[disabled],
  &.disabled {
    background: rgba(170, 175, 179, 0.08);
    border: 1px solid rgba(170, 175, 179, 0.08);
    box-shadow: none;
    color: #aaafb3;
    cursor: not-allowed;
    pointer-events: none;
  }
}

.button-primary {
  background: #ff4339;
  box-shadow: 0 8px 16px rgba(255, 67, 57, 0.16);
  border-radius: 4px;
  color: #fff;

  &:hover {
    background: #ff6961;
    color: #fff;
    box-shadow: 0 8px 16px rgba(255, 105, 97, 0.24);
  }

  &:active {
    background: #cc362e;
    box-shadow: 0 4px 8px rgba(204, 54, 46, 0.16);
    color: #fff;
  }
}

.button-secondary {
  background: rgba(255, 67, 57, 0.1);
  border-radius: 4px;
  color: #ff4339;

  &:hover {
    background: rgba(255, 105, 97, 0.1);
    color: #ff6961;
  }

  &:active {
    background: rgba(204, 54, 46, 0.08);
    color: #cc362e;
  }
}

.button-ghost {
  border-color: #ff4339;
  background-color: transparent;
  border-radius: 4px;
  color: #ff4339;

  &:hover {
    background: rgba(255, 105, 97, 0.1);
    border: 1px solid #ff8e88;
    color: #ff6961;
  }

  &:active {
    background: rgba(204, 54, 46, 0.04);
    border: 1px solid #cc362e;
    color: #cc362e;
  }
}

.button-ghost-alt {
  border: 1px solid #e3e4e6;
  background-color: transparent;
  border-radius: 4px;

  color: #aaafb3;

  &:hover {
    background: rgba(255, 105, 97, 0.1);
    border: 1px solid #ff8e88;
    color: #ff6961;
  }

  &:active {
    background: rgba(204, 54, 46, 0.04);
    border: 1px solid #cc362e;
    color: #cc362e;
  }
}

.button-small {
  font-size: 12px;
  line-height: 16px;
  padding: 9px 24px;
}

.button-big {
  font-size: 16px;
  line-height: 24px;
  padding: 19px 48px;
}

.button-icon {
  padding: 11px;

  &.button-big {
    padding: 19px;
  }
}

.button-text {
  font: var(--font-p1);
  font-weight: 600;
  color: var(--theme-secondary-color);
  border: 0;
  background-color: transparent;
  padding: 0;

  display: inline-flex;
  align-items: center;

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

  &:active {
    color: var(--theme-primary-color);
  }
}

.button-ghost-monochrome {
  background: transparent;
  border: 1px solid var(--theme-border-color);
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  line-height: 24px;
  display: flex;
  align-items: center;
  padding: 12px 32px;
  color: var(--theme-secondary-color);
  height: 48px;

  &:hover {
    color: var(--theme-primary-color);
    border: 1px solid #ff4339;
  }

  &:active {
    color: var(--theme-primary-color);
  }

  &.selected {
    border-color: var(--theme-red-color);
  }
}

.button-back {
  font-style: normal;
  font-weight: bold;
  font-size: 12px;
  line-height: 24px;
  color: var(--theme-secondary-color);
  border: 0;
  background-color: transparent;
  padding: 12px 0;

  display: flex;
  align-items: center;

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

  &:active {
    color: var(--theme-primary-color);
  }
}

.link-blue {
  color: var(--theme-blue-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  background-color: transparent;
  border: 0;
  padding: 0;

  &:hover,
  &:active {
    color: var(--theme-blue400-color);
  }

  [data-theme='dark'] & {
    color: var(--theme-blue400-color);

    &:hover,
    &:active {
      color: var(--theme-blue-color);
    }
  }
}

.token-select {
  border: 1px solid var(--theme-border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 24px;
  width: 100%;
  background-color: transparent;
}

.token-select-chevron {
  color: var(--theme-icon-color);

  button:hover & {
    color: var(--theme-icon-hover-color);
  }
}
