/* Hide Google reCAPTCHA v3 floating badge; branding is shown via .sf-recaptcha-notice */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.sf-recaptcha-notice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0.85rem;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.3;
  user-select: none;
}

.sf-recaptcha-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #6b7280;
}

.sf-recaptcha-notice__label {
  font-weight: 500;
}

.sf-recaptcha-notice__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1;
  cursor: help;
}

.sf-recaptcha-notice__info:hover,
.sf-recaptcha-notice__info:focus-visible {
  color: #374151;
  outline: none;
}

.sf-recaptcha-notice__tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.55rem);
  z-index: 40;
  min-width: 16.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.7rem 0.85rem;
  border-radius: 0.45rem;
  background: #111827;
  color: #f9fafb;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.sf-recaptcha-notice__tip::after {
  content: '';
  position: absolute;
  left: 1.65rem;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: #111827;
}

.sf-recaptcha-notice__tip-text {
  display: block;
  margin-bottom: 0.2rem;
}

.sf-recaptcha-notice__tip-links a {
  color: #34d399;
  text-decoration: none;
  font-weight: 500;
}

.sf-recaptcha-notice__tip-links a:hover,
.sf-recaptcha-notice__tip-links a:focus-visible {
  color: #6ee7b7;
  text-decoration: underline;
}

.sf-recaptcha-notice:hover .sf-recaptcha-notice__tip,
.sf-recaptcha-notice:focus-within .sf-recaptcha-notice__tip,
.sf-recaptcha-notice.is-open .sf-recaptcha-notice__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

body.lux-body .sf-recaptcha-notice,
.lux-form .sf-recaptcha-notice {
  margin-top: 0.25rem;
  margin-bottom: 0.95rem;
}

body.sf-admin-guest .sf-recaptcha-notice {
  margin-bottom: 0.9rem;
}
