.stellar-program-popup-overlay {
  display: none;
}

.stellar-program-popup-overlay.is-open {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  background: #00000033;
  z-index: 1000;
  /* below popup (1001) */
  backdrop-filter: blur(8px);
  display: block;
}


.stellar-program-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  align-items: center;
  justify-content: center;

  &.is-open {
    display: flex;
  }

  .stellar-program-popup__dialog {
    background: #1e1e1e;
    border-radius: 55px;
    max-width: 1320px;
    width: 100%;
    height: auto;
    overflow: auto;
    outline: 0;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #fff;
    position: absolute;
    padding-bottom: 36px;

    @media (max-width: 1024px) {
      max-height: 85vh;
      height: auto;
      max-width: 90vw;
      width: 100%;
      border-radius: 34px;
    }

    .stellar-program-popup__close {
      position: absolute;
      top: 30px;
      right: 30px;
      z-index: 1000;
      background: none;
      border: none;
      cursor: pointer;
      width: 60px;
      height: 60px;
    }

    .stellar-program-popup__media {
      position: relative;
      overflow: hidden;
      /* pilnuje promieni i overlay */
      border-top-right-radius: 55px;
      border-top-left-radius: 55px;

      @media (max-width: 1024px) {
        border-top-right-radius: 34px;
        border-top-left-radius: 34px;
      }

      img {
        width: 100%;
        height: auto;
        max-height: 400px;
        display: block;
        object-fit: cover;
        object-position: center;
        border-top-right-radius: 55px;
        border-top-left-radius: 55px;

        @media (max-width: 1024px) {
          border-top-right-radius: 34px;
          border-top-left-radius: 34px;
        }
      }
    }

    .stellar-program-popup__content {
      .stellar-program-popup__body {
        .stellar-program-popup__title {
          font-family: Anton, sans-serif;
          font-weight: 400;
          font-size: 38px;
          line-height: 55px;
          text-align: center;
          margin: -60px 0 36px 0;
          position: relative;

          @media (max-width: 1024px) {
            font-size: 21px;
            line-height: 34px;
            margin: 13px 0 13px 0;
          }
        }

        .stellar-program-popup__badges {
          display: flex;
          justify-content: center;
          gap: 21px;
          flex-wrap: wrap;
          margin-bottom: 55px;

          @media (max-width: 1024px) {
            margin-bottom: 13px;
            gap: 8px;
            padding: 0 13px;
          }

          .chip {
            display: flex;
            align-items: center;
            gap: 3px;
            padding: 13px 17px;
            border-radius: 50px;
            border: 1px solid #fff;

            @media (max-width: 1024px) {
              font-size: 10px;
              line-height: 15px;
              padding: 6px 9px;

              img {
                width: 18px;
                height: 18px;
              }
            }
          }
        }

        .stellar-program-popup__desc {
          width: 826px;
          margin: 0 auto;

          p {
            text-align: right;
            font-size: 13px !important;
            line-height: 17px;
          }

          @media (max-width: 1024px) {
            width: 100%;
            padding: 0 13px;

            p {
              font-size: 10px !important;
              line-height: 13px;
              text-align: center;
            }
          }
        }

        .stellar-program-popup__actions {
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 21px;
          margin-top: 36px;

          .stellar-program-popup__cta {
            width: 400px;
            height: 60px;
            font-weight: 500;
            font-size: 21px;
            line-height: 34px;
            text-align: center;
            background: #fff;
            color: #303030;
            border-radius: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: 0.3s;

            @media (max-width: 1024px) {
              width: 100%;
              max-width: 220px;
              height: 46px;
              border-radius: 34px;
              margin: 10px auto 0 auto;
              display: flex;
              align-items: center;
            }

            &:hover {
              background: #00B9F2;
              transition: 0.3s;
              color: #fff;
            }
          }
        }
      }
    }
  }
}

.stellar-program-popup__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  pointer-events: none;
  bottom: 0;
  background: linear-gradient(to top,
      rgba(30, 30, 30, 0.95) 0%,
      rgba(30, 30, 30, 0) 60%);
}