@import '~scss/variables';
@import '~scss/mixins';

.wrapper {
  padding: 12px;
  border-radius: 4px;
  background-color: $light-color01;
}

.item {
  position: relative;
  padding: 11px 12px;
  margin-bottom: 8px;
  border-radius: 4px;
  background-color: $white;
  border: solid 1px $border-color;
  transition: all $trans-speed ease-in-out;

  &:last-child {
    margin-bottom: 0;
  }

  &:hover {
    border-color: $border-hover-color;
    box-shadow: 0 4px 8px 0 rgba(36, 46, 66, 0.2);

    :global .buttons {
      display: block;
    }
  }

  :global .buttons {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 62px;
    padding: 16px 4px;
    border-radius: 4px;
    background-color: #fff;

    & > button {
      width: 56px;
      margin-left: 4px;
    }
  }
}

.texts {
  display: flex;

  & > div:first-of-type {
    min-width: 200px;
  }

  & > div + div {
    margin-left: 12px;
  }
}

.description {
  span + span {
    margin-left: 12px;
  }
}

.clusters {
  position: absolute;
  top: 12px;
  right: 12px;

  .text {
    text-align: right;
    padding-right: 0;

    .title > span {
      margin-left: 4px;
    }
  }
}

.add {
  position: relative;
  padding: 11px 12px;
  border-radius: 4px;
  border: 1px dashed $border-color;
  background-color: $white;
  cursor: pointer;
  transition: all $trans-speed ease-in-out;

  &:hover {
    box-shadow: 0 4px 8px 0 rgba(36, 46, 66, 0.2);
    border-color: $border-hover-color;
  }
}

.paths {
  margin-top: 12px;
}

.path {
  padding: 6px 12px;
  border-radius: 4px;
  background-color: $bg-color;

  & + .path {
    margin-top: 4px;
  }

  span {
    display: inline-block;
    @include TypographyParagraph($dark-color01);

    & + span {
      color: $dark-color07;
      margin-left: 5px;
    }
  }
}

.error {
  margin-top: 12px;
  color: $red !important;
}
