/* Chat is isolated from the site's generic section, form and button rules. */
.rzg-site-chat { position: fixed; right: 20px; bottom: 20px; z-index: 1001; font-family: var(--font-b, inherit); font-size: 14px; line-height: 1.5; color: var(--ink, #1a2332); }
.rzg-site-chat *, .rzg-site-chat__open { box-sizing: border-box; }
.rzg-site-chat [hidden] { display: none; }
.rzg-site-chat__open { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--accent, #95c11f); color: var(--ink, #1a2332); cursor: pointer; }
.rzg-site-chat svg, .rzg-site-chat__open svg { width: 22px; height: 22px; flex: none; }
.rzg-site-chat button:focus-visible, .rzg-site-chat textarea:focus-visible, .rzg-site-chat__open:focus-visible { outline: 2px solid var(--rz-primary, #5880c0); outline-offset: 3px; }
.rzg-site-chat__panel { display: flex; flex-direction: column; width: min(400px, calc(100vw - 32px)); height: min(560px, calc(var(--chat-viewport-height, 100dvh) - 32px)); min-height: 0; margin: 0; padding: 0; background: var(--rz-surface, #fff); border: 1px solid var(--line, #e4e8e1); border-radius: 16px; box-shadow: 0 12px 32px #18253924; overflow: hidden; }
.rzg-site-chat__head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line, #e4e8e1); }
.rzg-site-chat__head strong { display: block; font-size: 16px; }
.rzg-site-chat__head small { display: block; color: var(--ink-2, #4a5568); font-size: 12px; }
.rzg-site-chat__close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.rzg-site-chat__messages { flex: 1 1 0; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rzg-site-chat__message { flex: none; max-width: 88%; padding: 10px 12px; border-radius: 12px; background: var(--rz-surface-alt, #f4f1e7); overflow-wrap: anywhere; }
.rzg-site-chat__message.is-visitor { align-self: flex-end; background: var(--rz-primary-light, #e8eef7); }
.rzg-site-chat__message small { font-size: 11px; color: var(--ink-2, #4a5568); }
.rzg-site-chat__message p { margin: 4px 0 0; white-space: pre-wrap; font: inherit; }
.rzg-site-chat__empty { margin: auto 0; color: var(--ink-2, #4a5568); }
.rzg-site-chat__older { flex: none; border: 0; background: transparent; color: var(--rz-primary-dark, #3a5a8c); padding: 8px; font: inherit; cursor: pointer; }
.rzg-site-chat__status { flex: none; padding: 8px 16px; color: #a02435; font-size: 12px; }
.rzg-site-chat__status:empty { display: none; }
.rzg-site-chat__form { display: flex; flex: none; align-items: flex-end; gap: 8px; margin: 0; padding: 12px 16px; border-top: 1px solid var(--line, #e4e8e1); }
.rzg-site-chat__form textarea { flex: 1; min-width: 0; width: 100%; min-height: 48px; max-height: 100px; margin: 0; resize: none; padding: 10px 12px; border: 1px solid var(--line-2, #cdd8cc); border-radius: 10px; font: inherit; font-size: 16px; line-height: 1.4; background: #fff; color: inherit; }
.rzg-site-chat__form button { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: var(--accent, #95c11f); color: inherit; cursor: pointer; }
.rzg-site-chat button:disabled { opacity: .6; cursor: wait; }
.rzg-site-chat__privacy { flex: none; padding: 0 16px 12px; font-size: 11px; color: var(--ink-2, #4a5568); }
.rzg-site-chat__privacy a { color: var(--rz-primary-dark, #3a5a8c); }
body.modal-open .rzg-site-chat, body.modal-open .m-bottom-cta { visibility: hidden; }
body.site-chat-open .m-bottom-cta, body.site-chat-open .cookie-banner { visibility: hidden; }
body.cookie-open .rzg-site-chat:not(.is-open) { bottom: calc(var(--chat-cookie-height, 180px) + 40px); }
@media (max-width: 767px) {
  .rzg-site-chat { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .rzg-site-chat.is-open { top: calc(var(--chat-viewport-top, 0px) + 8px); bottom: auto; left: 8px; right: 8px; }
  .rzg-site-chat__panel { width: 100%; height: calc(var(--chat-viewport-height, 100dvh) - 16px); }
  .m-bottom-cta.has-site-chat { gap: 8px; padding-right: 8px; }
  .m-bottom-cta.has-site-chat > div:first-child { flex: 1; min-width: 0; }
  .m-bottom-cta.has-site-chat .num { white-space: normal; }
  .m-bottom-cta.has-site-chat .btn { padding-left: 12px; padding-right: 12px; }
  body.site-chat-open { overflow: hidden; }
}

.rzg-site-chat__open.has-unread{position:relative}
.rzg-site-chat__open.has-unread::after{content:"";position:absolute;top:4px;right:4px;width:10px;height:10px;border-radius:50%;background:#d22d42;border:2px solid #fff}
