#jin-chat-launcher{box-sizing:border-box;position:fixed;right:24px;bottom:144px;bottom:calc(144px + env(safe-area-inset-bottom,0px));z-index:12070;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:160px;height:56px;padding:0 18px;border:1px solid #d8bcfb;border-radius:16px;background:linear-gradient(180deg,#fff 0%,#f1e7ff 45%,#ceb0fb 100%);color:#5f22ce;font-family:inherit;font-size:17px;font-weight:800;cursor:pointer;box-shadow:0 4px 8px #7432d726;touch-action:manipulation;transition:filter .15s ease}
#jin-chat-launcher:hover{filter:brightness(1.04)}
#jin-chat-launcher[data-draggable="true"]{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;max-width:calc(100vw - 24px)}
#jin-chat-launcher[data-dragging="true"]{cursor:grabbing;filter:brightness(1.04)}
#jin-chat-launcher svg{pointer-events:none}
#jin-chat-launcher .jin-chat-icon{display:inline-flex;align-items:center}
#jin-chat-launcher .jin-chat-arrow{font-size:24px;line-height:1;font-weight:500}
#jin-chat-launcher[data-chat-state="shown"]{display:none}
#jin-chat-launcher:focus-visible,#jin-chat-status button:focus-visible,#jin-chat-status a:focus-visible{outline:3px solid #9672ff;outline-offset:3px}
#jin-footer-reset:disabled{opacity:.45;cursor:default}
#jin-footer-bar{grid-template-columns:minmax(0,1fr) auto}
#jin-footer-chat-slot{width:160px;height:56px}
#jin-footer-actions{grid-column:1/-1;min-width:0}
@media(min-width:1200px){#jin-footer-bar{grid-template-columns:minmax(0,1fr) auto auto}#jin-footer-actions{grid-column:auto}}
@media(max-width:639px){#jin-footer-chat-slot{width:136px;height:48px}#jin-footer-bar{column-gap:10px}#jin-footer-bar>div:first-child>div:first-child{display:none}#jin-footer-bar [data-jin-footer-total]{font-size:26px}#jin-footer-bar [data-jin-mobile-cart-hint]{white-space:normal!important;font-size:10px!important}}
@media(max-width:639px){#jin-chat-launcher{right:14px;bottom:184px;bottom:calc(184px + env(safe-area-inset-bottom,0px));min-width:136px;height:48px;padding:0 14px;gap:8px;font-size:15px}}
#jin-chat-status{box-sizing:border-box;position:fixed;right:16px;bottom:178px;bottom:calc(178px + env(safe-area-inset-bottom,0px));z-index:10000010;width:360px;max-width:calc(100vw - 32px);max-height:calc(100vh - 210px);max-height:calc(100dvh - 210px);overflow:auto;background:#fff;color:#172033;border:1px solid #d7cced;border-radius:8px;padding:18px;box-shadow:0 2px 8px #0002;font-size:14px;line-height:1.6;overscroll-behavior:contain}
#jin-chat-status strong{display:block;padding-right:34px;font-size:16px}
#jin-chat-status p{margin:12px 0}
#jin-chat-status button{min-height:42px;padding:8px 12px;margin:4px 6px 4px 0;background:#fff;color:#5630bc;border:1px solid #d7cced;border-radius:6px;cursor:pointer;font:inherit}
#jin-chat-status .jin-chat-close{position:absolute;top:8px;right:8px;padding:4px;font-size:12px;border:0;margin:0}
#jin-chat-status a{display:block;background:#fff2bd;color:#403715;padding:10px 12px;margin-top:10px;border-radius:6px;text-align:center;text-decoration:underline;font-weight:700}
#jin-chat-status textarea{box-sizing:border-box;width:100%;height:96px;resize:vertical;padding:8px;color:#172033;background:#faf8ff;border:1px solid #d7cced;font:inherit}
@media(max-height:500px){#jin-chat-status{bottom:12px;max-height:calc(100dvh - 24px);right:88px;max-width:calc(100vw - 104px)}}
/* The desktop SDK keeps a 430px minimum width and the channel's 135px offset.
   Keep its real messenger inside narrow desktop windows, without forcing it open. */
@media(max-width:640px){#ch-plugin #ch-plugin-script.ch-desk-messenger{left:8px!important;top:12px!important;width:calc(100vw - 16px)!important;min-width:0!important;max-width:430px!important;min-height:0!important;height:calc(100vh - 190px)!important;height:calc(100dvh - 190px)!important;max-height:calc(100vh - 190px)!important;max-height:calc(100dvh - 190px)!important}}
