.Wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.InputWrapper {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;

  box-sizing: border-box;
  width: 100%;
  box-shadow: none;
  border: none;
  border-bottom: var(--input-border);
  transition: 0.2s ease background-color;
}
.InputWrapper:focus {
  outline: none;
}

.Input {
  outline: none;
  box-sizing: border-box;
  flex-grow: 1;
  border: none;
  border-radius: 0; /* iPad adds border */
  height: var(--input-height-without-border);
  color: var(--input-color);
  font-size: var(--input-font-size);
  padding-left: 3px;
  padding-right: 5px;
  background: transparent; /* it shadows InputWrapper */
}
.Input:disabled {
  /* reset color, we use custom Disabled class instead */
  color: var(--input-color);
  -webkit-text-fill-color: var(--input-color);
  opacity: 1;
}

.CalendarIconWrapper {
  border: none;
  border-radius: 0;
  height: var(--input-height-without-border);
  width: var(--input-height-without-border);
  background-color: transparent;
  padding: 5px;
  margin-right: 3px;
}

.CalendarIcon {
  stroke: var(--input-icon-color);
  fill: transparent;
}

.AnimatedBorder {
  position: relative;
  display: block;
}
.AnimatedBorder:before,
.AnimatedBorder:after {
  content: '';
  height: 2px;
  width: 0;
  bottom: 1px;
  position: absolute;
  background: var(--input-focus-border-color);
  transition: 0.2s ease all;
}
.AnimatedBorder:before {
  left: 50%;
}
.AnimatedBorder:after {
  right: 50%;
}

.Focused {
  border-color: transparent;
}
.Focused ~ .AnimatedBorder:before,
.Focused ~ .AnimatedBorder:after {
  width: 50%;
}

.Error {
  border-color: transparent;
  background: var(--input-error-background-color);
}
.Error ~ .AnimatedBorder:before,
.Error ~ .AnimatedBorder:after {
  background: var(--input-error-border-color);
  width: 50%;
}

.Disabled .Input {
  color: var(--input-disabled-color);
  background-color: var(--input-disabled-background);
  box-shadow: none;
}

:global .rdp-nav_button:focus,
:global .rdp-day:focus {
  border-color: var(--input-focus-border-color);
  box-shadow: var(--input-focus-shadow);
  outline: none;
}

.Icon {
  position: absolute;
  right: 28px;
  bottom: 3px;
}

.HelpText {
  font-size: 12px;
  color: gray;
  left: 3px;
  position: absolute;
  bottom: -15px;
}

.ModalButtonsWrapper {
  display: flex;
  justify-content: flex-end;
}
.ModalButton {
  margin: 20px;
  margin-top: 0;
}
