.nut-tour {
  &-mask {
    position: fixed;
    box-shadow: 0 0 0 150vh $color-mask;
    border-radius: $tour-mask-border-radius;
    z-index: 999;

    &-none {
      box-shadow: none;
    }

    &-hidden {
      opacity: 0;
    }
  }

  &-content {
    display: block;
    padding: $tour-content-padding;
    min-width: $tour-content-min-width;
    /* #ifndef dynamic*/
    box-sizing: content-box;
    /* #endif */

    &-top {
      display: block;
      text-align: end;

      &-close {
        width: scale-px(10px);
        height: scale-px(10px);
      }
    }

    &-inner {
      margin: $tour-content-inner-margin;
      font-size: $tour-content-inner-font-size;
      white-space: nowrap;
    }

    &-bottom {
      margin-top: $tour-content-bottom-margin-top;
      display: flex;
      justify-content: space-between;

      &-operate {
        display: flex;
        justify-content: flex-end;

        &-btn {
          display: inline-block;
          border: scale-px(1px) solid $color-text-disabled;
          margin-left: $tour-content-bottom-btn-margin-left;
          padding: $tour-content-bottom-btn-padding;
          font-size: $tour-content-bottom-btn-font-size;
          border-radius: $tour-content-bottom-btn-border-radius;
          color: $color-text;
          cursor: pointer;

          &.active {
            color: #fff;
            border: 0;
            background: $color-primary;
          }
        }
      }
    }

    &-tile {
      .nut-tour-content-inner {
        margin: 0;
      }
    }
  }

  &-masked {
    position: fixed;
    width: 100vh;
    height: 100vh;
    z-index: 1000;
    top: 0;
    left: 0;
    background: transparent;
  }
}

[dir='rtl'] .nut-tour,
.nut-rtl .nut-tour {
  &-content {
    &-bottom {
      &-operate {
        &-btn {
          margin-left: 0;
          margin-right: $tour-content-bottom-btn-margin-left;
        }
      }
    }
  }

  &-masked {
    left: auto;
    right: 0;
  }
}
