.rd-container.rd-container-attachment {
  position: absolute;
  z-index: 999;
}

.rd-container {
  width: 26.5rem;
  background-color: colors('white');
  box-shadow: elevations('z4');
  text-align: center;

  .rd-month {
    position: relative;
  }

  .rd-back,
  .rd-next {
    width: 2rem;
    height: 2rem;
    margin-top: 1rem;
    border: none;
    top: 1.2rem;
    background-color: transparent;
    cursor: pointer;
  }

  .rd-back {
    margin-left: 1rem;
    float: left;
  }

  .rd-next {
    margin-right: 1rem;
    float: right;
  }

  .rd-back::after,
  .rd-next::after {
    display: flex;
    align-items: center;
    justify-content: center;
    color: colors('white');
    font: 400 normal normal 1.4rem/1 FontAwesome;
    cursor: pointer;
  }

  .rd-next::after {
    content: '\f105';
    right: 0;
    left: auto;
  }

  .rd-back::after {
    content: '\f104';
    left: 0;
  }

  .rd-month-label {
    border: none;
    padding: 1.2rem 2rem;
    color: colors('white');
    background-color: colors('base800');
    font-size: 1.4rem;
    font-weight: 400;
    text-align: center;
  }

  .rd-days {
    padding: 1.2rem 0;

    td {
      border: none;
      padding: 0.6rem;
      font-size: 1.2rem;
      text-align: center;
      cursor: pointer;
    }
  }

  table {
    margin: 0;
  }

  .rd-days-head {
    border: none;
    border-top: 1px solid colors('base200');
    border-bottom: none;
    padding: 1em 0;
    font-size: 1.4rem;

    th {
      border-bottom: none;
      padding: 0.4rem;
      background-color: colors('white');
      text-align: center;
    }
  }

  .rd-day-selected {
    color: colors('accent500');
    font-weight: 700;
  }

  .rd-day-prev-month,
  .rd-day-next-month {
    color: colors('base300');
  }

  .rd-time {
    display: flex;
    min-width: 8rem;
    position: relative;
    color: colors('white');
    background-color: colors('base800');
    font-size: 1.6rem;
  }

  .rd-time-list {
    display: none;
    width: 16rem;
    max-height: 16rem;
    margin-left: -8rem;
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 10;
    color: colors('base900');
    background-color: colors('white');
    overflow-y: scroll;
  }

  .rd-time-selected {
    padding: 0.5rem;
    flex: 1 1;
    cursor: pointer;

    &:active {
      background-color: colors('base800');
    }
  }

  .rd-time-option {
    padding: 0.5rem;
    cursor: pointer;

    &:active {
      color: colors('accent500');
    }
  }

  .rd-day-concealed {
    visibility: hidden;
  }
}
