/* Chat R.E.M. Assistenza Caldaie (plugin App Rem Caldaie 1.3.0). */
.rem-chat{--rc-red:#c8102e;--rc-blue:#0b4ea2;--rc-bg:#fff;--rc-soft:#f2f5fa;--rc-text:#1d2330;font-family:inherit;font-size:15px;line-height:1.45;color:var(--rc-text);box-sizing:border-box}
.rem-chat *,.rem-chat *::before,.rem-chat *::after{box-sizing:border-box}
.rem-chat__panel{display:flex;flex-direction:column;background:var(--rc-bg);border:1px solid #d6dce6;border-radius:12px;overflow:hidden;box-shadow:0 6px 24px rgba(0,0,0,.12)}
.rem-chat--inline{max-width:640px;margin:1em auto}
.rem-chat--inline .rem-chat__log{height:360px}
.rem-chat__head{display:flex;align-items:center;justify-content:space-between;background:var(--rc-blue);color:#fff;padding:10px 14px;font-weight:600}
.rem-chat__close{background:none;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
.rem-chat__log{overflow-y:auto;padding:12px;background:var(--rc-soft);display:flex;flex-direction:column;gap:8px}
.rem-chat__msg{max-width:88%;padding:8px 11px;border-radius:12px;word-wrap:break-word;white-space:normal}
.rem-chat__msg--bot{background:#fff;border:1px solid #dde3ec;align-self:flex-start;border-bottom-left-radius:4px}
.rem-chat__msg--user{background:var(--rc-blue);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.rem-chat__msg--wait{opacity:.7;font-style:italic}
.rem-chat__sources{margin-top:6px;font-size:12px;color:#5a6474}
.rem-chat__form{display:flex;gap:6px;padding:8px;border-top:1px solid #e3e7ee;background:#fff}
.rem-chat__input{flex:1;resize:none;border:1px solid #c9d1dd;border-radius:8px;padding:8px;font:inherit;font-size:16px;min-height:44px;color:var(--rc-text);background:#fff}
.rem-chat__send{background:var(--rc-red);color:#fff;border:0;border-radius:8px;padding:0 16px;font-weight:600;cursor:pointer;min-height:44px}
.rem-chat__send:disabled{opacity:.6;cursor:default}
.rem-chat__footer{font-size:11.5px;line-height:1.35;color:#5a6474;padding:6px 10px 2px;background:#fff}
.rem-chat__footer a{color:var(--rc-blue)}
.rem-chat__contact{display:flex;gap:6px;flex-wrap:wrap;padding:6px 10px 10px;background:#fff}
.rem-chat__msg .rem-chat__contact{padding:8px 0 0;background:transparent}
.rem-chat__btn{flex:1 1 auto;text-align:center;text-decoration:none!important;color:#fff!important;border-radius:8px;padding:7px 10px;font-size:13px;font-weight:600;white-space:nowrap}
.rem-chat__btn--tel{background:var(--rc-blue)}
.rem-chat__btn--wa{background:#1f9d55}
.rem-chat-float{position:fixed;right:18px;bottom:18px;z-index:99990;pointer-events:none;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.rem-chat-float__bubble{width:60px;height:60px;border-radius:50%;border:0;background:var(--rc-red,#c8102e);color:#fff;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center}
.rem-chat-float__bubble:focus-visible,.rem-chat__send:focus-visible,.rem-chat__btn:focus-visible{outline:3px solid #ffbf47;outline-offset:2px}
.rem-chat--floating{width:360px;max-width:calc(100vw - 24px)}
.rem-chat--floating .rem-chat__log{height:min(360px,calc(100vh - 330px));min-height:160px}
.rem-chat--floating[hidden]{display:none}
@media (max-width:480px){
.rem-chat-float{right:10px;bottom:10px;left:10px}
.rem-chat--floating{width:100%;max-width:none}
.rem-chat-float.is-open .rem-chat-float__bubble{display:none}
.rem-chat--floating .rem-chat__log{height:calc(100vh - 300px);height:calc(100dvh - 300px)}
}
.rem-chat-float>*{pointer-events:auto}

.rem-chat-float__ia{font:700 20px/1 Arial,sans-serif;letter-spacing:.5px}
.rem-chat-float__hint{align-self:center;margin-right:10px;background:#fff;color:#222;border:0;border-radius:18px;padding:8px 14px;font:600 14px/1.2 Arial,sans-serif;box-shadow:0 2px 10px rgba(0,0,0,.2);cursor:pointer;white-space:nowrap}
.rem-chat-float.is-open .rem-chat-float__hint{display:none}
@media (max-width:480px){.rem-chat-float__hint{font-size:12px;padding:6px 10px}}
.rem-chat-float__row{display:flex;align-items:center;pointer-events:auto}
.rem-chat-float.is-open .rem-chat-float__row{display:none}
