/* "I'm not a robot" spam check (views/app/ui/captcha): a light panel that keeps
   its own look whatever the page styles labels and inputs as */
.cs-captcha {margin: 0 0 1.25em;}
.cs-captcha-box, .cs-captcha-box * {text-transform: none !important; letter-spacing: normal !important; font-style: normal !important; text-shadow: none !important;}
.cs-captcha-box {display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%; max-width: none; min-height: 74px; padding: 12px 14px; background: #f9f9f9; border: 1px solid #d3d3d3; border-radius: 3px; box-shadow: 0 0 4px rgba(0,0,0,.08); color: #222; font: 14px/1.3 system-ui, -apple-system, 'Segoe UI', sans-serif; text-align: left;}
.cs-captcha-stage {display: grid; grid-template-columns: 28px 1fr; align-items: center; column-gap: 12px; position: relative; flex: 1; min-width: 0;}
.cs-captcha-tick {position: absolute !important; left: 0 !important; top: 50% !important; width: 28px !important; height: 28px !important; margin: -14px 0 0 !important; padding: 0 !important; opacity: 0 !important; cursor: pointer; z-index: 1;}
.cs-captcha-mark {grid-area: 1 / 1; width: 28px; height: 28px; box-sizing: border-box; border: 2px solid #c1c1c1; border-radius: 2px; background: #fff; position: relative;}
.cs-captcha-mark::after {content: ""; position: absolute; left: 8px; top: 1px; width: 8px; height: 16px; border: solid #0f9d58; border-width: 0 4px 4px 0; opacity: 0; transform: rotate(45deg) scale(.3);}
.cs-captcha-ask {grid-area: 1 / 2; display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; color: #222 !important; font: 400 15px/1.3 system-ui, -apple-system, 'Segoe UI', sans-serif !important; opacity: 1 !important; cursor: pointer;}
.cs-captcha-row {grid-area: 1 / 1 / 2 / 3; display: flex !important; align-items: center; gap: 10px; flex-wrap: wrap; visibility: hidden; opacity: 0;}
.cs-captcha-sum {display: inline-block; flex: none; width: 6.2em; height: 1.9em; font-size: 16px; color: #222;}
.cs-captcha-box .cs-captcha-answer {box-sizing: border-box; flex: none; width: 4.2em !important; height: 2.4em !important; min-height: 0 !important; margin: 0 !important; padding: 0 .6em !important; background: #fff !important; color: #222 !important; border: 1px solid #c1c1c1 !important; border-radius: 3px !important; box-shadow: none !important; font: 600 16px/1 system-ui, -apple-system, sans-serif !important; text-align: center !important;}
.cs-captcha-badge {flex: none; display: flex !important; flex-direction: column; align-items: center; gap: 2px; margin: 0 !important; color: #595959 !important; font: 400 9px/1.2 system-ui, -apple-system, sans-serif !important;}
.cs-captcha-badge svg {display: block; fill: #4a7bd0;}
.cs-captcha-tick:focus-visible ~ .cs-captcha-mark {outline: 2px solid #1a73e8; outline-offset: 2px;}
.cs-captcha-tick:hover ~ .cs-captcha-mark {border-color: #b2b2b2;}
.cs-captcha-tick:checked {pointer-events: none;}
.cs-captcha-tick:checked ~ .cs-captcha-mark {animation: cs-cap-spin .7s linear, cs-cap-done .01s .7s forwards, cs-cap-out .25s 1.4s forwards;}
.cs-captcha-tick:checked ~ .cs-captcha-mark::after {animation: cs-cap-ticked .25s .7s ease-out forwards;}
.cs-captcha-tick:checked ~ .cs-captcha-ask {animation: cs-cap-out .25s 1.4s forwards;}
.cs-captcha-tick:checked ~ .cs-captcha-row {animation: cs-cap-in .3s 1.55s forwards;}
@keyframes cs-cap-spin {from {border-radius: 50%; border-color: #4a90e2; border-top-color: transparent; transform: rotate(0);} to {border-radius: 50%; border-color: #4a90e2; border-top-color: transparent; transform: rotate(720deg);}}
@keyframes cs-cap-done {to {border-color: transparent; background: transparent;}}
@keyframes cs-cap-ticked {to {opacity: 1; transform: rotate(45deg) scale(1);}}
@keyframes cs-cap-out {to {opacity: 0; visibility: hidden;}}
@keyframes cs-cap-in {to {opacity: 1; visibility: visible;}}
@media (prefers-reduced-motion: reduce){
  .cs-captcha-tick:checked ~ *, .cs-captcha-tick:checked ~ .cs-captcha-mark::after {animation-duration: .01s !important; animation-delay: 0s !important;}
}
