/**
 * reCAPTCHA v3: Google badge is always hidden.
 * Required branding is shown via .sf-recaptcha-check (see partials/recaptcha_v3_disclosure).
 *
 * @see https://developers.google.com/recaptcha/docs/faq
 */
.grecaptcha-badge,
html .grecaptcha-badge,
body .grecaptcha-badge,
body.pd-body .grecaptcha-badge,
html.sf-recaptcha-badge-visible .grecaptcha-badge,
body.sf-recaptcha-badge-visible .grecaptcha-badge,
body.pd-body.sf-recaptcha-badge-visible .grecaptcha-badge,
html.sf-recaptcha-badge-visible .grecaptcha-badge:not(:hover),
html.sf-recaptcha-badge-visible .grecaptcha-badge:hover,
body.sf-recaptcha-badge-visible.pd-body .grecaptcha-badge:not(:hover),
body.sf-recaptcha-badge-visible.pd-body .grecaptcha-badge:hover {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    max-width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    position: absolute !important;
    bottom: -9999px !important;
    right: -9999px !important;
}

.sf-recaptcha-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    font-size: 0.875rem;
    color: var(--bs-secondary-color, #64748b);
    line-height: 1.3;
}

.sf-recaptcha-check__mark {
    display: inline-flex;
    color: var(--bs-secondary-color, #64748b);
    font-size: 1rem;
    line-height: 1;
}

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

.sf-recaptcha-check__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    cursor: help;
}

.sf-recaptcha-check__info:focus-visible {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 2px;
    border-radius: 999px;
}

.sf-recaptcha-check__tip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.55rem);
    z-index: 1080;
    width: min(22rem, calc(100vw - 2rem));
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    background: #1f2937;
    color: #f9fafb;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.25rem);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.sf-recaptcha-check__tip::after {
    content: '';
    position: absolute;
    left: 1.15rem;
    top: 100%;
    border: 7px solid transparent;
    border-top-color: #1f2937;
}

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

.sf-recaptcha-check__tip-text {
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
}

.sf-recaptcha-check__tip-links {
    font-size: 0.82rem;
}

.sf-recaptcha-check__tip-links a {
    color: #5eead4;
    text-decoration: none;
    font-weight: 600;
}

.sf-recaptcha-check__tip-links a:hover,
.sf-recaptcha-check__tip-links a:focus-visible {
    text-decoration: underline;
    color: #99f6e4;
}

[data-bs-theme="dark"] .sf-recaptcha-check__tip,
body.pd-mode-dark .sf-recaptcha-check__tip {
    background: #0f172a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .sf-recaptcha-check__tip::after,
body.pd-mode-dark .sf-recaptcha-check__tip::after {
    border-top-color: #0f172a;
}
