.spinbtn-wrapper {
  position: fixed;
  cursor: pointer;
  display: flex;
  z-index: 99998;
  bottom: 0;
  left: 10px;
  margin-top: 16px;
  margin-bottom: 120px;
  margin-right: 25px;
  border-radius: 50%;
  transition: margin 0.2s ease, height 0.2s ease, width 0.2s ease;
  flex-direction: row-reverse;
}

.spinbtn-text {
  font-family: "Fira Sans", sans-serif !important;
  content: "Хочешь выиграть?";
  display: flex;
  box-sizing: border-box;
  align-items: center;
  right: -10px;
  top: 0;
  max-height: 100px;
  background-color: #fff;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: 9px 20px;
  border-radius: 6px;
  transition: transform 0.2s ease;
  position: relative;
  
}

.spinbtn-text::after {
  box-sizing: border-box;
  content: "";
  top: 50%;
  margin-top: -7px;
  left: -6px;
  display: flex;
  height: 14px;
  width: 14px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  position: absolute;
  transform: rotate(-225deg);
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

#Wheel-img-btn {
  height: 60px;
  width: 60px;
}

.popup-spin {
  display: block; /* Изменено с none на block для того, чтобы использовать transform */
  opacity: 0; /* Изначально попап невидим */
  visibility: hidden; /* Исключает попап из потока документа, пока он не активен */
  position: fixed; /* Или absolute, в зависимости от вашего макета */
  left: 0;
  top: 0; /* Адаптируйте в соответствии с вашими нуждами */
  z-index: 9999;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  transform: translateX(-100%); /* Полностью скрыть попап за левым краем экрана */
  transition: transform 0.5s ease, opacity 0.5s ease, visibility 0s 0.5s; /* Плавное появление и движение + задержка скрытия */
  /*display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;*/
}

.popup-open-animation {
  transform: translateX(0); /* Перемещает попап в исходное положение */
  opacity: 1;
  visibility: visible; /* Делает попап видимым */
  transition: transform 0.5s ease, opacity 0.5s ease; /* Убираем задержку для видимости при открытии */
}

.popup-spin-close {
  position: absolute;
  cursor: pointer;
  border-radius: 50%;
  top: 16px;
  right: 16px;
  height: 32px;
  width: 32px;
  display: flex;
  background-color: #2c2c2c;
  border-style: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  z-index: 100001;
}

.popup-spin-close::before {
  content: "";
  display: flex;
  height: 1px;
  background-color: #fff;
  width: 22px;
  flex-shrink: 0;
  position: absolute;
  left: 5px;
  top: 16px;
}

.popup-spin-close::after {
  content: "";
  display: flex;
  height: 1px;
  background-color: #fff;
  width: 22px;
  flex-shrink: 0;
  position: absolute;
  left: 5px;
  top: 16px;
}

.popup-spin-close::before {
  transform: rotate(45deg);
}

.popup-spin-close::after {
  transform: rotate(-45deg);
}

@media (min-width: 1101px) {
  .popup-spin-close {
    height: 64px;
    width: 64px;
  }
  .popup-spin-close::before {
    width: 44px;
    left: 10px;
    top: 32px;
  }
  .popup-spin-close::after {
    width: 44px;
    left: 10px;
    top: 32px;
  }
}

.popup-spin-content {
  background-image: url(https://topdent.ru/media/982/982361.png);
  overflow-x: hidden;
  z-index: 100003;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 15px;
  transition: margin 0.2s ease;
  position: fixed;
  overflow-y: auto;
  top: 0;
  left: 0;
  height: 100vh;
  width: 1100px;
  background-color: gray;
  background: url(https://topdent.ru/custom/Wheel/wheel/15699.png);
}

.popup-spin-container {
  display: flex;
  flex-direction: column;
  width: 500px;
  transition: opacity 0.4s ease;
  position: absolute;
  top: 210px;
  right: 50px;
  order: 1;
}

.popup-spin-maintext {
  color: #000;
  font-size: 30px;
  line-height: 33px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.popup-spin-infowrap {
  /*order: 1;*/
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.2s ease;
}

.popup-spin-info-added {
  color: #000;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  margin: 2.5px 0;
  display: flex;
  align-items: center;
}

.popup-spin-info-added::before {
  content: "-";
  align-self: center;
  margin-right: 5px;
}

.wheel-form__phone-container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  position: relative;
}

.wheel-form__phone-rule {
  display: flex;
  margin: 0 15px 0 5px;
  color: #000;
  order: 10;
  font-weight: bold;
}

.wheel-form__check {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.wheel-form__check > input {
  display: none;
}

.wheel-form__check > label {
  display: flex;
  align-items: center;
  font-size: 15px;
  line-height: 22px;
  color: #000;
  cursor: pointer;
}

.wheel-form__check > input:checked + label::before {
  background-size: 80%;
  background-image: url(https://topdent.ru/custom/Wheel/wheel/check.svg);
}

.wheel-form__check > label::before {
  content: "";
  display: inline-flex;
  margin: 0 6px 0 0;
  height: 16px;
  width: 16px;
  border-radius: 5px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  border: solid 2px #fe7d22;
}

.spin-wheel {
  /* Стили для spin wheel */
}

#phoneForm {
  margin-top: 20px;
}

#phone {
  /*order: 4; */
  display: flex;
  padding: 0 20px;
  margin: 0 0 4px 0;
  height: 42px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid darkgrey;
  font-family: Arial;
  font-size: 16px;
  color: #000;
  flex-basis: 100%;
}

#submitSpinBtn {
  width: 100%;
  padding: 14px 34px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 700;
  background-color: #fe7d22;
  color: #fff;
  cursor: pointer;
  box-shadow: inset 0px 0px 5px #fe7d22, 0 3px 10px 0 rgba(0, 0, 0, 0.1);
  position: relative;
}

.wheel-roulette-wrap {
  position: absolute;
  top: 100px;
  left: 50px;
  order: 2;
  transition: margin 0.5s ease;
}

.wheel-left {
  margin-left: -200px;
}

.wheel-roulette-img {
  height: 600px;
  width: 600px;
  opacity: 1 !important;
  transition: all 0.3s linear !important;
}

.wheel-roulette-pin {
  position: absolute;
  top: -50px;
  left: calc(50% - 25px);
  background: no-repeat center
    url(https://topdent.ru/custom/Wheel/wheel/pin.svg);
  width: 50px;
  height: 86px;
  display: flex;
  transition: transform 60ms ease;
  transform-origin: top center;
  transform: rotate(0deg);
}

/*#spin-wheel {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid black;
}*/

#spin-wheel.animating {
  animation: spin 5s linear;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(2160deg); /* 6 cells * 360deg */
  }
}

.wheel-form__prize {
  position: absolute;
  width: 350px;
  right: 30px;
  top: 100px;
  display: none;
  opacity: 1;
  background: #fff8f1;
  border-left: 4px solid #fe7d22;
  padding: 25px 30px;
}

.wheel-form__prize-text {
  color: #2b2b2b;
  line-height: 40px;
  padding: 0 10px;
  text-align: center;
  font-size: 24px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1100px) {
  .wheel-roulette-img {
    height: 300px;
    width: 300px;
  }
  .popup-spin-container {
    top: 400px;
    left: 50px;
  }
  .popup-spin-content {
    width: 600px;
  }
  .wheel-form__prize {
    left: 30px;
  }
}

@media (max-width: 600px) {
  .popup-spin-close {
    left: 270px
  }
  .popup-spin-container {
    width: 300px;
  }
  #Wheel-img-btn {
    height: 60px;
    width: 60px;
  }
  .spinbtn-text {
    top: 0;
  }
}

.wheel-form__link {
  margin-top: 10px;
}

.wheel-form__link-container {
  margin-top: 10px;
  color: #000;
}

.wheel-form__link-about {
  margin-bottom: 10px;
}

.wheel-form__link-organizator {
  margin-top: 10px;
  margin-bottom: 10px;
}

.wheel-form__link-not-lotery {
  margin-top: 10px;
  margin-bottom: 10px;
}

.wheel-form__link-active {
  display: none;
}

.wheel-form__link-title{
  cursor: pointer;
  border-bottom: 1px solid black;
  color: #000;
}

.spinbtn-close {
  position: absolute;
  cursor: pointer;
  border-radius: 50%;
  top: 2px;
  right: 0;
  height: 30px;
  width: 30px;
  display: flex;
  background-color: #2c2c2c;
  border-style: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  z-index: 100001;
}

.spinbtn-close::before {
  content: "";
  display: flex;
  height: 1px;
  background-color: #fff;
  width: 22px;
  flex-shrink: 0;
  position: absolute;
  left: 4px;
  top: 15px;
}

.spinbtn-close::after {
  content: "";
  display: flex;
  height: 1px;
  background-color: #fff;
  width: 22px;
  flex-shrink: 0;
  position: absolute;
  left: 4px;
  top: 15px;
}

.spinbtn-close::before {
  transform: rotate(45deg);
}

.spinbtn-close::after {
  transform: rotate(-45deg);
}

@media (max-width: 600px) {
  .spinbtn-close {
    top: 2px
  }
}

/* @media (min-width: 2500px) {
  .spinbtn-close {
    height: 34px;
    width: 34px;
  }
  .spinbtn-close::before {
    width: 24px;
    left: 5px;
    top: 16px;
  }
  .spinbtn-close::after {
    width: 24px;
    left: 5px;
    top: 16px;
  }
} */