.captcha-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.captcha-layer.hidden {
  display: none !important;
}

.captcha-scrim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.6;
}

.captcha-layer-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.captcha-modal {
  position: relative;
  width: 400px;
  max-width: calc(100vw - 32px);
  border-radius: 10px;
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  animation: captchaModalIn 0.17s ease-out;
  overflow: hidden;
}

.captcha-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #dbdee1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.17s ease;
}

.captcha-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.captcha-modal-header {
  padding: 16px 16px 0;
  min-height: 210px;
  background: #2e335a;
  background: linear-gradient(
    180deg,
    #2e335a 0%,
    #2a2d3d 30%,
    #2b2d31 58%
  );
}

.captcha-modal-graphic-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 12px 0 16px;
}

.captcha-modal-graphic-ratio {
  width: 100%;
  max-width: 340px;
  min-height: 140px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-modal-graphic-ratio img {
  display: block;
  width: 224px;
  height: 122px;
  max-width: 100%;
}

.captcha-modal-title {
  margin: 0 auto;
  padding: 12px 0 8px;
  max-width: 280px;
  color: #f2f3f5;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
}

.captcha-modal-subtitle-wrap {
  padding-bottom: 16px;
  text-align: center;
}

.captcha-modal-subtitle {
  margin: 0;
  color: #b5bac1;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

.captcha-modal-body-spacer {
  height: 12px;
}

.captcha-modal-body {
  padding: 0 16px;
  background: #2b2d31;
}

.captcha-modal-captcha-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.captcha-modal-mount {
  width: 302px;
  min-height: 76px;
}

.captcha-modal-mount iframe {
  border: 0;
  border-radius: 4px;
}

.captcha-modal-body-spacer-bottom {
  height: 24px;
  background: #2b2d31;
}

@keyframes captchaModalIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

#captcha-modal-mount {
  position: relative;
  min-height: 78px;
}

#captcha-modal-mount.captcha-modal-mount--loading {
  opacity: 0.55;
  pointer-events: none;
}

.captcha-modal-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #dbdee1;
  background: rgba(43, 45, 49, 0.72);
  z-index: 2;
}
