.yw-tour {
  position: absolute;
  &-content {
    position: relative;

    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    color: #666666;
  }
  &-inner {
    text-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 320px;
    min-height: 136px;
    padding: 16px;
    border-radius: 8px;
    position: relative;
    border: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02);
    background-clip: padding-box;
  }
  &-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #000;
    outline: none;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  &-cover {
    margin-top: 8px;
    text-align: center;
    padding: 10px 0;
    img {
      width: 100%;
    }
  }
  &-header {
    margin-bottom: 8px;
  }
  &-title {
    line-height: 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    line-height: 20px;
  }
  &-indicators {
    display: inline-block;
    .yw-tour-indicator {
      width: 6px;
      height: 6px;
      display: inline-block;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.15);
      &:not(:last-child) {
        margin-inline-end: 6px;
      }
    }
    .yw-tour-indicator-active {
      background: #0077ff;
    }
  }
  &-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
.yw-tour-default {
  .yw-tour-inner {
    background: #fff;
  }
}
:global {
  .yw-tour-arrow {
    position: absolute;
    display: block;
    width: 22px;
    height: 22px;
    overflow: hidden;
    box-shadow: 3px 3px 7px #00000012;
    transform: translateY(-11px) rotate(45deg);
    background: 0 0;
    pointer-events: none;

    background: #fff;
  }
  .yw-tour-placeholder-animated {
    transition: all 0.3s;
  }
  .yw-tour-placement {
    //top
    &-top,
    &-topLeft,
    &-topRight {
      .yw-tour-arrow {
        top: calc(100% - 11px);
      }
    }
    &-top,
    &-bottom {
      .yw-tour-arrow {
        left: calc(50% - 11px);
      }
    }
    &-bottom,
    &-bottomLeft,
    &-bottomRight {
      .yw-tour-arrow {
        top: 11px;
      }
    }
    &-right,
    &-left {
      .yw-tour-arrow {
        top: 50%;
      }
    }
    &-topRight {
      .yw-tour-arrow {
        top: calc(100% - 11px);
      }
    }
    &-left,
    &-leftTop,
    &-leftBottom {
      .yw-tour-arrow {
        right: 0;
      }
    }
    &-topRight,
    &-bottomRight {
      .yw-tour-arrow {
        right: 22px;
      }
    }
    &-topLeft,
    &-bottomLeft {
      .yw-tour-arrow {
        left: 22px;
      }
    }
    &-leftTop,
    &-rightTop {
      .yw-tour-arrow {
        top: 22px;
      }
    }
    &-leftBottom,
    &-rightBottom {
      .yw-tour-arrow {
        top: calc(100% - 22px);
      }
    }
    &-right,
    &-rightTop,
    &-rightBottom {
      .yw-tour-arrow {
        left: 0;
      }
    }
  }
}
