.chat-widget{z-index:1000;color:#17243a;font-family:Arial,Microsoft YaHei,sans-serif;position:fixed;bottom:24px;right:24px}.chat-launcher{color:#fff;cursor:pointer;background:#e96800;border:0;border-radius:30px;align-items:center;gap:8px;margin-left:auto;padding:15px 22px;font-weight:700;display:flex;box-shadow:0 5px 25px #0003}.chat-launcher>span:first-child{font-size:23px}.chat-new{color:#a64000;background:#fff;border-radius:10px;padding:3px 6px;font-size:14px}.chat-window{background:#fff;border:1px solid #dbe2e8;border-radius:16px;flex-direction:column;width:370px;max-width:calc(100vw - 32px);height:min(580px,100dvh - 110px);margin-bottom:12px;display:flex;overflow:hidden;box-shadow:0 12px 50px #0003}.chat-window>header{color:#fff;background:#173c30;justify-content:space-between;align-items:center;padding:18px;display:flex}.chat-window header strong,.chat-window header small{display:block}.chat-window header small{color:#d2e8da;margin-top:5px;font-size:14px}.chat-window header button{color:#fff;cursor:pointer;background:0 0;border:0;font-size:30px}.chat-messages{overscroll-behavior:contain;background:#f6f8f7;flex:1;min-height:0;padding:16px;overflow-y:auto}.chat-welcome{color:#58665d;font-size:16px;line-height:1.7}.chat-bubble{overflow-wrap:anywhere;background:#fff;border:1px solid #e0e7e1;border-radius:12px;max-width:88%;margin:0 0 12px;padding:10px 12px;font-size:16px}.chat-bubble.visitor{background:#e5f3e9;border-color:#c9e4d0;margin-left:auto}.chat-bubble p{white-space:pre-wrap;margin:5px 0;line-height:1.55}.chat-bubble small,.chat-bubble time{color:#52665a;font-size:13px}.chat-window form{background:#fff;border-top:1px solid #e2e8e4;padding:12px}.chat-input-label{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.chat-window textarea,.chat-admin textarea{resize:vertical;width:100%;font:inherit;color:#17243a;background:#fff;border:1px solid #cbd6ce;border-radius:7px;padding:10px;font-size:18px}.chat-compose-footer{align-items:center;gap:10px;margin-top:8px;display:flex}.chat-compose-footer small{color:#68786f;flex:1;font-size:13px}.chat-compose-footer button,.chat-admin form button{color:#fff;cursor:pointer;background:#176542;border:0;border-radius:6px;padding:10px 17px;font-weight:700}.chat-compose-footer button:disabled,.chat-admin button:disabled{opacity:.5;cursor:default}.chat-error{color:#aa3131;margin:4px 0;padding:5px 0;font-size:15px}.chat-admin{color:#17243a;max-width:1280px;margin:auto;padding:24px}.chat-admin>header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;display:flex}.chat-admin h1{margin:0;font-size:30px}.chat-admin header p{color:#637269;font-size:16px}.chat-admin header a{color:#176542;white-space:nowrap;text-decoration:underline}.chat-inbox{background:#fff;border:1px solid #d9e1db;border-radius:12px;grid-template-columns:320px 1fr;height:75dvh;min-height:420px;display:grid;overflow:hidden}.chat-inbox>nav{border-right:1px solid #d9e1db;overflow-y:auto}.chat-inbox>nav>p{padding:20px}.chat-inbox nav button{text-align:left;cursor:pointer;background:#fff;border:0;border-bottom:1px solid #e4e9e5;width:100%;padding:17px;display:block}.chat-inbox nav button.selected{background:#e5f3e9}.chat-inbox nav strong,.chat-inbox nav span,.chat-inbox nav small{display:block}.chat-inbox nav span{white-space:nowrap;text-overflow:ellipsis;margin:7px 0;font-size:16px;overflow:hidden}.chat-inbox nav small{color:#6b7b70;font-size:13px}.chat-inbox nav b{color:#b85200;font-size:13px}.chat-admin-thread{flex-direction:column;min-width:0;min-height:0;display:flex}.chat-admin-thread h2{border-bottom:1px solid #e4e9e5;margin:0;padding:15px;font-size:19px}.chat-admin-thread form{padding:14px}.chat-admin-thread form label{margin-bottom:6px;font-size:16px;display:block}.chat-admin-thread form button{float:right;margin-top:8px}.chat-admin-thread>.chat-welcome{padding:25px}@media (max-width:600px){.chat-widget{bottom:16px;right:16px}.chat-window{width:calc(100vw - 32px)}.chat-admin{padding:14px}.chat-admin>header{flex-direction:column;align-items:flex-start}.chat-inbox{grid-template-columns:1fr;height:auto}.chat-inbox>nav{border-bottom:1px solid #d9e1db;max-height:180px}.chat-admin-thread{height:65dvh;min-height:400px}.chat-launcher{padding:12px 18px}}.chat-feedback-only{border-top:1px solid #d9e3ec;padding:16px}.chat-feedback-only>a{color:#c75c00;margin-bottom:8px;font-weight:700;display:block}.chat-feedback-only>small{overflow-wrap:anywhere;font-size:13px;line-height:1.6;display:block}.chat-admin-views{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:16px;display:flex}.chat-admin-views button,.chat-admin-thread-heading button{color:#174b35;min-height:44px;font:inherit;cursor:pointer;background:#fff;border:1px solid #bdd0c3;border-radius:7px;padding:11px 16px}.chat-admin-views button[aria-pressed=true]{color:#fff;background:#176542}.chat-admin-views span{color:#637269;font-size:14px}.chat-admin-thread-heading{border-bottom:1px solid #e4e9e5;justify-content:space-between;align-items:center;gap:12px;padding-right:14px;display:flex}.chat-admin-thread-heading h2{overflow-wrap:anywhere;border-bottom:0}.chat-admin-thread-heading button{flex-shrink:0}.chat-admin textarea{box-sizing:border-box}.chat-bubble.is-member,.chat-bubble.visitor.is-member{color:#4e2b0d;background:#fff0df;border-color:#ef9a45 #ef9a45 #ef9a45 #e96800;border-left-style:solid;border-left-width:4px}.chat-bubble.is-member small,.chat-bubble.is-member time{color:#74451e}.chat-membership-badge,.chat-inbox nav .chat-membership-badge{white-space:nowrap;color:#834000;vertical-align:middle;background:#ffeed7;border:1px solid #e99135;border-radius:20px;margin:0 0 0 5px;padding:2px 7px;font-size:11px;font-style:normal;font-weight:700;line-height:1.5;display:inline-block}.chat-inbox nav button.is-member{border-left:4px solid #e96800}.chat-inbox nav button.is-member.selected{background:#fff0df}.chat-window textarea{box-sizing:border-box}.chat-composer-tools{min-width:0;margin-top:8px;position:relative}.chat-tools-row{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.chat-tools-row>small{color:#637269;font-size:10px;line-height:1.5}.chat-tools-row .chat-tool-button,.chat-admin form .chat-tools-row .chat-tool-button{float:none;color:#234c39;min-height:36px;font:inherit;cursor:pointer;background:#f7faf8;border:1px solid #c3d2c8;border-radius:7px;align-items:center;gap:5px;margin:0;padding:6px 10px;font-size:13px;font-weight:600;display:inline-flex}.chat-tool-button>span{font-size:20px;line-height:1}.chat-composer-tools button:disabled{opacity:.5;cursor:not-allowed}.chat-image-picker{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute;overflow:hidden}.chat-emoji-panel{background:#fff;border:1px solid #cbd9d0;border-radius:9px;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-top:7px;padding:9px;display:grid;box-shadow:0 5px 18px #142d1c12}.chat-emoji-panel button,.chat-admin form .chat-emoji-panel button{float:none;color:#17243a;cursor:pointer;background:#f3f7f4;border:1px solid #0000;border-radius:6px;min-height:38px;margin:0;padding:5px;font-size:23px;line-height:1.2}.chat-emoji-panel button:hover,.chat-emoji-panel button:focus-visible{background:#e4f2e8;border-color:#7eaf8d}.chat-emoji-panel .chat-emoji-close,.chat-admin form .chat-emoji-panel .chat-emoji-close{color:#41664d;background:0 0;grid-column:1/-1;min-height:30px;font-size:12px}.chat-image-preview{background:#f2f8f4;border:1px solid #cbd9d0;border-radius:8px;align-items:center;gap:9px;min-width:0;margin-top:8px;padding:8px;display:flex}.chat-image-preview>img{object-fit:contain;background:#fff;border-radius:5px;flex:none;width:58px;height:58px}.chat-image-preview>div{flex:1;min-width:0}.chat-image-preview strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;display:block;overflow:hidden}.chat-image-preview small{color:#557160;margin-top:4px;font-size:11px;line-height:1.5;display:block}.chat-image-preview>button,.chat-admin form .chat-image-preview>button{float:none;color:#924137;min-height:36px;font:inherit;cursor:pointer;background:#fff8f6;border:1px solid #d6b7b3;border-radius:6px;flex:none;margin:0;padding:6px 9px;font-size:12px}.chat-message-image{min-width:0;margin:8px 0}.chat-message-image>a{max-width:100%;line-height:0;display:block}.chat-message-image img{object-fit:contain;background:#f0f4f1;border:1px solid #d7e3da;border-radius:8px;max-width:100%;min-height:48px;max-height:320px;display:block}.chat-message-image p{color:#80542f;font-size:13px;line-height:1.6}.chat-composer-tools button:focus-visible,.chat-message-image a:focus-visible{outline-offset:2px;outline:3px solid #7faf8e}@media (max-width:600px){.chat-tools-row .chat-tool-button,.chat-admin form .chat-tools-row .chat-tool-button{min-height:40px}.chat-emoji-panel button,.chat-admin form .chat-emoji-panel button{min-height:42px}.chat-message-image img{max-height:260px}}
