.captcha {
  margin: 24px 0 0 0;
}

.form__submit > .captcha {
  margin: 0;
}

.captcha__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.captcha__view {
  position: relative;
  flex: 0 0 140px;
  width: 140px;
  height: 50px;
  padding: 0;
  border: 1px solid #616161;
  border-radius: 10px;
  background-color: #eef1f5;
  color: #2a313a;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}

.captcha__view:hover,
.captcha__view:focus-visible {
  border-color: #FACA15;
}

.captcha__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.captcha__image[hidden] {
  display: none;
}

.captcha.is-loading .captcha__image {
  opacity: 0.4;
}

.captcha__status {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-family: "WixMadeforDisplay-Regular";
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.captcha__status:empty,
.captcha.is-ready .captcha__status {
  display: none;
}

.captcha__reload {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background-color: rgba(42, 49, 58, 0.82);
  color: #fff;
}

.captcha.is-ready .captcha__reload {
  display: block;
}

.captcha .captcha__input {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  font-size: 18px;
  letter-spacing: 6px;
}

.captcha .captcha__input::-webkit-input-placeholder {
  font-size: 14px;
  letter-spacing: 0;
}

.captcha .captcha__input::placeholder {
  font-size: 14px;
  letter-spacing: 0;
}

.captcha .captcha__input.error {
  border-color: #ff6b6b;
  color: #fff;
}

.captcha .captcha__error {
  display: block;
  margin: 8px 0 0 0;
  font-size: 13px;
  line-height: 125%;
  color: #ff8a8a;
}

.captcha .captcha__error:empty {
  display: none;
}

.captcha .captcha__error .error {
  color: #ff8a8a;
}
