/* Sits above the Complianz "Manage consent" tab in the bottom-right corner. */
/* Rare Tilt Chat — brand: Rare Black #0B0B0E, Brand Blue #7F93FE, Blue Deep #4E5FE0, Paper #F5F5F3, Graphite #5E5E66. Square corners. */
#rtchat-root{--k:#0B0B0E;--b:#7F93FE;--d:#4E5FE0;--p:#F5F5F3;--g:#5E5E66;position:fixed;right:20px;bottom:20px;right:max(20px,env(safe-area-inset-right));bottom:calc(72px + env(safe-area-inset-bottom,0px));z-index:99990;font-family:Poppins,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.5;color:var(--k);-webkit-font-smoothing:antialiased}
#rtchat-root *,#rtchat-root *::before,#rtchat-root *::after{box-sizing:border-box}
#rtchat-root [hidden]{display:none!important}
#rtchat-root button,#rtchat-root input,#rtchat-root textarea{font:inherit;letter-spacing:normal;text-transform:none;margin:0;box-shadow:none}
#rtchat-root .rtchat-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#rtchat-root .rtchat-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}

/* Launcher */
#rtchat-root .rtchat-launch{position:relative;display:flex;align-items:center;gap:10px;height:56px;min-width:56px;padding:0 20px 0 18px;border:1px solid rgba(255,255,255,.14);border-radius:0;background:var(--k);color:#fff;cursor:pointer;box-shadow:0 14px 34px rgba(11,11,14,.28);transition:background .2s,transform .2s}
#rtchat-root .rtchat-launch:hover{background:#1a1a21;transform:translateY(-2px)}
#rtchat-root .rtchat-launch:focus-visible{outline:2px solid var(--b);outline-offset:3px}
#rtchat-root .rtchat-launch svg{width:22px;height:22px;color:var(--b);flex:none}
#rtchat-root .rtchat-launch-label{font-size:14px;font-weight:500}
#rtchat-root.is-online .rtchat-launch::after{content:"";position:absolute;top:9px;left:34px;width:8px;height:8px;background:#3ddc97;border:2px solid var(--k)}
#rtchat-root.is-open .rtchat-launch-label{display:none}
#rtchat-root.is-open .rtchat-launch{padding:0;width:56px;justify-content:center}
#rtchat-root .rtchat-badge{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;padding:0 5px;background:var(--b);color:var(--k);font-size:11px;font-weight:600;line-height:20px;text-align:center}

/* Panel */
#rtchat-root .rtchat-panel{position:absolute;right:0;bottom:70px;width:380px;height:min(600px,calc(100vh - 170px));height:min(600px,calc(100dvh - 170px));display:flex;flex-direction:column;background:#fff;border:1px solid rgba(11,11,14,.1);box-shadow:0 24px 60px rgba(11,11,14,.22);overflow:hidden;animation:rtchatIn .22s ease-out}
@keyframes rtchatIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
#rtchat-root .rtchat-head{position:relative;display:flex;align-items:center;gap:12px;padding:18px 16px 18px 20px;background:var(--k);color:#fff;overflow:hidden;flex:none}
#rtchat-root .rtchat-head::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:28px 28px;pointer-events:none}
#rtchat-root .rtchat-head::after{content:"";position:absolute;right:-60px;top:-90px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(127,147,254,.45),transparent 70%);pointer-events:none}
#rtchat-root .rtchat-head-text{position:relative;z-index:1;flex:1;min-width:0}
#rtchat-root .rtchat-title{margin:0;font-size:16px;font-weight:500;color:#fff;display:flex;align-items:center;gap:9px}
#rtchat-root .rtchat-title::before{content:"";width:9px;height:9px;background:var(--b);transform:rotate(15deg);flex:none}
#rtchat-root .rtchat-status{margin:2px 0 0;font-size:12px;color:rgba(255,255,255,.68)}
#rtchat-root.is-online .rtchat-status::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;background:#3ddc97;vertical-align:1px}
#rtchat-root .rtchat-close{position:relative;z-index:1;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:0;background:transparent;color:#fff;cursor:pointer}
#rtchat-root .rtchat-close:hover{background:rgba(255,255,255,.08)}
#rtchat-root .rtchat-close:focus-visible{outline:2px solid var(--b);outline-offset:2px}
#rtchat-root .rtchat-close svg{width:18px;height:18px}

#rtchat-root .rtchat-log{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:18px 16px 8px;background:var(--p);display:flex;flex-direction:column;gap:12px}
#rtchat-root .rtchat-log:focus-visible{outline:2px solid var(--d);outline-offset:-2px}
#rtchat-root .rtchat-msg{display:flex;flex-direction:column;max-width:86%}
#rtchat-root .rtchat-who{font-size:11px;color:var(--g);margin:0 0 4px;letter-spacing:.02em}
#rtchat-root .rtchat-bubble{padding:10px 13px;background:#fff;border:1px solid rgba(11,11,14,.08);color:var(--k);word-wrap:break-word;overflow-wrap:anywhere}
#rtchat-root .rtchat-me{align-self:flex-end}
#rtchat-root .rtchat-me .rtchat-bubble{background:var(--k);border-color:var(--k);color:#fff}
#rtchat-root .rtchat-me.is-pending{opacity:.6}
#rtchat-root .rtchat-team .rtchat-bubble{border-left:3px solid var(--b)}
#rtchat-root .rtchat-note{align-self:center;max-width:94%}
#rtchat-root .rtchat-note .rtchat-bubble{background:transparent;border:0;padding:2px 4px;font-size:12px;color:var(--g);text-align:center}
#rtchat-root .rtchat-link{align-self:flex-start;margin-top:6px;font-size:13px;font-weight:500;color:var(--d);text-decoration:none}
#rtchat-root .rtchat-link:hover{text-decoration:underline}

#rtchat-root .rtchat-actions{display:flex;flex-wrap:wrap;gap:8px}
#rtchat-root .rtchat-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border:1px solid var(--k);border-radius:0;background:var(--k);color:#fff;font-size:13px;font-weight:500;text-decoration:none;cursor:pointer}
#rtchat-root .rtchat-btn:hover{background:var(--d);border-color:var(--d);color:#fff}
#rtchat-root .rtchat-btn-ghost{background:#fff;color:var(--k)}
#rtchat-root .rtchat-btn-ghost:hover{background:var(--k);color:#fff}
#rtchat-root .rtchat-btn:focus-visible,#rtchat-root .rtchat-chip:focus-visible{outline:2px solid var(--d);outline-offset:2px}
#rtchat-root .rtchat-btn[disabled]{opacity:.6;cursor:default}

#rtchat-root .rtchat-chips{display:flex;flex-wrap:wrap;gap:6px;padding:10px 16px;background:var(--p);border-top:1px solid rgba(11,11,14,.06);flex:none}
#rtchat-root .rtchat-chip{padding:6px 10px;border:1px solid rgba(11,11,14,.18);border-radius:0;background:#fff;color:var(--k);font-size:12.5px;line-height:1.35;text-align:left;cursor:pointer}
#rtchat-root .rtchat-chip:hover{border-color:var(--d);color:var(--d)}

#rtchat-root .rtchat-details{display:grid;gap:10px;padding:14px;background:#fff;border:1px solid rgba(11,11,14,.1)}
#rtchat-root .rtchat-details label{display:grid;gap:4px;font-size:12px;color:var(--g)}
#rtchat-root .rtchat-details input[type=text],#rtchat-root .rtchat-details input[type=email]{width:100%;height:40px;padding:8px 10px;border:1px solid rgba(11,11,14,.2);border-radius:0;background:#fff;color:var(--k);font-size:16px}
#rtchat-root .rtchat-details input:focus{outline:2px solid var(--d);outline-offset:0;border-color:var(--d)}
#rtchat-root .rtchat-details .rtchat-consent{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.45}
#rtchat-root .rtchat-consent input{margin-top:2px;width:16px;height:16px;flex:none;accent-color:var(--d)}
#rtchat-root .rtchat-details a,#rtchat-root .rtchat-foot a{color:var(--d)}
#rtchat-root .rtchat-err{margin:0;font-size:12px;color:#b3261e}

#rtchat-root .rtchat-compose{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;background:#fff;border-top:1px solid rgba(11,11,14,.08);flex:none}
#rtchat-root .rtchat-input{flex:1;min-width:0;height:44px;max-height:120px;padding:11px 12px;border:1px solid rgba(11,11,14,.18);border-radius:0;background:#fff;color:var(--k);font-size:16px;line-height:1.35;resize:none;overflow-y:auto}
#rtchat-root .rtchat-input:focus{outline:2px solid var(--d);outline-offset:0;border-color:var(--d)}
#rtchat-root .rtchat-send{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:0;background:var(--b);color:var(--k);font-size:18px;font-weight:600;cursor:pointer;flex:none}
#rtchat-root .rtchat-send:hover{background:var(--d);color:#fff}
#rtchat-root .rtchat-send:focus-visible{outline:2px solid var(--k);outline-offset:2px}
#rtchat-root .rtchat-foot{margin:0;padding:0 14px 10px;background:#fff;font-size:11px;line-height:1.45;color:var(--g);flex:none}


/* Header icons and menu */
#rtchat-root .rtchat-icon{position:relative;z-index:1;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:0;background:transparent;color:#fff;cursor:pointer;flex:none}
#rtchat-root .rtchat-icon:hover{background:rgba(255,255,255,.08)}
#rtchat-root .rtchat-icon:focus-visible{outline:2px solid var(--b);outline-offset:2px}
#rtchat-root .rtchat-icon svg{width:18px;height:18px}
#rtchat-root .rtchat-head{gap:8px}
#rtchat-root .rtchat-menu{position:absolute;z-index:3;top:58px;right:56px;min-width:190px;padding:6px 0;background:#fff;border:1px solid rgba(11,11,14,.12);box-shadow:0 14px 30px rgba(11,11,14,.18)}
#rtchat-root .rtchat-menu-item{display:block;width:100%;padding:9px 14px;border:0;border-radius:0;background:#fff;color:var(--k);font-size:13px;text-align:left;cursor:pointer}
#rtchat-root .rtchat-menu-item:hover,#rtchat-root .rtchat-menu-item:focus-visible{background:var(--p);outline:none;color:var(--d)}

/* Attach button in the composer (on light background) */
#rtchat-root .rtchat-attach{width:44px;height:44px;border:1px solid rgba(11,11,14,.18);color:var(--g);background:#fff}
#rtchat-root .rtchat-attach:hover{color:var(--d);border-color:var(--d);background:#fff}
#rtchat-root .rtchat-attach:focus-visible{outline:2px solid var(--d)}

/* Files */
#rtchat-root .rtchat-file-img{display:block;max-width:220px;border:1px solid rgba(11,11,14,.1);background:#fff}
#rtchat-root .rtchat-file-img img{display:block;width:100%;height:auto;max-height:220px;object-fit:cover}
#rtchat-root .rtchat-file{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;background:#fff;border:1px solid rgba(11,11,14,.12);color:var(--d);font-size:13px;font-weight:500;text-decoration:none;word-break:break-all}
#rtchat-root .rtchat-file::before{content:"PDF";font-size:10px;font-weight:600;letter-spacing:.06em;padding:2px 5px;background:var(--k);color:#fff}
#rtchat-root .rtchat-me .rtchat-file-img{align-self:flex-end}

/* Seen, typing, rating, mini forms */
#rtchat-root .rtchat-seen{align-self:flex-end;margin-top:3px;font-size:11px;color:var(--g)}
#rtchat-root .rtchat-typing .rtchat-bubble{display:inline-flex;gap:4px;align-items:center;padding:12px 14px}
#rtchat-root .rtchat-typing i{width:6px;height:6px;background:var(--g);display:block;animation:rtchatDot 1.2s infinite ease-in-out}
#rtchat-root .rtchat-typing i:nth-child(2){animation-delay:.15s}
#rtchat-root .rtchat-typing i:nth-child(3){animation-delay:.3s}
@keyframes rtchatDot{0%,80%,100%{opacity:.25;transform:none}40%{opacity:1;transform:translateY(-3px)}}
#rtchat-root .rtchat-rate{display:grid;gap:8px;padding:12px 14px;background:#fff;border:1px solid rgba(11,11,14,.1)}
#rtchat-root .rtchat-rate p{margin:0;font-size:13px}
#rtchat-root .rtchat-rate .rtchat-btn svg{width:16px;height:16px;margin-right:6px}
#rtchat-root .rtchat-details textarea{width:100%;padding:8px 10px;border:1px solid rgba(11,11,14,.2);border-radius:0;font-size:16px;resize:vertical}
#rtchat-root .rtchat-mini{margin:0;font-size:12px;color:var(--g)}

/* Teaser beside the button */
#rtchat-root .rtchat-teaser{position:absolute;right:0;bottom:70px;width:280px;display:flex;align-items:flex-start;background:#fff;border:1px solid rgba(11,11,14,.12);border-left:3px solid var(--b);box-shadow:0 16px 36px rgba(11,11,14,.18);animation:rtchatIn .25s ease-out}
#rtchat-root .rtchat-teaser-body{flex:1;display:grid;gap:4px;padding:12px 6px 12px 14px;border:0;border-radius:0;background:transparent;color:var(--k);font-size:13.5px;line-height:1.45;text-align:left;cursor:pointer}
#rtchat-root .rtchat-teaser-body:focus-visible{outline:2px solid var(--d);outline-offset:-2px}
#rtchat-root .rtchat-teaser-who{font-size:11px;color:var(--d);font-weight:600;letter-spacing:.04em}
#rtchat-root .rtchat-teaser-x{display:grid;place-items:center;width:32px;height:32px;margin:4px;padding:0;border:0;border-radius:0;background:transparent;color:var(--g);cursor:pointer;flex:none}
#rtchat-root .rtchat-teaser-x:hover{color:var(--k)}
#rtchat-root .rtchat-teaser-x svg{width:14px;height:14px}
#rtchat-root.is-open .rtchat-teaser{display:none}
@media (max-width:520px){#rtchat-root .rtchat-teaser{width:min(280px,calc(100vw - 32px))}#rtchat-root .rtchat-menu{right:52px}}
@media (prefers-reduced-motion:reduce){#rtchat-root .rtchat-typing i{animation:none;opacity:.6}#rtchat-root .rtchat-teaser{animation:none}}

@media (max-width:520px){
	#rtchat-root{right:16px;bottom:calc(68px + env(safe-area-inset-bottom,0px))}
	#rtchat-root .rtchat-launch-label{display:none}
	#rtchat-root .rtchat-launch{width:56px;padding:0;justify-content:center}
	#rtchat-root.is-online .rtchat-launch::after{left:auto;right:9px}
	#rtchat-root.is-open .rtchat-launch{display:none}
	#rtchat-root .rtchat-panel{position:fixed;inset:0;width:auto;height:100vh;height:100dvh;border:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
}
@media (prefers-reduced-motion:reduce){#rtchat-root .rtchat-panel{animation:none}#rtchat-root .rtchat-launch{transition:none}}
@media print{#rtchat-root{display:none}}
