#qchat-root{font-family:Montserrat,Arial,sans-serif;color:#102337;--green:#007d6a;--deep:#005c52;--ink:#102337;--muted:#6e7d85;--border:#e0e8eb;--font:Montserrat,Arial,sans-serif;}
#qchat-root *{box-sizing:border-box}
#qchat-root{--green:#007d6a;--deep:#005c52;--ink:#102337;--muted:#6e7d85;--border:#e0e8eb;--font:Montserrat,Arial,sans-serif}
#qchat-root *{box-sizing:border-box}
#qchat-root{margin:0;font-family:var(--font);color:var(--ink);background:linear-gradient(125deg,#edf1ef,#f5f8f7 48%,#e1eae5);min-height:100vh}
#qchat-root .widget{position:fixed;right:24px;bottom:58px;width:390px;height:min(560px,calc(100dvh - 85px));background:#fff;border-radius:27px;box-shadow:0 18px 65px #163a3450;display:flex;flex-direction:column;z-index:10;overflow:visible}
#qchat-root .widget::before{content:"";position:absolute;inset:0;border-radius:27px;pointer-events:none;box-shadow:inset 0 0 0 1px #e5efec;z-index:4}
#qchat-root .widget[hidden]{display:none}
#qchat-root .head{height:108px;flex:none;border-radius:27px 27px 0 0;background:linear-gradient(115deg,#008c76,#006c5b 72%,#008c76);display:flex;align-items:center;padding:16px 15px;position:relative;color:white}
#qchat-root .portrait{width:78px;height:78px;border-radius:50%;border:3px solid #fff;object-fit:cover;object-position:center center;background:white;align-self:center;margin-right:10px;flex:none;box-shadow:0 5px 12px #002d2c35;transform:translateY(18px);position:relative;z-index:3}
#qchat-root .head-title{min-width:0;flex:1}
#qchat-root .head-title strong{display:block;font-size:14px;letter-spacing:-.25px;line-height:1.25;white-space:nowrap}
#qchat-root .head-title span{display:block;font-size:11px;margin-top:4px;white-space:nowrap}
#qchat-root .tools{display:flex;gap:0;margin-left:3px}
#qchat-root .tool{border:0;color:white;background:transparent;cursor:pointer;width:27px;height:32px;display:grid;place-items:center;padding:0}
#qchat-root .tool:hover{background:#ffffff21;border-radius:50%}
#qchat-root .tool svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round}
#qchat-root .body{border-radius:20px 20px 0 0;background:white;margin-top:-2px;position:relative;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#qchat-root .scroll{padding:19px 19px 9px;overflow:auto;flex:1;scrollbar-color:#b9c8c5 transparent}
#qchat-root .welcome{background:linear-gradient(125deg,#f2f4f6,#f7f8f9);padding:17px 19px;border-radius:21px;font-size:16px;line-height:1.5;margin-bottom:17px}
#qchat-root .welcome strong{display:block;font-size:18px;margin-top:9px;letter-spacing:-.3px}
#qchat-root .options{display:grid;gap:11px}
#qchat-root .choice{border:1.5px solid #dfe7eb;background:white;border-radius:20px;min-height:82px;padding:12px 13px;display:flex;align-items:center;gap:12px;text-align:left;color:var(--ink);cursor:pointer;box-shadow:0 1px 2px #1c35320b;transition:transform .15s,border-color .15s,box-shadow .15s}
#qchat-root .choice:hover,#qchat-root .choice:focus-visible{transform:translateY(-1px);border-color:#55b6a5;box-shadow:0 6px 18px #005e4f19;outline:none}
#qchat-root .choice .round{width:56px;height:56px;border-radius:50%;background:#e8f5f1;display:grid;place-items:center;flex:none}
#qchat-root .choice .round svg{width:33px;height:33px;stroke:#00685e;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
#qchat-root .choice b{font-size:15px;line-height:1.35;flex:1;letter-spacing:-.25px}
#qchat-root .arrow{font-size:30px;color:#647b87;font-weight:300;line-height:1}
#qchat-root .foot{padding:5px 19px 10px;flex:none;background:#fff;border-radius:0 0 27px 27px}
#qchat-root .trust{display:flex;justify-content:space-between;gap:7px;background:#eaf5f2;border-radius:12px;padding:9px 7px;color:#172d3b}
#qchat-root .trust span{display:flex;align-items:center;gap:3px;font-size:9px;white-space:nowrap}
#qchat-root .trust svg{width:16px;height:16px;fill:none;stroke:#163f47;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#qchat-root .powered{text-align:right;color:#3e4f5a;font-size:10px;margin-top:7px}
#qchat-root .launcher{position:fixed;bottom:15px;right:24px;width:68px;height:68px;border-radius:50%;background:linear-gradient(145deg,#00977e,#006c5a);box-shadow:0 10px 22px #003b3260;border:0;color:white;display:grid;place-items:center;cursor:pointer;z-index:11}
#qchat-root .launcher svg{width:39px;height:39px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#qchat-root .launcher.is-hidden{display:none}
#qchat-root .message{display:flex;gap:9px;margin:14px 0;align-items:flex-start}
#qchat-root .message img{width:33px;height:33px;object-fit:cover;object-position:center center;border-radius:50%}
#qchat-root .bubble{background:#f1f3f5;border-radius:5px 15px 15px 15px;padding:13px 15px;font-size:14px;line-height:1.55;max-width:87%}
#qchat-root .message.me{justify-content:flex-end}
#qchat-root .message.me .bubble{background:#007f70;color:white;border-radius:15px 5px 15px 15px}
#qchat-root .small-choice{border:1px solid #cddfdc;border-radius:13px;background:white;color:#154d4b;font-weight:700;padding:14px 12px;text-align:left;cursor:pointer;font:inherit}
#qchat-root .small-choice:hover{background:#eaf5f2}
#qchat-root .back{background:none;border:0;color:#426c67;cursor:pointer;padding:8px 0;margin-top:8px;text-align:left}
#qchat-root .notice{font-size:11px;color:#657a7a;margin-top:10px}
#qchat-root .restart{display:none}
#qchat-root .restart.active{display:grid}
#qchat-root .restart button{font:inherit}
#qchat-root .hidden{display:none!important}
@media (max-width:600px){#qchat-root .widget{width:calc(100vw - 20px);right:10px;bottom:16px;height:min(670px,calc(100dvh - 32px));border-radius:22px}
#qchat-root .head{padding:15px 16px;height:105px;border-radius:22px 22px 0 0}
#qchat-root .portrait{width:72px;height:72px;margin-right:9px;transform:translateY(14px)}
#qchat-root .head-title strong{font-size:14px}
#qchat-root .head-title span{font-size:11px}
#qchat-root .tools{gap:0;margin-left:2px}
#qchat-root .tool{width:28px}
#qchat-root .scroll{padding:18px 17px 10px}
#qchat-root .welcome{font-size:16px;padding:16px 17px}
#qchat-root .welcome strong{font-size:18px}
#qchat-root .choice{min-height:81px;padding:11px 12px;gap:12px}
#qchat-root .choice .round{width:54px;height:54px}
#qchat-root .choice .round svg{width:31px;height:31px}
#qchat-root .choice b{font-size:15px}
#qchat-root .foot{padding:5px 15px 9px}
#qchat-root .trust{padding:9px 8px}
#qchat-root .trust span{font-size:9px}
#qchat-root .trust svg{width:15px;height:15px}
#qchat-root .launcher{right:18px;bottom:17px}}
#qchat-root .widget{height:auto;max-height:calc(100dvh - 95px);border-radius:27px;isolation:isolate}
#qchat-root .widget::before{border-radius:27px;box-shadow:inset 0 0 0 1px #e5efec}
#qchat-root .head{z-index:2}
#qchat-root .body{flex:0 1 auto;min-height:0;margin-top:-2px;border-radius:21px 21px 27px 27px;overflow:hidden;background:#fff;box-shadow:0 1px 0 #fff}
#qchat-root .scroll{flex:0 1 auto;min-height:0;max-height:calc(100dvh - 265px);padding:19px 19px 0;overflow-y:auto}
#qchat-root .options{margin-bottom:0}
#qchat-root .foot{padding:17px 19px 14px;border-radius:0 0 27px 27px;flex:none}
#qchat-root .powered{margin-top:7px}
#qchat-root .widget{box-shadow:0 18px 65px #163a3450,0 0 0 1px #d9e6e1}
#qchat-root .widget::after{content:"";position:absolute;right:49px;bottom:-11px;width:24px;height:24px;background:white;transform:rotate(45deg);border-radius:0 0 6px 0;box-shadow:3px 3px 5px #163a3412;z-index:-1}
@media (max-width:600px){#qchat-root .widget{height:auto;max-height:calc(100dvh - 32px);border-radius:22px}
#qchat-root .body{border-radius:18px 18px 22px 22px}
#qchat-root .scroll{max-height:calc(100dvh - 205px);padding:18px 17px 0}
#qchat-root .foot{padding:15px 15px 12px;border-radius:0 0 22px 22px}}
#qchat-root .portrait,#qchat-root .message img{object-position:center center}
#qchat-root .head-title strong{font-size:16px;letter-spacing:-.3px;line-height:1.22}
#qchat-root .head-title span{font-size:12px;line-height:1.3;margin-top:4px}
#qchat-root .welcome{font-size:17px;line-height:1.46}
#qchat-root .welcome strong{font-size:19px;line-height:1.3;margin-top:10px}
#qchat-root .choice b{font-size:16px;line-height:1.32}
#qchat-root .trust span{font-size:10px;gap:4px}
#qchat-root .powered{font-size:10.5px}
@media (max-width:600px){#qchat-root .head-title strong{font-size:15px}
#qchat-root .head-title span{font-size:11.5px}
#qchat-root .welcome{font-size:17px}
#qchat-root .welcome strong{font-size:19px}
#qchat-root .choice b{font-size:15.5px}
#qchat-root .trust span{font-size:9.5px}}
#qchat-root .dialog-options{display:grid;gap:9px;margin:9px 0 14px 42px}
#qchat-root .dialog-options button{padding:11px 13px;border:1px solid #d8e6e2;background:#fff;color:#164b47;border-radius:12px;text-align:left;font:600 13px Montserrat,Arial,sans-serif;cursor:pointer}
#qchat-root .dialog-options button:hover{background:#eaf5f2}
#qchat-root .dialog-options button:focus-visible{outline:2px solid #008c76}
#qchat-root .dialog-options textarea,#qchat-root .dialog-options input{width:100%;border:1px solid #cbdad8;border-radius:10px;padding:11px;font:14px Arial,sans-serif}
#qchat-root .dialog-options .field-label{font-size:12px;font-weight:700}
#qchat-root .dialog-options .help{font-size:11px;color:#617675;line-height:1.4}
#qchat-root .dialog-options .privacy-line{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.5}
#qchat-root .dialog-options .privacy-line input{width:auto;margin-top:3px}
#qchat-root .dialog-options a{color:#007d6a;text-decoration:underline}
#qchat-root .dialog-options .primary{background:#007d6a;color:white;text-align:center}
#qchat-root .dialog-options .primary:hover{background:#006456}
#qchat-root .dialog-options .error{color:#ad2d2d;font-size:12px}
#qchat-root .message.me .bubble{max-width:82%}
#qchat-root .conversation .message{margin:12px 0}
#qchat-root .conversation .bubble{font-size:13px;white-space:pre-line}
#qchat-root .conversation .message img{flex:none}
#qchat-root .conversation .dialog-options{margin-bottom:13px}
#qchat-root .demo-note{font-size:11px;color:#647b78;margin:8px 0 0 42px}
#qchat-root .restart-link{font:12px Montserrat,Arial,sans-serif;border:0;background:transparent;color:#006b60;cursor:pointer;margin:8px 0 0 42px;padding:6px 0}
#qchat-root .dialog-options button:disabled{opacity:.55;cursor:default}
#qchat-root .portrait,#qchat-root .message img{object-position:50% 31%}
#qchat-root .widget{max-height:calc(100dvh - 75px)}
#qchat-root .scroll{max-height:min(370px,calc(100dvh - 255px));overscroll-behavior:contain;scrollbar-gutter:stable}
@media (max-width:600px){#qchat-root .widget{max-height:calc(100dvh - 28px)}
#qchat-root .scroll{max-height:min(55dvh,calc(100dvh - 220px));scrollbar-gutter:auto}}
#qchat-root .dialog-options.two-cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#qchat-root .dialog-options.two-cols button{font-size:11.5px;padding:12px 8px;min-height:49px;overflow-wrap:anywhere}
#qchat-root .dialog-options.two-cols button:last-child:nth-child(odd){grid-column:1/-1}
@media (max-width:360px){#qchat-root .dialog-options.two-cols{grid-template-columns:1fr}
#qchat-root .dialog-options.two-cols button{font-size:13px}}
#qchat-root .category-options{gap:10px}
#qchat-root .category-headers,#qchat-root .category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#qchat-root .category-headers span{text-align:center;font-size:11px;font-weight:700;color:#435956}
#qchat-root .category-grid button{min-height:39px;padding:9px 5px;font-size:11px;text-align:center;border-radius:20px}
#qchat-root .dialog-options .category-more{border-radius:20px;text-align:center;background:#eef2f1}
#qchat-root .privacy-disclosure{font-size:11px;line-height:1.5;color:#53635f}
#qchat-root .privacy-disclosure a{color:#006d60;text-decoration:underline}
#qchat-root .dialog-options .field-label{display:block}
#qchat-root .dialog-options .field-label input{display:block;margin-top:6px}
#qchat-root .category-options{margin-top:10px}
@media (max-width:360px){#qchat-root .category-grid button{font-size:10px}}
#qchat-root .conversation .bubble{font-size:14px;line-height:1.55}
#qchat-root .dialog-options button{font-size:14px;line-height:1.35}
#qchat-root .category-headers span{font-size:12.5px}
#qchat-root .category-grid button{font-size:13px;line-height:1.3;min-height:45px;padding:9px 7px}
#qchat-root .dialog-options .category-more{font-size:14px}
#qchat-root .dialog-options .field-label{font-size:13px}
#qchat-root .dialog-options input,#qchat-root .dialog-options textarea{font-size:14px}
#qchat-root .privacy-disclosure{font-size:12px}
@media (max-width:360px){#qchat-root .category-grid button{font-size:12px}}
@media (min-width:601px){#qchat-root .scroll{max-height:min(450px,calc(100dvh - 175px))}}
@media (max-width:600px){#qchat-root .scroll{max-height:min(calc(55dvh + 80px),calc(100dvh - 220px))}}
@media (min-width:601px){#qchat-root .widget{bottom:18px;max-height:calc(100dvh - 28px)}
#qchat-root .scroll{max-height:min(515px,calc(100dvh - 155px))}}
#qchat-root .head .tools{position:absolute;right:12px;bottom:8px;margin-left:0;gap:3px}
#qchat-root .head .head-title{align-self:flex-start;margin-top:15px}
@media (max-width:600px){#qchat-root .head .tools{right:12px;bottom:7px}
#qchat-root .head .head-title{margin-top:13px}}
#qchat-root .head .tool svg{width:17px;height:17px;stroke-width:1.65}
#qchat-root .conversation .finish-close{display:block;margin:14px 0 4px 42px;padding:11px 23px;border:0;border-radius:10px;background:#007d6a;color:#fff;font:600 13px Montserrat,Arial,sans-serif;cursor:pointer;min-height:42px}
#qchat-root .conversation .finish-close:hover{background:#006456}
#qchat-root .conversation .finish-close:focus-visible{outline:2px solid #005d52;outline-offset:3px}
#qchat-root .city-picker{margin-left:42px;margin-top:10px;margin-bottom:14px;display:flex;flex-direction:column;gap:10px}
#qchat-root .city-search{width:100%;box-sizing:border-box;border:1px solid #cbdad8;border-radius:11px;padding:11px;font:13px Montserrat,Arial,sans-serif}
#qchat-root .city-tabs{display:flex;flex-wrap:wrap;gap:5px}
#qchat-root .city-tab{font:600 10px Montserrat,Arial,sans-serif;border:1px solid #d5e3df;border-radius:20px;background:white;color:#28544f;padding:8px 9px;cursor:pointer}
#qchat-root .city-tab.active{border-color:#008c7b;background:#e8f6f3;color:#007d70}
#qchat-root .city-list{max-height:190px;overflow-y:auto;border:1px solid #d9e6e2;border-radius:11px;background:white}
#qchat-root .city-item{display:flex;gap:10px;align-items:center;padding:11px 10px;border-bottom:1px solid #e8efed;cursor:pointer;font:12px Montserrat,Arial,sans-serif;color:#253e3b}
#qchat-root .city-item:last-child{border-bottom:0}
#qchat-root .city-item input{accent-color:#008774;width:16px;height:16px;flex:none}
#qchat-root .city-selected{display:flex;flex-wrap:wrap;gap:5px}
#qchat-root .city-chip{border:1px solid #c9e1da;border-radius:20px;background:#edf7f4;color:#12574f;padding:6px 8px;font:11px Montserrat,Arial,sans-serif;cursor:pointer}
#qchat-root .city-picker .city-confirm{border:0;border-radius:10px;background:#007d6a;color:white;padding:12px;font:700 12px Montserrat,Arial,sans-serif;cursor:pointer}
#qchat-root .city-picker .city-confirm:disabled{opacity:.5;cursor:not-allowed}
#qchat-root .city-help{font:11px/1.45 Montserrat,Arial,sans-serif;color:#667e79}
#qchat-root .city-tab.chosen{background:#d4f0e9;border-color:#007d6a;color:#005c51}
#qchat-root .city-list[hidden]{display:none}
#qchat-root .city-list{max-height:140px}
#qchat-root .city-picker .city-confirm{position:sticky;bottom:0;z-index:2;box-shadow:0 -5px 12px rgba(255,255,255,.95);flex-shrink:0}
/* 0.1.1 — invito discreto, visibile a chat chiusa; non altera la V25 aperta. */
#qchat-root{min-height:0!important;background:transparent!important;position:static!important}
#qchat-root .launcher-group{position:fixed;right:24px;bottom:18px;display:flex;flex-direction:row-reverse;align-items:center;gap:10px;z-index:2147483000}
#qchat-root .launcher-group.is-hidden{display:none}
#qchat-root .launcher-group .launcher{position:static;width:58px;height:58px;flex:none}
@media(max-width:600px){#qchat-root .launcher-group{right:12px;bottom:12px;gap:7px}#qchat-root .launcher-group .launcher{width:54px;height:54px}}

/* v0.2.12: isolated dynamic preview */
#qchat-root .dynamic-eyebrow{font-size:9px;color:#6b8580;font-weight:700;letter-spacing:.4px;margin-bottom:8px}
#qchat-root .dynamic-heading{font-size:15px;line-height:1.4;margin:0 0 12px;color:#102337}
#qchat-root .dynamic-property{border:1px solid #e0e8eb;border-radius:15px;overflow:hidden;margin-bottom:14px;background:#fff}
#qchat-root .dynamic-photo{display:block;width:100%;height:155px;object-fit:cover}
#qchat-root .dynamic-info{padding:12px}
#qchat-root .dynamic-title{font-weight:700;font-size:13px;line-height:1.4}
#qchat-root .dynamic-subtitle{font-size:11px;color:#667c82;margin-top:3px}
#qchat-root .dynamic-price{font-size:19px;font-weight:700;color:#007d6a;margin-top:6px}
#qchat-root .dynamic-facts{display:flex;justify-content:space-around;border-top:1px solid #edf1f0;padding-top:10px;margin-top:10px;gap:7px}
#qchat-root .dynamic-fact{text-align:center;min-width:0;display:flex;flex-direction:column;gap:2px}
#qchat-root .dynamic-fact strong{font-size:13px}
#qchat-root .dynamic-fact span{font-size:10px;color:#677b81}
#qchat-root .dynamic-features{display:flex;flex-wrap:wrap;gap:5px;margin-top:11px}
#qchat-root .dynamic-feature{border-radius:15px;background:#eaf5f2;color:#225c55;font-size:10px;padding:5px 8px}
#qchat-root .dynamic-question{padding:12px;border-radius:14px;background:#f2f4f6;font-size:13px;line-height:1.5;margin-bottom:10px}
#qchat-root .dynamic-action{display:block;width:100%;border:1px solid #d7e4e1;border-radius:12px;background:#fff;color:#173c3b;font:600 12px Montserrat,Arial,sans-serif;padding:13px 10px;text-align:left;margin-bottom:8px;cursor:pointer}
#qchat-root .dynamic-action:hover{border-color:#007d6a;background:#f0faf7}
#qchat-root .dynamic-compact{display:flex;align-items:center;gap:10px;background:#eaf5f2;border-radius:12px;padding:8px;margin-bottom:15px;font-size:12px;font-weight:700}
#qchat-root .dynamic-compact img{width:55px;height:45px;object-fit:cover;border-radius:8px}
#qchat-root .dynamic-notice{font-size:11px;color:#6e7d85;margin:12px 0}
@media(max-width:600px){#qchat-root .dynamic-photo{height:125px}}

/* v0.2.13 — Dynamic-only compact initial card; generic V25 unchanged. */
#qchat-root:has(#dynamic-content) .scroll{padding:10px 14px 0}
#qchat-root .dynamic-heading{font-size:13px;line-height:1.3;margin:0 0 7px;font-weight:600}
#qchat-root .dynamic-property{margin-bottom:8px;border-radius:12px}
#qchat-root .dynamic-photo{height:112px;object-position:center}
#qchat-root .dynamic-info{padding:8px 10px}
#qchat-root .dynamic-title{font-size:12px;line-height:1.25}
#qchat-root .dynamic-subtitle{font-size:10px;margin-top:2px}
#qchat-root .dynamic-price{font-size:17px;margin-top:3px;line-height:1.2}
#qchat-root .dynamic-facts{padding-top:6px;margin-top:6px;gap:4px}
#qchat-root .dynamic-fact{gap:0}
#qchat-root .dynamic-fact strong{font-size:12px}
#qchat-root .dynamic-fact span{font-size:9px}
#qchat-root .dynamic-features{margin-top:6px;gap:4px}
#qchat-root .dynamic-feature{padding:3px 7px;font-size:9px}
#qchat-root .dynamic-question{padding:8px 10px;border-radius:10px;font-size:12px;line-height:1.35;margin-bottom:7px}
#qchat-root .dynamic-action{padding:9px 10px;margin-bottom:6px;border-radius:10px;font-size:11px;line-height:1.3}
@media(max-width:600px){#qchat-root .dynamic-photo{height:100px}}

/* v0.2.14 — clearer interactive choices, shared by both chatbots. */
#qchat-root .choice,
#qchat-root .small-choice,
#qchat-root .dialog-options button:not(.primary):not(:disabled),
#qchat-root .dynamic-action {
  border:1.5px solid #008b75;
  background-color:#fff;
  color:#075a50;
  font-weight:600;
  box-shadow:0 1px 2px rgba(0,90,75,.06);
  transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease;
}
#qchat-root .choice:hover,
#qchat-root .small-choice:hover,
#qchat-root .dialog-options button:not(.primary):not(:disabled):hover,
#qchat-root .dynamic-action:hover {
  border-color:#006c5b;
  background-color:#eaf7f3;
  box-shadow:0 2px 7px rgba(0,90,75,.13);
}
#qchat-root .choice:focus-visible,
#qchat-root .small-choice:focus-visible,
#qchat-root .dialog-options button:focus-visible,
#qchat-root .dynamic-action:focus-visible {outline:2px solid #007d6a;outline-offset:2px}
/* The arrow is decorative; no extra HTML or button height is required. */
#qchat-root .dynamic-action {position:relative;padding:9px 25px 9px 10px;font-size:12px;line-height:1.3}
#qchat-root .dynamic-action::after {content:'›';position:absolute;right:10px;top:50%;transform:translateY(-52%);font-size:21px;font-weight:500;color:#007d6a;line-height:1}
#qchat-root .dialog-options button:not(.primary):not(:disabled){position:relative}
#qchat-root .dialog-options:not(.category-options) button:not(.primary):not(:disabled){padding-right:24px}
#qchat-root .dialog-options:not(.category-options) button:not(.primary):not(:disabled)::after{content:'›';position:absolute;right:9px;top:50%;transform:translateY(-52%);font-size:19px;color:#007d6a}
#qchat-root .choice .arrow{color:#007d6a;font-weight:500}

/* v0.2.15 — Dynamic preview only: heading breathing room and legible feature pills. */
#qchat-root:has(#dynamic-content) .scroll{padding-top:17px}
#qchat-root .dynamic-feature{background:#e6f3ef;color:#145d50;border:1px solid #7ab6a6;font-weight:600;padding:3px 7px}

/* v0.2.16: percorso visita dinamico, solo anteprima amministratori */
#qchat-root .dynamic-form{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
#qchat-root .dynamic-field{display:flex;flex-direction:column;gap:3px;font-size:11px;font-weight:600;color:#234b49}
#qchat-root .dynamic-field input{width:100%;box-sizing:border-box;border:1px solid #b8d4cd;border-radius:9px;padding:9px;font:12px Montserrat,Arial,sans-serif;color:#173c3b;background:#fff}
#qchat-root .dynamic-field input:focus{outline:2px solid #007d6a;outline-offset:1px}
#qchat-root .dynamic-privacy{display:flex;align-items:flex-start;gap:7px;font-size:10px;line-height:1.5;color:#365653}
#qchat-root .dynamic-privacy input{margin-top:2px;flex-shrink:0}
#qchat-root .dynamic-privacy a{color:#007d6a;text-decoration:underline}
#qchat-root .dynamic-error{font-size:11px;color:#a12424}
#qchat-root .dynamic-sale-highlight{padding:9px 10px;background:#e7f4ef;border:1px solid #7ab6a6;border-radius:10px;font-size:12px;font-weight:600;color:#145d50;margin-bottom:9px}

/* v0.2.17 — percorso Dinamico: avatar, fumetti leggibili, scelta immediata */
#qchat-root .dynamic-conversation .dynamic-compact{margin-bottom:14px;font-size:12px}
#qchat-root .dynamic-chat-line{display:flex;align-items:flex-start;gap:9px;margin:10px 0 14px}
#qchat-root .dynamic-chat-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:0 0 36px}
#qchat-root .dynamic-chat-bubble{flex:1;min-width:0;background:#f1f4f5;border-radius:13px;padding:12px;color:#17313b;font-size:14px;line-height:1.55}
#qchat-root .dynamic-chat-bubble p{margin:0}
#qchat-root .dynamic-chat-bubble .dynamic-chat-question{font-weight:700;margin-top:8px;color:#142d32}
#qchat-root .dynamic-chat-bubble .dynamic-chat-question:first-child{margin-top:0}
#qchat-root .dynamic-customer-line{display:flex;justify-content:flex-end;margin:5px 0 12px}
#qchat-root .dynamic-customer-bubble{background:#e4f3ed;color:#145e51;font-size:14px;font-weight:600;line-height:1.45;padding:10px 12px;border-radius:13px;max-width:88%}
#qchat-root .dynamic-conversation .dynamic-action{font-size:13px;line-height:1.4;padding:11px 28px 11px 12px;margin-bottom:9px}
#qchat-root .dynamic-conversation .dynamic-field{font-size:13px}
#qchat-root .dynamic-conversation .dynamic-field input{font-size:14px}
#qchat-root .dynamic-conversation .dynamic-privacy{font-size:12px}

/* v0.2.18 — avatar in opening question; no back navigation in dynamic conversation. */
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-chat-line{margin:7px 0 9px;gap:8px}
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-chat-avatar{width:30px;height:30px;flex-basis:30px}
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-chat-bubble{padding:8px 10px;font-size:12px;line-height:1.35;border-radius:10px}
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-chat-question{font-size:12px;font-weight:600}

/* v0.2.19 — lower only the small assistant avatar in conversation bubbles. */
#qchat-root .dynamic-conversation .dynamic-chat-avatar{transform:translateY(4px)}

/* v0.2.20 — cronologia continua: scorrimento senza sostituzione dei messaggi */
#qchat-root .dynamic-current-actions{display:flex;flex-direction:column}
#qchat-root .dynamic-conversation .dynamic-chat-avatar{transform:none;object-position:50% 31%}
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-chat-avatar{object-position:50% 31%}

/* v0.2.21: domanda libera e riepilogo del percorso informazioni */
#qchat-root .dynamic-field textarea{box-sizing:border-box;width:100%;min-height:86px;padding:10px;border:1px solid #ccd8d9;border-radius:8px;font:inherit;resize:vertical;color:#17313b;background:#fff}
#qchat-root .dynamic-question-summary{padding:11px 12px;margin:8px 0 12px;border:1px solid #d4e3e1;border-radius:10px;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:#17313b}

/* v0.2.91 — Generic contact form: accessible privacy checkbox and full scrollable submit area. */
#qchat-root .dialog-options .privacy-disclosure{display:flex;align-items:flex-start;gap:8px;font-weight:400}
#qchat-root .dialog-options .privacy-disclosure input[type="checkbox"]{width:17px;height:17px;min-width:17px;margin:1px 0 0;padding:0;flex-shrink:0;accent-color:#007d6a}
#qchat-root .conversation .dialog-options{padding-bottom:14px}
#qchat-root .scroll{padding-bottom:20px}
#qchat-root .dialog-options button.primary{min-height:44px}

/* v0.2.92: modulo recapiti Generico compatto, senza modifiche al Dinamico. */
#qchat-root .conversation .generic-contact-form{gap:6px;margin-top:6px;margin-bottom:7px;padding-bottom:3px}
#qchat-root .generic-contact-form .field-label{font-size:12px;line-height:1.25}
#qchat-root .generic-contact-form .field-label input{margin-top:4px;padding:8px 10px;height:37px;min-height:37px}
#qchat-root .generic-contact-form .privacy-disclosure{display:block;font-size:11px;line-height:1.4;margin:1px 0 2px}
#qchat-root .generic-contact-form button.primary{min-height:40px;padding:9px 12px}
#qchat-root .generic-contact-form .error:empty{display:none}

/* v0.2.93 — Generico: quando sono mostrati i recapiti, aumenta soltanto
   l'area di lettura disponibile, mantenendo lo storico scorrevole e il footer
   nel normale flusso flex (nessuna sovrapposizione). Non riguarda il Dinamico. */
@media (min-width:601px){
 #qchat-root .widget:has(.generic-contact-form) .scroll{max-height:min(575px,calc(100dvh - 155px))}
}
@media (max-width:600px){
 #qchat-root .widget:has(.generic-contact-form) .scroll{max-height:calc(100dvh - 180px)}
}

/* v0.2.95 — Spazio di sicurezza per l'ultimo comando del modulo Generico.
   Lo storico rimane scorrevole; il footer resta fuori dal contenitore scroll. */
#qchat-root .generic-contact-form{padding-bottom:24px!important}

/* v0.2.96 — Generico: respiro tra i campi e margine inferiore equilibrato. */
#qchat-root .conversation .generic-contact-form{gap:11px;margin-top:9px;margin-bottom:9px;padding-bottom:8px!important}
#qchat-root .widget:has(.generic-contact-form) .scroll{padding-bottom:8px}

/* v0.2.97 — Dinamico: riepilogo orizzontale con fotografia e informazioni leggibili. */
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-property{display:flex;align-items:stretch;gap:0;min-height:112px;margin:0 0 15px;border-radius:13px}
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-photo{flex:0 0 106px;width:106px;height:auto;min-height:112px;object-fit:cover;object-position:center}
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-info{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;padding:11px 12px}
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-title{font-size:13px;line-height:1.38;font-weight:700;overflow-wrap:anywhere}
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-subtitle{font-size:11px;line-height:1.35;margin-top:4px}
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-price{font-size:16px;line-height:1.3;margin-top:7px}
#qchat-root .dynamic-summary-facts{font-size:11px;line-height:1.45;color:#61747b;margin-top:5px}
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-heading{font-size:14px;line-height:1.4;margin-bottom:10px}
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-chat-bubble{font-size:14px;line-height:1.5;padding:11px 12px}
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-chat-question{font-size:14px;line-height:1.5}
#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-action{font-size:13px;line-height:1.4;padding:12px 30px 12px 12px;margin-bottom:9px}
@media(max-width:600px){#qchat-root #dynamic-content:not(.dynamic-conversation) .dynamic-photo{flex-basis:94px;width:94px;min-height:110px}}

/* v0.2.99 — Keep open widget at its approved position; raise only the closed Dynamic launcher above the page footer. */
@media (min-width:601px){#qchat-root:has(#dynamic-content) .launcher-group{bottom:70px}}
#qchat-root .dynamic-privacy-disclosure{font-size:12px;line-height:1.5;color:#53635f;margin:1px 0 4px}
#qchat-root .dynamic-privacy-disclosure a{color:#006d60;text-decoration:underline}
#qchat-root .dynamic-finish-close{display:block;margin:12px 0 14px 45px;background:#007d6a;color:white;border:0;border-radius:10px;padding:12px 22px;font:700 13px Montserrat,Arial,sans-serif;cursor:pointer}
#qchat-root .dynamic-finish-close:hover{background:#006456}

/* v0.3.23 — Welcome teaser; compact launcher remains after dismissal or closing. */
#qchat-root .launcher-group.qchat-teaser-visible .launcher{display:none!important}
#qchat-root .qchat-teaser{display:none;position:relative;max-width:min(360px,calc(100vw - 28px));font-family:Montserrat,Arial,sans-serif}
#qchat-root .launcher-group.qchat-teaser-visible .qchat-teaser{display:block}
#qchat-root .qchat-teaser-open{display:flex;align-items:center;gap:0;border:0;background:transparent;padding:0;cursor:pointer;text-align:left;filter:drop-shadow(0 5px 10px #163a3438);font-family:inherit}
#qchat-root .qchat-teaser-avatar{width:82px;height:82px;object-fit:cover;object-position:center;border:4px solid white;outline:2px solid #007d6a;border-radius:50%;background:white;position:relative;z-index:2;flex:none}
#qchat-root .qchat-teaser-message{position:relative;display:block;margin-left:-10px;background:#fff;border:2px solid #007d6a;border-radius:21px;padding:13px 21px 13px 23px;color:#12342f;font-size:13px;line-height:1.45;max-width:265px;min-width:0}
#qchat-root .qchat-teaser-message::after{content:"";position:absolute;right:23px;bottom:-10px;width:17px;height:17px;background:white;border-right:2px solid #007d6a;border-bottom:2px solid #007d6a;transform:rotate(45deg);border-radius:0 0 4px 0}
#qchat-root .qchat-teaser-message strong{display:block;color:#006b53;font-weight:700;margin-top:4px;font-size:14px}
#qchat-root .qchat-teaser-dismiss{position:absolute;right:-5px;top:-12px;z-index:4;border:2px solid white;background:#006b53;color:white;width:28px;height:28px;border-radius:50%;font:22px/20px Arial,sans-serif;cursor:pointer;box-shadow:0 2px 8px #12342f44}
#qchat-root .qchat-teaser-open:focus-visible,#qchat-root .qchat-teaser-dismiss:focus-visible{outline:3px solid #23bda0;outline-offset:4px}
#qchat-root .widget .scroll{padding-bottom:16px}
@media(max-width:600px){#qchat-root .qchat-teaser-avatar{width:65px;height:65px}#qchat-root .qchat-teaser-message{font-size:11px;padding:11px 17px 11px 19px;max-width:235px}#qchat-root .qchat-teaser-message strong{font-size:12px}#qchat-root .qchat-teaser-dismiss{right:0}}


/* v0.3.24 — Welcome refinements shared by Generic and Dynamic. */
#qchat-root .widget::after{content:none!important;display:none!important}
#qchat-root .launcher-group.qchat-teaser-visible{bottom:34px}
#qchat-root:has(#dynamic-content) .launcher-group.qchat-teaser-visible{bottom:88px}
#qchat-root .qchat-teaser-dismiss{width:24px;height:24px;right:0;top:-9px;border-width:2px;font-size:18px;line-height:18px}
#qchat-root .head .tool svg{width:19px;height:19px;stroke-width:1.9}
@media(max-width:600px){
 #qchat-root .launcher-group.qchat-teaser-visible{bottom:29px}
 #qchat-root:has(#dynamic-content) .launcher-group.qchat-teaser-visible{bottom:29px}
}


/* v0.3.25 — approved green welcome and clearly differentiated answer buttons. */
#qchat-root .qchat-teaser-message{
 background:linear-gradient(120deg,#007e69,#00634f);
 color:#fff;
 border:2px solid #fff;
 box-shadow:0 5px 16px rgba(0,45,38,.23);
}
#qchat-root .qchat-teaser-message::after{
 background:#00634f;
 border-color:#fff;
}
#qchat-root .qchat-teaser-message strong{color:#fff}
#qchat-root .qchat-teaser-avatar{outline-color:#fff;border-color:#fff;box-shadow:0 0 0 2px #007d6a}
#qchat-root .qchat-teaser-dismiss{background:#00634f;color:#fff;border-color:#fff}
/* Position the fixed containers, not the inner bubble. */
#qchat-root .launcher-group.qchat-teaser-visible{bottom:54px}
#qchat-root:has(#dynamic-content) .launcher-group.qchat-teaser-visible{bottom:108px}
@media (min-width:601px){
 #qchat-root .widget{bottom:26px;max-height:calc(100dvh - 36px)}
}
@media (max-width:600px){
 #qchat-root .launcher-group.qchat-teaser-visible,
 #qchat-root:has(#dynamic-content) .launcher-group.qchat-teaser-visible{bottom:46px}
}
/* Answer controls only: preserve form submission, privacy and header controls. */
#qchat-root .choice,
#qchat-root .small-choice,
#qchat-root .dialog-options button:not(.primary):not(:disabled),
#qchat-root .dynamic-action{
 background:linear-gradient(110deg,#00816c,#006c58);
 border-color:#006c58;
 color:#fff;
 box-shadow:0 2px 5px rgba(0,67,56,.14);
}
#qchat-root .choice:hover,
#qchat-root .small-choice:hover,
#qchat-root .dialog-options button:not(.primary):not(:disabled):hover,
#qchat-root .dynamic-action:hover{
 background:linear-gradient(110deg,#006f5e,#005c4c);
 border-color:#005c4c;
 color:#fff;
}
#qchat-root .choice .arrow,
#qchat-root .dynamic-action::after,
#qchat-root .dialog-options:not(.category-options) button:not(.primary):not(:disabled)::after{color:#fff}
#qchat-root .choice .round{background:rgba(255,255,255,.16)}
#qchat-root .choice .round svg{stroke:#fff}


/* v0.3.26 — same welcome baseline in Generic/Dynamic; visible white-edged tail. */
#qchat-root .launcher-group.qchat-teaser-visible,
#qchat-root:has(#dynamic-content) .launcher-group.qchat-teaser-visible{bottom:54px}
#qchat-root .qchat-teaser-message{overflow:visible;isolation:isolate}
#qchat-root .qchat-teaser-message::after{
 content:""!important;display:block!important;position:absolute;
 right:23px;bottom:-10px;width:17px;height:17px;
 background:#00634f;border-right:2px solid #fff;border-bottom:2px solid #fff;
 transform:rotate(45deg);border-radius:0 0 4px 0;z-index:1;
}
#qchat-root .qchat-teaser-subline{display:block;color:#fff;font-weight:400;margin-top:2px;font-size:13px;line-height:1.4}
#qchat-root:has(#dynamic-content) .qchat-teaser-message{min-width:220px}
@media(max-width:600px){
 #qchat-root .launcher-group.qchat-teaser-visible,
 #qchat-root:has(#dynamic-content) .launcher-group.qchat-teaser-visible{bottom:46px}
 #qchat-root .qchat-teaser-subline{font-size:11px}
 #qchat-root:has(#dynamic-content) .qchat-teaser-message{min-width:0}
}

/* v0.3.28 — Keep the approved bottom clearance without forcing an empty
   fixed-height panel. The conversation retains its original internal scroll. */
@media (min-width:601px){
 #qchat-root .widget{
  bottom:44px;
  height:auto;
  max-height:calc(100dvh - 76px);
 }
 #qchat-root .scroll{
  max-height:min(515px,calc(100dvh - 190px));
 }
}
@media (max-width:600px){
 #qchat-root .widget{
  bottom:24px;
  height:auto;
  max-height:calc(100dvh - 48px);
 }
 #qchat-root .scroll{
  max-height:min(calc(55dvh + 80px),calc(100dvh - 240px));
 }
}

/* v0.3.29 — configurable appearance; preserve all existing sizing and layout. */
#qchat-root .portrait,#qchat-root .qchat-teaser-avatar{object-position:var(--qchat-photo-x,50%) var(--qchat-photo-y,50%)}
#qchat-root .head{background:linear-gradient(115deg,var(--qchat-fill,#007d6a),var(--qchat-deep,#005c52) 72%,var(--qchat-fill,#007d6a))}
#qchat-root .launcher{background:linear-gradient(145deg,var(--qchat-fill,#007d6a),var(--qchat-deep,#005c52))}
#qchat-root .qchat-teaser-message{background:linear-gradient(120deg,var(--qchat-fill,#007d6a),var(--qchat-deep,#005c52))}
#qchat-root .qchat-teaser-message::after{background:var(--qchat-deep,#005c52)}
#qchat-root .qchat-teaser-dismiss{background:var(--qchat-deep,#005c52)}
#qchat-root .qchat-teaser-avatar{box-shadow:0 0 0 2px var(--qchat-brand,#009992)}
#qchat-root .choice,#qchat-root .small-choice,#qchat-root .dialog-options button:not(.primary):not(:disabled),#qchat-root .dynamic-action{background:linear-gradient(110deg,var(--qchat-fill,#007d6a),var(--qchat-deep,#005c52));border-color:var(--qchat-deep,#005c52)}
#qchat-root .choice:hover,#qchat-root .small-choice:hover,#qchat-root .dialog-options button:not(.primary):not(:disabled):hover,#qchat-root .dynamic-action:hover{background:var(--qchat-deep,#005c52);border-color:var(--qchat-deep,#005c52)}
#qchat-root .message.me .bubble,#qchat-root .dialog-options .primary,#qchat-root .conversation .finish-close,#qchat-root .city-picker .city-confirm,#qchat-root .dynamic-finish-close{background:var(--qchat-fill,#007d6a)}
#qchat-root .dialog-options .primary:hover,#qchat-root .conversation .finish-close:hover{background:var(--qchat-deep,#005c52)}
#qchat-root .dynamic-price,#qchat-root .choice .arrow,#qchat-root .restart-link,#qchat-root .privacy-disclosure a,#qchat-root .dynamic-privacy a{color:var(--qchat-brand,#009992)}
#qchat-root .choice .arrow{color:#fff}
#qchat-root .qchat-teaser-message strong{color:#fff}

/* v0.3.30 — Avoid flashing the legacy launcher while deferred JS initializes.
   Reveal only after the correct Generic/Dynamic initial state is selected. */
#qchat-root:not(.qchat-initialized) .launcher-group{visibility:hidden!important}
/* Preserve accessible white text on the dark end; display the selected brand
   color on the right of the gradients for a visible but restrained change. */
#qchat-root .head{background:linear-gradient(115deg,var(--qchat-fill,#007d6a) 0%,var(--qchat-fill,#007d6a) 44%,var(--qchat-brand,#009992) 100%)}
#qchat-root .qchat-teaser-message{background:linear-gradient(110deg,var(--qchat-fill,#007d6a) 0%,var(--qchat-fill,#007d6a) 55%,var(--qchat-brand,#009992) 100%)}
#qchat-root .choice,#qchat-root .small-choice,#qchat-root .dialog-options button:not(.primary):not(:disabled),#qchat-root .dynamic-action{background:linear-gradient(110deg,var(--qchat-fill,#007d6a) 0%,var(--qchat-fill,#007d6a) 65%,var(--qchat-brand,#009992) 100%)}

/* v0.3.31 — retired legacy text launcher; keep compact icon after welcome dismissal.
   Use a uniform accessible fill on answer buttons to avoid the optical fuzziness
   of high-contrast gradients beneath bold text. No font-size or layout changes. */
#qchat-root .choice,
#qchat-root .small-choice,
#qchat-root .dialog-options button:not(.primary):not(:disabled),
#qchat-root .dynamic-action{background:var(--qchat-fill,#00847c);border-color:var(--qchat-fill,#00847c)}
#qchat-root .choice b{letter-spacing:0;font-weight:700;text-shadow:none}

/* v0.3.32 — Match teaser tail to the right edge of the configurable brand gradient.
   Refine bold answer typography without changing font size or layout. */
#qchat-root .qchat-teaser-message::after{background:var(--qchat-brand,#009992)}
#qchat-root .choice b{font-weight:600}

/* v0.3.33 — Crop photo within existing avatar frames; no enlargement of the borders. */
#qchat-root .qchat-avatar-frame{overflow:hidden;box-sizing:border-box}
#qchat-root .qchat-avatar-frame > img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--qchat-photo-x,50%) var(--qchat-photo-y,50%);transform:scale(var(--qchat-photo-zoom,1));transform-origin:var(--qchat-photo-x,50%) var(--qchat-photo-y,50%);border:0;border-radius:0;max-width:none}
#qchat-root .qchat-message-avatar{display:block;width:33px;height:33px;min-width:33px;border-radius:50%;flex:none}
#qchat-root .message .qchat-message-avatar > img{width:100%;height:100%;border-radius:0}
#qchat-root .dynamic-chat-avatar.qchat-avatar-frame{overflow:hidden}
#qchat-root .dynamic-chat-avatar.qchat-avatar-frame > img{width:100%;height:100%}


/* v0.3.35 — Gentle, intentional invitation after the page has appeared.
   Animate only the welcome teaser, never the compact reopen control.
   The animation starts after the widget JS has selected the correct mode. */
@keyframes qchat-welcome-arrive {
  from { opacity:0; transform:translateY(8px); }
  to { opacity:1; transform:translateY(0); }
}
#qchat-root.qchat-initialized .launcher-group.qchat-teaser-visible .qchat-teaser {
  animation:qchat-welcome-arrive 300ms ease-out 1500ms both;
}
@media (prefers-reduced-motion:reduce) {
  #qchat-root.qchat-initialized .launcher-group.qchat-teaser-visible .qchat-teaser {
    animation:none;
  }
}

/* v0.3.40 — Mobile responsive trial A. Desktop remains unchanged. */
@media screen and (max-width:600px){
  #qchat-root .widget{
    position:fixed!important;
    left:10px!important;
    right:10px!important;
    top:auto!important;
    bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:min(720px,calc(100dvh - 32px - env(safe-area-inset-bottom,0px)))!important;
    max-height:calc(100dvh - 32px - env(safe-area-inset-bottom,0px))!important;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border-radius:20px;
    z-index:2147483001;
  }
  #qchat-root .widget[hidden]{display:none!important}
  #qchat-root .widget .head{height:88px;min-height:88px;padding:10px 12px;border-radius:20px 20px 0 0;gap:3px}
  #qchat-root .widget .portrait{width:58px;height:58px;min-width:58px;margin-right:6px;transform:translateY(5px)}
  #qchat-root .widget .head-title{min-width:0;overflow:hidden}
  #qchat-root .widget .head-title strong{font-size:13px;white-space:normal;line-height:1.25}
  #qchat-root .widget .head-title span{font-size:10px;white-space:normal}
  #qchat-root .widget .tools{flex:none;margin-left:auto}
  #qchat-root .widget .body{flex:1 1 auto;min-height:0;overflow:hidden}
  #qchat-root .widget .scroll{flex:1 1 auto;min-height:0;max-height:none!important;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:14px 14px 16px}
  #qchat-root .widget .foot{padding:6px 12px 10px}
  #qchat-root .widget .welcome{font-size:14px;padding:13px 14px;margin-bottom:12px}
  #qchat-root .widget .welcome strong{font-size:16px}
  #qchat-root .widget .choice{min-height:68px;padding:9px 10px;gap:9px}
  #qchat-root .widget .choice .round{width:44px;height:44px}
  #qchat-root .widget .choice .round svg{width:28px;height:28px}
  #qchat-root .widget .choice b{font-size:14px}
  #qchat-root .widget input,#qchat-root .widget select,#qchat-root .widget textarea{max-width:100%;min-width:0}
  #qchat-root .launcher-group,
  #qchat-root .launcher-group.qchat-teaser-visible,
  #qchat-root:has(#dynamic-content) .launcher-group.qchat-teaser-visible{
    position:fixed!important;left:auto!important;right:12px!important;
    bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;
    max-width:calc(100vw - 24px)!important;
    z-index:2147483000;
  }
  #qchat-root .qchat-teaser{width:min(340px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
  #qchat-root .qchat-teaser-open{width:100%;max-width:100%;align-items:center}
  #qchat-root .qchat-teaser-avatar{width:60px;height:60px;min-width:60px;flex:0 0 60px}
  #qchat-root .qchat-teaser-message{flex:1 1 auto;max-width:none!important;min-width:0!important;padding:10px 13px 10px 17px;font-size:11px;overflow-wrap:anywhere}
  #qchat-root .qchat-teaser-message strong{font-size:12px}
  #qchat-root .qchat-teaser-subline{font-size:11px}
  #qchat-root .qchat-teaser-dismiss{right:0;top:-10px}
}
@media screen and (max-width:360px){
  #qchat-root .widget .head-title strong{font-size:12px}
  #qchat-root .widget .tool{width:24px}
  #qchat-root .qchat-teaser-avatar{width:52px;height:52px;min-width:52px;flex-basis:52px}
}

/* v0.3.41 — Smartphone: avatar-only launcher in both welcome and compact states.
   Keep the existing click handler, analytics and desktop presentation unchanged. */
@media screen and (max-width:600px){
  #qchat-root .launcher-group:not(.is-hidden) .qchat-teaser{display:block!important;width:64px!important;max-width:64px!important}
  #qchat-root .launcher-group .launcher{display:none!important}
  #qchat-root .launcher-group .qchat-teaser-open{display:flex!important;width:64px!important;height:64px!important;align-items:center!important;justify-content:center!important;filter:none!important}
  #qchat-root .launcher-group .qchat-teaser-avatar{display:block!important;width:58px!important;height:58px!important;min-width:58px!important;flex:0 0 58px!important;border-radius:50%!important}
  #qchat-root .launcher-group .qchat-teaser-message,
  #qchat-root .launcher-group .qchat-teaser-dismiss{display:none!important}
  #qchat-root.qchat-initialized .launcher-group.qchat-teaser-visible .qchat-teaser{animation:none!important}
}

/* v0.3.42 — Smartphone: content-sized chat, capped to the usable viewport.
   The conversation scrolls inside the panel; header stays visible.
   No changes to desktop/tablet, flows or tracking. */
@media screen and (max-width:600px){
  #qchat-root .widget:not([hidden]){
    height:auto!important;
    max-height:min(85dvh,calc(100dvh - 32px - env(safe-area-inset-bottom,0px)))!important;
    bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
  }
  #qchat-root .widget .body{
    flex:0 1 auto!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  #qchat-root .widget .scroll{
    flex:0 1 auto!important;
    min-height:0!important;
    max-height:calc(85dvh - 116px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
  }
  #qchat-root .widget:has(.generic-contact-form) .scroll{
    max-height:calc(85dvh - 116px)!important;
  }
}
@media screen and (max-width:600px) and (max-height:520px){
  #qchat-root .widget:not([hidden]){max-height:calc(100dvh - 16px - env(safe-area-inset-bottom,0px))!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important}
  #qchat-root .widget .scroll{max-height:calc(100dvh - 112px - env(safe-area-inset-bottom,0px))!important}
}

/* v0.3.43 — Mobile corner alignment and breathing room below the choices.
   The decorative frame used a 27px desktop radius against the 20px mobile panel. */
@media screen and (max-width:600px){
  #qchat-root .widget::before{border-radius:20px!important}
  #qchat-root .widget .head{border-radius:20px 20px 0 0!important}
  #qchat-root .widget .body{border-radius:0 0 20px 20px!important;margin-top:0!important}
  #qchat-root .widget .scroll{padding-bottom:24px!important}
}

/* v0.3.44 — Mobile solution B: dedicated full-screen conversation.
   Only phones; desktop and tablet remain unchanged. */
@media screen and (max-width:600px){
  #qchat-root .widget:not([hidden]){
    position:fixed!important;inset:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important;
    width:100vw!important;height:100dvh!important;max-height:100dvh!important;
    border-radius:0!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;
  }
  #qchat-root .widget::before{display:none!important}
  #qchat-root .widget .head{height:66px!important;min-height:66px!important;border-radius:0!important;padding:8px 12px!important}
  #qchat-root .widget .portrait{width:46px!important;height:46px!important;min-width:46px!important;transform:none!important;margin-right:9px!important}
  #qchat-root .widget .body{flex:1 1 auto!important;min-height:0!important;border-radius:0!important;overflow:hidden!important}
  #qchat-root .widget .scroll{flex:1 1 auto!important;min-height:0!important;max-height:none!important;height:100%!important;overflow-y:auto!important;overscroll-behavior:contain;padding:12px 14px calc(20px + env(safe-area-inset-bottom,0px))!important;scroll-padding-bottom:20px}
  #qchat-root .widget:has(.generic-contact-form) .scroll{max-height:none!important}
  #qchat-root .widget .welcome{padding:12px 13px!important;margin-bottom:10px!important}
  #qchat-root .widget .choice{min-height:62px!important;padding:8px 10px!important}
  #qchat-root .widget .choice .round{width:40px!important;height:40px!important}
  #qchat-root .widget .choice .round svg{width:25px!important;height:25px!important}
  #qchat-root .widget .message{margin:10px 0}
  #qchat-root .widget .bubble{padding:10px 12px;line-height:1.45}
  #qchat-root .widget .dialog-options{margin-bottom:10px}
}

/* v0.3.45 — Restore the two-line welcome teaser on phones only.
   Keep the approved full-screen mobile conversation (solution B) untouched.
   Once dismissed, retain a small avatar-only launcher. */
@media screen and (max-width:600px){
  #qchat-root .launcher-group:not(.is-hidden).qchat-teaser-visible .qchat-teaser{
    display:block!important;width:min(335px,calc(100vw - 28px))!important;
    max-width:calc(100vw - 28px)!important;
  }
  #qchat-root .launcher-group.qchat-teaser-visible .qchat-teaser-open{
    display:flex!important;width:100%!important;height:auto!important;
    align-items:center!important;justify-content:flex-start!important;
    filter:drop-shadow(0 3px 7px #163a3430)!important;
  }
  #qchat-root .launcher-group.qchat-teaser-visible .qchat-teaser-avatar{
    display:block!important;width:54px!important;height:54px!important;
    min-width:54px!important;flex:0 0 54px!important;
  }
  #qchat-root .launcher-group.qchat-teaser-visible .qchat-teaser-message{
    display:block!important;flex:1 1 auto!important;min-width:0!important;
    max-width:none!important;padding:9px 14px 9px 17px!important;
    font-size:11px!important;line-height:1.3!important;overflow-wrap:normal!important;
  }
  #qchat-root .launcher-group.qchat-teaser-visible .qchat-teaser-message strong{
    display:block!important;font-size:11px!important;line-height:1.3!important;
    margin-top:3px!important;
  }
  #qchat-root .launcher-group.qchat-teaser-visible .qchat-teaser-dismiss{
    display:block!important;right:-2px!important;top:-9px!important;
    width:23px!important;height:23px!important;
  }
  #qchat-root .launcher-group.qchat-compact:not(.is-hidden) .qchat-teaser{
    display:block!important;width:64px!important;max-width:64px!important;
  }
}

/* v0.3.46 — Shorter welcome on phones and higher closed teaser; desktop unchanged. */
#qchat-root .qchat-teaser-mobile-line{display:none}
@media screen and (max-width:600px){
  #qchat-root .qchat-teaser-desktop-line{display:none}
  #qchat-root .qchat-teaser-mobile-line{display:block}
  #qchat-root .launcher-group.qchat-teaser-visible,
  #qchat-root:has(#dynamic-content) .launcher-group.qchat-teaser-visible{
    bottom:calc(62px + env(safe-area-inset-bottom,0px))!important;
  }
}

/* v0.3.47 — Narrow, right-aligned welcome teaser on smartphones only.
   Desktop and full-screen mobile conversation are unchanged. */
@media screen and (max-width:600px){
  #qchat-root .launcher-group.qchat-teaser-visible,
  #qchat-root:has(#dynamic-content) .launcher-group.qchat-teaser-visible{
    left:auto!important;right:12px!important;
  }
  #qchat-root .launcher-group:not(.is-hidden).qchat-teaser-visible .qchat-teaser{
    width:min(278px,calc(100vw - 28px))!important;
    max-width:calc(100vw - 28px)!important;
  }
  #qchat-root .launcher-group.qchat-teaser-visible .qchat-teaser-avatar{
    width:48px!important;height:48px!important;min-width:48px!important;flex-basis:48px!important;
  }
  #qchat-root .launcher-group.qchat-teaser-visible .qchat-teaser-message{
    padding:8px 11px 8px 15px!important;line-height:1.3!important;
  }
  #qchat-root.qchat-initialized .launcher-group.qchat-teaser-visible .qchat-teaser{
    animation:qchat-welcome-arrive 300ms ease-out 1500ms both!important;
  }
}
@media screen and (max-width:600px) and (prefers-reduced-motion:reduce){
  #qchat-root.qchat-initialized .launcher-group.qchat-teaser-visible .qchat-teaser{animation:none!important}
}

/* v0.3.48 — Mobile welcome bubble sized to its content, with symmetric text margins.
   The right alignment, 1.5 s entrance, desktop and open chat remain unchanged. */
@media screen and (max-width:600px){
  #qchat-root .launcher-group:not(.is-hidden).qchat-teaser-visible .qchat-teaser{
    width:max-content!important;max-width:calc(100vw - 28px)!important;
  }
  #qchat-root .launcher-group.qchat-teaser-visible .qchat-teaser-open{
    width:max-content!important;max-width:100%!important;justify-content:flex-start!important;
  }
  #qchat-root .launcher-group.qchat-teaser-visible .qchat-teaser-avatar{
    width:54px!important;height:54px!important;min-width:54px!important;flex:0 0 54px!important;
  }
  #qchat-root .launcher-group.qchat-teaser-visible .qchat-teaser-message{
    flex:0 1 auto!important;width:max-content!important;max-width:calc(100vw - 100px)!important;
    padding:10px 12px!important;box-sizing:border-box!important;
    font-size:12px!important;line-height:1.35!important;
  }
  #qchat-root .launcher-group.qchat-teaser-visible .qchat-teaser-message strong{
    font-size:12px!important;line-height:1.35!important;
  }
}

/* v0.3.50 — Conversazione leggibile e conferma invio riconoscibile. */
#qchat-root .conversation .message:not(.me) .bubble{background:#f0f4f3;color:#173b36}
#qchat-root .conversation .message.me .bubble{background:var(--qchat-fill,#007d6a);color:#fff}
#qchat-root .dynamic-chat-bubble{background:#f0f4f3;color:#173b36}
#qchat-root .dynamic-customer-bubble{background:#dff1ea;color:#145e51}
#qchat-root .conversation .qchat-success-message .bubble,
#qchat-root .dynamic-chat-line.qchat-success-message .dynamic-chat-bubble{background:#e7f5ef;border:2px solid var(--qchat-fill,#007d6a);color:#164b3f;font-weight:700;box-shadow:0 2px 8px rgba(0,80,60,.09)}

/* v0.3.51 — Conversation hierarchy: past answers subdued, current question prominent. */
#qchat-root .conversation .message.me .bubble{background:#e0f1ed;color:#14564f}
#qchat-root .conversation .message:not(.me) .bubble{background:#f0f2f2;color:#53666a;border:1px solid transparent}
#qchat-root .conversation .message.qchat-current-question:not(.me) .bubble{background:#eaf8f4;color:#14564f;border:1px solid #008d83}
#qchat-root .dynamic-customer-bubble{background:#e0f1ed;color:#14564f;font-weight:400}
#qchat-root .dynamic-chat-line .dynamic-chat-bubble{background:#f0f2f2;color:#53666a;border:1px solid transparent}
#qchat-root .dynamic-chat-line.qchat-current-question .dynamic-chat-bubble{background:#eaf8f4;color:#14564f;border:1px solid #008d83}
/* Confirmation remains in the conversation, rendered only after a successful save. */
#qchat-root .conversation .qchat-success-message .bubble,
#qchat-root .dynamic-chat-line.qchat-success-message .dynamic-chat-bubble{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;background:#fafcfb;color:#173b36;border:1px solid #dce7e3;border-radius:15px;box-shadow:none;font-weight:400;padding:18px 12px;width:100%;max-width:100%}
#qchat-root .qchat-success-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#e0f1ed;color:#08794e;font-size:25px;font-weight:700;line-height:1}
#qchat-root .qchat-success-title{display:block;font-size:16px;font-weight:700;color:#173b36}
#qchat-root .qchat-success-description{display:block;font-size:13px;line-height:1.5;color:#53666a;font-weight:400}

/* v0.3.52 — Current question visibility; preserve prior answers and controls. */
#qchat-root .conversation .message.qchat-current-question:not(.me):not(.qchat-success-message) > .bubble {
  background-color:#eaf8f4 !important;
  color:#14564f !important;
  border:1px solid #008d83 !important;
  box-sizing:border-box;
}
#qchat-root .dynamic-chat-line.qchat-current-question:not(.qchat-success-message) > .dynamic-chat-bubble {
  background-color:#eaf8f4 !important;
  color:#14564f !important;
  border:1px solid #008d83 !important;
  box-sizing:border-box;
}
