
.pbp-pinata-item img {
  height: auto;
  max-width: initial!important;
}

.pbp-top {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  align-items: center;
}
.pbp-top img {
  max-width: 240px;
  padding-top: 20px;
}
.pbp-top h2 {
  font-weight: 900;
  font-size: 30px;
  line-height: 117%;
  text-align: center;
  color: white;
  margin: 0;
  padding: 20px 0 14px 0;
}
.pbp-top h3 {
    text-align: center;
    font-weight: 700;
    color: white;
    font-size: 24px;
    margin-top: 20px;
 }
.pbp-top p {
  max-width: 599px;
  width: 100%;
  color: white;
  text-align: center;
  font-size: 16px;
  line-height: 100%;
}

#pbpTopBlock.hidden {
  display: none;
}

#pbp-phone-input {
  font-size: 30px;
  padding-left: 40px;
  height: 75px;
  border-radius: 37px;
  background-color: rgba(217, 217, 217, 1);
  border: none;
  max-width: 370px;
  text-align: left; 
}
.pbp-phone-form {
    display: flex;
    /* width: 721px; */
    width: 600px;
    height: 393px;
    justify-content: center;
    align-items: center;
    background: url(../assets/formvector.svg);
    background-size: contain;
    /* margin-top: 50px; */
    margin-top: 25px;
    background-repeat: no-repeat;
}
.pbp-form-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.pbp-form-inner h2 {
    font-weight: 700;
    font-size: 30px;
    color: rgba(55, 31, 94, 1);
}

#pbp-check-phone-btn {
    background-color: rgba(55, 31, 94, 1);
    color: white;
    border-radius: 37px;
    width: max-content;
    height: 61px;
    margin-top: 15px;
    font-size: 23px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    margin-bottom: 50px;
}

.pbp-form-inner input {
    font-size: 43px;
    text-align: center;
    height: 75px;
    border-radius: 37px;
    background-color: rgba(217, 217, 217, 1);
    border: none;
    max-width: 470px;
}

#pbp-pinata-container {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 70px);
    background: url(../assets/pbg.png);
    background-size: cover;
    background-position: center top;
    flex-direction: column;
    background-repeat: no-repeat;
    display: flex;
    /* justify-content: center; */
    align-items: center;
    font-family: 'Nunito';
  }


  .pbp-bat-cursor {
    position: fixed;
    width: 100px;
    height: auto;
    pointer-events: none;
    z-index: 999;
    transform-origin: center center;
    transition: transform 0.1s linear;
    display: none;
  }

  .pbp-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .pbp-pinatas-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center; 
    overflow: hidden; 
    cursor: url('../assets/1bat-cursor.png') 25 25, auto; 
    /* cursor: none; */
    padding-top: 20px;
    gap: 10px;
    overflow: visible;
  }
  .pbp-close-popup {
    display: block;
    position: absolute;
    right: 50px;
  }
    /* Прогресс бар */

    .pbp-progress-container {
        width: 645px;
        height: 60px;
        position: relative;
        margin-top: 40px;
        margin-bottom: 40px;
      }
      .pbp-progress-container h3 {
        text-align: center;
        font-weight: 700;
        color: white;
        font-size: 24px;
        margin-top: 20px;
    

      }
      .pbp-pinata-item-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* width: 350px; */
        width: 38.89vh;
        text-align: center;
      }
  
      .pbp-pinata-item-wrapper p {
        padding: 0;
        margin: 0;
        padding-top: 10px;
        line-height: 100%;
        font-size: 16px;
        color: white;
      }
      .pbp-pinata-item-wrapper p span {
        font-weight: 900;
      }

      .pbp-pinata-item {
        display: flex;
        width: 100%;
        background: url(../assets/Vector.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        /* max-width: 350px;
        height: 396px; */
        /* max-width: 250px;
        height: 250px; */
        max-width: 27.78vh;
        height: 27.78vh;
        aspect-ratio: 1 / 1;
        overflow: visible;
        position: relative;
      }
      .pbp-pinata-item p span {
        font-weight: 900;
      }
      .pbp-pinata {
        /* width: 100%; */
        transition: transform 0.2s;
        cursor: inherit;
        /* animation: swing0 1.5s ease-in-out alternate infinite; */
        position: absolute;
        width: 125%;
      }
  
      .pbp-pinata-item.disabled {
        transform: scale(0.9); 
      }

      .pbp-pinata-item.disabled .pbp-pinata {
        filter: grayscale(100%);
      }

      .pbp-sixday {
        left: -50px;
        top: -50px;
      }
  
      .pbp-fourday {
        left: -27px;
        top: -45px;
      }
  
      .pbp-oneday {
        right: -14px;
        top: -12px;
      }

      .pbp-popup img {
        /* width: auto; */
        width: 60%;
        position: absolute;
        top: -137px;
        /* left: 45px; */
        left: 87px;
        animation: swing0 1.5s ease-in-out alternate infinite;
      }


      @keyframes swing0 {
        0% {
          transform: rotate(-2deg);
      }
      50% {
          transform: rotate(2deg);
      }
      100% {
          transform: rotate(-2deg);
      }
    }

      .pbp-progress-bar {
        width: 100%;
        height: 20px;
        background-color: #e0e0e0;
        border-radius: 10px;
        position: relative;
       
      }
  
      .pbp-progress-fill {
        height: 100%;
        width: 0%;
        background-color: rgba(255, 219, 0, 1);
        border-radius: 10px;
        transition: width 0.3s ease;
      }
  
      .pbp-progress-marker {
        position: absolute;
        top: 0;
        width: 1px;
        height: 20px;
        background-color: rgba(254, 175, 21, 1);
      }
  
      .pbp-marker-1 { left: calc(33.33% - 5px); }
      .pbp-marker-2 { left: calc(66.66% - 5px); }
      .pbp-marker-3 { right: 10px; }
  
      .pbp-marker-icon {
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px !important;
        height: 20px !important;
        max-width: unset !important;
      }
  
    
      .pbp-progress-bar.empty .pbp-progress-fill { width: 0%; }
      .pbp-progress-bar.one-third .pbp-progress-fill { width: 33.33%; }
      .pbp-progress-bar.two-thirds .pbp-progress-fill { width: 66.66%; }
      .pbp-progress-bar.full .pbp-progress-fill { width:100%; }


#pbp-phone {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

#pbp-check-btn {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#pbp-check-btn:hover {
    background: #005177;
}

#pbp-check-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.pbp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.pbp-popup-content {
    /* width: 486px;
    height: 591px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url(../assets/popupbg.svg);
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 0 75px */
    width: 460px;
    height: 420px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url(../assets/popupbg.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 0 75px;
}
.pbp-popup-content h5 {
  /* margin-top: 200px;
  font-weight: 800;
  font-size: 34px; */
  margin-top: 120px;
    font-weight: 800;
    font-size: 20px;
  line-height: 105%;
  color:rgba(55, 31, 94, 1)
}

.pbp-popup-content h4 {
  font-weight: 800;
  /* font-size: 46px; */
  font-size: 30px;
  color: rgba(147, 103, 255, 1);
  line-height: 100%;
}

.pbp-popup-content p {
  font-weight: 600;
  color: rgba(55, 31, 94, 1);
  /* font-size: 22px; */
  font-size: 18px;
  line-height: 100%;
  text-align: center;
}
.pbp-popup-content a {
  /* width: 350px; */
  width: 300px;
  color: white;
  background-color: rgba(161, 134, 247, 1);
  /* font-size: 25px; */
  font-size: 20px;
  font-weight: 700;
  border-radius: 37px;
  /* padding: 18px; */
  padding: 10px;
  text-align: center;
}
#pbpPromoCodeText {
  color: rgba(147, 103, 255, 1);
  font-weight: 800;
  font-size: 49px;

}

#pbpComeLaterText {
  font-size: 30px;
  font-weight: 600;
  color: rgba(55, 31, 94, 1);
}

#pbpInvalidPhonePopup .pbp-popup-content {
  width: 721px;
  height: 393px;
  background: url(../assets/formvector.svg);
  display: flex;
  align-items: baseline;
  justify-content: center;
}

#pbpInvalidPhonePopup .pbp-popup-content img {
  width: auto;
  position: absolute;
  top: -100px;
  right: 20px;
  left: unset;
  animation: none;
}
#pbpInvalidPhonePopup h4 {
  color: rgba(55, 31, 94, 1);
  font-weight: 700;
  font-size: 41px;
  line-height: 117%;
  width: 265px;
  margin-left: 84px;
}


#pbpPromoPopup .pbp-popup p {
  margin-top: none;
  text-align: none;
  margin-right: none;
}
.pbp-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
#pbpComeLaterPopup .pbp-popup-content {
  width: 420px;
  height: 511px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url(../assets/comelaterbg.svg);
  align-items: center;
  justify-content: center;
  padding: 0 50px;
}
#pbpComeLaterPopup .pbp-popup-content img {
  position: relative;
  animation: none;
  width: 100%;
  top: 0;
  left: 30px;
}
#pbpComeLaterPopup .pbp-popup img {
  width: 340px;
}

#pbpComeLaterPopup .pbp-close-popup {
  right: 0px;
  top: 0;
}
.pbp-close:hover {
    color: #000;
}

.used img {
    transform: scale(1, 1);
}

#pbp-popup-message {
    font-size: 16px;
    line-height: 1.6;
}


.pbp-video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pbp-video-overlay video {
  max-width: 90%;
  max-height: 90%;
  outline: none;
}


.pbp-popup-content .pbp-play-video {
  color: white;
  border-radius: 50px;
  padding: 12px 24px;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
  transition: all 0.3s;
  z-index: 40;
}

.pbp-popup-content .pbp-play-video:hover {
  transform: scale(1.05);
}
/* .pbp-popup .last_one {
  top: -220px;
  left: 40px;
} */

.pbp-popup .last_one {
  top: -270px;
  left: 50px;
  width: 100%;
}

.pbp-close-popup {
  font-size: 40px;
  color: white;
  cursor: pointer;
  margin-left: auto;
  z-index: 999;
}
.pbp-close-popup:hover {
  color: #000;
}

@media (max-width: 1024x) {
  .pbp-close-popup {
    display: block;
    
  }
}

@media (max-width: 768px) {
  #pbp-pinata-container {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: url(../assets/calendar_bg_mob-min.png);
    background-size: cover;
    background-position: center;
   }
 
  .pbp-form-inner h2 {
    font-size: 24px;
  }
  .pbp-form-inner input {
    font-size: 24px;
    text-align: center;
    height: 55px;
    border-radius: 37px;
    background-color: rgba(217, 217, 217, 1);
    border: none;
    max-width: 375px;
  }
  #pbp-check-phone-btn {
    /* width: 286px; */
    width: max-content;
    height: 51px;
    margin-top: 25px;
    font-size: 18px;
  }
  .pbp-top {
    max-width: 375px;
  }
  .pbp-top h2 {
    font-size: 24px;
  }
  .pbp-pinatas-container {
    flex-wrap: wrap;
    gap: 45px;
  }
   .pbp-progress-container {
    width: 375px;
  }
  #pbp-phone-input {
    font-size: 24px;
    padding-left: 15px;
    height: 55px;
    border-radius: 37px;
    background-color: rgba(217, 217, 217, 1);
    border: none;
    max-width: 375px;
    text-align: left;
	}
  .pbp-pinata-item-wrapper {
    width: 350px;
  }

  .pbp-popup-content {
    width: 398px;
    height: 450px;
    background: url(../assets/popupbg.svg);
    gap: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    align-items: center;
}

  .pbp-pinata-item {
    max-width: 250px;
    height: 250px;
  }
  .pbp-popup img {
    width: 230px;
    top: -108px;
    left: 73px;
  }
  .pbp-popup-content p {
    font-size: 16px;
  }
  .pbp-popup-content h5 {
    font-weight: 800;
    font-size: 24px;
    margin-top: 100px;
  }
  .pbp-popup-content h4 {
    color: rgba(161, 134, 247, 1);
    font-size: 2rem;
    font-weight: 800;
    line-height: 100%;
  }
  .pbp-popup-content a {
    width: 290px;
    font-size: 16px;
    padding: 10px 18px;
   }
   .pbp-close-popup {
    display: block;
    right: unset;
  }
  .pbp-popup .last_one {
    top: -250px;
    left: 35px;
    width: 100%;
  }
  #pbpInvalidPhonePopup .pbp-popup-content {
    width: 398px;
    height: 450px;
    align-items: center;
    background: url(../assets/popupbg.svg);
    display: flex;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
}
#pbpInvalidPhonePopup .pbp-popup-content img {
  width: auto;
  position: absolute;
  top: -54px;
  right: 128px;
  left: unset;
  animation: none;
  width: 150px;
}
#pbpInvalidPhonePopup h4 {
  font-size: 26px;
  width: 353px;
  margin-left: -10px;
  margin-top: 90px;
  text-align: center;
}
#pbp-check-phone-btn {
  margin-bottom: 0;
}
.pbp-top {
  padding-bottom: 50px;
}
}


@media (max-width: 480px) {
  .pbp-main-content {
    max-width: 340px;
    width: 100%;
  }
    .pbp-form {
        padding: 30px;
    }
    .pbp-close-popup {
      display: block;
      position: absolute;
      right: 0;
      z-index: 2;
    }
    #pbp-phone {
        width: 70%;
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    #pbp-check-btn {
        width: auto;
        display: inline-block;
    }

    .pbp-phone-form {
      width: 375px;
      height: 430px;
      background: url(../assets/Vector.svg);
      justify-content: center;
      align-items: center;
      background-size: contain;
      background-repeat: no-repeat;
    }
    .pbp-form-inner h2 {
      font-size: 24px;
      text-align: center;
  }
  .pbp-popup img {
    width: 230px;
    top: -130px;
    left: 45px;
  }
  #pbp-phone-input {
    font-size: 22px;
    padding-left: 25px;
    height: 45px;
    max-width: 280px;
  }
  #pbpComeLaterPopup .pbp-popup-content {
    width: 350px;
    height: 511px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url(../assets/comelaterbg.svg);
    align-items: center;
    justify-content: flex-start;
    padding: 35px 30px;
    background-size: contain;
    background-repeat: no-repeat;
  }
  #pbpComeLaterPopup .pbp-popup-content img{
    position: relative;
    animation: none;
    top: 0;
    left: 0px;
   }
   #pbpInvalidPhonePopup .pbp-close-popup {
    top: 0;
   }
   /* test */
   .pbp-top h2 {
    font-size: 22px;
  }
  .pbp-top {
    max-width: 335px;
    /* margin-bottom: 50px; */
  }
  #pbpInvalidPhonePopup .pbp-popup-content {
    width: 320px;
  }
  #pbpInvalidPhonePopup .pbp-popup-content img {
    right: 100px;
  }
  #pbpInvalidPhonePopup h4 {
    font-size: 19px;
    width: 250px;
  }

   .pbp-phone-form {
    width: 310px;
    height: 350px;
    /* margin-top: 20px; */
    margin-top: 20px;
  }
  #pbp-phone-input {
    max-width: 250px;
    font-size: 18px;
  }
  #pbp-check-phone-btn {
    width: 250px;
  }
   .pbp-popup-content {
          width: 324px;
          height: 386px;
          padding: 0 29px
  }
  .pbp-pinatas-container {
    padding-top: 45px;
  }
  .pbp-progress-container {
    width: 300px;
  }
  #pbpComeLaterPopup .pbp-popup-content {
    width: 320px;
  }
  #pbpComeLaterText {
    font-size: 20px;
    margin-top: 40px;
  }
  #pbpComeLaterPopup .pbp-close-popup {
    top: 0;
  }
  .pbp-popup .last_one {
    top: -200px;
    left: 30px;
    width: 100%;
  }
  .pbp-top img {
    width: 180px;
  }
  #pbpTopBlock {
    padding-bottom: 0;
  }
}

@media (max-width: 375px) {
  .pbp-top h2 {
    font-size: 22px;
  }
  .pbp-top {
    max-width: 335px;
    /* margin-bottom: 50px; */
  }
  #pbpInvalidPhonePopup .pbp-popup-content {
    width: 320px;
  }
  #pbpInvalidPhonePopup .pbp-popup-content img {
    right: 100px;
  }
  #pbpInvalidPhonePopup h4 {
    font-size: 19px;
    width: 250px;
  }

   .pbp-phone-form {
    width: 310px;
    height: 350px;
    /* margin-top: 20px; */
    margin-top: 20px;
  }
  #pbp-phone-input {
    max-width: 250px;
    font-size: 18px;
  }
  #pbp-check-phone-btn {
    width: 250px;
  }
   .pbp-popup-content {
          width: 324px;
          height: 386px;
          padding: 0 29px
  }
  .pbp-pinatas-container {
    padding-top: 45px;
  }
  .pbp-progress-container {
    width: 300px;
  }
  #pbpComeLaterPopup .pbp-popup-content {
    width: 320px;
  }
  #pbpComeLaterText {
    font-size: 20px;
    margin-top: 40px;
  }
  #pbpComeLaterPopup .pbp-close-popup {
    top: 0;
  }
}