.btn {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  min-width: 140px;
  padding: 0 20px;
  background-color: transparent;
  border: 0;
  border-radius: 4px;
  line-height: @button-height;
  height: @button-height;
  text-align: center;
  white-space: nowrap;
  font-size: @text-size-button;
  font-weight: bold;
  color: #fff;
  cursor: @button-cursor;
  text-transform: uppercase;
}

.btn::before {
  content: '';
  display: block;
  position: absolute;
  cursor: @button-cursor;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.btn[disabled],
.btn--loading {
  opacity: 0.3;
  pointer-events: none;
}

.btn--primary,
.btn--button,
.btn--submit {
  background-color: var(--button-primary-color);
}

.btn--primary:hover,
.btn--button:hover,
.btn--submit:hover,
.btn--primary:hover:active,
.btn--button:hover:active,
.btn--submit:hover:active {
  background-color: var(--gray-light);
}

.btn--light {
  background-color: #fff;
  border: 1px solid #b1b1b1;
  color: #777;
}

.btn .progress__item--indefinite-button {
  background-color: rgba(255, 255, 255, 0.5);
}

.btn--light .progress__item--indefinite-button {
  background: rgba(0, 0, 0, 0.5);
}

.btn--light:focus {
  box-shadow:
    inset 0 1px 0 #fff,
    @focus-box-shadow;
}

.btn--secondary {
  line-height: @button-height - 4;
  color: var(--button-secondary-text-color);
  text-shadow: none;
  box-shadow: none;
}

.btn--secondary .progress__item--indefinite-button {
  background: var(--contrast-medium);
}

.btn--secondary:hover {
  background-color: var(--button-primary-color);
  border-color: var(--button-primary-color);
  color: #fff;
}

.btn--secondary:hover .btn__icon {
  fill: #fff;
}

.btn--secondary,
.btn--secondary:active {
  border: 2px solid var(--button-secondary-color);
}

.btn--info {
  background: var(--button-info-color);
}

.btn--success {
  background: @button-success-color;
}

.btn--info:hover,
.btn--info:hover:active {
// background: darken(@button-info-color, 5%);
}

.btn--success:hover:active,
.btn--success:hover {
  // background: darken(@button-success-color, 5%);
}

.btn--danger {
  background: #e74c3c;
}

.btn--danger:hover {
  background: darken(#e74c3c, 5%);
}

.btn--danger:hover:active {
  background: darken(#e74c3c, 5%);
}

.btn--primary:focus:active,
.btn--button:focus:active,
.btn--submit:focus:active,
.btn--info:focus:active,
.btn--success:focus:active,
.btn--danger:focus:active,
.btn--secondary:focus:active {
  box-shadow: @button-box-shadow;
}

.btn--naked {
  border: 0;
  box-shadow: none;
  text-shadow: none;
  color: var(--text-color-contrast)
}

.btn--small {
  line-height: @button-height-small;
  height: @button-height-small;
  text-transform: none;
}

.btn--small.btn--icon-btn {
  .size(@button-height-small);
}

.btn--small.btn--secondary {
  line-height: @button-height-small - 4;
}

.btn--big {
  text-transform: uppercase;
  min-width: 130px;
  line-height: @button-height-big;
  height: @button-height-big;
  font-size: @text-size-2;
}

.btn--big.btn--icon-btn {
  .size(@button-height-big);
}

.btn--big.btn--secondary {
  line-height: @button-height-big - 4;
}

.btn--icon-btn {
  .size(@button-height);

  min-width: 0;
  padding: 0;
}

.btn__icon:only-child {
  margin: -2px 10px 0 0;
  display: inline-block;
}

.btn__icon--no-children:only-child {
  margin: auto;
  display: block;
}

.btn--button-dropdown-btn {
  border-radius: 0;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  border-right: 1px solid var(--button-dropdow-divider-color);
  background: var(--button-dropdow-background-color);
  color: var(--button-dropdow-text-color);
}

.btn--button-dropdown-trigger {
  border-radius: 0;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  background: var(--button-dropdow-background-color);
  color: var(--button-dropdow-text-color);
}

.btn--button-dropdown-btn:focus,
.btn--button-dropdown-trigger:focus {
  outline: none;
  box-shadow: none;
}

.btn--button-dropdown-btn:active,
.btn--button-dropdown-trigger:active {
  background-color: var(--button-dropdow-active-background-color);
}

.btn--button-dropdown-visible-trigger {
  background-color: var(--button-dropdow-active-background-color);
}

@media (-webkit-min-device-pixel-ratio: 2) {
  .btn .icon {
    .fix-gpu;
  }
}
