#gdo-chat-root{--gdo:#b03a6f;position:fixed;bottom:20px;z-index:999999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Arial,sans-serif;font-size:15px;line-height:1.45;color:#1f2329}
#gdo-chat-root.gdo-pos-right-bottom{right:var(--gdo-x,20px);bottom:var(--gdo-y,20px)}
#gdo-chat-root.gdo-pos-left-bottom{left:var(--gdo-x,20px);bottom:var(--gdo-y,20px)}
#gdo-chat-root.gdo-pos-right-middle{right:var(--gdo-x,20px);top:50%;margin-top:-24px}
#gdo-chat-root.gdo-pos-left-middle{left:var(--gdo-x,20px);top:50%;margin-top:-24px}
#gdo-chat-root.gdo-pos-right-middle .gdo-panel,#gdo-chat-root.gdo-pos-left-middle .gdo-panel{position:fixed;top:50%;transform:translateY(-50%);bottom:auto}
#gdo-chat-root.gdo-pos-right-middle .gdo-panel{right:var(--gdo-x,20px)}
#gdo-chat-root.gdo-pos-left-middle .gdo-panel{left:var(--gdo-x,20px)}
#gdo-chat-root.gdo-pos-right-middle .gdo-panel,#gdo-chat-root.gdo-pos-left-middle .gdo-panel{max-height:calc(100vh - 40px)}
.gdo-nudge{position:absolute;bottom:100%;margin-bottom:12px;width:250px;max-width:70vw;background:#fff;color:#1f2329;border-radius:14px;padding:11px 14px;box-shadow:0 8px 24px rgba(0,0,0,.18);font-size:14px;cursor:pointer;text-align:left;border:0}
#gdo-chat-root[class*="-right-"] .gdo-nudge{right:0}
#gdo-chat-root[class*="-left-"] .gdo-nudge{left:0}
.gdo-nudge-x{position:absolute;top:-6px;right:-6px;width:20px;height:20px;border-radius:10px;border:0;background:#555;color:#fff;font-size:12px;line-height:20px;text-align:center;padding:0;cursor:pointer}
.gdo-is-open .gdo-nudge{display:none}
#gdo-chat-root *{box-sizing:border-box}
#gdo-chat-root [hidden]{display:none!important}
#gdo-chat-root svg{width:20px;height:20px;fill:currentColor;display:block}
#gdo-chat-root button{font:inherit;cursor:pointer}

.gdo-launcher{display:flex;align-items:center;gap:10px;background:var(--gdo);color:#fff;border:0;border-radius:40px;padding:6px 18px 6px 6px;box-shadow:0 8px 24px rgba(0,0,0,.2);position:relative;transition:transform .15s}
.gdo-launcher:hover{transform:translateY(-2px)}
.gdo-launcher img{width:46px;height:46px;border-radius:50%;background:#fff}
.gdo-launcher-label{font-weight:600}
.gdo-badge{position:absolute;top:-4px;right:-4px;background:#e53935;color:#fff;border-radius:10px;min-width:20px;height:20px;font-size:12px;display:flex;align-items:center;justify-content:center;padding:0 6px}

.gdo-panel{width:var(--gdo-w,380px);max-width:calc(100vw - 24px);height:var(--gdo-h,560px);max-height:calc(100vh - 40px);background:#fff;border-radius:16px;box-shadow:0 12px 48px rgba(0,0,0,.25);display:flex;flex-direction:column;overflow:hidden}
.gdo-head{display:flex;align-items:center;gap:10px;background:var(--gdo);color:#fff;padding:12px 12px 12px 14px}
.gdo-avatar{width:42px;height:42px;border-radius:50%;background:#fff;border:2px solid rgba(255,255,255,.6)}
.gdo-head-text{flex:1;display:flex;flex-direction:column;min-width:0}
.gdo-head-text strong{font-size:16px}
.gdo-head-text span{font-size:12px;opacity:.85}
.gdo-icon-btn{background:transparent;border:0;color:inherit;padding:8px;border-radius:50%}
.gdo-head .gdo-icon-btn:hover{background:rgba(255,255,255,.18)}
.gdo-bookbar{display:flex;align-items:center;justify-content:center;gap:8px;background:#fff6fa;color:var(--gdo)!important;font-weight:600;padding:8px;text-decoration:none!important;border-bottom:1px solid #f1e3ea;font-size:14px}
.gdo-bookbar svg{width:16px;height:16px}

.gdo-body{flex:1;overflow-y:auto;padding:14px;background:#faf8f9;display:flex;flex-direction:column;gap:8px}
.gdo-row{display:flex}
.gdo-me{justify-content:flex-end}
.gdo-bubble{max-width:82%;padding:9px 13px;border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.06);position:relative;white-space:pre-wrap;word-wrap:break-word}
.gdo-bot .gdo-bubble{border-bottom-left-radius:4px;padding-right:32px}
.gdo-team .gdo-bubble{border-bottom-left-radius:4px;background:#eef7ee;padding-right:32px}
.gdo-me .gdo-bubble{background:var(--gdo);color:#fff;border-bottom-right-radius:4px}
.gdo-bubble a{color:inherit;text-decoration:underline}
.gdo-tag{display:block;font-size:11px;font-weight:700;color:#2e7d32;text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}
.gdo-say{position:absolute;right:6px;bottom:6px;background:transparent;border:0;color:#999;padding:2px}
.gdo-say:hover{color:var(--gdo)}
.gdo-say svg{width:16px!important;height:16px!important}
.gdo-cta{display:inline-flex;align-items:center;gap:8px;background:var(--gdo);color:#fff!important;padding:9px 16px;border-radius:20px;text-decoration:none!important;font-weight:600;font-size:14px}
.gdo-cta svg{width:16px;height:16px}
.gdo-typing .gdo-bubble{display:flex;gap:4px;padding:12px 14px}
.gdo-typing i{width:7px;height:7px;border-radius:50%;background:#bbb;animation:gdo-b 1.2s infinite}
.gdo-typing i:nth-child(2){animation-delay:.2s}.gdo-typing i:nth-child(3){animation-delay:.4s}
@keyframes gdo-b{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-5px);opacity:1}}

.gdo-chips{display:flex;gap:6px;overflow-x:auto;padding:8px 10px 0;background:#fff;scrollbar-width:none}
.gdo-chips:empty{display:none}
.gdo-chip{flex:0 0 auto;border:1px solid var(--gdo);color:var(--gdo)!important;background:#fff;border-radius:16px;padding:5px 12px;font-size:13px;text-decoration:none!important;white-space:nowrap}
.gdo-chip:hover{background:#fff6fa}

.gdo-composer{display:flex;align-items:flex-end;gap:6px;padding:10px;background:#fff;border-top:1px solid #eee}
.gdo-composer textarea{flex:1;resize:none;border:1px solid #ddd;border-radius:20px;padding:9px 14px;font:inherit;outline:none;max-height:110px;background:#fff;color:#1f2329}
.gdo-composer textarea:focus{border-color:var(--gdo)}
.gdo-mic{color:#666}
.gdo-mic.gdo-on{color:#fff;background:#e53935;animation:gdo-p 1.2s infinite}
@keyframes gdo-p{0%{box-shadow:0 0 0 0 rgba(229,57,53,.5)}100%{box-shadow:0 0 0 12px rgba(229,57,53,0)}}
.gdo-send{background:var(--gdo);color:#fff;border:0;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;flex:0 0 40px}
.gdo-send:disabled{opacity:.5}
.gdo-foot{display:flex;justify-content:space-between;padding:6px 14px 8px;font-size:11px;background:#fff}
.gdo-foot a{color:#888!important;text-decoration:none}

.gdo-form{display:flex;flex-direction:column;gap:10px;background:#fff;padding:16px;border-radius:12px}
.gdo-notice{font-size:12px;color:#555;background:#fff6fa;border-radius:8px;padding:8px 10px;margin:0 0 4px}
.gdo-intro{margin:0 0 4px;color:#444}
.gdo-field{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:600;color:#444}
.gdo-field input{font:inherit;font-weight:400;border:1px solid #ddd;border-radius:8px;padding:9px 11px;background:#fff;color:#1f2329}
.gdo-field input:focus{outline:none;border-color:var(--gdo)}
.gdo-consent{display:flex;gap:8px;font-size:12px;color:#555;align-items:flex-start}
.gdo-consent input{margin-top:2px}
.gdo-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.gdo-error{color:#c62828;font-size:13px}
.gdo-primary{background:var(--gdo);color:#fff;border:0;border-radius:8px;padding:11px;font-weight:600}
.gdo-primary:disabled{opacity:.6}
.gdo-open-chat{background:#b03a6f;color:#fff;border:0;border-radius:24px;padding:10px 20px;cursor:pointer}

@media (max-width:480px){
	/* On phones the button and the open chat sit above the space set in Settings (e.g. a bottom contact bar). */
	#gdo-chat-root.gdo-pos-right-bottom,#gdo-chat-root.gdo-pos-left-bottom{bottom:var(--gdo-ym,150px)}
	#gdo-chat-root.gdo-is-open{top:0;left:0;right:0;bottom:var(--gdo-ym,150px);margin:0;transform:none}
	#gdo-chat-root.gdo-pos-right-middle,#gdo-chat-root.gdo-pos-left-middle{margin-top:0}
	#gdo-chat-root .gdo-panel{position:absolute!important;transform:none!important;top:0!important;right:0!important;left:0!important;bottom:0!important;margin:0}
	.gdo-is-open .gdo-panel{width:100vw;max-width:100vw;height:100%;max-height:100%;border-radius:0}
	.gdo-launcher-label{display:none}
	.gdo-launcher{padding:6px}
}

/* v1.1: voice-first, link cards, test mode */
.gdo-mode-btn{display:flex;align-items:center;gap:4px;background:rgba(255,255,255,.18);color:#fff;border:0;border-radius:16px;padding:5px 10px;font-size:12px;font-weight:600}
.gdo-mode-btn svg{width:16px!important;height:16px!important}
.gdo-mode-btn:hover{background:rgba(255,255,255,.3)}
.gdo-voicebar{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#fff;border-top:1px solid #f1e3ea}
.gdo-bigmic{width:52px;height:52px;flex:0 0 52px;border-radius:50%;border:0;background:var(--gdo);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.gdo-bigmic svg{width:26px!important;height:26px!important}
.gdo-bigmic.gdo-on{background:#e53935;animation:gdo-p 1.2s infinite}
.gdo-voice-status{font-size:13px;color:#555;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.gdo-voicebar.gdo-listening .gdo-voice-status{color:#c62828;font-weight:600}
.gdo-voicebar.gdo-speaking .gdo-voice-status{color:var(--gdo);font-weight:600}
.gdo-voice-mode .gdo-composer{padding-top:6px}
.gdo-voice-mode .gdo-composer .gdo-mic{display:none}
.gdo-linkcard{display:flex;align-items:center;gap:8px;max-width:82%;background:#fff;border:1px solid #f0d6e2;border-left:4px solid var(--gdo);border-radius:10px;padding:8px 12px;text-decoration:none!important;color:#1f2329!important;font-size:14px}
.gdo-linkcard:hover{background:#fff6fa}
.gdo-linkcard-k{font-size:11px;color:#888;text-transform:uppercase;letter-spacing:.04em}
.gdo-linkcard svg{width:16px!important;height:16px!important;color:var(--gdo);margin-left:auto}
.gdo-chip-date{font:inherit;font-size:13px;padding:4px 10px;cursor:pointer}
.gdo-test .gdo-head{background:repeating-linear-gradient(45deg,var(--gdo),var(--gdo) 12px,#8c2d58 12px,#8c2d58 24px)}
/* v1.2: clinic menu buttons and answer ratings */
.gdo-row.gdo-bot{flex-wrap:wrap}
.gdo-menu{display:flex;flex-direction:column;gap:6px;width:86%;max-width:300px}
.gdo-menu-btn{display:block;width:100%;text-align:left;border:1px solid var(--gdo);color:var(--gdo);background:#fff;border-radius:12px;padding:8px 12px;font:inherit;font-size:14px;cursor:pointer;line-height:1.3}
.gdo-menu-btn:hover:not(:disabled){background:#fff6fa}
.gdo-menu-btn:disabled{cursor:default;opacity:.55}
.gdo-menu-btn.gdo-picked{opacity:1;background:var(--gdo);color:#fff}
.gdo-chip-menu{font-weight:600}
.gdo-menu-back{border-style:dashed;color:#555;border-color:#bbb}
.gdo-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;padding:6px 10px}
.gdo-foot a{display:inline-block;padding:7px 12px;border:1px solid var(--gdo);border-radius:14px;color:var(--gdo)!important;font-size:13px;text-decoration:none!important;background:#fff}
.gdo-foot a:hover{background:#fff6fa}
.gdo-rate{flex-basis:100%;display:flex;align-items:center;gap:4px;margin:2px 0 0 4px}
.gdo-rate-btn{border:0;background:transparent;font-size:14px;line-height:1;padding:3px 5px;border-radius:8px;cursor:pointer;opacity:.45;filter:grayscale(1)}
.gdo-rate-btn:hover,.gdo-rate-btn.gdo-on{opacity:1;filter:none}
.gdo-rate-btn.gdo-on{background:#fff6fa}
.gdo-rate-thanks{font-size:12px;color:#777;margin-left:4px}

/* Language switch in the chat header */
.gdo-langsel{max-width:104px;font-size:12px;padding:4px 6px;border-radius:8px;border:1px solid rgba(255,255,255,.55);background:rgba(255,255,255,.16);color:#fff;margin-right:4px}
.gdo-langsel option{color:#222;background:#fff}
