/* Zehlm Captcha - styles. Colors come from Settings > Zehlm Captcha (CSS variables). */
:root { --zc-accent: #FFB117; --zc-head: #000; --zc-blue: #1a4d8f; --zc-err: #b00020; }
.zcap { max-width: 320px; margin: 14px 0; font-family: inherit; }
.zcap-box { position: relative; display: flex; align-items: center; min-height: 72px; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 16px; border: 1px solid #c9cdd2; border-radius: 4px; background: #fff; color: #1d2327; }
.zcap-box.zcap-bad { border-color: var(--zc-err); }
.zcap .zcap-lbl { white-space: nowrap; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; width: auto; gap: 10px; margin: 0; cursor: pointer; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #1d2327; }
.zcap .zcap-lbl input[type=checkbox] { flex: 0 0 22px; width: 22px; min-width: 0; height: 22px; min-height: 0; padding: 0; margin: 0; border: 0; box-shadow: none; appearance: auto; -webkit-appearance: checkbox; accent-color: var(--zc-blue); cursor: pointer; }
.zcap .zcap-lbl .zcap-txt { font-weight: 600; font-size: inherit; color: inherit; }
.zcap-box.zcap-bad .zcap-txt { color: var(--zc-err); }
.zcap .zcap-brand { display: block; align-self: flex-start; margin-left: auto; }
.zcap .zcap-brand img { display: block; width: 40px; height: 40px; margin: 0; }
.zcap .zcap-credit { position: absolute; right: 10px; bottom: 5px; display: block; text-align: right; padding: 0; margin: 0; background: none; font-size: 10px; line-height: 1.2; font-weight: 400; color: #50575e; text-decoration: none; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.zcap .zcap-credit:hover, .zcap .zcap-credit:focus-visible { color: var(--zc-blue); text-decoration: underline; }
.zcap-msg { min-height: 0; margin: 6px 0 0; color: var(--zc-err); font-size: 14px; }
.zcap-msg:empty { display: none; }
.zcap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The puzzle is a native <dialog>, so it opens above any other pop-up on the page. */
.zc-d { width: calc(100% - 32px); max-width: 380px; padding: 0; border: 2px solid var(--zc-accent); border-radius: 10px; background: #fff; color: #1d2327; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); overflow: hidden; font-family: Arial, Helvetica, sans-serif; }
.zc-d::backdrop { background: rgba(15, 25, 40, .6); }
.zc-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--zc-head); color: #fff; }
.zc-h img { width: 36px; height: 36px; }
.zc-s { margin: 0 0 4px; font-size: 13px; opacity: .85; }
.zc-q { margin: 0; font-size: 20px; line-height: 1.25; }
.zc-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.zc-g[hidden], .zc-text[hidden] { display: none; }
.zc-t { position: relative; display: block; aspect-ratio: 1 / 1; padding: 0; border: 3px solid transparent; border-radius: 8px; background: #f1f5fa; cursor: pointer; }
.zc-t:hover { border-color: #c5d3e6; }
.zc-t:focus-visible { outline: 3px solid #f0a500; outline-offset: 2px; }
.zc-t svg { display: block; width: 100%; height: 100%; }
.zc-t.on { border-color: var(--zc-blue); background: #e6eefa; }
.zc-t.on::after { content: "\2713"; position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--zc-blue); color: #fff; font-size: 13px; line-height: 20px; text-align: center; }
.zc-ld { grid-column: 1 / -1; margin: 0; padding: 60px 0; text-align: center; color: #555; }
.zc-text { padding: 18px 16px 4px; }
.zc-text label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.zc-text input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #8c8f94; border-radius: 6px; font-size: 18px; }
.zc-m { min-height: 1.4em; margin: 0; padding: 0 16px; color: var(--zc-err); font-size: 14px; }
.zc-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; padding: 12px 14px 14px; border-top: 1px solid #e3e8ef; }
.zc-f > span:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.zc-l { padding: 6px; border: 0; background: none; color: var(--zc-blue); font-size: 14px; cursor: pointer; text-align: left; }
.zc-l:hover { text-decoration: underline; }
.zc-b { padding: 10px 22px; border: 2px solid var(--zc-accent); border-radius: 6px; background: var(--zc-accent); color: #000; font-size: 15px; font-weight: 700; cursor: pointer; }
.zc-b:hover { filter: brightness(.94); }
.zc-b:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
.zc-b:disabled { opacity: .6; cursor: default; }
@media (prefers-reduced-motion: reduce) { .zc-d { transition: none; } }
