/* The site bot (bot.js, docs/bot-spec.md in go-eycpa). Eran's palette. Sits above the phone dock (site-v4.css .v4-mobile-dock).
   Motion: open 250ms, close 150ms, arrive curve; typing dots run only while waiting; nothing moves with reduced motion.
   Contrast: text 4.5:1 and up, borders and focus 3:1 (--eb-green-dark #0d7a40 on white is 5.3:1). */
.eb{--eb-ink:#102848;--eb-deep:#081f3d;--eb-green:#109850;--eb-green-dark:#0d7a40;--eb-green-ink:#0b6c38;--eb-paper:var(--paper,#f4f6fa);--eb-muted:#53636b;--eb-line:#10284826;--eb-arrive:cubic-bezier(.22,1,.36,1);position:fixed;z-index:60;inset-inline-end:20px;bottom:calc(20px + env(safe-area-inset-bottom));font-family:inherit;direction:rtl}
.eb *{box-sizing:border-box}
.eb-fab{display:flex;align-items:center;gap:0;height:58px;min-width:58px;padding:0 9px;border:2px solid var(--eb-ink);border-radius:29px;background:#fff;color:var(--eb-ink);box-shadow:0 10px 26px #08203d55;cursor:pointer;touch-action:manipulation;font:inherit;transition:gap .25s var(--eb-arrive),transform .15s var(--eb-arrive),border-color .15s}
/* The character (bot.js MASCOT): sized here, drawn there */
.eb-fab-icon svg{width:38px;height:38px;display:block}
.eb-fab-label{max-width:0;overflow:hidden;white-space:nowrap;font-size:16px;font-weight:700;transition:max-width .35s var(--eb-arrive)}
.eb.is-hint .eb-fab,.eb.is-cont .eb-fab,.eb-fab:focus-visible{gap:10px}.eb.is-hint .eb-fab-label,.eb.is-cont .eb-fab-label,.eb-fab:focus-visible .eb-fab-label{max-width:220px}
.eb-fab:focus-visible{outline:3px solid var(--eb-green);outline-offset:3px}
.eb-fab:active{transform:scale(.97)}
.eb.is-open .eb-fab{border-color:var(--eb-green-dark)}
@media (hover:hover) and (pointer:fine){.eb-fab:hover{gap:10px}.eb-fab:hover .eb-fab-label{max-width:220px}}

.eb [hidden]{display:none!important}
/* ^ the chat's own hidden parts stay hidden on pages without a global [hidden] rule (go's haktzaa, maam-bizman-emet: QA UI-R2-001, 9.11.2026) */
.eb-panel{position:absolute;inset-inline-end:0;bottom:72px;width:min(400px,calc(100vw - 32px));height:min(640px,calc(100vh - 120px));display:flex;flex-direction:column;background:#fff;border:1px solid var(--eb-line);border-radius:16px;box-shadow:0 24px 60px #08203d40;overflow:hidden;transform-origin:left bottom}
.eb-panel:not([hidden]){animation:eb-open .25s var(--eb-arrive) both}
@keyframes eb-open{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
.eb-head{display:flex;align-items:flex-start;gap:8px;padding:14px 16px 12px;background:var(--eb-deep);color:#fff}
.eb-head-av{flex:none;width:42px;height:42px;margin-top:1px}.eb-head-av svg{width:100%;height:100%;display:block}
.eb-head-text{flex:1;min-width:0}
.eb-head h2{margin:0;font-size:18px;line-height:1.3;color:#fff}
.eb-head p{margin:4px 0 0;font-size:13px;line-height:1.45;color:#c4d0da}
.eb-head-wa,.eb-close{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid #ffffff55;background:none;color:#fff;cursor:pointer;text-decoration:none}
.eb-head-wa svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;display:block}
.eb-close{font-size:24px;line-height:1}
.eb-head-wa:focus-visible,.eb-close:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (hover:hover) and (pointer:fine){.eb-head-wa:hover,.eb-close:hover{background:#ffffff1a}}

.eb-log{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:12px;background:var(--eb-paper);overscroll-behavior:contain}
.eb-msg{max-width:92%;display:grid;gap:8px}
.eb-msg p{margin:0}
.eb-msg.is-me{align-self:flex-end;max-width:85%}
.eb-msg.is-me p{padding:10px 13px;border-radius:14px;border-start-end-radius:4px;background:var(--eb-ink);color:#fff;font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.eb-msg.is-bot{align-self:flex-start;position:relative;max-width:calc(92% - 36px);margin-inline-start:36px;padding:12px 14px;background:#fff;color:var(--eb-ink);border:1px solid #10284818;border-radius:14px;border-start-start-radius:4px}
.eb-av{position:absolute;inset-inline-start:-36px;top:0;width:28px;height:28px}.eb-av svg{width:100%;height:100%;display:block}
.eb-msg.is-bot+.eb-msg.is-bot .eb-av{visibility:hidden}
.eb-text{font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.eb-src{font-size:12.5px;line-height:1.4;color:var(--eb-muted)}
.eb-src strong{font-weight:600;color:var(--eb-ink)}
.eb-q{font-size:15px;font-weight:700;line-height:1.45}
.eb-note{font-size:13.5px;line-height:1.5;color:var(--eb-muted)}
.eb-after{display:grid;gap:10px}
.eb-after.is-in{animation:eb-in .2s ease-out both}
@keyframes eb-in{from{opacity:0}to{opacity:1}}
.eb-msg.is-typing{padding:14px 16px}
.eb-dots{display:flex;gap:4px}
.eb-dots i{width:7px;height:7px;border-radius:50%;background:var(--eb-ink);opacity:.35}
@media (prefers-reduced-motion:no-preference){.eb-dots i{animation:eb-dot 1s var(--eb-arrive) infinite}.eb-dots i:nth-child(2){animation-delay:.15s}.eb-dots i:nth-child(3){animation-delay:.3s}}
@keyframes eb-dot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-3px)}}

/* The link to the exact paragraph: the main action of an answer */
.eb-open{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 16px;border-radius:999px;background:var(--eb-green-dark);color:#fff;font-size:15px;font-weight:700;text-decoration:none;justify-self:start}
.eb-open::after{content:"↖";font-weight:400}
.eb-open:focus-visible{outline:3px solid var(--eb-ink);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.eb-open:hover{background:var(--eb-green-ink)}}
.eb-links{display:grid;gap:4px}
.eb-links span{font-size:12.5px;color:var(--eb-muted)}
.eb-links a{display:block;padding:7px 0;color:var(--eb-green-ink);font-size:14px;font-weight:600;line-height:1.4;text-decoration:underline;text-underline-offset:3px}
.eb-links a:focus-visible{outline:2px solid var(--eb-green-dark);outline-offset:2px;border-radius:4px}
/* Choices: suggested questions, "did you mean", topics, reasons */
.eb-chips{display:flex;flex-wrap:wrap;gap:6px}
.eb-chip{min-height:40px;padding:8px 12px;border-radius:12px;border:1px solid #10284840;background:#fff;color:var(--eb-ink);font:inherit;font-size:14px;line-height:1.35;text-align:start;cursor:pointer;touch-action:manipulation}
.eb-chip:focus-visible{outline:2px solid var(--eb-green-dark);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.eb-chip:hover:not(:disabled){border-color:var(--eb-green-dark);background:#10985010}}
.eb-chip:disabled{cursor:default;opacity:.7}
.eb-chip.is-on{opacity:1;border-color:var(--eb-green-dark);background:#10985018;font-weight:700}
.eb-fb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-top:8px;border-top:1px solid #10284814}
.eb-fb>span{font-size:13.5px;color:var(--eb-muted);margin-inline-end:4px}
.eb-fb .eb-chip{min-height:44px;min-width:64px;text-align:center}
.eb-thanks{width:100%;font-size:13.5px;color:var(--eb-green-ink);font-weight:600}
/* The office */
.eb-office{display:grid;gap:8px;padding:12px;background:var(--eb-paper);border:1px dashed #10284840;border-radius:12px}
.eb-office p{font-size:14px;line-height:1.5}
.eb-office .eb-hours{font-size:13px;color:var(--eb-muted)}
.eb-wa{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:999px;background:var(--eb-green-dark);color:#fff;font-weight:700;font-size:15px;text-decoration:none}
.eb-wa svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;display:block}
.eb-wa:focus-visible,.eb-tel:focus-visible{outline:3px solid var(--eb-ink);outline-offset:2px}
.eb-tel{display:block;padding:6px 0;font-size:14px;color:var(--eb-ink);text-align:center}

.eb-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid #10284818;background:#fff}
.eb-form textarea{flex:1;min-width:0;resize:none;border:1px solid #10284866;border-radius:12px;padding:10px 12px;font:inherit;font-size:16px;line-height:1.4;color:var(--eb-ink);background:#fff;max-height:120px;overflow-y:hidden}
.eb-form textarea::placeholder{color:#5f6f77}
.eb-form textarea:focus-visible{outline:2px solid var(--eb-green-dark);outline-offset:0}
.eb-send{flex:none;height:44px;min-width:76px;padding:0 14px;border:0;border-radius:12px;background:var(--eb-ink);color:#fff;font:inherit;font-weight:700;cursor:pointer;touch-action:manipulation}
.eb-send:focus-visible{outline:3px solid var(--eb-green);outline-offset:2px}
.eb-send:active{transform:scale(.97)}
.eb-foot{margin:0;padding:0 14px 10px;font-size:11.5px;line-height:1.45;color:#5f6f77;background:#fff}
.eb-foot a{color:var(--eb-green-ink);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.eb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* The paragraph a chat link landed on (outside the widget) */
.eb-flash{outline:3px solid #109850;outline-offset:6px;border-radius:6px;scroll-margin-top:96px}
@media (prefers-reduced-motion:no-preference){.eb-flash{transition:outline-color .6s}}

/* The bot's cell in the phone dock (bot.js puts it in the site's #dock-bot-slot, whose CSS gives it the cell's size,
   font and divider). Shown only after the hero, when site-v4.js marks html.dock-on; until then, the floating button. */
.eb-dock{border:0;background:transparent;color:inherit;font-family:inherit;cursor:pointer}
.eb-dock-icon svg{width:28px;height:28px;display:block}
.eb-dock[aria-expanded="true"]{background:#ffffff1f}
@media (max-width:360px){.eb-dock-icon{display:none}}
@media (max-width:760px){
  .eb{inset-inline-end:14px;bottom:calc(76px + env(safe-area-inset-bottom))}
  .eb-fab{height:52px;min-width:52px;padding:0 7px}
  .eb-fab-icon svg{width:34px;height:34px}
  .eb-panel{position:fixed;inset-inline:12px;bottom:calc(140px + env(safe-area-inset-bottom));width:auto;height:auto;max-height:calc(100vh - 170px);max-height:calc(100dvh - 170px)}
  html.dock-on .eb-fab{display:none}
  html.dock-on .eb-panel{bottom:calc(var(--dock-h,56px) + 12px + env(safe-area-inset-bottom));max-height:calc(100dvh - var(--dock-h,56px) - 90px)}
}
/* A phone: the whole screen, above the dock and the button, sized to what the keyboard leaves */
@media (max-width:480px){
  .eb.is-open{z-index:1000}
  .eb-panel{inset:0;bottom:auto;top:0;height:var(--eb-vh,100dvh);max-height:none;border:0;border-radius:0;box-shadow:none}
  .eb.is-open .eb-fab{visibility:hidden}
  .eb-head{padding-top:calc(12px + env(safe-area-inset-top))}
  .eb-form{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){.eb-fab,.eb-fab-label{transition:none}.eb-panel:not([hidden]){animation:none}.eb-after.is-in{animation:none}}
