@import "../common/var";

@include b(time-panel) {
  margin: 5px 0;
  background-color: $--color-white;
  border-radius: $--border-radius-base;
  position: absolute;
  width: 180px;
  left: 0;
  z-index: $--index-top;
  user-select: none;
  box-sizing: content-box;
  box-shadow: $--box-shadow-light;
  border: $--border-base;

  @include e(content) {
    font-size: 0;
    position: relative;
    overflow: hidden;

    &::after, &::before {
      content: "";
      top: 50%;
      position: absolute;
      margin-top: -15px;
      // margin-top: -70px;
      height: 32px;
      left: 0;
      right: 0;
      box-sizing: border-box;
      padding-top: 6px;
      text-align: left;
    }

    &.has-seconds {
      &::after {
        left: calc(100% / 3 * 2);
      }

      &::before {
        padding-left: calc(100% / 3);
      }
    }
  }

  @include e(footer) {
    border-top: 1px solid $--datepicker-inner-border-color;
    padding: 4px;
    height: 36px;
    line-height: 25px;
    text-align: right;
    box-sizing: border-box;
  }

  @include e(btn) {
    border: none;
    line-height: 28px;
    padding: 0 5px;
    margin: 0 5px;
    cursor: pointer;
    background-color: transparent;
    outline: none;
    font-size: 12px;
    color: $--color-text-primary;

    &.confirm {
      font-weight: 800;
      color: $--datepicker-active-color;
    }
  }
}
