/* Chatdesk visitor widget: minimal, neutral, themeable. Everything is scoped to #cdk-root. */
#cdk-root{all:initial;position:fixed;bottom:20px;right:20px;z-index:2147483000;--cdk-c:#1972f5;--cdk-logo:#1972f5;--cdk-on:#fff;--cdk-ring:rgba(25,114,245,.14);--cdk-fab:56px;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Roboto,Helvetica,Arial,sans-serif;color:#111827;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
#cdk-root.cdk-left{right:auto;left:20px}
#cdk-root *{box-sizing:border-box;font-family:inherit;letter-spacing:normal;text-transform:none}
#cdk-root button{appearance:none;-webkit-appearance:none;border:0;background:none;margin:0;padding:0;cursor:pointer;color:inherit;font-size:inherit;line-height:inherit;text-shadow:none}
#cdk-root svg{display:block}
#cdk-root :focus-visible{outline:2px solid var(--cdk-c);outline-offset:2px}

/* ---------- launcher ---------- */
#cdk-root .cdk-fab{position:relative;display:flex;align-items:center;justify-content:center;width:var(--cdk-fab);height:var(--cdk-fab);margin-left:auto;border-radius:50%;background:var(--cdk-logo,#1972f5);color:var(--cdk-logo-on,#fff);box-shadow:0 10px 30px -8px rgba(17,24,39,.45),0 2px 8px rgba(17,24,39,.12);transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s}
#cdk-root.cdk-left .cdk-fab{margin-left:0;margin-right:auto}
#cdk-root .cdk-fab:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 14px 34px -8px rgba(17,24,39,.5),0 2px 10px rgba(17,24,39,.14)}
#cdk-root .cdk-fab:active{transform:scale(.96)}
#cdk-root .cdk-fab svg{width:calc(var(--cdk-fab) * .44);height:calc(var(--cdk-fab) * .44);fill:currentColor}
#cdk-root .cdk-fab .cdk-ic-down{display:none}
#cdk-root.cdk-open .cdk-fab .cdk-ic-chat{display:none}
#cdk-root.cdk-open .cdk-fab .cdk-ic-down{display:block}
#cdk-root .cdk-badge{position:absolute;top:-3px;right:-3px;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#ef4444;color:#fff;font-size:12px;font-weight:600;line-height:20px;text-align:center;display:none;box-shadow:0 0 0 2px #fff}
#cdk-root .cdk-badge.cdk-on{display:block}

/* ---------- panel ---------- */
#cdk-root .cdk-panel{position:absolute;bottom:calc(var(--cdk-fab) + 14px);right:0;width:380px;height:min(640px,calc(100vh - var(--cdk-fab) - 60px));display:flex;flex-direction:column;background:#fff;border-radius:20px;overflow:hidden;border:1px solid rgba(17,24,39,.06);box-shadow:0 32px 72px -16px rgba(17,24,39,.32),0 10px 24px -10px rgba(17,24,39,.16);opacity:0;transform:translateY(12px) scale(.98);transform-origin:bottom right;visibility:hidden;pointer-events:none;transition:opacity .2s ease,transform .22s cubic-bezier(.2,.8,.2,1),visibility 0s linear .22s}
#cdk-root.cdk-left .cdk-panel{right:auto;left:0;transform-origin:bottom left}
#cdk-root.cdk-open .cdk-panel{opacity:1;transform:none;visibility:visible;pointer-events:auto;transition:opacity .2s ease,transform .22s cubic-bezier(.2,.8,.2,1)}
#cdk-root.cdk-nofab .cdk-panel{bottom:0}
/* a movable window is positioned against the viewport instead of the launcher */
#cdk-root .cdk-panel.cdk-fixed{position:fixed;right:auto;bottom:auto}
#cdk-root .cdk-panel.cdk-moving{transition:none}
#cdk-root .cdk-panel.cdk-moving .cdk-body,#cdk-root .cdk-panel.cdk-moving .cdk-quick,#cdk-root .cdk-panel.cdk-moving .cdk-foot{pointer-events:none}
#cdk-root .cdk-grip{position:absolute;z-index:6;display:none;touch-action:none}
#cdk-root .cdk-panel.cdk-fixed .cdk-grip{display:block}
#cdk-root .cdk-grip-n{top:0;left:14px;right:14px;height:6px;cursor:ns-resize}
#cdk-root .cdk-grip-s{bottom:0;left:14px;right:14px;height:6px;cursor:ns-resize}
#cdk-root .cdk-grip-w{left:0;top:14px;bottom:14px;width:6px;cursor:ew-resize}
#cdk-root .cdk-grip-e{right:0;top:14px;bottom:14px;width:6px;cursor:ew-resize}
#cdk-root .cdk-grip-nw{top:0;left:0;width:14px;height:14px;cursor:nwse-resize}
#cdk-root .cdk-grip-ne{top:0;right:0;width:14px;height:14px;cursor:nesw-resize}
#cdk-root .cdk-grip-sw{bottom:0;left:0;width:14px;height:14px;cursor:nesw-resize}
#cdk-root .cdk-grip-se{bottom:0;right:0;width:14px;height:14px;cursor:nwse-resize}
#cdk-root .cdk-head{cursor:move}

/* ---------- header (light by default) ---------- */
#cdk-root .cdk-head{display:flex;align-items:center;gap:12px;padding:16px 12px 14px 18px;background:#fff;color:#111827;border-bottom:1px solid #f1f1f4;flex:none}
#cdk-root .cdk-logo{width:40px;height:40px;flex:none;border-radius:50%;background:var(--cdk-logo,#1972f5);color:var(--cdk-logo-on,#fff);display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 2px 8px rgba(25,114,245,.28)}
#cdk-root .cdk-head button{cursor:pointer}
#cdk-root .cdk-logo svg{width:20px;height:20px;fill:currentColor}
#cdk-root .cdk-logo img{width:100%;height:100%;object-fit:cover;display:block}
#cdk-root .cdk-ht{flex:1;min-width:0}
#cdk-root .cdk-brand{font-size:15px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#cdk-root .cdk-status{display:flex;align-items:center;gap:6px;margin-top:1px;font-size:12.5px;color:#6b7280}
#cdk-root .cdk-status-x{display:flex;align-items:center;justify-content:center;flex:none;width:18px;height:18px;margin-left:2px;border-radius:50%;color:#9ca3af;opacity:.45;transition:opacity .15s,background .15s,color .15s}
#cdk-root .cdk-status-x:hover{opacity:1;background:#f3f4f6;color:#111827}
#cdk-root .cdk-status-x svg{width:10px;height:10px;fill:currentColor}
#cdk-root.cdk-hdr-accent .cdk-status-x{color:inherit;opacity:.7}
#cdk-root.cdk-hdr-accent .cdk-status-x:hover{background:rgba(127,127,127,.28);color:inherit}
#cdk-root .cdk-dot{width:7px;height:7px;flex:none;border-radius:50%;background:#d1d5db}
#cdk-root.cdk-online .cdk-dot{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.2)}
#cdk-root .cdk-hbtn{display:flex;align-items:center;justify-content:center;height:32px;border-radius:16px;color:#6b7280;background:transparent;transition:background .15s,color .15s}
#cdk-root .cdk-hbtn:hover{background:#f3f4f6;color:#111827}
#cdk-root .cdk-lang{padding:0 11px;font-size:12px;font-weight:600}
#cdk-root .cdk-x{width:32px}
#cdk-root .cdk-x svg{width:15px;height:15px;fill:currentColor}

/* header filled with the theme color */
#cdk-root.cdk-hdr-accent .cdk-head{background:var(--cdk-c);color:var(--cdk-on);border-bottom:0}
#cdk-root.cdk-hdr-accent .cdk-status{color:inherit;opacity:.85}
#cdk-root.cdk-hdr-accent .cdk-logo{background:var(--cdk-logo,#1972f5);color:var(--cdk-logo-on,#fff)}
#cdk-root.cdk-hdr-accent .cdk-hbtn{color:inherit;background:rgba(127,127,127,.22)}
#cdk-root.cdk-hdr-accent .cdk-hbtn:hover{background:rgba(127,127,127,.36);color:inherit}

/* ---------- conversation ---------- */
#cdk-root .cdk-body{flex:1;overflow-y:auto;padding:18px 16px 8px;background:#fff;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d4d4d8 transparent}
#cdk-root .cdk-body::-webkit-scrollbar{width:6px}
#cdk-root .cdk-body::-webkit-scrollbar-thumb{background:#d4d4d8;border-radius:3px}
#cdk-root .cdk-row{display:flex;align-items:flex-end;gap:8px;margin:3px 0}
#cdk-root .cdk-row.cdk-visitor{justify-content:flex-end}
#cdk-root .cdk-av{width:28px;height:28px;flex:none;border-radius:50%;background:#f4f4f5;color:#52525b;font-size:12px;font-weight:600;line-height:28px;text-align:center;overflow:hidden}
#cdk-root .cdk-av.cdk-av-sp{background:none}
#cdk-root .cdk-av img{width:100%;height:100%;object-fit:cover;display:block}
#cdk-root .cdk-bub{max-width:80%;padding:10px 14px;border-radius:18px;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
#cdk-root .cdk-agent .cdk-bub{background:#f4f4f5;color:#111827;border-bottom-left-radius:6px}
#cdk-root .cdk-visitor .cdk-bub{background:var(--cdk-c);color:var(--cdk-on);border-bottom-right-radius:6px}
#cdk-root .cdk-bub a{color:inherit;text-decoration:underline;text-underline-offset:2px}
#cdk-root .cdk-meta{margin:16px 4px 4px;font-size:11.5px;color:#9ca3af}
#cdk-root .cdk-meta-agent{margin-left:38px}
#cdk-root .cdk-meta-visitor{text-align:right}
#cdk-root .cdk-pending .cdk-bub{opacity:.55}
#cdk-root .cdk-fail{cursor:pointer}
#cdk-root .cdk-fail .cdk-bub{background:#fef2f2;color:#991b1b}
#cdk-root .cdk-err{margin-top:4px;font-size:12px;white-space:normal}
#cdk-root .cdk-sys{margin:12px 6px;padding:8px 12px;border-radius:12px;background:#fef2f2;color:#b42318;font-size:12.5px;text-align:center}

/* Crisp-style welcome header and away notice */
#cdk-root .cdk-hero{display:flex;flex-direction:column;align-items:center;text-align:center;padding:4px 0 16px;margin-bottom:10px;border-bottom:1px solid #f1f1f4}
#cdk-root .cdk-avs{display:flex;align-items:center;margin-bottom:10px}
#cdk-root .cdk-avs .cdk-av{width:38px;height:38px;line-height:34px;font-size:15px;border:2px solid #fff;box-shadow:0 2px 8px rgba(16,24,40,.14)}
#cdk-root .cdk-avs .cdk-av+.cdk-av{margin-left:-12px}
#cdk-root .cdk-avs .cdk-av-plus{display:flex;align-items:center;justify-content:center;background:var(--cdk-logo,#1972f5);color:var(--cdk-logo-on,#fff)}
#cdk-root .cdk-avs .cdk-av-plus svg{width:18px;height:18px;fill:currentColor}
#cdk-root .cdk-hero-t{font-size:16px;font-weight:700;color:#111827}
#cdk-root .cdk-hero-s{margin-top:2px;font-size:12.5px;color:#6b7280}
#cdk-root .cdk-hours-note{margin:14px 4px 6px;padding:10px 12px;border:1px solid #fed7aa;border-radius:12px;background:#fff7ed;color:#9a3412;font-size:12.5px;line-height:1.55}
/* pinned away notice: sits under the header, never scrolls with the messages */
#cdk-root .cdk-hours-top{display:flex;align-items:flex-start;gap:8px;flex:none;padding:9px 12px;border-bottom:1px solid #f5e3b3;background:#fff7ed;color:#9a3412;font-size:12.5px;line-height:1.5}
#cdk-root .cdk-hours-top[hidden]{display:none}
#cdk-root .cdk-hn-t{flex:1;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
#cdk-root .cdk-hn-x{display:flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;margin-top:-2px;border-radius:50%;color:#c2410c;opacity:.7;transition:opacity .15s,background .15s}
#cdk-root .cdk-hn-x:hover{opacity:1;background:rgba(194,65,12,.12)}
#cdk-root .cdk-hn-x svg{width:11px;height:11px;fill:currentColor}

/* suggested questions above the composer */
#cdk-root .cdk-quick{flex:none;padding:9px 14px 6px;background:#fff;border-top:1px solid #f1f1f4}
#cdk-root .cdk-quick[hidden]{display:none}
#cdk-root .cdk-quick-t{margin-bottom:6px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#9ca3af}
#cdk-root .cdk-quick-row{display:flex;flex-wrap:wrap;gap:6px;max-height:86px;overflow-y:auto}
#cdk-root .cdk-q{padding:6px 12px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;color:#374151;font-size:12.5px;line-height:1.35;text-align:left;transition:border-color .15s,color .15s,background .15s}
#cdk-root .cdk-q:hover{border-color:var(--cdk-c);color:var(--cdk-c);background:#f5f9ff}

/* leave-your-email card */
#cdk-root .cdk-email-hint{display:block;width:100%;margin:14px 0 4px;padding:9px 12px;border:1px dashed #cfe2ff;border-radius:12px;background:#f5f9ff;color:#1d4ed8;font-size:12.5px;line-height:1.5;text-align:left;cursor:pointer}
#cdk-root .cdk-email-hint:hover{background:#eaf2ff;border-color:var(--cdk-c)}
#cdk-root .cdk-card{margin:18px 0 6px;padding:14px;border:1px solid #f1f1f4;border-radius:16px;background:#fafafa}
#cdk-root .cdk-card-t{margin-bottom:10px;font-size:13px;color:#52525b}
#cdk-root .cdk-card-r{display:flex;gap:8px}
#cdk-root .cdk-card input{flex:1;min-width:0;height:38px;margin:0;padding:0 14px;border:1px solid #e5e7eb;border-radius:19px;background:#fff;font-size:14px;color:#111827;box-shadow:none}
#cdk-root .cdk-card input:focus{outline:0;border-color:var(--cdk-c);box-shadow:0 0 0 4px var(--cdk-ring)}
#cdk-root .cdk-card button{height:38px;padding:0 18px;border-radius:19px;background:var(--cdk-c);color:var(--cdk-on);font-size:13px;font-weight:600}
#cdk-root .cdk-card button:disabled{opacity:.55;cursor:default}
#cdk-root .cdk-card-e{margin-top:6px;font-size:12px;color:#b42318}
#cdk-root .cdk-card-e:empty{display:none}

/* ---------- composer ---------- */
#cdk-root .cdk-foot{display:flex;align-items:flex-end;gap:8px;margin:0;padding:12px 14px 14px;background:#fff;border-top:1px solid #f1f1f4;flex:none}
#cdk-root .cdk-foot textarea{flex:1;min-width:0;min-height:42px;max-height:120px;margin:0;padding:10px 16px;resize:none;border:1px solid #e5e7eb;border-radius:21px;background:#fafafa;font-size:14px;line-height:20px;color:#111827;box-shadow:none;overflow-y:auto;transition:border-color .15s,box-shadow .15s,background .15s}
#cdk-root .cdk-foot textarea::placeholder{color:#9ca3af}
#cdk-root .cdk-foot textarea:focus{outline:0;border-color:var(--cdk-c);background:#fff;box-shadow:0 0 0 4px var(--cdk-ring)}
#cdk-root .cdk-send{width:42px;height:42px;flex:none;border-radius:50%;background:var(--cdk-c);color:var(--cdk-on);display:flex;align-items:center;justify-content:center;transition:transform .15s,opacity .15s}
#cdk-root .cdk-send:hover:not(:disabled){transform:scale(1.06)}
#cdk-root .cdk-send svg{width:19px;height:19px;fill:currentColor;margin-left:2px}
#cdk-root .cdk-send:disabled{background:#f4f4f5;color:#b4b4bb;cursor:default}
#cdk-root .cdk-attach{width:40px;height:42px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#6b7280;transition:background .15s,color .15s}
#cdk-root .cdk-attach:hover{background:#f4f4f5;color:#111827}
#cdk-root .cdk-attach svg{width:21px;height:21px;fill:currentColor}
#cdk-root .cdk-file{display:none}
#cdk-root .cdk-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}
#cdk-root .cdk-panel.cdk-drag{outline:3px dashed var(--cdk-c);outline-offset:-8px}

/* ---------- attachments ---------- */
#cdk-root .cdk-bub.cdk-media{padding:3px;background:transparent!important}
#cdk-root .cdk-att-img{display:block;line-height:0}
#cdk-root .cdk-att-img img{display:block;max-width:230px;max-height:240px;width:auto;height:auto;border-radius:16px;object-fit:cover}
#cdk-root .cdk-att-file{display:flex;align-items:center;gap:10px;min-width:150px;max-width:230px;text-decoration:none!important;color:inherit!important}
#cdk-root .cdk-att-ic{flex:none;width:36px;height:36px;border-radius:10px;background:rgba(127,127,127,.18);display:flex;align-items:center;justify-content:center}
#cdk-root .cdk-att-ic svg{width:20px;height:20px;fill:currentColor}
#cdk-root .cdk-att-tx{min-width:0;display:flex;flex-direction:column}
#cdk-root .cdk-att-n{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#cdk-root .cdk-att-s{font-size:12px;opacity:.75}
#cdk-root .cdk-cap{margin-top:6px}

/* ---------- greeting bubble ---------- */
#cdk-root .cdk-greet{position:absolute;bottom:calc(var(--cdk-fab) + 14px);right:0;display:none;max-width:260px;width:max-content;background:#fff;border-radius:18px;box-shadow:0 16px 40px -10px rgba(17,24,39,.3),0 0 0 1px rgba(17,24,39,.06);animation:cdk-pop .25s cubic-bezier(.2,.8,.2,1)}
#cdk-root.cdk-left .cdk-greet{right:auto;left:0}
#cdk-root .cdk-greet.cdk-show{display:block}
#cdk-root.cdk-open .cdk-greet{display:none}
#cdk-root .cdk-greet-t{display:block;padding:13px 38px 13px 16px;text-align:left;font-size:14px;line-height:1.45;color:#111827}
#cdk-root .cdk-greet-x{position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#9ca3af}
#cdk-root .cdk-greet-x:hover{background:#f3f4f6;color:#111827}
#cdk-root .cdk-greet-x svg{width:12px;height:12px;fill:currentColor}
@keyframes cdk-pop{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}

/* ---------- phones: full screen ---------- */
@media (max-width:480px){
	#cdk-root.cdk-open{top:0;left:0;right:0;bottom:0}
	#cdk-root .cdk-panel{position:fixed;inset:0;width:100%;height:100%;height:100dvh;border:0;border-radius:0;transform:translateY(16px)}
	#cdk-root .cdk-panel.cdk-fixed{inset:0!important;left:0!important;top:0!important;width:100%!important;height:100dvh!important;right:auto!important;bottom:auto!important}
	#cdk-root .cdk-grip{display:none!important}
	#cdk-root .cdk-head{cursor:default}
	#cdk-root.cdk-open .cdk-fab{display:none}
	#cdk-root .cdk-bub{max-width:84%}
	#cdk-root .cdk-head{padding-top:max(16px,env(safe-area-inset-top))}
	#cdk-root .cdk-foot{padding-bottom:max(14px,env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){
	#cdk-root .cdk-greet{animation:none}
	#cdk-root .cdk-panel,#cdk-root .cdk-fab,#cdk-root .cdk-hbtn,#cdk-root .cdk-send,#cdk-root .cdk-foot textarea{transition:none}
}
