@import '../../style/themes/index';
@import '../../style/mixins/index';

@backtop-prefix-cls: ~'@{ant-prefix}-back-top';

.@{backtop-prefix-cls} {
  .reset-component();

  position: fixed;
  // right: 100px;
  // bottom: 50px;
  right: 8px;
  bottom: 8px;
  z-index: @zindex-back-top;
  width: 40px;
  height: 40px;
  cursor: pointer;

  &:empty {
    display: none;
  }

  &-rtl {
    right: auto;
    left: 100px;
    direction: rtl;
  }

  &-content {
    width: 40px;
    height: 40px;
    overflow: hidden;
    color: @back-top-color;
    text-align: center;
    background-color: @back-top-bg;
    border: @br-dropdown-border;
    border-radius: 20px;
    box-shadow: @br-box-shadow-lg;
    transition: all 0.3s;

    &:hover {
      background-color: @back-top-hover-bg;
      border-color: @back-top-hover-bg;
      transition: all 0.3s;

      .@{backtop-prefix-cls}-icon {
        .@{iconfont-css-prefix} {
          color: @primary-text-color;
        }
      }
    }

    &:active {
      .@{backtop-prefix-cls}-icon {
        .@{iconfont-css-prefix} {
          color: @primary-color-active;
        }
      }
    }
  }

  &-icon {
    // font-size: 24px;
    font-size: 16px;
    line-height: 40px;
  }
}

@import './responsive';
