/* Scoped widget styles: deliberately no global WordPress theme changes. */
#jmchat-root { position:relative; z-index:2147482000; font-family:Arial,Helvetica,sans-serif; box-sizing:border-box; color:#27252d; }
#jmchat-root *,#jmchat-root *::before,#jmchat-root *::after{box-sizing:border-box;}
#jmchat-bubble{position:fixed;bottom:20px;right:20px;z-index:2147482002;width:66px;height:66px;padding:0;border:3px solid white;border-radius:50%;cursor:grab;touch-action:none;overflow:hidden;background:#66023C;color:white;box-shadow:0 4px 18px #0004;font-size:24px;line-height:1;display:grid;place-items:center;}
#jmchat-bubble:active{cursor:grabbing;}
#jmchat-bubble:focus-visible,#jmchat-root button:focus-visible,#jmchat-root input:focus-visible,#jmchat-root textarea:focus-visible{outline:3px solid #2761ab;outline-offset:2px;}
#jmchat-bubble-photo {width:100%;height:100%;display:grid;place-items:center;}
#jmchat-bubble-photo img{width:100%;height:100%;object-fit:cover;border-radius:50%;}
#jmchat-panel{position:fixed;z-index:2147482001;width:min(370px,calc(100vw - 20px));max-height:min(570px,calc(100dvh - 30px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #dfd4dc;border-radius:18px;box-shadow:0 16px 55px #0003;}
#jmchat-panel[hidden]{display:none!important;}
#jmchat-root .jmchat-header{background:#66023C;color:white;padding:15px;display:flex;justify-content:space-between;align-items:center;flex:0 0 auto;}
#jmchat-root .jmchat-brand{display:flex;align-items:center;gap:10px;}
#jmchat-root .jmchat-brand-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#66023C;background:white;font-size:25px;}
#jmchat-root .jmchat-brand strong{display:block;color:white;font-family:Perpetua,Georgia,serif;font-size:23px;font-weight:bold;line-height:1.1;}
#jmchat-root .jmchat-brand small{display:block;color:#f1e2eb;font-size:12px;margin-top:3px;}
#jmchat-close{background:transparent!important;border:0!important;box-shadow:none!important;color:white!important;font-size:27px!important;line-height:1!important;padding:4px 8px!important;cursor:pointer;}
#jmchat-content{overflow-y:auto;overscroll-behavior:contain;flex:1 1 auto;min-height:165px;padding:16px;background:#fcf9fb;display:flex;flex-direction:column;gap:10px;}
#jmchat-root .jmchat-message{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;padding:11px 13px;background:#fff;border:1px solid #eee4ea;border-radius:14px 14px 14px 3px;line-height:1.55;color:#29232a;max-width:95%;}
#jmchat-root .jmchat-visitor{background:#efe5ed;margin-left:auto;border-radius:14px 14px 3px 14px;}
#jmchat-root .jmchat-hint{font-size:13px;color:#61545d;margin:5px 0;line-height:1.4;}
#jmchat-root .jmchat-option{width:100%;display:block;text-align:left;border:1px solid #d8bccd!important;border-radius:11px;background:#fff!important;color:#66023C!important;padding:12px 14px!important;font-size:14px!important;font-weight:600;line-height:1.35;cursor:pointer;margin:0!important;box-shadow:none!important;white-space:normal;min-height:43px;}
#jmchat-root .jmchat-option:hover{background:#f4eaf0!important;}
#jmchat-root .jmchat-primary,#jmchat-root .jmchat-submit{background:#66023C!important;color:white!important;border-color:#66023C!important;}
#jmchat-root .jmchat-primary:hover,#jmchat-root .jmchat-submit:hover{background:#4c022e!important;}
#jmchat-root .jmchat-link{font-size:13px;color:#66023C;background:transparent!important;border:0!important;text-decoration:underline;text-underline-offset:3px;text-align:left;padding:8px 2px;cursor:pointer;}
#jmchat-root .jmchat-start,#jmchat-root .jmchat-send{display:flex;flex-direction:column;gap:8px;}
#jmchat-root .jmchat-start input,#jmchat-root .jmchat-send textarea{width:100%;border:1px solid #bdabb8!important;border-radius:10px;padding:11px 12px;box-shadow:none!important;background:#fff;color:#26232a;font:14px/1.5 Arial,Helvetica,sans-serif;resize:vertical;}
#jmchat-root .jmchat-submit{border-radius:9px;padding:11px 15px!important;font:600 14px Arial,Helvetica,sans-serif;border:0;cursor:pointer;}
#jmchat-root .jmchat-submit:disabled{opacity:.5;cursor:wait;}
#jmchat-root .jmchat-error{font-size:12px;color:#a00;}
#jmchat-root .jmchat-history{display:flex;flex-direction:column;gap:9px;min-height:85px;max-height:240px;overflow:auto;}
@media(max-width:480px){#jmchat-bubble{width:60px;height:60px;bottom:16px;right:14px;}#jmchat-panel{border-radius:15px;}#jmchat-content{padding:12px;}}
@media(prefers-reduced-motion:reduce){#jmchat-root *{transition:none!important;animation:none!important;}}
