/**
* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

@import '../custom.less';
@import './vars.less';

@time-range-picker-prefix-cls: ~'@{css-prefix}time-range-picker';

.@{time-range-picker-prefix-cls} {
  .inject-TimeRange-vars();

  width: 470px;
  overflow: visible;

  &__content {
    position: relative;
    text-align: center;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }

  &__content-date {
    border-right: 1px solid var(--tv-TimeRange-border-color-divider);
  }

  &__header-title {
    font-size: var(--tv-TimeRange-font-size);
    display: flex;
    justify-content: space-around;
    color: var(--tv-TimeRange-header-text-color);
    padding: var(--tv-TimeRange-title-padding);
    align-items: center;
  }

  &__cell {
    width: 50%;

    .tiny-time-panel__content {
      padding-bottom: var(--tv-TimeRange-cell-content-padding-bottom);
    }
  }

  &__header {
    height: var(--tv-TimeRange-header-height);
    color: var(--tv-TimeRange-header-text-color);
    line-height: var(--tv-TimeRange-header-line-height);
    padding: var(--tv-TimeRange-header-padding);
    text-align: left;
    font-size: var(--tv-TimeRange-font-size);
    border-bottom: 1px solid var(--tv-TimeRange-border-color-divider);
  }

  &__body {
    border-radius: var(--tv-TimeRange-border-radius);
  }

  &__footer {
    border-top: 1px solid var(--tv-TimeRange-border-color-divider);
    padding: var(--tv-TimeRange-footer-padding);
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  &__btn.tiny-button {
    min-width: inherit;
    border: none;
    line-height: var(--tv-TimeRange-btn-height);
    padding: var(--tv-TimeRange-btn-padding);
    margin: 0 5px;
    cursor: pointer;
    background-color: transparent;
    outline: 0;
    font-size: 12px;
    color: var(--tv-TimeRange-btn-text-color);
    border-radius: var(--tv-TimeRange-border-radius);
    transition: background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);

    &.cancel {
      display: inline-block;
    }

    &.confirm {
      color: var(--tv-TimeRange-btn-confirm-text-color);

      &:hover {
        background-color: transparent;
      }
    }
  }
}