@import "import";

.wrapper {
  width: 100%;
  padding: 0 var(--spacer-4);
  max-width: 100%;
  @include flex(row, flex-end, flex-start);

  @include breakpoint(medium) {
    max-width: var(--max-width-global);
    padding: 0 var(--spacer-6);
  }
}

.banner {
  position: relative;
  top: auto;
  bottom: 0;
  right: 0;
  width: 100%;
  margin-top: var(--spacer-4);

  min-height: 80px;

  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0px 4px 18px 0px rgba(0, 0, 0, 0.18);

  color: color(white);

  @include breakpoint(small) {
    width: auto;
    margin-top: 0;
  }

  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;

  &.visible {
    opacity: 1;
    pointer-events: auto;
  }
}

.button {
  @include flex(row, center, center, 14px);
  padding: 16px 24px;

  cursor: auto;
  pointer-events: none;

  @include breakpoint(medium) {
    padding: 16px 32px 16px 24px;
  }

  &:hover {
    .content {
      svg {
        transform: translateX(3px);
      }
    }
  }
}

.imgContent {
  position: relative;
  width: 64px;
  height: 64px;
  //transform: translate(-3px, 2px);

  img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
.content {
  @include flex(column, center, flex-start, 4px);
  font-family: var(--font-family-sans-serif);
  font-style: normal;
  line-height: 1.24em;
  letter-spacing: -0.2px;
  font-size: 16px;
  font-weight: 400;

  @include breakpoint(medium) {
    font-size: 18px;
  }

  .title {
    font-weight: 650;
    font-size: 18px;

    @include breakpoint(medium) {
      font-size: 20px;
    }
  }
  svg {
    display: inline;
    vertical-align: middle;
    transition: transform 0.25s ease;
    margin-left: 0.2em;
  }
}

.closeBtn {
  position: absolute;
  top: -6px;
  left: -6px;

  display: none;
  width: 24px;
  height: 24px;
  justify-content: center;
  align-items: center;

  border-radius: 99px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);

  pointer-events: none;
  opacity: 0;
  transform: scale(0.01);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;

  &:hover {
    transform: scale(1.1) !important;
  }

  @include breakpoint(medium) {
    display: flex;
  }
}

.banner.visible {
  .button {
    cursor: pointer;
    pointer-events: auto;
  }

  .closeBtn.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
}
