.d-input {
  position: relative;
  box-sizing: border-box;
}

.d-input > input, .d-input > textarea {
  line-height: 150%;
  font-size: 14px;
  background: #FFF;
  border: 1px solid rgba(34, 36, 38, .15);
  color: rgba(0, 0, 0, .87);
  border-radius: .28571429rem;
  box-shadow: 0 0 0 0 transparent inset;
  padding: 7px;
  width: 100%;
}

.d-input > textarea {
  resize: none;
  overflow-y: auto
}

.d-input.error > input, .d-input.error > textarea {
  border: 1px solid #b00020;
}

.d-input > input:active:enabled,
.d-input > input:focus:enabled,
.d-input > textarea:active:enabled,
.d-input > textarea:focus:enabled,
.d-dropdown > .d-input > input.open {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 0.15rem rgb(33 133 208 / 75%);
}

.d-input.error > input:active,
.d-input.error > input:focus,
.d-input.error > textarea:active,
.d-input.error > textarea:focus,
.d-dropdown.error > .d-input > input.open {
  border-color: transparent;
  box-shadow: 0 0 0 0.15rem rgb(176 0 32 / 75%);
}

.d-input > label {
  color: #999;
  font-size: 14px;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 8px;
  top: 10px;
  transition: 0.2s ease all;
  -moz-transition: 0.2s ease all;
  -webkit-transition: 0.2s ease all;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 80%;
  user-select: none;
}

.d-input.error > span {
  font-size: 10px;
  margin-left: 8px;
  display: block;
  color: #b00020;
  width: 100%;
  position: absolute;
}

.d-input > span {
  display: none;
}

.d-input.error > label {
  color: #b00020;
}

.d-input > input:-webkit-autofill ~ label,
.d-input > textarea:-webkit-autofill ~ label {
  top: -10px;
  font-size: 10px;
  color: rgba(34, 36, 38, .45);
  background: #FFF;
  padding-left: 2px;
  padding-right: 2px;
  font-weight: bold;
  width: auto;
}

.d-input > input:disabled {
  opacity: .45;
}

.d-input > input:focus ~ label,
.d-input > textarea:focus ~ label {
  color: #2185d0;
}

.d-input > input:focus ~ label,
.d-input > textarea:focus ~ label,
.d-dropdown > .d-input > input.open ~ label {
  color: #2185d0!important;
  top: -10px;
  font-size: 10px;
  background: #FFF;
  padding-left: 2px;
  padding-right: 2px;
  font-weight: bold;
  width: auto;
}

.d-input > input:valid ~ label,
.d-input > textarea:valid ~ label {
  top: -10px;
  font-size: 10px;
  color: rgba(34, 36, 38, .45);
  background: #FFF;
  padding-left: 2px;
  padding-right: 2px;
  font-weight: bold;
  width: auto;
}

.d-input > input:disabled ~ label,
.d-input > textarea:disabled ~ label {
  top: -10px;
  font-size: 10px;
  color: rgba(34, 36, 38, .45);
  background: #FFF;
  padding-left: 2px;
  padding-right: 2px;
  font-weight: bold;
  width: auto;
}

.d-input.error > input:valid ~ label,
.d-input.error > input:focus ~ label,
.d-input.error > textarea:valid ~ label,
.d-input.error > textarea:focus ~ label {
  color: #b00020!important;
}

.d-input-button {
  position: absolute!important;
  top: 6px;
  right: 6px;
}

@media screen and (max-width: 768px) {
  .d-input {
    padding-right: 0;
  }
}