.recaptcha-dialog[hidden] {
  display: none;
}

.recaptcha-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 16px;
  background: rgb(15 23 42 / 55%);
  backdrop-filter: blur(5px);
}

.recaptcha-dialog__panel {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 368px);
  min-width: 0;
  padding: 28px 24px 24px;
  border: 1px solid rgb(226 232 240);
  border-radius: 24px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 24px 80px rgb(15 23 42 / 20%);
  text-align: start;
}

.recaptcha-dialog__close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.recaptcha-dialog__close:focus-visible {
  outline: 3px solid #004aad;
  outline-offset: 3px;
}

.recaptcha-dialog__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-block-end: 16px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #059669;
}

.recaptcha-dialog__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.recaptcha-dialog__description {
  margin: 8px 0 20px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.recaptcha-dialog__widget {
  display: grid;
  justify-items: center;
  min-width: 0;
  width: 100%;
}

.recaptcha-dialog__error {
  margin: 12px 0 0;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 400px) {
  .recaptcha-dialog {
    padding: 10px;
  }

  .recaptcha-dialog__panel {
    padding-inline: 16px;
  }
}
