.pwqm-chat-root{--pwqm-chat-primary:#168bd2;--pwqm-chat-header:#176f9f;--pwqm-chat-background:#f7fafc;--pwqm-chat-assistant:#fff;--pwqm-chat-customer:#e3f3fb;--pwqm-chat-text:#203747;font-family:inherit;color:var(--pwqm-chat-text);z-index:999990}
.pwqm-chat-root:not(.pwqm-chat-inline){position:fixed;right:var(--pwqm-chat-x,22px);bottom:var(--pwqm-chat-y,22px)}
.pwqm-chat-root:not(.pwqm-chat-inline).pwqm-chat-bottom-left{right:auto!important;left:var(--pwqm-chat-x,22px)!important;bottom:var(--pwqm-chat-y,22px)!important;top:auto!important}
.pwqm-chat-root:not(.pwqm-chat-inline).pwqm-chat-top-right{right:var(--pwqm-chat-x,22px)!important;left:auto!important;top:var(--pwqm-chat-y,22px)!important;bottom:auto!important}
.pwqm-chat-root:not(.pwqm-chat-inline).pwqm-chat-top-left{left:var(--pwqm-chat-x,22px)!important;right:auto!important;top:var(--pwqm-chat-y,22px)!important;bottom:auto!important}
.pwqm-chat-launcher{display:flex;align-items:center;gap:10px;border:0;border-radius:999px;padding:13px 19px;background:var(--pwqm-chat-primary);color:#fff;box-shadow:0 7px 24px rgba(15,48,69,.22);font-family:inherit;font-size:16px;font-weight:700;line-height:1.25;cursor:pointer;max-width:calc(100vw - 24px);transition:transform .18s ease,box-shadow .18s ease}
.pwqm-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(15,48,69,.27)}.pwqm-chat-launcher-icon{font-size:19px}.pwqm-chat-launcher-label[hidden]{display:none!important}
.pwqm-chat-size-small .pwqm-chat-launcher{gap:6px;padding:9px 12px;font-size:14px}.pwqm-chat-size-small .pwqm-chat-launcher-icon{font-size:16px}.pwqm-chat-size-large .pwqm-chat-launcher{padding:16px 22px;font-size:16px}.pwqm-chat-size-large .pwqm-chat-launcher-icon{font-size:23px}
.pwqm-chat-panel{position:absolute;right:0;bottom:66px;width:min(390px,calc(100vw - 28px));height:min(360px,calc(100dvh - 110px));min-height:min(270px,calc(100dvh - 100px));max-height:calc(100dvh - 80px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #d9e4eb;border-radius:22px;background:#fff;box-shadow:0 18px 55px rgba(15,42,61,.22)}
.pwqm-chat-bottom-left .pwqm-chat-panel,.pwqm-chat-top-left .pwqm-chat-panel{right:auto;left:0}.pwqm-chat-top-right .pwqm-chat-panel,.pwqm-chat-top-left .pwqm-chat-panel{top:66px;bottom:auto}
.pwqm-chat-inline{display:inline-block;position:relative;z-index:20;max-width:100%}.pwqm-chat-inline .pwqm-chat-panel{position:absolute;right:0;bottom:66px;z-index:30}.pwqm-chat-inline.pwqm-chat-top-left .pwqm-chat-panel,.pwqm-chat-inline.pwqm-chat-top-right .pwqm-chat-panel{top:66px;bottom:auto}
.pwqm-chat-panel[hidden]{display:none!important}.pwqm-chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 18px;background:var(--pwqm-chat-header);color:#fff}.pwqm-chat-brand,.pwqm-chat-subtitle{display:block}.pwqm-chat-brand{font-size:17px;font-weight:750;letter-spacing:.01em}.pwqm-chat-subtitle{margin-top:3px;font-size:14px;opacity:.92}.pwqm-chat-header-actions{display:flex;align-items:center;gap:6px}.pwqm-chat-language,.pwqm-chat-close,.pwqm-chat-voice-output{width:38px;height:38px;min-width:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.38);border-radius:50%;background:transparent;color:#fff;padding:0;font-family:inherit;font-size:14px;cursor:pointer}.pwqm-chat-language[aria-pressed=true],.pwqm-chat-voice-output.is-active{background:#fff;color:var(--pwqm-chat-header)}.pwqm-chat-close{font-size:21px;line-height:1}
.pwqm-chat-log{flex:1;min-height:100px;overflow:auto;display:flex;flex-direction:column;gap:11px;padding:17px;background:var(--pwqm-chat-background)}.pwqm-chat-message{max-width:88%;padding:11px 14px;border-radius:16px;font-size:16px;line-height:1.6;overflow-wrap:anywhere;color:var(--pwqm-chat-text)}.pwqm-chat-message.assistant{align-self:flex-start;border:1px solid #e2e9ee;background:var(--pwqm-chat-assistant);border-bottom-left-radius:5px}.pwqm-chat-message.customer{align-self:flex-end;background:var(--pwqm-chat-customer);border-bottom-right-radius:5px}
.pwqm-chat-quick{display:flex;flex-wrap:wrap;gap:7px;padding:9px 14px;max-height:112px;overflow:auto;border-top:1px solid #edf1f4;background:#fff}.pwqm-chat-chip{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d5e2e9;border-radius:999px;background:#fff;color:var(--pwqm-chat-header);min-height:40px;padding:9px 13px;font-family:inherit;font-size:14px;font-weight:650;line-height:1.3;text-decoration:none;cursor:pointer}.pwqm-chat-chip:hover{background:#eff8fd;border-color:var(--pwqm-chat-primary)}
.pwqm-chat-form{display:flex;align-items:center;gap:8px;padding:11px 13px;border-top:1px solid #e8eef2;background:#fff}.pwqm-chat-form input{flex:1;min-width:0;height:48px;box-sizing:border-box;border:1px solid #d6e0e7;border-radius:13px;padding:10px 12px;background:#fff;font-family:inherit;font-size:16px;color:var(--pwqm-chat-text);outline:none}.pwqm-chat-form input:focus{border-color:var(--pwqm-chat-primary);box-shadow:0 0 0 3px rgba(22,139,210,.16)}.pwqm-chat-form button{width:48px;height:48px;min-width:48px;flex:0 0 48px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:13px;background:var(--pwqm-chat-primary);color:#fff;font-size:20px;cursor:pointer}.pwqm-chat-form button.pwqm-chat-mic{background:#edf4f8;color:#31576c;font-size:17px}.pwqm-chat-form button.pwqm-chat-mic.is-listening{background:#dceffc;color:#075f91;box-shadow:0 0 0 3px rgba(22,139,210,.18);animation:pwqm-chat-pulse 1.2s infinite}.pwqm-chat-form button[hidden],.pwqm-chat-voice-output[hidden]{display:none!important}@keyframes pwqm-chat-pulse{50%{box-shadow:0 0 0 7px rgba(22,139,210,.08)}}
.pwqm-chat-voice-status{margin:0;padding:0 14px 8px;background:#fff;color:#587080;font-size:14px;text-align:center}.pwqm-chat-disclaimer{margin:0;padding:0 12px 10px;background:#fff;color:#5f6f79;font-size:13px;line-height:1.5;text-align:center}.pwqm-chat-root .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:520px){.pwqm-chat-root:not(.pwqm-chat-inline){right:var(--pwqm-chat-x,12px);bottom:var(--pwqm-chat-y,12px)}.pwqm-chat-root:not(.pwqm-chat-inline).pwqm-chat-bottom-left{left:var(--pwqm-chat-x,12px)!important}.pwqm-chat-top-right,.pwqm-chat-root:not(.pwqm-chat-inline).pwqm-chat-top-left{top:var(--pwqm-chat-y,12px)!important}.pwqm-chat-launcher{padding:11px 14px}.pwqm-chat-panel{position:fixed;right:8px;left:auto;bottom:70px;top:auto;width:calc(100vw - 16px);height:min(390px,calc(100dvh - 95px));min-height:min(260px,calc(100dvh - 90px));max-height:calc(100dvh - 80px);border-radius:19px}.pwqm-chat-bottom-left .pwqm-chat-panel,.pwqm-chat-top-left .pwqm-chat-panel{right:auto;left:8px}.pwqm-chat-top-right .pwqm-chat-panel,.pwqm-chat-top-left .pwqm-chat-panel{top:70px;bottom:auto}.pwqm-chat-quick{max-height:84px}}

/* Optional floating-launcher shapes. Elementor mode uses the site's native Elementor button instead. */
.pwqm-chat-shape-pill .pwqm-chat-launcher{border-radius:999px}
.pwqm-chat-shape-rounded .pwqm-chat-launcher{border-radius:14px}
.pwqm-chat-shape-soft-square .pwqm-chat-launcher{border-radius:8px}
.pwqm-chat-shape-square .pwqm-chat-launcher{border-radius:2px}
.pwqm-chat-shape-circle .pwqm-chat-launcher{width:54px;height:54px;padding:0;border-radius:50%;justify-content:center}
.pwqm-chat-shape-circle .pwqm-chat-launcher-label{display:none!important}
.pwqm-chat-elementor-mode{position:relative;display:block;width:0;height:0;min-width:0;min-height:0;overflow:visible}
.pwqm-chat-elementor-mode .pwqm-chat-launcher{display:none!important}
.pwqm-chat-elementor-mode .pwqm-chat-panel{position:fixed;right:24px;bottom:24px;z-index:999991}
.pwqm-chat-elementor-mode .pwqm-chat-panel[hidden]{display:none!important}
@media(max-width:520px){.pwqm-chat-elementor-mode .pwqm-chat-panel{right:8px;bottom:8px;left:8px;width:auto;height:min(390px,calc(100dvh - 16px));min-height:min(260px,calc(100dvh - 16px));max-height:calc(100dvh - 16px)}}

/* Accessible visible trigger fallback; Elementor native Button styling remains preferred. */
.pwqm-chat-shortcode-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 20px;border:0;border-radius:999px;background:var(--pwqm-chat-primary,#168bd2);color:#fff;font:inherit;font-weight:700;line-height:1.2;text-decoration:none;cursor:pointer;}
.pwqm-chat-shortcode-button:hover,.pwqm-chat-shortcode-button:focus-visible{filter:brightness(.94);}
.pwqm-chat-header-actions .pwqm-chat-close{width:38px;height:38px;min-width:38px;font-size:25px;line-height:1;cursor:pointer;pointer-events:auto;position:relative;z-index:2;}

/* Defensive visibility state: closing the chat must win over theme/widget display rules. */
.pwqm-chat-panel[hidden],.pwqm-chat-panel[aria-hidden="true"]{display:none!important;visibility:hidden!important;pointer-events:none!important}
.pwqm-chat-panel:not([hidden]):not([aria-hidden="true"]){visibility:visible}

/* Progressive height: compact on first open, taller once the conversation develops. */
.pwqm-chat-expanded .pwqm-chat-panel{height:min(520px,calc(100dvh - 90px))}
@media(max-width:520px){.pwqm-chat-expanded .pwqm-chat-panel{height:min(550px,calc(100dvh - 80px))}}
.pwqm-chat-elementor-mode.pwqm-chat-expanded .pwqm-chat-panel{height:min(520px,calc(100dvh - 48px))}
@media(max-width:520px){.pwqm-chat-elementor-mode.pwqm-chat-expanded .pwqm-chat-panel{height:calc(100dvh - 16px)}}
.pwqm-chat-init-error{position:fixed;right:16px;bottom:16px;z-index:1000000;max-width:min(360px,calc(100vw - 32px));padding:14px 16px;border:1px solid #b42318;border-radius:12px;background:#fff;color:#7a271a;font-size:15px;line-height:1.5;box-shadow:0 8px 28px rgba(0,0,0,.18)}
.pwqm-chat-panel:focus-within{outline:none}

.pwqm-chat-root button:focus-visible,.pwqm-chat-root a:focus-visible{outline:3px solid #075985;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.pwqm-chat-launcher,.pwqm-chat-form button.pwqm-chat-mic.is-listening{transition:none;animation:none}}


/* 0.8.3 accessibility and mobile interaction corrections. */
.pwqm-chat-root{--pwqm-chat-text:#172b3a;--pwqm-chat-customer-text:#172b3a}
.pwqm-chat-message{color:var(--pwqm-chat-assistant-text,#172b3a)!important;font-size:17px;line-height:1.6}
.pwqm-chat-message.customer{color:var(--pwqm-chat-customer-text,#172b3a)!important}
.pwqm-chat-form input,.pwqm-chat-form input[type="text"]{color:#172b3a!important;-webkit-text-fill-color:#172b3a!important;background:#fff!important;caret-color:#172b3a!important;font-size:18px!important;font-weight:500;opacity:1!important;}
.pwqm-chat-form input::placeholder{color:#536575!important;-webkit-text-fill-color:#536575!important;opacity:1!important}
.pwqm-chat-chip{font-size:15px;min-height:44px;color:#173b50!important}
.pwqm-chat-brand{font-size:18px}
.pwqm-chat-subtitle{font-size:15px}
.pwqm-chat-voice-status{color:#344b5b!important;font-size:15px;line-height:1.45;padding:8px 14px;background:#fff}
.pwqm-chat-disclaimer{color:#4b5c68!important;font-size:14px;line-height:1.45}
.pwqm-chat-form button,.pwqm-chat-chip,.pwqm-chat-language,.pwqm-chat-close,.pwqm-chat-voice-output{touch-action:manipulation;-webkit-tap-highlight-color:rgba(0,0,0,.08);pointer-events:auto}
.pwqm-chat-form button.pwqm-chat-mic.is-starting{background:#fff3d6!important;color:#704b00!important;animation:pwqm-chat-pulse 1s infinite}
.pwqm-chat-form button.pwqm-chat-mic.is-unavailable{background:#f0f2f4!important;color:#465563!important}
.pwqm-chat-form button.pwqm-chat-mic[aria-pressed="true"]{outline:2px solid #075985;outline-offset:2px}
.pwqm-chat-panel:focus{outline:none}
@media(max-width:520px){.pwqm-chat-panel{min-height:min(250px,calc(100dvh - 90px))}.pwqm-chat-expanded .pwqm-chat-panel{height:min(550px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)}}
