/* oBeynet 2.5.160 : an unobtrusive, accessible floating Ben assistant. */
.ob-ben-widget, .ob-ben-widget * { box-sizing: border-box; }
.ob-ben-widget { --ben-blue: #1957a5; --ben-blue-dark: #123d78; --ben-border: #e4eaf2; position: fixed; inset: auto 22px 22px auto; z-index: 2147482000; font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #152436; }
.ob-ben-widget button, .ob-ben-widget input { font: inherit; }
.ob-ben-widget [hidden] { display: none !important; }
.ob-ben-launcher { width: 60px; height: 60px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; color: #fff; background: linear-gradient(145deg,var(--ben-blue),var(--ben-blue-dark)); box-shadow: 0 7px 22px rgba(12,58,112,.24); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.ob-ben-launcher:hover { transform: translateY(-2px); box-shadow: 0 9px 25px rgba(12,58,112,.30); }
.ob-ben-launcher svg { width: 33px; height: 33px; }
.ob-ben-widget.is-open .ob-ben-launcher { display: none; }
.ob-ben-panel { position: absolute; bottom: 0; right: 0; display: flex; flex-direction: column; width: min(360px, calc(100vw - 24px)); height: min(495px, calc(100dvh - 95px)); max-height: 560px; overflow: hidden; background: #fff; border: 1px solid var(--ben-border); border-radius: 18px; box-shadow: 0 14px 50px rgba(12,34,65,.20); }
.ob-ben-header { flex: 0 0 auto; display: flex; align-items: center; gap: 11px; min-height: 68px; padding: 12px 14px; color: #fff; background: linear-gradient(112deg,var(--ben-blue),var(--ben-blue-dark)); }
.ob-ben-avatar { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.16); }
.ob-ben-avatar svg { width: 26px; height: 26px; }
.ob-ben-heading { display: flex; flex-direction: column; min-width: 0; }
.ob-ben-heading strong { font-size: 16px; font-weight: 750; }
.ob-ben-heading small { font-size: 12px; color: #e1e9f4; }
.ob-ben-close { margin-left: auto; display: grid; place-items: center; background: transparent; color: #fff; border: 0; border-radius: 9px; width: 36px; height: 36px; cursor: pointer; }
.ob-ben-close:hover { background: rgba(255,255,255,.14); }
.ob-ben-close svg { width: 21px; height: 21px; }
.ob-ben-messages { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 19px 15px; overflow-y: auto; overscroll-behavior: contain; background: #f8fafc; }
.ob-ben-message { max-width: 88%; padding: 10px 12px; border: 1px solid var(--ben-border); border-radius: 13px 13px 13px 3px; background: #fff; color: #183149; overflow-wrap: anywhere; white-space: pre-wrap; }
.ob-ben-message-user { align-self: flex-end; border-color: var(--ben-blue); border-radius: 13px 13px 3px 13px; background: var(--ben-blue); color: #fff; }
.ob-ben-action { display: table; margin-top: 8px; color: #1358a4; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.ob-ben-suggestions { flex: 0 0 auto; display: flex; gap: 7px; padding: 9px 12px 11px; overflow-x: auto; border-top: 1px solid var(--ben-border); scrollbar-width: thin; }
.ob-ben-chip { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #bfd2e7; border-radius: 999px; background: #f5f9fe; color: #174f8f; font-size: 12px !important; cursor: pointer; white-space: nowrap; }
.ob-ben-chip:hover { background: #e9f3fe; }
.ob-ben-form { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; padding: 9px 12px 12px; border-top: 1px solid var(--ben-border); background: #fff; }
.ob-ben-input { flex: 1 1 auto; width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #d6e1ed; border-radius: 11px; color: #173149; background: #fff; outline: 0; }
.ob-ben-input:focus { border-color: var(--ben-blue); box-shadow: 0 0 0 2px rgba(25,87,165,.1); }
.ob-ben-send { flex: 0 0 42px; display: grid; place-items: center; height: 42px; border: 0; border-radius: 11px; background: var(--ben-blue); color: #fff; cursor: pointer; }
.ob-ben-send:disabled { opacity: .55; cursor: wait; }
.ob-ben-send svg { width: 21px; height: 21px; }
.ob-ben-widget button:focus-visible, .ob-ben-widget a:focus-visible { outline: 3px solid #efb936; outline-offset: 2px; }
@media (max-width: 640px) { .ob-ben-widget { right: 14px; bottom: calc(18px + env(safe-area-inset-bottom,0px)); } .ob-ben-launcher { width: 56px; height: 56px; } .ob-ben-panel { width: min(360px, calc(100vw - 28px)); height: min(510px, calc(100dvh - 92px)); } }
@media (prefers-reduced-motion: reduce) { .ob-ben-launcher { transition: none; } }
@media print { .ob-ben-widget { display: none !important; } }

/* 2.5.168: keep the fallback Ben control visible in the viewport, including mobile. */
html body > #ob-ben-widget.ob-ben-widget { position: fixed !important; top: auto !important; left: auto !important; right: 18px !important; bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important; z-index: 2147482000 !important; }
@media(max-width: 640px) { html body > #ob-ben-widget.ob-ben-widget { right: 12px !important; bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important; } }
