body::after {
  content: "";
  background-color: rgba(0,0,0,.5);
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity .8s ease 0s;
  pointer-events: none;
  z-index: 149
}
.popup-show body::after {
  opacity: 1
}
.popup {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 30px 10px;
  transition: visibility .6s ease 0s;
  visibility: hidden;
  display: block;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none
}
.popup_show {
  z-index: 150;
  visibility: visible;
  overflow: hidden;
  pointer-events: auto
}
.popup_show .popup__content {
  visibility: visible;
  -webkit-transform: scale(1);
  transform: scale(1)
}
.popup__wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  flex: 1 1 auto;
  width: 100%;
  justify-content: center;
  padding: 0;
  height: 100%;
  align-items: center
}
.popup__content {
  visibility: hidden;
  -webkit-transform: scale(0);
  transform: scale(0);
  transition: -webkit-transform .3s ease 0s;
  transition: transform .3s ease 0s;
  transition: transform .3s ease 0s,-webkit-transform .3s ease 0s;
  border: 1px solid var(--background-70);
  background-color: #111;
  width: 100%;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  max-width: 560px
}
.lock .popup__content {
  visibility: visible
}
.popup {
  --border-radius: 20px;
  font-family: var(--title-font)
}
.popup__content {
  border-radius: var(--border-radius)
}
.popup__content.green-color {
  background: #111 linear-gradient(-45deg,rgba(0,255,117,.01) 0,rgba(36,193,108,.1) 80%);
  border-color: var(--green)
}
.popup__content.red-color {
  border-color: var(--red);
  background: #111 linear-gradient(45deg,rgba(244,67,54,.1) 20%,rgba(182,28,17,.1) 100%)
}
.popup__head {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  min-height: 56px;
  background-color: var(--background-dark-grey);
  border-bottom: 1px solid var(--background-dark-grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px
}
.green-color .popup__head {
  background: linear-gradient(45deg,rgba(0,255,117,.1) 20%,rgba(36,193,108,.1) 100%);
  border-color: var(--green)
}
.red-color .popup__head {
  background: linear-gradient(45deg,rgba(244,67,54,.1) 20%,rgba(182,28,17,.1) 100%);
  border-color: var(--red)
}
.popup__title {
  font-weight: 600;
  font-size: 18px;
  line-height: 110%;
  display: flex;
  align-items: center;
  gap: 12px
}
.popup__close {
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  position: static;
  transition: color .3s
}
.popup__close svg {
  width: 100%;
  height: 100%
}
.popup__close::after,
.popup__close::before {
  display: none;
}
.popup__body {
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  padding: 24px;
  overflow: hidden auto;
  display: flex;
  flex-direction: column;
  gap: 32px
}
.popup__btns {
  display: flex;
  flex-direction: column;
  gap: 8px
}
.popup__btns .popup__btn {
  max-width: 100%
}
.popup__row-btns {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px
}
.popup__row-btns .popup__btn {
  max-width: 100%
}
.popup__success {
  text-align: center
}
.popup__success-logo {
  border: 1px solid var(--background-70);
  border-radius: 110px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 32px auto
}
.popup__success-logo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover
}
.popup__success-title {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 16px
}
.popup__success-text {
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 32px
}
.popup__success-link {
  max-width: 100%;
  min-height: 56px
}
.popup__success-link span {
  background: linear-gradient(45deg,#00ff75 20%,#24c16c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent
}
.popup .form-block__btns {
  position: sticky;
  bottom: -25px;
  z-index: 5;
  background-color: #111;
  padding: 12px 0;
  margin: 0 -1px;
  transition: bottom 0.3s
}
.popup .seller-info__head {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: #111;
  padding: 15px 0 6px;
  transition: top 0.3s
}
@media (min-width:47.99875em) {
  .popup--right .popup__wrapper {
    align-items: flex-end;
    justify-content: stretch;
    position: relative;
    transition: right 0.3s;
    right: -150%
  }
  .popup_show.popup--right .popup__wrapper {
    right: 0
  }
  .popup--right .popup__content {
    flex-grow: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
  .popup--right .popup__body {
    flex: 1 1 auto;
  }
  .popup--right .form-block {
    flex: 1 1 auto;
  }
  .popup--right .form-block__btns {
    margin-top: auto;
  }
}
@media (max-width:29.99875em) {
  .popup {
    padding: 70px 0 0 0
  }
  .popup_show .popup__wrapper {
    bottom: 0
  }
  .popup__wrapper {
    justify-content: flex-end;
    transition: bottom .6s;
    position: relative;
    bottom: -100%
  }
  .popup__content {
    margin-top: auto;
    -webkit-transform: none;
    transform: none
  }
  .popup__content {
    border-radius: var(--border-radius) var(--border-radius) 0 0
  }
  .popup__head {
    padding: 14px 16px
  }
  .popup__body {
    padding: 24px 16px
  }
}
@media (any-hover:hover) {
  .popup__close:hover {
    color: var(--light-grey)
  }
}