/* Bot Gate widget styles — corporate, flat, no gradients.
 * Ships unminified (no build step). Re-theme by publishing tag bot-gate-assets
 * or by overriding these class names in your own stylesheet. */

.botgate {
    --bg: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --accent: #1e3a8a;      /* brand navy */
    --accent-ink: #ffffff;
    --ok: #166534;
    --bad: #b91c1c;
    --field: #f8fafc;

    box-sizing: border-box;
    max-width: 360px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
}

.botgate *, .botgate *::before, .botgate *::after { box-sizing: border-box; }

.botgate-loading, .botgate-noscript { color: var(--muted); padding: 8px 0; }

.botgate-counter {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--muted);
    background: #f1f5f9;
    border-radius: 999px;
    padding: 3px 10px;
    margin: 0 0 9px;
}
.botgate-counter.warn { color: #92400e; background: #fef3c7; }

.botgate-prompt { font-weight: 600; margin: 0 0 8px; }

.botgate-scene {
    position: relative;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f7;      /* flat field tone */
    user-select: none;
    touch-action: manipulation;
    line-height: 0;
}
.botgate-scene img { display: block; width: 100%; height: auto; }
.botgate-scene.clickable { cursor: crosshair; }

.botgate-mark {
    position: absolute;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;   /* centre on the tap point */
    border: 3px solid var(--accent);
    border-radius: 999px;
    background: rgba(30, 58, 138, .12);
    pointer-events: none;
}

.botgate-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }

.botgate-input {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--field);
    font-size: 15px;
    color: var(--ink);
}

.botgate-btn {
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    font-size: 14px;
}
.botgate-btn:disabled { opacity: .5; cursor: default; }
.botgate-btn.ghost { background: #eef2f7; color: var(--accent); }

.botgate-status { min-height: 18px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.botgate-status.bad { color: var(--bad); }
.botgate-status.ok { color: var(--ok); font-weight: 600; }

.botgate-done {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 4px;
    color: var(--ok);
    font-weight: 700;
}
.botgate-done .mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--ok);
    font-size: 16px;
}

.botgate-foot { margin-top: 10px; font-size: 11px; color: var(--muted); text-align: right; }

.botgate-standalone {
    margin: 0;
    padding: 16px;
    background: #f4f7fb;
    display: flex;
    justify-content: center;
}
