/* Website Helper widget (AxiomAI) */
.wh-launch { position: fixed; z-index: 60; bottom: 18px; right: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; border: 0; cursor: pointer; background: var(--green-700); color: #fff; font: 700 1rem var(--font-body); box-shadow: 0 10px 30px rgba(15, 61, 46, .35); transition: transform .15s ease; }
html[dir="rtl"] .wh-launch { right: auto; left: 18px; padding: 10px 10px 10px 18px; }
.wh-launch:hover { transform: translateY(-2px); background: var(--green-800); }
.wh-launch .wh-face { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.wh-launch .wh-face img { width: 34px; height: 34px; object-fit: contain; }
.wh-launch .wh-dot { position: absolute; top: 6px; left: 38px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); border: 2px solid var(--green-700); }
html[dir="rtl"] .wh-launch .wh-dot { left: auto; right: 38px; }
.wh-launch[aria-expanded="true"] { display: none; }
@media (max-width: 420px) { .wh-launch .wh-label { display: none; } .wh-launch { padding: 8px; } html[dir="rtl"] .wh-launch { padding: 8px; } }

.wh-panel { padding: 0; margin: 0; position: fixed; z-index: 61; bottom: 18px; right: 18px; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 36px)); height: min(640px, calc(100dvh - 36px)); display: none; flex-direction: column; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
html[dir="rtl"] .wh-panel { right: auto; left: 18px; }
.wh-panel.open { display: flex; animation: whIn .18s ease-out; }
@keyframes whIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .wh-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 88vh; height: 88dvh; border-radius: 20px 20px 0 0; } html[dir="rtl"] .wh-panel { left: 0; } }

.wh-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, var(--green-800), var(--green-950)); color: #fff; position: relative; overflow: hidden; }
.wh-head::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 70px 70px; opacity: .1; }
.wh-head > * { position: relative; }
.wh-head .wh-face { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.wh-head .wh-face img { width: 36px; height: 36px; object-fit: contain; }
.wh-title { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.wh-sub { font-size: .76rem; color: #bfdccf; display: flex; align-items: center; gap: 6px; }
.wh-sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5fe0a6; }
.wh-x { margin-inline-start: auto; width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.wh-x:hover { background: rgba(255,255,255,.22); }
.wh-x svg { width: 20px; height: 20px; }

.wh-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); overscroll-behavior: contain; }
.wh-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.5; word-wrap: break-word; }
.wh-msg p { margin: 0 0 .5em; } .wh-msg p:last-child { margin: 0; }
.wh-msg ul { margin: .3em 0 .5em; padding-inline-start: 18px; }
.wh-msg .qa-table { font-size: .82rem; }
.wh-bot { background: var(--card); border: 1px solid var(--line); border-end-start-radius: 4px; align-self: flex-start; }
.wh-user { background: var(--green-700); color: #fff; border-end-end-radius: 4px; align-self: flex-end; }
.wh-q { font-weight: 700; margin-bottom: 4px; color: var(--green-800); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wh-q { color: #6fd0a6; } }
.wh-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wh-links a { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-800); text-decoration: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wh-links a { color: #bff0d9; } }
.wh-links a:hover { background: var(--green-700); color: #fff; }
.wh-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: stretch; }
.wh-chip { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 7px 12px; font: 600 .85rem var(--font-body); cursor: pointer; }
.wh-chip:hover { border-color: var(--green-500); color: var(--green-800); }
.wh-chip.alt { background: var(--gold-100); border-color: #ecd49f; }
.wh-meta { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.wh-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.wh-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: whDot 1s infinite ease-in-out; }
.wh-typing span:nth-child(2) { animation-delay: .15s; } .wh-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes whDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.wh-form { display: grid; gap: 8px; margin-top: 8px; }
.wh-form input, .wh-form textarea { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 500 .92rem var(--font-body); }
.wh-form textarea { min-height: 70px; resize: vertical; }
.wh-form button { justify-self: start; }
.wh-small { font-size: .78rem; color: var(--muted); }

.wh-foot { border-top: 1px solid var(--line); padding: 10px; background: var(--card); }
.wh-input { display: flex; gap: 8px; align-items: flex-end; }
.wh-input textarea { flex: 1; resize: none; max-height: 110px; min-height: 44px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 500 .96rem var(--font-body); line-height: 1.4; }
.wh-input textarea:focus { outline: 3px solid color-mix(in srgb, var(--green-500) 30%, transparent); border-color: var(--green-500); }
.wh-send { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--green-700); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.wh-send:hover { background: var(--green-800); }
.wh-send svg { width: 20px; height: 20px; }
html[dir="rtl"] .wh-send svg { transform: scaleX(-1); }
.wh-brand { text-align: center; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.wh-brand a { color: var(--muted); }

/* AxiomAI widget active: it replaces the built-in launcher/panel */
.axiom-on .wh-launch, .axiom-on .wh-panel { display: none !important; }
.wh-launch.wh-wait { visibility: hidden; }
