@import url('https://fonts.googleapis.com/css2?family=SUSE:wght@100..800&display=swap');
.lynked-rewards--wrapper {
  position: fixed;
  z-index: 1000 !important;
  bottom: 20px;
  min-width: 60px;
  min-height: 60px;
  margin-right: 20px;
  margin-left: 20px;
  font-size: 14px;
}

.lynked-rewards--btn {
  background: #2E4B4E;
  min-width: 60px;
  height: 60px;
  border-radius: 60px;
  border: none;
  text-align: center;
  padding: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.lynked-reward--btn {
  display: inline-flex;
  align-items: center;

  span {
    margin-left: 8px;
    font-size: 14px;
    color: white;
    font-weight: 600;
    font-family: "SUSE", serif;
  }
}

.lynked-close-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 60px;
  height: 60px;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.lynked-openBlock {
  .lynked-reward--btn {
    -webkit-animation: fadeOutNoDisplay .2s ease;
    animation: fadeOutNoDisplay .2s ease;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;

    span {
      opacity: 0;
    }
  }
}

.lynked-openBlock .lynked-reward--btn span {
  opacity: 0;
}

.lynked-closeBlock .lynked-reward--btn {
  -webkit-animation: fadeIn .2s ease;
  animation: fadeIn .2s ease;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.lynked-rewardCount {
  position: absolute;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  background: #EDF403;
  right: -2px;
  top: -2px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2E4B4E;
  font-size: 12px;
  font-weight: 700;
  font-family: "SUSE", serif;
}

.lynked-rewardCountSmall {
  width: 23px;
  height: 23px;
  right:18px;
  background: #EDF403;
  top: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

@keyframes fadeOutNoDisplay {
  0% {
    opacity: 1;
    width: fit-content;
  }

  25% {
    width: 75px;
  }

  50% {
    width: 50px;
  }

  75% {
    width: 20px;
  }

  95% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    width: 0;
  }
}

.lynked-reward-block {
  transition: all .3s ease-out;
  position: fixed;
  bottom: 100px;
  z-index: 999 !important;
  margin-right: 20px;
  margin-left: 20px;
  right: 0;
  width: 378px;
  max-height: 640px;
  height: calc(100% - 140px);
  background: white;
  border-radius: 32px;
  box-shadow: 0 0 45px 23px rgb(168 168 168 / 15%);
  opacity: 0;
  pointer-events: none;
  font-family: "SUSE", serif !important;

  &.lynked-view-block {
    pointer-events: all;
    opacity: 1;
  }
}

.lynked-reward-back {
  cursor: pointer;
  background: #6CA6AA;
  width: 30px;
  height: 30px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  margin-right: 12px;
  transform: rotate(180deg);

  &:hover {
    background-color: rgba(0, 0, 0, .06);
  }

  svg {
    pointer-events: none;
    transform: rotate(0deg);
  }
}


.lynked-reward--header {
  max-height: 150px;
  padding: 24px;
  position: relative;
  background: rgb(86, 163, 243);
  border-top-right-radius: 32px;
  border-top-left-radius: 32px;
  min-height: 60px;

  h2 {
    font-weight: 600;
    font-size: 32px;
    margin: 0;
    color: white;
    font-family: "SUSE", serif;
  }

  h4 {
    margin: 0;
    font-size: 18px;
    color: white;
    font-family: "SUSE", serif;
    font-weight: 700;
    width: 95%;
  }
  .lynked-points-reward{
    font-size: 14px;
    font-weight: 400;
    font-family: "SUSE", serif;
  }
}


@media screen and (max-width: 450px) {
  .lynked-reward-block {
    bottom: 0;
    height: 100vh;
    max-height: none;
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .lynked-reward--header, .lynked-reward-footer {
    border-radius: 0;
  }

  .lynked-rewardCount{
    right: 30%;
    top: 5px;
  }

  .lynked-openBlock, .lynked-closeBlock {
    .lynked-reward--btn {
      -webkit-animation:unset;
      animation: unset;
      -webkit-animation-fill-mode: unset;
      animation-fill-mode: unset;

      span {
        opacity: 1;
      }
    }
  }

  .lynked-rewards--wrapper{
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
  }
  .lynked-rewards--btn{
    border-radius: 0;
    justify-content: center;
  }
  .lynked-reward--text{
    //display: none;
  }
}


@keyframes fadeIn {
  0% {
    opacity: 0;
    width: 0;
  }

  25% {
    width: 20px;
  }

  50% {
    width: 50px;
  }

  75% {
    width: 75px;
  }

  95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    width: fit-content;
  }
}

