.datepicker {
  position: relative;
  display: block;
}
/* initially label is below input */
.datepicker span {
  display: inline-block;
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
  left: 12px;
  transition: all 150ms ease-in, background;
  color: #676767;
  z-index: 1;
  cursor: text;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 80%;
  font-size: 1em;
}
/* when the label is activated, it jumps up (using translateY) */
/* you could add animation here as well */
.datepicker__active span {
  font-size: 12px;
  cursor: default;
  color: #797979;
  opacity: 1;
  transform: translateY(-9px);
  top: 0;
  background: white;
  padding: 0 4px;
  left: 8px;
}

.datepicker__disabled span {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 50%,
    rgba(250, 250, 250, 1) 100%
  );
}

label.datepicker__error input {
  border-color: var(--colorRed);
}

.error {
  color: var(--colorRed);
  font-size: 0.75em;
  margin-top: 3px;
  margin-left: 12px;
}

.datepicker__active span ~ div {
  display: inline-block;
}

.datepicker__wrapper {
  position: relative;
}
