.cwb-datepicker {
  // Time picker related styling
  .react-datepicker {
    margin-bottom: 130px;
    .react-datepicker__month-container {
      padding-bottom: 110px;
    }
    .recording-deadline-footer {
      position: absolute;
      bottom: 0px;
      width: 100%;
      height: 110px;
      .icon-cwb-clock-grey {
        width: 30px;
        text-align: center;
        margin-top: auto;
        margin-bottom: auto;
      }
      .deadline-time-picker {
        display: flex;
        justify-content: space-evenly;
        position: relative;
        border-top: 1px solid #f0f0f0;
        padding: 14px 28px 14px 28px;
      }
      .time-input {
        height: 28px;
        width: 50px;
        color: #0a1f44;
        font-size: 12px;
        font-weight: 600;
        line-height: 20px;
        text-align: center;
        margin-left: 10px;
        margin-right: 10px;
      }
      .invalid {
        .time-input {
          border-color: red;
        }
      }
      .time-input-am-pm {
        display: flex;
        justify-content: center;
        flex: 1;
        margin-top: auto;
        margin-bottom: auto;
        .am-pm-selector {
          display: flex;
          justify-content: center;
          align-items: center;
          height: 32px;
          width: 56px;
          border-radius: 4px 0 0 4px;
          border: 1px solid #2ed2ff;
          font-weight: bold;
          line-height: 20px;
          font-size: 11px;
          background: white;
          color: #2ed2ff;
          &.pm {
            border-radius: 0 4px 4px 0;
          }
          &.selected {
            background: #2ed2ff;
            color: white;
          }
          &:not(.selected) {
            cursor: pointer;
          }
        }
      }
      .recording-deadline-footer-actions {
        height: 50px;
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #f0f0f0;
        padding-left: 16px;
        padding-right: 16px;
        .deadline-action {
          font-size: 12px;
          font-weight: 600;
          line-height: 16px;
          text-align: center;
          cursor: pointer;
        }
      }
    }
  } // Date picker specific styling
  .react-datepicker {
    border-color: #d1d5dd;
    box-shadow: 0 2px 4px 0 #e3e3e3;
    border-top: 1px solid #00aaff !important;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-right: 0px;
    border-left: 0px;
  }
  .react-datepicker-popper[data-placement^='bottom']
    .react-datepicker__triangle::before {
    border-bottom-color: #d1d5dd;
  }
  .react-datepicker__header {
    background: white;
    border-bottom-color: white;
  }
  .react-datepicker__navigation {
    border: 0.35rem solid transparent;
  }
  .react-datepicker__triangle {
    display: none;
  }
  .react-datepicker__day {
    border-bottom: 1px solid #f0f0f0;
  }
  .react-datepicker__day,
  .react-datepicker__day-name {
    margin-left: 0px;
    margin-right: 0px;
    width: 40px;
    height: 38px;
    line-height: 38px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-bottom: 0px;
    margin-top: 0px;
    font-size: 12px;
  }
  .react-datepicker__day-name {
    height: 30px;
    line-height: 30px;
  }
  .react-datepicker__day--keyboard-selected,
  .react-datepicker__day.react-datepicker__day--selected {
    background-color: white;
    color: black;
    border-bottom: 2px solid #2ed2ff;
    border-radius: 0px;
    margin-bottom: 0px;
    padding: 0px;
  }
  .react-datepicker__current-month {
    text-align: center;
    font-size: 13px;
    padding-bottom: 6px;
  }

  .react-datepicker__navigation--previous,
  .react-datepicker__navigation--next {
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    font-size: 14px;
    margin-top: 2px;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-indent: unset;
  }

  .react-datepicker__navigation--previous {
    left: 18px;
    right: unset;
    border: none;
    outline: 0;
    font-weight: bold;
    height: 14px;
    width: 14px;
    font-size: 12px;
    color: #5d6c84;

    &:before {
      content: '\e902';
    }
  }
  .react-datepicker__navigation--next {
    left: unset;
    right: 18px;
    border: none;
    outline: 0;
    font-weight: bold;
    height: 14px;
    width: 14px;
    font-size: 12px;
    color: #5d6c84;
    transform: rotate(180deg);

    &:before {
      content: '\e902';
    }
  }
  .react-datepicker__time-list {
    padding: 0px;
  }
  .react-datepicker__time-box {
    width: 100%;
  }
  .react-datepicker__time-container {
    width: 140px;
    .react-datepicker__header {
      display: none;
    }
    .react-datepicker__time
      .react-datepicker__time-box
      ul.react-datepicker__time-list {
      li.react-datepicker__time-list-item {
        text-align: left;
        font-size: 14px;
        padding-left: 0px;
        padding-right: 0px;
      }
      li.react-datepicker__time-list-item--selected {
        background-color: #2ed2ff;
      }
    }
  } // Time picker related styling
  .react-datepicker {
    margin-bottom: 130px;
    .react-datepicker__month-container {
      padding-bottom: 110px !important;
    }
    .recording-deadline-footer {
      position: absolute;
      bottom: 0px;
      width: 100%;
      height: 110px;
      .icon-cwb-clock {
        width: 30px;
        text-align: center;
        line-height: 28px;
        height: 28px;
      }
      .deadline-time-picker {
        display: flex;
        justify-content: space-evenly;
        position: relative;
        border-top: None;
        padding: 14px 0px 14px 10px;
      }
      .time-input {
        height: 28px;
        width: 50px;
        color: #0a1f44;
        font-size: 12px;
        font-weight: 600;
        line-height: 20px;
        text-align: center;
        margin-left: 10px;
        margin-right: 10px;
      }
      .invalid {
        .time-input {
          border-color: red;
        }
      }
      .time-input-am-pm {
        display: flex;
        justify-content: center;
        flex: 1;
        margin-top: auto;
        margin-bottom: auto;
        .am-pm-selector {
          display: flex;
          justify-content: center;
          align-items: center;
          height: 32px;
          width: 56px;
          border-radius: 4px 0 0 4px;
          border: 1px solid #2ed2ff;
          font-weight: bold;
          line-height: 20px;
          font-size: 11px;
          background: white;
          color: #2ed2ff;
          &.pm {
            border-radius: 0 4px 4px 0;
          }
          &.selected {
            background: #2ed2ff;
            color: white;
          }
          &:not(.selected) {
            cursor: pointer;
          }
        }
      }
      .recording-deadline-footer-actions {
        height: 50px;
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #f0f0f0;
        padding-left: 16px;
        padding-right: 16px;
        .deadline-action {
          font-size: 12px;
          font-weight: 600;
          line-height: 16px;
          text-align: center;
          cursor: pointer;
        }
      }
    }

    .react-datepicker__month {
      margin-left: 24px;
      margin-right: 24px;
    }
  }
}
