/* btn */

.btn, button, .button {
  display: inline-block;
  min-width: 180px;
  min-height: 50px;
  padding: 12px 15px;

  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  color: var(--color-white);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: filter .1s ease-in-out, background-color .1s ease-in-out, color .1s ease-in-out;
  outline: none;
  border-radius: 2px;
  font-size: 16px;
  font-family: var(--font-main);
  font-weight: 200;
  line-height: 1.2;
  -webkit-appearance: none;

  @media (width < 480px) {
    min-width: 130px;
    padding: 8px 15px;
    min-height: 40px;
  }

  &:disabled {
    opacity: .6;
    pointer-events: none;
  }

  &:hover {
    filter: contrast(1.25) saturate(1.25);
    text-decoration: none;
  }

  &:active {
    filter: contrast(.8) saturate(.8);
  }
}

.btn--ruble::before {
  content: '₽';
  margin-right: 10px;
  font-weight: 400;
}

.btn--arrow-right::after {
  content: '➔';
  margin-left: 10px;
  font-weight: 400;
}

.btn--white-transparent {
  border: 2px solid var(--color-white);
  background-color: transparent;

  &:hover {
    background-color: var(--color-white);
    color: var(--color-black-light);
  }
}

/* input */

.input-wrapper {
  position: relative;
  display: block;
  padding: 0 0 20px;

  .error {
    display: none;
    position: absolute;
    bottom: 3px;
    left: 0;

    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 12px;
    color: var(--color-red-dark);
  }
}

.input-wrapper__input {
  width: 100%;
}

.input-wrapper__label {
  position: absolute;
  top: -12px;
  left: 16px;
  right: 16px;
  width: calc(100% - 25px);

  color: var(--color-grey-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  pointer-events: none;
  text-shadow: -2px 1px 1px var(--color-grey-extra-light), 2px 1px 1px var(--color-grey-extra-light);
  white-space: nowrap;

  transition: top .1s ease, color .06s linear, font-size .1s linear;
}

.input-wrapper__input:placeholder-shown + .input-wrapper__label,
.input-wrapper__textarea:placeholder-shown + .input-wrapper__label {
  top: 14px;
  color: var(--color-black);
  font-size: 16px;

  @media (width < 480px) {
    top: 8px;
  }
}

.input-wrapper__input:focus + .input-wrapper__label,
.input-wrapper__textarea:focus + .input-wrapper__label {
  top: -12px;
}

.input-wrapper__textarea {
  display: block;
  width: 100%;
  line-height: 1.4;
  height: 50px;
  resize: vertical;
}
