@import '../style/theme/color';
@import '../style/theme/corner';

.devui-datepicker-pro-wrapper {
  display: inline-block;
  background-color: $devui-base-bg;
  border-radius: $devui-border-radius;

  .devui-single-picker {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-height: 24px;
    display: flex;
    align-items: center;

    .devui-input {
      padding: 4px 8px;
      width: calc(100% - 16px);
    }

    &-icon {
      vertical-align: text-bottom;
      height: 16px;
    }

    .close-icon-wrapper {
      padding: 0 8px;
      vertical-align: baseline;
      display: none;

      .close-icon {
        width: 16px;
        height: 16px;
        display: inline-block;
        line-height: 12px;

        svg {
          vertical-align: middle;
          position: relative;
          top: -0.1em;

          path {
            fill: $devui-shape-icon-fill;
          }
        }

        &:hover {
          svg path {
            fill: $devui-shape-icon-fill-active;
          }
        }
      }
    }

    .date-icon-wrapper {
      padding: 0 8px;
      display: block;

      path {
        fill: $devui-icon-fill-weak;
      }
    }

    &.devui-has-value.devui-allow-clear:hover:not(.devui-disabled) {
      .close-icon-wrapper {
        display: block;
      }

      .date-icon-wrapper {
        display: none;
      }
    }

    &:not(.devui-disabled) .close-icon-wrapper {
      cursor: pointer;
    }
  }

  .devui-input-group > .devui-input {
    display: inline-block;

    &::-ms-clear {
      display: none;
    }
  }
}
