/* House In Nikiti — Elements: "I'm not a robot" (assets/js/human-check.js draws it inside every [data-hin-hc]). */
.hin-hc {
  --hin-hc-green: #5f6f54; --hin-hc-olive: #3f4d36; --hin-hc-leaf: #7f9469; --hin-hc-line: #dfe4da; --hin-hc-bg: #f8f9f7;
  --hin-hc-ink: #1f272e; --hin-hc-muted: #7d8a73; --hin-hc-err: #b0463b; --hin-hc-ease: cubic-bezier(.22, 1, .36, 1);
  display: block; min-height: 64px; margin: 0 0 18px; container-type: inline-size;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--hin-hc-ink); text-align: left;
}
.hin-hc__in {
  display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 14px 8px 8px; box-sizing: border-box;
  border: 1px solid var(--hin-hc-line); border-radius: 14px; background: var(--hin-hc-bg);
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.hin-hc[data-state="idle"] .hin-hc__in:hover { border-color: #c9d1bf; box-shadow: 0 4px 14px rgba(40, 52, 38, .06); }

/* the box: the whole left side is the button */
.hin-hc__box {
  flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 46px; margin: 0; padding: 4px 6px; box-sizing: border-box;
  border: 0; border-radius: 10px; background: none; box-shadow: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hin-hc__box:focus { outline: 0; }
.hin-hc__box:focus-visible { outline: 2px solid var(--hin-hc-green); outline-offset: 2px; }
.hin-hc__mark { flex: none; display: block; width: 30px; height: 30px; }
.hin-hc__mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hin-hc__sq { fill: #fff; stroke: #b6bfac; stroke-width: 1.6; transform-box: fill-box; transform-origin: center; transition: stroke .2s ease, transform .35s var(--hin-hc-ease), opacity .25s ease; }
.hin-hc__box:hover .hin-hc__sq { stroke: var(--hin-hc-green); }
.hin-hc__box:active .hin-hc__sq { transform: scale(.9); }
.hin-hc__ring { fill: none; stroke: var(--hin-hc-green); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 30 100; opacity: 0; transform-box: view-box; transform-origin: 14px 14px; transition: opacity .2s ease; }
.hin-hc__fill { fill: var(--hin-hc-green); transform-box: view-box; transform-origin: 14px 14px; transform: scale(0); }
.hin-hc__tick { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

.hin-hc__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hin-hc__label { font-size: 14.5px; font-weight: 500; line-height: 1.25; color: var(--hin-hc-ink); }
.hin-hc__status { font-size: 12px; line-height: 1.3; color: var(--hin-hc-muted); }
.hin-hc__status:empty { display: none; }

/* our mark where other checks put their logo */
.hin-hc__brand { flex: none; display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--hin-hc-line); font-size: 10.5px; line-height: 1.3; color: var(--hin-hc-muted); }
.hin-hc__brand svg { flex: none; width: 26px; height: 21px; overflow: visible; }
.hin-hc__b-line { fill: none; stroke: var(--hin-hc-olive); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.hin-hc__b-leaf { fill: var(--hin-hc-leaf); }
@container (max-width: 330px) { .hin-hc__brand span { display: none; } }

/* checking: the box turns into a spinning ring */
.hin-hc[data-state="working"] .hin-hc__box { cursor: progress; }
.hin-hc[data-state="working"] .hin-hc__sq { transform: scale(.4); opacity: 0; }
.hin-hc[data-state="working"] .hin-hc__ring { opacity: 1; animation: hin-hc-spin .85s linear infinite; }
@keyframes hin-hc-spin { to { transform: rotate(360deg); } }

/* verified: a green disc grows, the tick draws itself */
.hin-hc[data-state="done"] .hin-hc__in { border-color: #c8d3bd; background: #f3f6ef; }
.hin-hc[data-state="done"] .hin-hc__box { cursor: default; }
.hin-hc[data-state="done"] .hin-hc__sq { opacity: 0; }
.hin-hc[data-state="done"] .hin-hc__fill { transform: scale(1); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.hin-hc[data-state="done"] .hin-hc__tick { stroke-dashoffset: 0; transition: stroke-dashoffset .42s cubic-bezier(.65, 0, .35, 1) .2s; }
.hin-hc[data-state="done"] .hin-hc__status { color: var(--hin-hc-green); }

/* not verified (or asked to) */
.hin-hc[data-state="error"] .hin-hc__in { border-color: rgba(176, 70, 59, .5); background: #fdf6f5; }
.hin-hc[data-state="error"] .hin-hc__sq { stroke: var(--hin-hc-err); }
.hin-hc[data-state="error"] .hin-hc__status { color: var(--hin-hc-err); }

.hin-hc__noscript { display: block; padding: 12px 14px; border: 1px solid rgba(176, 70, 59, .5); border-radius: 14px; background: #fdf6f5; color: var(--hin-hc-err); font-size: 13px; }

/* places */
.login .hin-hc { margin: 2px 0 20px; }
.hin-hc--comment { margin: 18px 0; max-width: 420px; }
.hin-hc--inq { margin: 18px 0 2px; }
.woocommerce form .hin-hc { margin: 6px 0 18px; max-width: 420px; }

@media (prefers-reduced-motion: reduce) {
  .hin-hc__sq, .hin-hc__ring, .hin-hc__in { transition: none; }
  .hin-hc[data-state="working"] .hin-hc__ring { animation: none; stroke-dasharray: 60 100; }
  .hin-hc[data-state="done"] .hin-hc__fill, .hin-hc[data-state="done"] .hin-hc__tick { transition: none; }
}
