.popup {
  position: fixed;
  z-index: 130;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  overflow-x: hidden;
}

.popup-link {
  &:hover {
    cursor: pointer;
  }
}
.popup.open {
  opacity: 1;
  visibility: visible;
  z-index: 1000;
}
.popup.open .popup__content {
  display: flex;
  flex-direction: column;
  transform: perspective(600px) translate(0px, 0%) rotateX(0deg);
  opacity: 1;
  border-radius: 8px;
  margin: 50px 0;
}
.popup__body {
  min-height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
  max-width: 900px;
}
.popup__content {
  background-color: #fcd34d;
  color: #000;
  width: 100%;
  padding: 32px;
  position: relative;
}

.close-popup {
  align-self: end;
  cursor: pointer;

  svg {
    width: 32px;
    height: 32px;
  }
}

.popup__title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 48px;
  text-align: center;
  margin-bottom: 20px;

  @media (max-width: 555px) {
    font-size: 1.5rem;
  }
}

.popup__text {
  flex-grow: 1;
  font-size: 16px;
  margin: 0 auto 40px;
}

.popup__btn {
  margin: 0 auto;
  display: block;
}
body.lock {
  overflow: hidden;
}

.popup__casinos-container {
  display: flex;
  flex-basis: 50%;
  flex-direction: column;
  margin: 1rem auto;
  width: 100%;
  gap: 1rem;
  max-height: 490px;
  overflow: auto;
  scrollbar-width: none;
}

.popup__casino {
  background: #341f46;
  border-radius: 8px;
  align-items: center;
  display: flex;
  flex-direction: row !important;
  justify-content: space-between;
  width: 100%;
  position: relative;
  gap: 1rem;
  padding: 1rem;

  .popup__casino-logo {
    background: #281839;
    border-radius: 8px;
  }
}

.casino__logo-img {
  width: 140px;
  height: 100px;
  object-fit: contain;
}

.casino__info {
  width: 100%;
}

.bonus__title {
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
}

.bonus {
  font-size: 18px;
  color: #fff;
}

.casino__rating {
  background: #1a0f24;
  color: #fff;
  padding: 12px;
  font-size: 12px;
  border-radius: 8px;
}

.casino__btn {
  background: #b20102;
  color: #fff;
  font-size: 18px;
  padding: 8px 34px;
  border-radius: 8px;
}

.casino__rating,
.casino__btn {
  white-space: nowrap;
}

.popup__casinos .popup__casino .popup__casino-logo {
  max-width: 200px;
}

.popup__casinos .popup__casino .bonus {
  line-height: 1.5;
  text-align: start !important;
  width: 100%;
}

@media (max-width: 670px) {
  .popup__body {
    padding: 0px;
  }
  .popup__casinos-container {
    max-height: 100%;
  }

  .popup__content {
    margin: 0px !important;
  }

  .popup__casino {
    flex-direction: column !important;
    .popup__casino-logo {
      height: 140px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .casino__info {
      text-align: center;
    }

    .casino__rating {
      position: absolute;
      border-radius: 30px;
      right: 10px;
      top: 10px;
    }
  }
}

@media (max-width: 420px) {
  .popup__content {
    padding: 16px;
  }
}
