/* RO ChatBot AI widget — Res Opera Solutions */
.roc-root{--roc-bg:#fff;--roc-fg:#1c2330;--roc-muted:#6b7280;--roc-line:#e5e7eb;--roc-bot:#f1f3f7;--roc-shadow:0 12px 40px rgba(16,24,40,.22);
	font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:15px;line-height:1.45;color:var(--roc-fg);position:fixed;z-index:2147483000;margin:0;padding:0}
.roc-root.roc-theme-dark{--roc-bg:#161b26;--roc-fg:#e8ecf4;--roc-muted:#98a2b3;--roc-line:#2b3345;--roc-bot:#232b3c;--roc-shadow:0 12px 40px rgba(0,0,0,.55)}
@media (prefers-color-scheme:dark){.roc-root.roc-theme-auto{--roc-bg:#161b26;--roc-fg:#e8ecf4;--roc-muted:#98a2b3;--roc-line:#2b3345;--roc-bot:#232b3c;--roc-shadow:0 12px 40px rgba(0,0,0,.55)}}
.roc-root *,.roc-root *::before,.roc-root *::after{box-sizing:border-box}
.roc-root button,.roc-root input,.roc-root textarea{font:inherit;color:inherit;margin:0}
.roc-root [hidden]{display:none!important}

/* positions (the root is a zero-size anchor; children are positioned from it) */
.roc-root{width:0;height:0}
.roc-pos-bottom-right{right:var(--roc-x);bottom:var(--roc-y)}
.roc-pos-bottom-left{left:var(--roc-x);bottom:var(--roc-y)}
.roc-pos-top-right{right:var(--roc-x);top:var(--roc-y)}
.roc-pos-top-left{left:var(--roc-x);top:var(--roc-y)}
.roc-pos-middle-right{right:var(--roc-x);top:50%}
.roc-pos-middle-left{left:var(--roc-x);top:50%}

.roc-launcher{position:absolute;display:flex;align-items:center;justify-content:center;gap:8px;min-width:var(--roc-size);height:var(--roc-size);border:0;cursor:pointer;
	background:var(--roc-primary);color:var(--roc-text);box-shadow:0 6px 20px rgba(16,24,40,.28);transition:transform .18s ease,box-shadow .18s ease;padding:0}
.roc-launcher:hover{transform:scale(1.07);box-shadow:0 8px 26px rgba(16,24,40,.34)}
.roc-launcher:focus-visible,.roc-hbtn:focus-visible,.roc-send:focus-visible,.roc-act:focus-visible,.roc-chip:focus-visible{outline:3px solid rgba(15,98,254,.45);outline-offset:2px}
.roc-shape-circle .roc-launcher{border-radius:50%}
.roc-shape-rounded .roc-launcher{border-radius:18px}
.roc-shape-square .roc-launcher{border-radius:4px}
.roc-launcher.roc-has-label{padding:0 18px;border-radius:999px}
.roc-launcher-icon{display:flex;align-items:center;justify-content:center;width:var(--roc-size);height:var(--roc-size);overflow:hidden;border-radius:inherit}
.roc-has-label .roc-launcher-icon{width:calc(var(--roc-size) * .55);height:calc(var(--roc-size) * .55)}
.roc-launcher-icon img{width:100%;height:100%;object-fit:cover;display:block}
.roc-launcher-label{font-weight:600;white-space:nowrap}
.roc-badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#e5484d;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}

/* anchor offsets so launcher/window sit inside the corner */
.roc-pos-bottom-right .roc-launcher,.roc-pos-top-right .roc-launcher,.roc-pos-middle-right .roc-launcher{right:0}
.roc-pos-bottom-left .roc-launcher,.roc-pos-top-left .roc-launcher,.roc-pos-middle-left .roc-launcher{left:0}
.roc-pos-bottom-right .roc-launcher,.roc-pos-bottom-left .roc-launcher{bottom:0}
.roc-pos-top-right .roc-launcher,.roc-pos-top-left .roc-launcher{top:0}
.roc-pos-middle-right .roc-launcher,.roc-pos-middle-left .roc-launcher{top:calc(var(--roc-size) / -2)}

.roc-window{position:absolute;width:min(var(--roc-w),calc(100vw - 24px));height:min(var(--roc-h),calc(100vh - var(--roc-size) - 48px));display:flex;flex-direction:column;
	background:var(--roc-bg);border-radius:var(--roc-radius);box-shadow:var(--roc-shadow);overflow:hidden;border:1px solid var(--roc-line);animation:roc-pop .2s ease}
.roc-pos-bottom-right .roc-window{right:0;bottom:calc(var(--roc-size) + 14px)}
.roc-pos-bottom-left .roc-window{left:0;bottom:calc(var(--roc-size) + 14px)}
.roc-pos-top-right .roc-window{right:0;top:calc(var(--roc-size) + 14px)}
.roc-pos-top-left .roc-window{left:0;top:calc(var(--roc-size) + 14px)}
.roc-pos-middle-right .roc-window{right:calc(var(--roc-size) + 14px);transform:translateY(-50%);top:0}
.roc-pos-middle-left .roc-window{left:calc(var(--roc-size) + 14px);transform:translateY(-50%);top:0}
@keyframes roc-pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
.roc-pos-middle-right .roc-window,.roc-pos-middle-left .roc-window{animation:none}

.roc-head{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 14px;background:var(--roc-primary);color:var(--roc-text)}
.roc-avatar{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;overflow:hidden;flex:none}
.roc-avatar img{width:100%;height:100%;object-fit:cover}
.roc-avatar svg{width:22px;height:22px}
.roc-head-text{flex:1;min-width:0}
.roc-title{font-weight:700;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roc-sub{font-size:12.5px;opacity:.9;display:flex;align-items:center;gap:6px}
.roc-sub::before{content:"";width:8px;height:8px;border-radius:50%;background:#3ddc84;flex:none}
.roc-live .roc-sub::before{background:#ffd23f;animation:roc-pulse 1.4s infinite}
@keyframes roc-pulse{50%{opacity:.3}}
.roc-head-actions{display:flex;gap:2px}
.roc-hbtn{background:transparent;border:0;color:inherit;width:34px;height:34px;border-radius:8px;cursor:pointer;font-size:19px;line-height:1;display:flex;align-items:center;justify-content:center}
.roc-hbtn:hover{background:rgba(255,255,255,.18)}
.roc-hbtn-human{font-size:16px}

.roc-msgs{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;scroll-behavior:smooth;overscroll-behavior:contain}
.roc-row{display:flex;flex-direction:column;max-width:86%;animation:roc-in .18s ease}
@keyframes roc-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.roc-bubble{padding:9px 13px;border-radius:16px;word-wrap:break-word;overflow-wrap:anywhere}
.roc-bubble a{color:inherit;text-decoration:underline}
.roc-bubble ul{margin:4px 0 4px 18px;padding:0}
.roc-bubble li{margin:2px 0}
.roc-bot,.roc-agent{align-self:flex-start}
.roc-bot .roc-bubble,.roc-agent .roc-bubble{background:var(--roc-bot);border-bottom-left-radius:4px}
.roc-agent .roc-bubble{background:#e9f7ee;color:#14532d;border:1px solid #bde5cb}
.roc-theme-dark .roc-agent .roc-bubble{background:#12372a;color:#c9f2da;border-color:#1f5d44}
.roc-who{font-size:11px;color:var(--roc-muted);margin:0 0 2px 6px;font-weight:600}
.roc-visitor{align-self:flex-end}
.roc-visitor .roc-bubble{background:var(--roc-primary);color:var(--roc-text);border-bottom-right-radius:4px}
.roc-system{align-self:center;max-width:94%}
.roc-system .roc-bubble{background:transparent;color:var(--roc-muted);font-size:12.5px;text-align:center;padding:4px 8px}
.roc-typing .roc-bubble{display:flex;gap:4px;padding:12px 14px}
.roc-typing i{width:7px;height:7px;border-radius:50%;background:var(--roc-muted);animation:roc-bounce 1.2s infinite}
.roc-typing i:nth-child(2){animation-delay:.15s}.roc-typing i:nth-child(3){animation-delay:.3s}
@keyframes roc-bounce{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}

.roc-actions{display:flex;flex-wrap:wrap;gap:8px;align-self:flex-start}
.roc-act{display:inline-block;border:1.5px solid var(--roc-primary);background:transparent;color:var(--roc-primary);border-radius:999px;padding:7px 14px;font-weight:600;font-size:14px;cursor:pointer;text-decoration:none;line-height:1.2}
.roc-act:hover{filter:brightness(.95)}
.roc-act-primary{background:var(--roc-primary);color:var(--roc-text)}
.roc-act:disabled{opacity:.6;cursor:default}
.roc-quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px}
.roc-chip{border:1px solid var(--roc-line);background:var(--roc-bg);color:var(--roc-fg);border-radius:999px;padding:6px 12px;font-size:13.5px;cursor:pointer;text-align:left}
.roc-chip:hover{border-color:var(--roc-primary);color:var(--roc-primary)}

.roc-panel{border-top:1px solid var(--roc-line);background:var(--roc-bg);padding:12px 14px;max-height:62%;overflow-y:auto}
.roc-pform{display:flex;flex-direction:column;gap:8px}
.roc-ptitle{font-weight:700}
.roc-pdesc{font-size:13px;color:var(--roc-muted)}
.roc-field{width:100%;border:1px solid var(--roc-line);border-radius:10px;padding:9px 11px;background:var(--roc-bg);color:var(--roc-fg);font-size:14.5px;resize:none}
.roc-field:focus,.roc-input:focus{outline:2px solid var(--roc-primary);outline-offset:0;border-color:transparent}
.roc-prow{display:flex;gap:8px}
.roc-err{color:#d92d20;font-size:13px}

.roc-wa{display:flex;align-items:center;justify-content:center;gap:6px;padding:7px;background:#25d366;color:#fff!important;text-decoration:none;font-weight:600;font-size:13.5px}
.roc-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--roc-line);background:var(--roc-bg)}
.roc-input{flex:1;border:1px solid var(--roc-line);border-radius:20px;padding:9px 14px;background:var(--roc-bg);color:var(--roc-fg);resize:none;max-height:110px;line-height:1.35;font-size:15px}
.roc-send{width:40px;height:40px;border-radius:50%;border:0;background:var(--roc-primary);color:var(--roc-text);cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none}
.roc-send:hover{filter:brightness(1.1)}
.roc-meta{display:flex;flex-direction:column;align-items:center;gap:2px;padding:0 12px 8px;font-size:11px;color:var(--roc-muted);text-align:center}
.roc-powered{color:var(--roc-muted);text-decoration:none}
.roc-powered:hover{text-decoration:underline}

.roc-teaser{position:absolute;max-width:240px;background:var(--roc-bg);color:var(--roc-fg);padding:10px 30px 10px 14px;border-radius:14px;box-shadow:var(--roc-shadow);border:1px solid var(--roc-line);cursor:pointer;animation:roc-pop .25s ease;font-size:14px}
.roc-teaser-x{position:absolute;top:2px;right:4px;border:0;background:transparent;font-size:18px;color:var(--roc-muted);cursor:pointer}
.roc-pos-bottom-right .roc-teaser,.roc-pos-top-right .roc-teaser{right:calc(var(--roc-size) + 12px)}
.roc-pos-bottom-left .roc-teaser,.roc-pos-top-left .roc-teaser{left:calc(var(--roc-size) + 12px)}
.roc-pos-middle-right .roc-teaser{right:calc(var(--roc-size) + 12px);top:-20px}
.roc-pos-middle-left .roc-teaser{left:calc(var(--roc-size) + 12px);top:-20px}
.roc-pos-bottom-right .roc-teaser,.roc-pos-bottom-left .roc-teaser{bottom:calc(var(--roc-size) / 2 - 20px)}
.roc-pos-top-right .roc-teaser,.roc-pos-top-left .roc-teaser{top:calc(var(--roc-size) / 2 - 20px)}

/* On phones the open chat covers the screen. */
@media (max-width:520px){
	.roc-root.roc-open{position:fixed;inset:0!important;width:auto;height:auto}
	.roc-open .roc-window{position:fixed;inset:0;width:100%;height:100%;max-height:none;border-radius:0;border:0;transform:none!important}
	.roc-open .roc-launcher,.roc-open .roc-teaser{display:none}
}
@media (prefers-reduced-motion:reduce){.roc-root *{animation:none!important;transition:none!important}}
