@use '../mixins/mixins' as *;
@use '../common/var' as *;
@use '../mixins/var' as *;

@include b(date-range-picker) {
  width: 532px;

  &.has-sidebar {
    width: 660px;
  }

  &.has-time {
    width: 694px;

    .#{$namespace}-picker-panel__sidebar {
      border-bottom-left-radius: 0;
    }
  }

  &.has-sidebar.has-time {
    width: 822px;
  }

  &.has-time,
  &.has-sidebar {
    .#{$namespace}-picker-panel__body-wrapper {
      display: flex;
    }
  }

  table {
    table-layout: fixed;
    width: 100%;
  }

  .#{$namespace}-picker-panel__body {
    display: flex;
  }

  @include e(header) {
    position: relative;
    text-align: center;
  }

  @include e((month-header, year-header)) {
    padding-top: 2px;
    padding-bottom: 2px;
    background-color: getCssVar('color-neutral-2');
    border-radius: getCssVar('border-radius-md');
    align-items: center;
  }

  @include e(month-header) {
    margin-top: 8px;
  }

  @include e(header-label) {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: getCssVar('color-neutral-9');
  }

  @include e(content) {
    width: 50%;
    box-sizing: border-box;
    margin: 0;

    @include when(left) {
      // border-right: 1px solid getCssVar('color-neutral-2');
      // padding-right: 12px;
    }

    @include when(right) {
      padding-left: 12px;
    }
  }

  @include e(time-panel) {
    border-left: 1px solid getCssVar('color-neutral-2');
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  @include e(time-panel-header) {
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: getCssVar('color-neutral-7');
  }

  @include e(time-panel-message) {
    padding: 16px;
    font-size: 14px;
    line-height: 20px;
    color: getCssVar('color-neutral-6');
  }
}
