body { --butla-recaptcha-bottom: calc(var(--butla-captcha-bottom) + var(--butla-cookie-slot, 0px)); } body div.grecaptcha-badge:is([data-style="bottomright"], :not([data-style])) { left: auto !important; right: 0 !important; bottom: var(--butla-recaptcha-bottom) !important; z-index: 15; width: var(--butla-recaptcha-width, var(--butla-captcha-size)) !important; height: var(--butla-captcha-size) !important; overflow: hidden !important; border: 0; border-radius: var(--butla-badge-radius) !important; background: var(--butla-badge-background); box-shadow: var(--butla-badge-shadow) !important; } .grecaptcha-badge:is([data-style="bottomright"], :not([data-style])) .grecaptcha-logo { width: var(--butla-recaptcha-logo-width, 69px); height: 60px; overflow: hidden; /* Scale the native 70 × 60 logo area to fit the square badge. */ transform: var(--butla-recaptcha-transform, translateY(3.4px) scale(.6857)); transform-origin: top left; } .grecaptcha-badge:is([data-style="bottomright"], :not([data-style])) .grecaptcha-logo > iframe { display: block; width: 256px; height: 60px; max-width: none; } .grecaptcha-badge:is([data-style="bottomright"], :not([data-style])):is(.butla-recaptcha-expanded, :not(:has(> .butla-recaptcha-toggle)):is(:hover, :focus-within)) { --butla-recaptcha-width: min(204.8px, 100vw); --butla-recaptcha-logo-width: 256px; --butla-recaptcha-transform: scale(.8); } .grecaptcha-badge > .butla-recaptcha-toggle { position: absolute; inset: 0; z-index: 1; width: var(--butla-captcha-size); height: var(--butla-captcha-size); margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; } .grecaptcha-badge.butla-recaptcha-expanded > .butla-recaptcha-toggle { inset: auto 0 0 auto; opacity: 0; pointer-events: none; } .grecaptcha-badge > .butla-recaptcha-toggle:focus-visible, .grecaptcha-badge.butla-recaptcha-expanded:has(> .butla-recaptcha-toggle:focus-visible) { outline: 2px solid #1a73e8; outline-offset: -2px; } body:has(.grecaptcha-badge:is([data-style="bottomright"], :not([data-style]))) { --butla-recaptcha-slot: var(--butla-captcha-slot); } .zzev-turnstile-error[hidden] { display: none; } .zzev-turnstile-panel { margin-block: .75rem; } .zzev-turnstile-panel:empty { margin: 0; } body div.zzev-turnstile-panel.zzev-turnstile-docked { position: fixed; z-index: 1000; left: auto; right: 0; bottom: calc(var(--butla-recaptcha-bottom) + var(--butla-recaptcha-slot, 0px)); /* WooCommerce form layouts can give their child divs a full width. */ width: max-content !important; max-width: 100vw; margin: 0; padding: 0; } .zzev-turnstile-docked:has(> .zzev-turnstile-icon):not(.zzev-turnstile-expanded) > div, .zzev-turnstile-panel:has(input[name$="_turnstile_response"][value]:not([value=""])) + .zzev-turnstile-error { display: none; } .zzev-turnstile-docked > .zzev-turnstile-icon { display: grid; width: var(--butla-captcha-size); height: var(--butla-captcha-size); min-width: 0; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: var(--butla-badge-radius); background: var(--butla-badge-background) url("https://butla.pl/wp-content/themes/butlapl_v2/assets/images/cloudflare-icon.svg") center / 32px auto no-repeat; box-shadow: var(--butla-badge-shadow); cursor: pointer; } .zzev-turnstile-expanded > .zzev-turnstile-icon { position: absolute; right: 0; bottom: 0; opacity: 0; pointer-events: none; } /* Fit the standard 65px panel to the badge height during and after verification. */ body div.zzev-turnstile-panel.zzev-turnstile-docked:not([data-size="compact"]):is(.zzev-turnstile-expanded, :not(:has(> .zzev-turnstile-icon))) { max-width: none; transform: scale(var(--butla-turnstile-scale, .73846)); transform-origin: right bottom; } .zzev-turnstile-docked > .zzev-turnstile-icon:focus-visible, .zzev-turnstile-expanded:has(> .zzev-turnstile-icon:focus-visible) { outline: 2px solid #1a73e8; outline-offset: -2px; } .zzev-turnstile-error { margin-block: .5rem; color: #b42318; } @media (min-width: 1025px) { body:has(#zzcc-root > #zzcc-manage:not([hidden], .zzcc-hide-desktop)) { --butla-cookie-slot: var(--butla-captcha-slot); } } @media (min-width: 769px) and (max-width: 1024px) { body:has(#zzcc-root > #zzcc-manage:not([hidden], .zzcc-hide-tablet)) { --butla-cookie-slot: var(--butla-captcha-slot); } } @media (max-width: 768px) { body:has(#zzcc-root > #zzcc-manage:not([hidden], .zzcc-hide-phone)) { --butla-cookie-slot: var(--butla-captcha-slot); } } @media (max-width: 319px) { .zzev-turnstile-docked[data-zzev-turnstile-action] { --butla-turnstile-scale: 1; } } 