/* HYP ERP answers chat (theme 5.9.18). Desktop: a panel at the bottom corner; phones: a sheet over the page. */
html:root .hfc {
  position: fixed; z-index: 1000; inset-block-end: 20px; inset-inline-end: 20px;
  display: flex; flex-direction: column; width: min(400px, calc(100vw - 40px)); height: min(600px, calc(100vh - 40px)); height: min(600px, calc(100dvh - 40px));
  background: var(--color-page, #fff); color: var(--color-text, #2A4553); border: 1px solid var(--color-line, #DCE3E7); border-radius: var(--radius-lg, 22px);
  box-shadow: var(--shadow-float, 0 30px 60px -24px rgba(13, 26, 33, .35)); overflow: hidden; font-size: 15px; line-height: 1.5;
  opacity: 0; transform: translateY(12px); transition: opacity .18s ease, transform .18s ease;
}
html:root .hfc.is-open { opacity: 1; transform: none; }
html:root .hfc[hidden] { display: none; }
html:root .hfc__head { display: flex; align-items: center; gap: .75rem; padding: 14px 12px 14px 16px; background: var(--color-night, #0E1A20); color: #fff; }
html:root .hfc__mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-action-on-night, #0B7799); color: #fff; flex: none; }
html:root .hfc__mark svg { width: 18px; height: 18px; }
html:root .hfc__titles { display: grid; min-width: 0; flex: 1; }
html:root .hfc__titles strong { font-size: 1rem; color: #fff; }
html:root .hfc__titles small { color: var(--color-on-night-muted, #B8C3CA); font-size: .8125rem; }
html:root .hfc__close, html:root .hfc__restart { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; flex: none; }
html:root .hfc__close:hover, html:root .hfc__restart:hover { background: rgba(255, 255, 255, .12); }
html:root .hfc__close:focus-visible, html:root .hfc__restart:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
html:root .hfc__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--color-mist, #F6F8F9); }
html:root .hfc__msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; word-wrap: break-word; }
html:root .hfc__msg p { margin: 0; }
html:root .hfc__msg a:not(.hfc__btn) { color: var(--color-action, #036383); text-decoration: underline; text-underline-offset: 2px; }
html:root .hfc__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--color-line, #DCE3E7); border-end-start-radius: 4px; color: var(--color-text, #2A4553); }
html:root .hfc__msg--you { align-self: flex-end; background: var(--color-action, #036383); color: #fff; border-end-end-radius: 4px; }
html:root .hfc__msg--support { border-inline-start: 3px solid var(--color-gold, #D9A43A); }
html:root .hfc__q { display: block; margin-bottom: 4px; font-size: .875rem; color: var(--color-ink, #15262E); }
html:root .hfc__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
html:root .hfc__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--color-action, #036383); border-radius: var(--radius-sm, 8px); color: var(--color-action, #036383); background: #fff; font-size: .875rem; font-weight: 600; text-decoration: none; line-height: 1.25; }
html:root .hfc__btn:hover { background: var(--color-action-tint, #F6F8F9); }
html:root .hfc__btn--main { background: var(--color-action, #036383); color: #fff; }
html:root .hfc__btn--main:hover { background: var(--color-action-strong, #034F6A); }
html:root .hfc__btn:focus-visible, html:root .hfc__chip:focus-visible { outline: 2px solid var(--color-action, #036383); outline-offset: 2px; }
html:root .hfc__chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: stretch; }
html:root .hfc__chips-title { flex-basis: 100%; font-size: .8125rem; color: var(--color-muted, #5C707C); }
html:root .hfc__chip { min-height: 40px; padding: 8px 12px; border: 1px solid var(--color-line-strong, #B8C3CA); border-radius: 20px; background: #fff; color: var(--color-ink, #15262E); font: inherit; font-size: .875rem; text-align: start; cursor: pointer; }
html:root .hfc__chip:hover { border-color: var(--color-action, #036383); color: var(--color-action, #036383); }
html:root .hfc__typing { display: inline-flex; gap: 4px; padding: 14px; }
html:root .hfc__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-line-strong, #B8C3CA); animation: hfc-dot 1s infinite ease-in-out; }
html:root .hfc__typing i:nth-child(2) { animation-delay: .15s; }
html:root .hfc__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hfc-dot { 0%, 80%, 100% { opacity: .35; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
html:root .hfc__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--color-line, #DCE3E7); background: #fff; }
html:root .hfc__form input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--color-field-border, #8796A0); border-radius: 22px; font: inherit; font-size: 16px; color: var(--color-ink, #15262E); background: #fff; }
html:root .hfc__form input:focus { outline: 2px solid var(--color-action, #036383); outline-offset: 0; border-color: var(--color-action, #036383); }
html:root .hfc__send { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--color-action, #036383); color: #fff; cursor: pointer; flex: none; }
html:root .hfc__send:hover { background: var(--color-action-strong, #034F6A); }
html:root .hfc__send:focus-visible { outline: 2px solid var(--color-action, #036383); outline-offset: 2px; }
html:root [dir="rtl"] .hfc__send svg { transform: scaleX(-1); }

@media (max-width: 720px) {
html:root .hfc { inset: auto 0 0 0; width: 100%; height: 88vh; height: 88dvh; border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
html.hfc-open .mobile-bar, html.hfc-open .chat-now, html.hfc-open .to-top { visibility: hidden; }
html.hfc-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { html:root .hfc { transition: none; } html:root .hfc__typing i { animation: none; } }

/* 5.9.19: one focus ring on the question field, steady colours on hover, the "New chat" button */
html:root .hfc .hfc__form input { box-shadow: none; caret-color: var(--color-action, #036383); }
html:root .hfc .hfc__form input:focus, html:root .hfc .hfc__form input:focus-visible { outline: none; border-color: var(--color-action, #036383); box-shadow: 0 0 0 3px rgba(3, 99, 131, .16); }
html:root .hfc a.hfc__btn, html:root .hfc a.hfc__btn:visited { color: var(--color-action, #036383); background: #fff; text-decoration: none; }
html:root .hfc a.hfc__btn:hover, html:root .hfc a.hfc__btn:focus-visible { color: var(--color-action-strong, #034F6A); background: var(--color-action-tint, #F6F8F9); border-color: var(--color-action-strong, #034F6A); box-shadow: none; }
html:root .hfc a.hfc__btn--main, html:root .hfc a.hfc__btn--main:visited { color: #fff; background: var(--color-action, #036383); border-color: var(--color-action, #036383); }
html:root .hfc a.hfc__btn--main:hover, html:root .hfc a.hfc__btn--main:focus-visible { color: #fff; background: var(--color-action-strong, #034F6A); border-color: var(--color-action-strong, #034F6A); }
html:root .hfc a.hfc__btn:focus-visible { outline: 2px solid var(--color-action, #036383); outline-offset: 2px; }
html:root .hfc .hfc__msg a:not(.hfc__btn):hover { color: var(--color-action-strong, #034F6A); }
html:root .hfc button { font-family: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; }
html:root .hfc .hfc__chip:hover { background: #fff; }
html:root .hfc .hfc__send:hover, html:root .hfc .hfc__send:focus { color: #fff; }
html:root .hfc .hfc__restart { width: auto; height: 34px; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 17px; color: #fff; background: transparent; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
html:root .hfc .hfc__restart:hover, html:root .hfc .hfc__restart:focus-visible { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); color: #fff; }
html:root .hfc .hfc__close:hover, html:root .hfc .hfc__close:focus { color: #fff; }
