.x-month-calendar {
  @include reset-component();

  position: relative;
  width: 360px;
  background: $calendar-bg;
  padding: $padding-xss $margin-sm;
  user-select: none;
  overflow: hidden;

  &_table {
    width: 100%;
    height: 296px;
  }

  &_cell {
    position: relative;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
    cursor: default;
    &::after {
      content: ' ';
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      pointer-events: none;
    }
    &:hover {
      &::after {
        border: 2px #f4f4f4 solid;
      }
    }
    
    &-in-range {
      background: rgba($primary-color, .2);
    }
    &-today {
      color: #fff;
      background: rgba($primary-color, .6);
      &:hover {
        &::after {
          border-color: further($primary-color, 8);
        }
      }
    }
    &-prev, &-next {
      color: rgba($text-color, .2);
    }

    &-selected {
      position: relative;
      &::after {
        border: 2px $primary-color solid;
      }
      &:hover {
        &::after {
          border-color: further($primary-color, 4.5);
        }
      }
    }

  }

  &_header {
    display: flex;
    align-items: center;
    font-size: 15px;
    &_title {
      flex: 1;
      margin-left: $margin-sm;
      &:active {
        opacity: .6;
      }
    }
  }
  
  &_prev-btn, &_next-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 40px;
    margin: 0 1px;
    font-size: 1.5em;
    text-align: center;
    transform: translateZ(0);
    &:active { opacity: .6; }
  }

}