.akfa-captcha-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 16px;
  pointer-events: none;
  position: fixed;
  transition: opacity .2s ease, visibility .2s ease;
  visibility: hidden;
  z-index: 10050;
}

.akfa-captcha-modal.modal-feedback__captcha-modal {
  padding: 16px;
  z-index: 10050;
}

.akfa-captcha-modal.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.akfa-captcha-modal__backdrop,
.akfa-captcha-modal .modal-feedback__captcha-overlay {
  background: rgba(23, 23, 23, .6);
  border: 0;
  cursor: pointer;
  inset: 0;
  padding: 0;
  position: absolute;
}

.akfa-captcha-modal__dialog,
.akfa-captcha-modal .modal-feedback__captcha-dialog {
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(21, 24, 31, .16);
  color: #15181f;
  max-width: 395px;
  padding: 24px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.akfa-captcha-modal__close {
  background: transparent;
  border: 0;
  color: #808284;
  cursor: pointer;
  font: 28px/1 Arial, sans-serif;
  position: absolute;
  right: 20px;
  top: 16px;
}

.akfa-captcha-modal__status {
  align-items: center;
  color: #15181f;
  display: flex;
  font-size: 14px;
  gap: 12px;
  line-height: 140%;
  margin: 16px 0;
}

.akfa-captcha-modal__spinner {
  animation: akfa-form-spin 1s linear infinite;
  border: 2px solid #ed1a3b;
  border-radius: 50%;
  border-top-color: rgba(21, 24, 31, .05);
  flex: 0 0 20px;
  height: 20px;
  width: 20px;
}

@keyframes akfa-form-spin {
  to { transform: rotate(360deg); }
}

.akfa-captcha-modal .yandex-smart {
  min-height: 100px;
  width: 100%;
}

.akfa-captcha-modal.is-loading .yandex-smart,
.akfa-captcha-modal.is-sending .yandex-smart {
  display: none;
}

@media (max-width: 600px) {
  .akfa-captcha-modal__dialog,
  .akfa-captcha-modal .modal-feedback__captcha-dialog {
    border-radius: 12px;
    padding: 20px 16px;
  }
}
