/* Website help bot widget (no AI). Change the colours in the first block to match the site. */
.hb {
  --hb-brand: #09244a;        /* header, user bubbles, buttons */
  --hb-brand-2: #123a6b;      /* second gradient colour */
  --hb-accent: #e5a82a;       /* chips, send button, dates */
  --hb-accent-soft: #f7e6bd;
  --hb-bg: #ffffff;           /* panel background */
  --hb-ink: #1f2430; --hb-muted: #5d6474; --hb-line: #e1e6ee;
  --hb-font: inherit;
}
.hb, .hb * { box-sizing: border-box; }
.hb { position: fixed; left: 1rem; bottom: 1rem; z-index: 450; font-family: var(--hb-font); }
.hb-launch { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem .7rem .9rem; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font: 700 .92rem/1 var(--hb-font); background: linear-gradient(135deg, var(--hb-brand) 0%, var(--hb-brand-2) 60%, var(--hb-accent) 100%); box-shadow: 0 10px 26px rgba(92,26,27,.35); }
.hb-launch svg { width: 22px; height: 22px; stroke: #fff; fill: rgba(255,255,255,.15); stroke-width: 1.8; stroke-linejoin: round; }
.hb.open .hb-launch { display: none; }
.hb-panel { position: fixed; left: 1rem; bottom: 1rem; width: min(380px, calc(100vw - 2rem)); height: min(600px, calc(100vh - 2rem)); display: flex; flex-direction: column; background: var(--hb-bg); border: 1px solid var(--hb-line); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(40,10,10,.35); }
.hb-panel[hidden] { display: none; }
.hb-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; background: linear-gradient(135deg, var(--hb-brand), var(--hb-brand-2)); color: #fff; }
.hb-head img { background: #fff; border-radius: 50%; padding: 2px; width: 38px; height: 38px; object-fit: contain; }
.hb-head div { flex: 1; line-height: 1.2; }
.hb-head b { display: block; font-size: 1rem; }
.hb-head small { font-size: .76rem; opacity: .85; }
.hb-x { background: transparent; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.hb-log { flex: 1; overflow-y: auto; padding: 1rem .9rem; display: flex; flex-direction: column; gap: .6rem; }
.hb-msg { max-width: 88%; padding: .6rem .85rem; border-radius: 14px; font-size: .9rem; line-height: 1.55; }
.hb-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--hb-line); border-top-left-radius: 4px; color: var(--hb-ink); }
.hb-msg.me { align-self: flex-end; background: var(--hb-brand); color: #fff; border-top-right-radius: 4px; }
.hb-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.hb-chips button { border: 1px solid var(--hb-accent); background: #fff; color: var(--hb-brand); border-radius: 999px; padding: .45rem .8rem; font: 600 .84rem/1.2 var(--hb-font); cursor: pointer; text-align: left; }
.hb-chips button:hover { background: var(--hb-accent); color: #fff; }
.hb-in { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid var(--hb-line); background: #fff; }
.hb-in input { flex: 1; border: 1px solid var(--hb-line); border-radius: 999px; padding: .55rem .9rem; font: .9rem var(--hb-font); min-width: 0; }
.hb-in button { border: 0; background: var(--hb-accent); color: #fff; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: 1rem; flex: none; }
.hb-news { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.hb-news li { display: grid; gap: .15rem; padding-bottom: .6rem; border-bottom: 1px dashed var(--hb-line); }
.hb-news li:last-child { border-bottom: 0; padding-bottom: 0; }
.hb-news time { font-size: .74rem; color: var(--hb-accent); font-weight: 700; }
.hb-news span { font-size: .84rem; color: var(--hb-muted); }
.hb-news a { font-size: .8rem; font-weight: 700; color: var(--hb-brand); }
.hb-mform { display: grid; gap: .55rem; margin-top: .6rem; }
.hb-mform label { display: grid; gap: .2rem; font-size: .78rem; font-weight: 700; color: var(--hb-muted); }
.hb-mform input { border: 1px solid var(--hb-line); border-radius: 10px; padding: .55rem .7rem; font: .92rem var(--hb-font); background: #fff; color: var(--hb-ink); }
.hb-mform button { border: 0; border-radius: 10px; padding: .6rem; background: var(--hb-brand); color: #fff; font: 700 .9rem var(--hb-font); cursor: pointer; }
.hb-mform button:disabled { opacity: .5; }
.hb-mform small { font-size: .72rem; color: var(--hb-muted); }
.hb-card { display: grid; gap: .5rem; }
.hb-card + .hb-card { margin-top: .8rem; padding-top: .8rem; border-top: 2px solid var(--hb-accent-soft); }
.hb-card-h { display: grid; gap: .1rem; }
.hb-card-h span { font-size: .8rem; color: var(--hb-muted); }
.hb-card-h em { font-style: normal; font-size: .74rem; font-weight: 700; color: var(--hb-accent); }
.hb-card table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.hb-card th, .hb-card td { padding: .3rem .4rem; border-bottom: 1px solid var(--hb-line); text-align: left; }
.hb-card td:last-child, .hb-card th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hb-card thead th { font-size: .74rem; color: var(--hb-muted); }
.hb-card tfoot th { color: var(--hb-brand); }
.hb-res { padding: .4rem .6rem; border-radius: 8px; font-size: .85rem; }
.hb-res.good { background: #e6f4ea; color: #1e6b34; }
.hb-res.bad { background: #fdecea; color: #a12a1f; }
.hb-dots { color: var(--hb-muted); font-style: italic; }
@media (max-width: 560px) {
  .hb { left: .7rem; bottom: .7rem; }
  .hb-launch-t { display: none; }
  .hb-launch { padding: .8rem; }
  .hb-panel { left: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
html[data-theme="dark"] .hb-panel { background: #1b1411; border-color: #3a2c25; }
html[data-theme="dark"] .hb-msg.bot, html[data-theme="dark"] .hb-in, html[data-theme="dark"] .hb-chips button, html[data-theme="dark"] .hb-mform input, html[data-theme="dark"] .hb-in input { background: #211915; color: var(--hb-ink); border-color: #3a2c25; }
html[data-theme="dark"] .hb-chips button { color: #f3b67a; }
html[data-theme="dark"] .hb-news a, html[data-theme="dark"] .hb-card tfoot th { color: #f3b67a; }
html[data-theme="dark"] .hb-res.good { background: #1f3a27; color: #9fe0b0; }
html[data-theme="dark"] .hb-res.bad { background: #3d1c18; color: #f3a69b; }
@media print { .hb { display: none; } }
.hb-panel { padding: 0 !important; margin: 0 !important; }
.hb-card table, .hb-card thead, .hb-card tfoot, .hb-card tr, .hb-card th, .hb-card td { background: transparent !important; box-shadow: none !important; }
.hb-card thead th { color: var(--hb-muted) !important; font-weight: 600; }
.hb-card tfoot th { color: var(--hb-brand) !important; font-weight: 800; border-bottom: 0; }
.hb-card tbody td { color: var(--hb-ink); }
html[data-theme="dark"] .hb-card tfoot th { color: #f3b67a !important; }
html[data-theme="dark"] .hb { --hb-ink: #f1e6da; --hb-muted: #bba89a; }
