/* Minimal popover + backdrop. */
.aws-captcha-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 20, 20, 0.35);
  z-index: 9998;
}

.aws-captcha-popover {
  position: fixed;
  z-index: 9999;
  width: 360px;
  max-width: calc(100vw - 32px);
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.aws-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background-color: #f6f7f9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.aws-popover__close {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  border: 0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.aws-popover__close:focus-visible {
  outline: 2px solid #2680eb;
  outline-offset: 2px;
}

.aws-popover__body {
  padding: 0.9rem;
}

.aws-popover__hint {
  font-size: 0.925rem;
  margin-bottom: 0.5rem;
  color: #444;
}

.aws-popover__error,
.aws-captcha-error {
  margin-top: 0.5rem;
  color: #a40000;
  font-size: 0.9rem;
}

.aws-captcha-popover.aws-popover--top::after,
.aws-captcha-popover.aws-popover--bottom::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  transform: rotate(45deg);
}

.aws-captcha-popover.aws-popover--top::after {
  bottom: -6px;
  left: calc(50% - 5px);
}

.aws-captcha-popover.aws-popover--bottom::after {
  top: -6px;
  left: calc(50% - 5px);
}
