@import '../../styles/common/screen';

.datepicker-component {
  > div {
    &:first-of-type {
      width: 70px;
      > div {
        border-radius: 3px 0 0 3px;

        @media #{$media-small-minus} {
          border-radius: 3px 3px 0 0;
        }
      }
    }
    &:nth-of-type(2) {
      width: 60px;
      margin-left: -1px;
      > div {
        border-radius: 0;
      }

      @media #{$media-small-minus} {
        margin-top: -1px;
        margin-left: 0;
      }
    }
    &:nth-of-type(3) {
      width: 75px;
      margin-left: -1px;
      > div {
        border-radius: 0 3px 3px 0;

        @media #{$media-small-minus} {
          border-radius: 0 0 3px 3px;
        }
      }

      @media #{$media-small-minus} {
        margin-top: -1px;
        margin-left: 0;
      }
    }
  }
}

.datepicker-component.inline-small-screen {
  [class^='selectfield-component'] {
    @media #{$media-small-minus} {
      min-width: auto;
    }
  }

  > div {
    &:first-of-type {
      > div {
        @media #{$media-small-minus} {
          border-radius: 3px 0 0 3px;
        }
      }
    }
    &:nth-of-type(2) {
      margin-left: -1px;
    }
    &:nth-of-type(3) {
      > div {
        @media #{$media-small-minus} {
          margin-left: -1px;
          border-radius: 0 3px 3px 0;
        }
      }
    }
  }
}
