.location-based-popup-backdrop {
  position: fixed;
  display: none;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  top: 0;
  z-index: 99;
}

.location-based-popup {
  z-index: 1;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  width: 100%;
  max-width: 740px;
  height: auto;
  border-radius: 10px;
  background: #ffffff;
  overflow: auto;
  padding: 0;
  border: 1.5px solid #000;
  z-index: 100;

  &.location-based-popup-secondary{
    border-radius: 60px;
    max-width: 700px;

    .popup-content--close-btn{
      top: 60px;
      right: 70px;
    }
  }

  .popup-wrapper {
    position: relative;
    z-index: 99;
  }

  .popup-content--close-btn {
    position: absolute;
    top: 19px;
    right: 19px;
    background: transparent;
    border: none;
    padding: 0;
  }

  .popup-content--close-btn svg {
    height: 18px;
    width: 18px;
  }

  .popup-content {
    display: flex;
    gap: 12px;
    flex-direction: column;
  }

  .popup-content--row {
    display: flex;
    flex-direction: row;
    gap: 12px;

    &:nth-of-type(1) {
      padding: 65px 61px 42px;
    }
  }

  .popup-content--column{
    display: flex;
    flex-direction: column;
    padding: 50px 70px;
    text-align: center;
    background: white;
    margin: 40px;
    border-radius: 40px;
    border: 1.5px solid;

    .title{
      margin-bottom: 20px;
      text-transform: uppercase;
      line-height: 1em;
      font-size: 2.6em;
    }

    .subtitle{
      font-size: 1.8em;
      line-height: 1em;
    }
  }

  .popup-content--box {
    border: 1.5px solid #000;
  }

  .popup-content--right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-basis: 56%;
    padding: 50px 39px;
    background: #fff;
  }

  .star-decorated {
    position: relative;
  }

  .star-decorated::after {
    content: "";
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="30px" height="30px" viewBox="0 0 30 30" version="1.1"><g id="surface1"><path style="fill-rule:nonzero;fill:rgb(60.392157%,91.372549%,98.823529%);fill-opacity:1;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:4;" d="M 18 3 L 22.05 13.95 L 33 18 L 22.05 22.05 L 18 33 L 13.95 22.05 L 3 18 L 13.95 13.95 Z M 18 3 " transform="matrix(0.833333,0,0,0.833333,0,0)"/></g></svg>');
    position: absolute;
    width: 30px;
    height: 30px;
    display: block;
  }

  .star-decorated-button::before {
    content: "";
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="30px" height="30px" viewBox="0 0 30 30" version="1.1"><g id="surface1"><path style="fill-rule:nonzero;fill:rgb(14, 207, 254);fill-opacity:1;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:4;" d="M 18 3 L 22.05 13.95 L 33 18 L 22.05 22.05 L 18 33 L 13.95 22.05 L 3 18 L 13.95 13.95 Z M 18 3 " transform="matrix(0.833333,0,0,0.833333,0,0)"/></g></svg>');
    position: absolute;
    width: 30px;
    height: 30px;
    display: block;
    left: -5px;
    bottom: -10px;
    transform: rotate(-10deg);
  }

  .star-decorated-button::after {
    content: "";
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="30px" height="30px" viewBox="0 0 30 30" version="1.1"><g id="surface1"><path style="fill-rule:nonzero;fill:rgb(14, 207, 254);fill-opacity:1;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:4;" d="M 18 3 L 22.05 13.95 L 33 18 L 22.05 22.05 L 18 33 L 13.95 22.05 L 3 18 L 13.95 13.95 Z M 18 3 " transform="matrix(0.833333,0,0,0.833333,0,0)"/></g></svg>');
    position: absolute;
    width: 30px;
    height: 30px;
    display: block;
    right: -10px;
    top: -5px;
    transform: rotate(15deg);
  }

  .logo.star-decorated::after {
    left: -15px;
    bottom: 28px;
  }

  .image.star-decorated::after {
    right: -15px;
    bottom: 39px;
  }

  .popup-content--right.star-decorated::after {
    right: 15px;
    top: -15px;
  }

  .popup-content--row:nth-of-type(2).star-decorated::after {
    right: 15px;
    top: -15px;
  }

  .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d5d2ff;
  }

  .image img {
    width: 100%;
    height: 100%;
  }

  .logo img {
    max-width: 55%;
  }

  .text p {
    font-family: "SctoGroteskaA-medium";
    letter-spacing: -0.657px;
  }

  .text h2,
  .text h3,
  .text h4 {
    letter-spacing: -0.48px;
  }

  .button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border: 1.5px solid #000;
    text-transform: uppercase;
    background: #c0f281;
    border-radius: 50px;
    height: 86px;
    font-family: "SctoGroteskaA-bold";
    font-size: 20px;
    text-align: center;
    letter-spacing: -0.8px;

    &:hover{
      background: #39c5bd;
      color: #000;
    }
  }

  .button-secondary{
    width: fit-content;
    height: fit-content;
    padding: 10px 40px;
    margin: 20px auto 0;
    font-family: 'SctoGroteskAMedium';
    text-transform: none;
    position: relative;
  }
}

@media (max-width: 767px) {
  .location-based-popup {
    max-width: 90vw;
    max-height: 90vh;

    &.location-based-popup-secondary{
      max-width: 90%;

      .popup-content--close-btn{
        top: 50px;
        right: 60px;
      }
    }

    .popup-content--close-btn {
      top: 12px;
      right: 18px;
    }

    .popup-content--row {
      &:nth-of-type(1) {
        flex-direction: column;
        padding: 44px 18px 0;
      }
      &:nth-of-type(2) {
        padding: 0 18px 18px;
      }
    }

    .popup-content--right {
      padding: 32px;
    }

    .star-decorated::after {
      background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20px" height="20px" viewBox="0 0 20 20" version="1.1"><g id="surface1"><path style="fill-rule:nonzero;fill:rgb(60.392157%,91.372549%,98.823529%);fill-opacity:1;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:4;" d="M 18 3.002344 L 22.05 13.95 L 32.997656 18 L 22.05 22.05 L 18 32.997656 L 13.95 22.05 L 3.002344 18 L 13.95 13.95 Z M 18 3.002344 " transform="matrix(0.555556,0,0,0.555556,0,0)"/></g></svg>');
      width: 20px;
      height: 20px;
    }

    .logo.star-decorated::after {
      left: -10px;
    }

    .popup-content--right.star-decorated::after {
      right: -10px;
      top: 85px;
    }

    .popup-content--row:nth-of-type(2).star-decorated::after {
      right: 50px;
      top: unset;
      bottom: 10px;
    }

    .logo img {
      margin: 10%;
    }

    .text h4 {
      font-size: 25px;
      line-height: 30px;
    }

    .popup-content--column{
      margin: 30px;
      padding: 50px 15px;

      .subtitle{
        font-weight: 400;
        font-size: 18px;
        line-height: 1;
      }

      .title{
        font-size: 26px;
        max-width: 240px;
        margin: 0 auto 20px
      }
    }

    .button {
      font-size: 15px;
      padding: 0 20%;

      &.button-secondary{
        padding: 10px 30px;
      }
    }
  }
}

@media (min-width: 768px) {
  .location-based-popup {

    .popup-content--row:nth-of-type(2) {
      padding: 29px 60px;
      border-top: 1.5px solid #000;

    }

    .popup-content--left {
      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: 1fr 1fr;
      gap: 12px;
      flex-basis: 44%;
    }
  }
}
