@import '../../styles/variables';
@import '../../styles/mixins';

.Wizard {
  position: absolute;
  z-index: layer('layout', 0);
  top: 200px;
  min-width: 226px;
  max-width: 260px;
  min-height: 100px;
  transition: all 100ms ease;

  &__close {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 0;
    cursor: pointer;
    color: $gray50;
    border: 0;
    outline: none;
    background: transparent;

    &:hover {
      color: $action-color;
    }
  }

  &__content {
    position: relative;
    z-index: 2;
    padding: 10px 10px 0 10px;
    transform: translate(22px, -50px);
    border: solid 1px #d9d9d9;
    background-color: $white;
    box-shadow: 0 3px 8px 0 rgba(0, 0, 0, .15);
  }

  &__title {
    margin-bottom: 8px;
    letter-spacing: normal;
    color: $black;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
  }

  &__description {
    margin-bottom: 15px;
    color: $gray20;
    font-size: 12px;
    line-height: 1.25;
  }

  &__tips {
    margin: 0 -10px;
    padding: 10px;
    color: $gray20;
    background-color: $badge-main-color;
    font-size: 12px;
    line-height: 1.25;
  }

  &__pin {
    position: absolute;
    z-index: 1;
    top: 0;
    left: -7px;
    width: 15px;
    height: 15px;
    margin-top: -7px;
    border-radius: 50%;
    background: $action-color;
    box-shadow: 0 0 0 2px white;

    &::before {
      position: absolute;
      top: 7px;
      left: 0;
      width: 30px;
      height: 1px;
      content: '';
      background: $action-color;
    }

    &::after {
      position: absolute;
      top: 2px;
      left: 2px;
      display: block;
      width: 10px;
      height: 10px;
      content: '';
      border-radius: 50%;
      background: #1787fc;
      box-shadow: 0 0 0 rgba(23, 135, 252, .4);
    }
  }

  &__show-button {
    position: fixed;
    right: 80px;
    bottom: 15px;
    display: flex;
    height: 47px;
    margin: 10px 20px;
    padding: 0 20px;
    cursor: pointer;
    color: $white;
    border: 0;
    border-radius: 25px;
    outline: none;
    background-color: $action-color;
    font-weight: 700;
    align-items: center;

    &:hover {
      background-color: $action-color;
    }
  }

  &__show-button-icon {
    margin-right: 5px;
  }
}

.pulse {
  animation: pulse .5s;
  animation-iteration-count: 2;
}
