.datepicker {
    display: inline-block;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    width: 90%;
    max-width: 700px;
}

.datepicker table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: 0;
  margin-top: 20px;
}

    .datepicker table th,
    .datepicker table td {
        width: calc(100% / 7);
        padding: 0;
    }
    .datepicker thead th {
        padding-bottom: 20px;
        font-size: 1.2rem;
    }

.datepicker table th {
  text-transform: uppercase;
  line-height: 1;
  font-weight: bold;
  text-align: center;
}

.datepicker__wrapper {
    color: #333;
    border-radius: 20px;
    padding: 1rem;
    position: relative;
    z-index: 1;
    background: white;
    border: 2px solid #1D1D1B;
    width: 100%;
}

.datepicker__wrapper::after {
  content: '';
  display: table;
  clear: both;
}

.datepicker:not(.is-inline) .datepicker__wrapper {
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.2);
  margin: 0.25rem 0;
}

.datepicker__header {
    position: relative;
    display: flex;
    background: transparent;
    margin: -15px -15px 0 -15px;
    padding: 25px;
    border-bottom: 2px solid rgba(0,0,0,0.2)
}

.datepicker__title {
    position: relative;
    display: flex;
    text-align: center;
    background: transparent;
    font-weight: bold;
    margin-right: 25px;
}
    .datepicker__title > span {
        display: flex;
        align-items: center;
        font-size: 1.4rem;
        font-style: italic;
    }

    .datepicker__prev,
    .datepicker__next {
        display: block;
        cursor: pointer;
        position: relative;
        outline: none;
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        background: no-repeat center / 60%;
        font-size: 0;
    }
.datepicker__next {
    margin-left: auto;
}
.datepicker__prev {
    margin-right: auto;
}


.datepicker__prev:hover,
.datepicker__next:hover {
  background-color: #1E88E5;
}

.datepicker__prev {
  float: left;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path d="M15 8.25H5.87l4.19-4.19L9 3 3 9l6 6 1.06-1.06-4.19-4.19H15v-1.5z" fill="black"/></svg>');
}

.datepicker__next {
    float: right;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path d="M9 3L7.94 4.06l4.19 4.19H3v1.5h9.13l-4.19 4.19L9 15l6-6z" fill="black"/></svg>');
}

.datepicker__prev.is-disabled,
.datepicker__next.is-disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.4;
}

.datepicker__time {
  padding: 0.5rem 1rem;
  margin: 0 -0.5rem;
  font-size: 0.75rem;
  text-align: right;
  background: #E3F2FD;
  border-bottom: 1px solid #BBDEFB;
}

.datepicker__label {
  margin-right: 1rem;
  color: rgba(0,0,0,0.4);
  float: left;
}

.datepicker__field {
  display: inline-block;
  margin: 0 0.125rem;
  color: #333;
  width: 2ch;
}

.datepicker__field span {
  display: block;
  width: 100%;
}

.datepicker__day {
  color: #333;
}

    .datepicker__day div {
        cursor: pointer;
        display: block;
        box-sizing: border-box;
        border: 0;
        margin: 0;
        background: transparent;
        position: relative;
        border-radius: 50%;
        width: 70px;
        left: 50%;
        transform: translate(-50%);
    }

.datepicker__day div::after {
  content: '';
  display: block;
  border-radius: 50%;
  padding-top: 100%;
  position: relative;
  background: inherit;
  z-index: 1;
}

.datepicker__day div:hover,
.datepicker__day.is-highlighted div {
  background: #E3F2FD;
}

    .datepicker__day.is-today {
        color: #1D1D1B;
    }

.datepicker__day.is-today div::after {
  box-shadow: inset 0 0 0 1px currentColor;
}

.datepicker__day.is-today.is-disabled.is-selected div::after,
.datepicker__day.is-today.is-otherMonth.is-selected div::after {
  box-shadow: none;
}

    .datepicker__day.is-selected div {
        background: #1D1D1B;
    }

    .datepicker__day.is-selected:hover div::after {
        background: #1D1D1B;
    }

.datepicker__day.is-selected .datepicker__daynum {
  font-weight: bold;
  font-size: 1.8rem;
  color: white;
}

.datepicker__day.is-selected + .is-selected div::before,
.datepicker__day.is-highlighted + .is-highlighted div::before {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 100%;
  height: 100%;
  background: inherit;
  z-index: 0;
}

    .datepicker__day.is-disabled,
    .datepicker__day.is-otherMonth {
        cursor: default;
        pointer-events: none;
        color: rgba(0,0,0,0.4);
    }

.datepicker__day.is-disabled.is-selected .datepicker__daynum,
.datepicker__day.is-otherMonth.is-selected .datepicker__daynum {
  color: rgba(0,0,0,0.4);
}

.datepicker__day.is-disabled.is-selected div,
.datepicker__day.is-otherMonth.is-selected div,
.datepicker__day.is-disabled.is-selected + .is-selected div::before,
.datepicker__day.is-otherMonth.is-selected + .is-selected div::before {
  background: #E3F2FD;
}

.datepicker__daynum {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    line-height: 1rem;
    margin-top: -0.5rem;
    text-align: center;
    z-index: 2;
    font-weight: 700;
    font-size: 1.3rem;
}
