.contact-widget .chat-panel{width:370px;padding:0;overflow:hidden;border-radius:20px;background:rgba(249,252,255,.98);box-shadow:0 20px 70px #102b4930;backdrop-filter:blur(24px);text-align:left;color:#173246;display:flex;flex-direction:column;max-height:calc(100dvh - 110px)}
.chat-heading{display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid #e6edf2;background:#fff;flex-shrink:0}
.chat-heading strong{font-size:16px}.chat-heading p{margin:5px 0 0;font-size:11px;color:#617e91;line-height:1.5}
.chat-heading>button{margin-left:auto;font:26px/1 sans-serif;border:0;background:none;color:#698293;width:30px;height:30px;cursor:pointer}
.chat-tools{display:flex;justify-content:space-between;padding:10px 18px;gap:12px;font-size:12px;border-bottom:1px solid #e6edf2;flex-shrink:0}
.chat-tools button{font:inherit;background:none;border:0;color:#23628d;padding:0;cursor:pointer}.chat-tools button:disabled{color:#90a0ab;cursor:default}
.chat-log{height:250px;min-height:80px;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:18px;scrollbar-width:thin}
.chat-message{max-width:88%;margin:0 0 14px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.chat-message small{display:block;font-size:10px;margin-bottom:5px;color:#78909e}
.chat-message p{margin:0;padding:11px 14px;border:1px solid #e1eaf0;border-radius:16px 16px 16px 4px;background:#fff;white-space:pre-wrap}
.chat-message.visitor{margin-left:auto}.chat-message.visitor small{text-align:right}.chat-message.visitor p{background:#193f59;color:#fff;border:0;border-radius:16px 16px 4px 16px}
.chat-message.system{max-width:100%;font-size:11px;color:#738897;text-align:center}.chat-message.system p{background:transparent;border:0;padding:2px 8px}
#chat-form{padding:12px 16px 14px;border-top:1px solid #e0e9ef;background:#fff;flex-shrink:0}
#chat-input{box-sizing:border-box;display:block;width:100%;padding:10px 12px;border:1px solid #d9e5ec;border-radius:12px;background:#f6f9fb;resize:none;font-family:inherit;font-size:14px;line-height:1.5;min-height:64px;color:#183548}
.chat-send-info{display:flex;align-items:center;gap:4px;font-size:10px;color:#8296a4}.chat-info{position:relative}.chat-info summary{list-style:none;color:#617e91;cursor:pointer;line-height:1.6;text-decoration:underline;text-underline-offset:3px}.chat-info summary::-webkit-details-marker{display:none}.chat-info p{position:absolute;bottom:calc(100% + 8px);left:-64px;z-index:1;width:250px;max-width:calc(100vw - 80px);margin:0;padding:14px;border:1px solid #dce7ee;border-radius:12px;background:#fff;color:#617e91;font-size:12px;line-height:1.7;box-shadow:0 4px 24px #102b491a}
.chat-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.chat-compose-footer span{font-size:10px;color:#8296a4}#chat-send{padding:8px 17px;border-radius:20px;background:#1c4b69;color:white;font-size:12px;border:0;cursor:pointer}#chat-send:disabled{opacity:.5;cursor:default}
.chat-notice{padding:0 18px 12px;margin:0;background:#fff;color:#6f8392;font-size:11px;line-height:1.6;flex-shrink:0}.chat-notice:empty{display:none}
.chat-panel button:focus-visible,.chat-panel a:focus-visible,.chat-panel summary:focus-visible,.chat-panel textarea:focus-visible{outline:2px solid #387fb0;outline-offset:3px}
@media(max-width:600px){.contact-widget{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.contact-widget .chat-panel{width:min(390px,calc(100vw - 24px));max-height:calc(100dvh - 90px);display:flex;flex-direction:column}.chat-log{height:220px;flex:1 1 auto;min-height:80px}.chat-heading{padding:14px 16px}.chat-tools{padding:8px 16px}#chat-form{padding-top:10px;flex-shrink:0}#chat-input{font-size:16px}.chat-heading strong{font-size:15px}}
