.calendar-popup-input-wrapper {
  &, * {
    box-sizing: content-box !important;
  }
  min-height: 35px;
  display: inline-block;
  vertical-align: middle;
  min-width: 191px;
  max-width: none;
  margin: 0 10px 0 0;
  width: auto;
  position: relative;
  border: 1px solid #c6cdd3;
  border-radius: 2px;
  padding: 5px 5px 0;
  background: #fff;
  span:after {
    background: data-uri('../styles/images/icons.png') no-repeat;
  }
  > span {
    width: 100%;
    height: 38px;
    border: 0;
    position: absolute;
    margin: -4px -5px 0;
    line-height: 36px;
    background: #fff;
    font-size: 15px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    > .calendar-popup-placeholder-input,
    > input {
      height: 30px;
      line-height: 30px;
      font-size: 15px;
      border: 0;
      top: 0;
      bottom: 0;
      width: 100%;
      box-sizing: border-box;
      margin: auto;
      padding: 0 8px;
      background: rgba(0, 0, 0, 0);
      z-index: 2;
      outline: 0;
      color: #535c69;
      position: absolute;
      overflow: hidden;
      > i {
        color: transparent;
      }
    }
    > span {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      margin: auto;
      z-index: 2;
      background: #fff;
      cursor: pointer;
      display: none;
      vertical-align: middle;
      width: 30px;
      height: 30px;
      &:after {
        content: '';
        background-position: 0px 0px;
        width: 10px;
        height: 10px;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        opacity: .2;
      }
      &:hover:after {
        opacity: .4;
      }
    }
    &:after {
      content: '';
      position: absolute;
      width: 18px;
      height: 15px;
      background-position: 0px -12px;
      right: 6px;
      top: 0;
      bottom: 0;
      margin: auto;
      z-index: 1;
      opacity: .7;
    }
  }
  &.calendar-popup-input-wrapper-not-empty {
    > span {
      > span {
        display: inline-block;
      }
    }
  }
}