.b-success-popup-overlay {
  padding: 24px;
  background: rgba(15, 30, 53, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.b-success-popup-overlay .im-popup-inside {
  width: 100%;
  max-width: 520px;
}

.b-success-popup {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 48px 44px 40px;
  border: 1px solid rgba(15, 30, 53, 0.08);
  border-radius: 28px;
  background: #fff;
  color: #0f1e35;
  text-align: center;
  box-shadow: 0 28px 80px rgba(4, 18, 32, 0.34);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.b-success-popup-overlay._visible .b-success-popup {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.b-success-popup__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f5f7;
  color: #647481;
  font: 300 28px/1 Arial, sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.b-success-popup__close span {
  margin-top: -2px;
  pointer-events: none;
}

.b-success-popup__close:hover,
.b-success-popup__close:focus-visible {
  background: #e7edef;
  color: #0f1e35;
  transform: rotate(4deg);
  outline: none;
}

.b-success-popup__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a8f000 0%, #83d900 100%);
  color: #102132;
  box-shadow: 0 14px 34px rgba(142, 224, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.b-success-popup__icon svg {
  width: 43px;
  height: 43px;
}

.b-success-popup__title {
  display: block;
  margin: 0 0 15px;
  color: #0f1e35;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.18;
}

.b-success-popup__text {
  max-width: 400px;
  margin: 0 auto 30px;
  color: #687985;
  font-size: 16px;
  line-height: 1.55;
}

.b-success-popup__text p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.b-success-popup__text p + p {
  margin-top: 4px;
}

.b-success-popup__button {
  position: static !important;
  top: auto !important;
  right: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 260px;
  min-height: 56px;
  padding: 12px 28px;
  border: 0;
  border-radius: 28px;
  background: #9df701;
  color: #102132;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(157, 247, 1, 0.24);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.b-success-popup__button:hover,
.b-success-popup__button:focus-visible {
  background: #adff1f;
  box-shadow: 0 15px 32px rgba(157, 247, 1, 0.32);
  transform: translateY(-1px);
  outline: none;
}

.b-success-popup__button:active {
  transform: translateY(1px);
}

@media (max-width: 639px) {
  .b-success-popup-overlay {
    padding: 16px;
  }

  .b-success-popup {
    max-height: calc(100vh - 32px);
    padding: 40px 22px 26px;
    border-radius: 22px;
  }

  .b-success-popup__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .b-success-popup__icon {
    width: 74px;
    height: 74px;
    margin-bottom: 22px;
  }

  .b-success-popup__icon svg {
    width: 37px;
    height: 37px;
  }

  .b-success-popup__title {
    font-size: 26px;
  }

  .b-success-popup__text {
    margin-bottom: 25px;
    font-size: 15px;
  }

  .b-success-popup__button {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b-success-popup,
  .b-success-popup__close,
  .b-success-popup__button {
    transition: none;
  }
}
