#dla-chat-root{position:fixed;bottom:20px;right:20px;z-index:9990;font-family:inherit}#dla-chat-root *{box-sizing:border-box}#dla-chat-root .dla-toggle{background:var(--dla-chat-button,#082e50);color:#fff;border:0;border-radius:50%;width:58px;height:58px;cursor:pointer;font-size:27px;box-shadow:0 5px 20px #0003;float:right}#dla-chat-root .dla-panel{clear:both;width:min(360px,calc(100vw - 24px));max-height:min(610px,calc(100dvh - 90px));display:flex;flex-direction:column;background:white;border:1px solid #ddd;box-shadow:0 7px 35px #0003;margin-bottom:10px;border-radius:9px;overflow:hidden;color:var(--dla-chat-text,#23313d)}#dla-chat-root .dla-header{background:var(--dla-chat-header,#082e50);color:white;padding:15px;font-weight:bold}#dla-chat-root .dla-stream{padding:15px;overflow:auto;min-height:150px;max-height:310px;white-space:pre-wrap;font-size:14px}#dla-chat-root .dla-msg{margin:10px 0;padding:10px;background:var(--dla-chat-message,#ebf4fc);border-radius:7px;white-space:pre-wrap}#dla-chat-root .dla-msg.dla-mine{background:#f2f9ff;margin-left:22px;border-left:3px solid var(--dla-chat-border,#4478a6)}#dla-chat-root .dla-privacy{padding:10px 15px;font-size:12px;background:#f8f9fa}#dla-chat-root textarea{width:100%;min-height:75px;border:1px solid #adb5bd;padding:8px;font:inherit}#dla-chat-root form{padding:10px 15px}#dla-chat-root .dla-send{background:var(--dla-chat-button,#082e50);color:white;border:0;padding:10px 17px;cursor:pointer;border-radius:2px;margin-top:7px}#dla-chat-root .dla-note{font-size:12px;margin:6px 0}#dla-chat-root a{color:#245a91}#dla-chat-root .dla-hp{position:absolute;left:-10000px}#dla-chat-root[hidden]{display:none!important}@media(max-width:600px){#dla-chat-root{bottom:12px;right:12px}#dla-chat-root .dla-panel{max-height:calc(100dvh - 85px)}}
#dla-chat-root .dla-privacy-ack{display:flex;align-items:flex-start;gap:6px;font-size:12px;margin:8px 0;line-height:1.4}#dla-chat-root .dla-privacy-ack input{margin-top:2px;width:auto;min-width:14px}#dla-chat-root .dla-toggle:focus-visible,#dla-chat-root button:focus-visible{outline:3px solid #f28705;outline-offset:3px}

/* Server-rendered fallback: launcher remains visible even if chat JavaScript fails. */
#dla-chat-root>.dla-toggle{display:block;float:none;margin-left:auto;position:relative;z-index:1}

/* 9.7.9: presentation only; message API and storage remain unchanged. */
#dla-chat-root .dla-toggle{display:flex!important;align-items:center;justify-content:center;float:none;margin-left:auto;padding:0!important;line-height:1!important;text-align:center;appearance:none;-webkit-appearance:none;letter-spacing:0!important;text-indent:0!important;}
#dla-chat-root .dla-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}
#dla-chat-root .dla-header-title{min-width:0;flex:1}
#dla-chat-root .dla-close{border:0;background:transparent;color:white;cursor:pointer;font-size:26px;line-height:1;padding:0 4px;min-width:30px;min-height:30px;display:flex;justify-content:center;align-items:center}
#dla-chat-root .dla-stream{flex:1;min-height:120px;max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#dla-chat-root .dla-panel{height:min(610px,calc(100dvh - 100px));max-height:min(610px,calc(100dvh - 100px))}
#dla-chat-root .dla-privacy,#dla-chat-root form{flex-shrink:0}
#dla-chat-root .dla-confirmation{font-size:12px;margin:8px 0;padding:10px;border-left:3px solid var(--dla-chat-border,#4478a6);background:#f8f9fa;white-space:pre-wrap}
@media(max-width:600px){#dla-chat-root .dla-panel{height:min(610px,calc(100dvh - 85px));max-height:calc(100dvh - 85px)}}


/* 9.7.12 — Return to previously validated 9.7.9 panel size. */
#dla-chat-root .dla-panel{width:min(var(--dla-chat-width,360px),calc(100vw - 24px));height:min(var(--dla-chat-height,610px),calc(100dvh - 100px));max-height:calc(100dvh - 100px)}
@media(max-width:600px){#dla-chat-root .dla-panel{height:min(var(--dla-chat-height,610px),calc(100dvh - 85px));max-height:calc(100dvh - 85px)}}
/* Pixel-precise center for SVG regardless of theme button typography. */
#dla-chat-root>.dla-toggle{position:relative!important;display:block!important;float:none!important;margin-left:auto!important;padding:0!important;text-align:initial!important;line-height:normal!important;transform:none!important}
#dla-chat-root>.dla-toggle>svg{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;padding:0!important;width:27px!important;height:27px!important;display:block!important;pointer-events:none!important}

/* 9.7.14 — Presentation of buyer/Pierre dialogue, without changing message transport. */
#dla-chat-root .dla-stream{display:flex;flex-direction:column;align-items:stretch;gap:9px}
#dla-chat-root .dla-stream .dla-msg{margin:0;max-width:88%;width:fit-content;overflow-wrap:anywhere;white-space:pre-wrap;flex-shrink:0}
#dla-chat-root .dla-stream .dla-welcome{align-self:flex-start;max-width:100%;background:var(--dla-chat-message,#ebf4fc);border:0;margin:0 0 7px 0}
#dla-chat-root .dla-stream .dla-mine{align-self:flex-end;margin:0;background:#f2f9ff;border-left:0;border-right:3px solid var(--dla-chat-border,#4478a6);border-radius:10px 10px 2px 10px}
#dla-chat-root .dla-stream .dla-pierre{align-self:flex-start;margin:0;background:var(--dla-chat-message,#ebf4fc);border-left:3px solid var(--dla-chat-border,#4478a6);border-radius:10px 10px 10px 2px}
#dla-chat-root .dla-stream .dla-confirmation{align-self:center;max-width:100%;margin:7px 0 0;background:#f8f9fa;font-size:12px}
/* 9.7.15: restricted WordPress operator view, using same conversational interface. */
#dla-chat-root .dla-operator-tools{padding:8px 12px;border-bottom:1px solid #e1e6eb;display:flex;flex-direction:column;gap:6px;background:#f8f9fa}
#dla-chat-root .dla-operator-switch{font-size:12px;color:#082e50;border:1px solid #4478a6;background:#fff;border-radius:3px;padding:5px 8px;cursor:pointer}
#dla-chat-root .dla-operator-select{width:100%;min-height:32px;font-size:13px;background:white;border:1px solid #adb5bd}
#dla-chat-root .dla-operator-select[hidden],#dla-chat-root .dla-privacy-ack[hidden]{display:none!important}
/* 9.7.16: two-stage privacy acknowledgement followed by a chat composer. */
#dla-chat-root .dla-chat-gate{padding:14px;overflow-y:auto;flex:1;min-height:0}
#dla-chat-root .dla-chat-gate .dla-welcome{margin:0 0 14px;max-width:100%}
#dla-chat-root .dla-chat-gate .dla-privacy{padding:10px 0;background:transparent;line-height:1.5}
#dla-chat-root .dla-chat-start{background:var(--dla-chat-button,#082e50);color:#fff;border:0;padding:11px 13px;cursor:pointer;width:100%;margin-top:12px}
#dla-chat-root .dla-chat-start:disabled{opacity:.5;cursor:not-allowed}
#dla-chat-root .dla-chat-composer{padding:10px!important;border-top:1px solid #e0e6ed;background:#fff}
#dla-chat-root .dla-composer-row{display:flex;align-items:end;gap:8px}
#dla-chat-root .dla-composer-row textarea{min-height:46px;max-height:115px;flex:1;padding:9px;resize:vertical;margin:0}
#dla-chat-root .dla-chat-send-icon{flex-shrink:0;border:0;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:var(--dla-chat-button,#082e50);color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:0}
#dla-chat-root .dla-chat-send-icon:disabled{opacity:.5}
#dla-chat-root .dla-stream{min-height:0;flex:1}
#dla-chat-root .dla-chat-gate[hidden],#dla-chat-root .dla-stream[hidden],#dla-chat-root .dla-chat-composer[hidden]{display:none!important}
/* 9.7.17: show exactly one stage. The introduction is never part of message history. */
#dla-chat-root .dla-panel[data-stage="loading"] .dla-chat-gate,
#dla-chat-root .dla-panel[data-stage="loading"] .dla-stream,
#dla-chat-root .dla-panel[data-stage="loading"] .dla-chat-composer{display:none!important}
#dla-chat-root .dla-panel[data-stage="loading"]::after{content:"Ouverture de la conversation…";display:block;padding:24px;min-height:80px;font-size:14px;color:var(--dla-chat-text,#23313d)}
#dla-chat-root .dla-chat-gate .dla-welcome{white-space:pre-wrap;line-height:1.5}
#dla-chat-root .dla-chat-gate{overscroll-behavior:contain}
#dla-chat-root .dla-stream{overscroll-behavior:contain}

/* 9.7.18: subtle header chat glyph and operator conversation counter. */
#dla-chat-root .dla-header-icon{display:inline-flex;justify-content:center;align-items:center;width:20px;height:20px;flex-shrink:0;border:1.5px solid currentColor;border-radius:50%;font-size:22px;line-height:1}
#dla-chat-root .dla-chat-count{position:absolute;right:-4px;top:-6px;min-width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f28705;color:#082e50;font-size:11px;font-weight:bold;pointer-events:none}
#dla-chat-root .dla-chat-count[hidden]{display:none!important}
