.alg-floating{position:relative;z-index:999999}.alg-chat-launcher{position:fixed!important;border:0!important;background:#3e55df!important;color:#fff!important;padding:15px 19px!important;border-radius:40px!important;box-shadow:0 9px 30px #18264740;cursor:pointer!important;font-weight:700!important}.alg-chat-panel{width:min(380px,calc(100vw - 24px));height:min(510px,calc(100vh - 115px));display:flex;flex-direction:column;background:#fff;border:1px solid #e4e9f0;border-radius:17px;overflow:hidden;box-shadow:0 12px 45px #15213a30;color:#1a263b;font-family:system-ui,-apple-system,sans-serif}.alg-chat-panel[hidden]{display:none!important}.alg-floating .alg-chat-panel{position:fixed}.alg-chat-head{display:flex;align-items:center;justify-content:space-between;padding:16px;background:#1c3650;color:#fff}.alg-chat-close{border:0;background:transparent;color:white;font-size:26px;cursor:pointer}.alg-chat-feed{padding:18px;overflow-y:auto;flex:1;background:#f5f8fc;display:flex;flex-direction:column;gap:12px}.alg-chat-bot,.alg-chat-human{border-radius:12px;padding:12px 13px;line-height:1.5;font-size:14px;max-width:90%;overflow-wrap:anywhere}.alg-chat-bot{background:#fff;align-self:flex-start}.alg-chat-human{background:#d9f2e5;align-self:flex-end}.alg-chat-controls{padding:12px;display:flex;flex-wrap:wrap;gap:9px}.alg-chat-option{border:1px solid #a8b6e4;background:#f5f7ff;color:#253aa7;padding:10px;border-radius:9px;cursor:pointer;flex:1 1 42%}.alg-chat-form{display:flex;gap:8px;width:100%}.alg-chat-form input{min-width:0;flex:1;padding:10px;border:1px solid #cad4e3;border-radius:8px}.alg-chat-form button{border:0;border-radius:8px;color:#fff;background:#4058dd;padding:9px 13px;cursor:pointer}.alg-public-mount{display:block;max-width:390px}.alg-public-mount .alg-chat-panel{width:100%}@media(max-width:420px){.alg-floating .alg-chat-panel{left:12px!important;right:12px!important;width:auto}}

.alg-chat-controls a.alg-chat-option{text-align:center;background:#e5f6ec;color:#176142;text-decoration:none;display:block;font-weight:700}

/* Widget theme variables configured per WordPress installation */
.alg-floating,.alg-public-mount{font-family:var(--alg-font,system-ui,sans-serif)}
.alg-chat-launcher{background:var(--alg-primary,#3e55df)!important;font-family:var(--alg-font,system-ui,sans-serif)!important}
.alg-chat-panel{color:var(--alg-text,#1a263b);font-family:var(--alg-font,system-ui,sans-serif);font-size:var(--alg-font-size,14px)}
.alg-chat-head{background:var(--alg-header,#1c3650)}
.alg-chat-feed{background:var(--alg-background,#f5f8fc)}
.alg-chat-bot{background:var(--alg-bot,#fff);font-size:inherit}
.alg-chat-human{background:var(--alg-user,#d9f2e5);font-size:inherit}
.alg-chat-option{color:var(--alg-primary,#3e55df);border-color:var(--alg-primary,#3e55df)}
.alg-chat-form button{background:var(--alg-primary,#3e55df)}

/* F01.6 appearance controls */
.alg-chat-launcher{border-radius:var(--alg-button-radius,40px)!important;padding:var(--alg-button-padding,16px)!important;box-shadow:0 calc(var(--alg-button-shadow,2)*4px) calc(var(--alg-button-shadow,2)*13px) #18264740!important;display:flex!important;align-items:center;gap:9px}
.alg-chat-panel{border-radius:var(--alg-panel-radius,17px);width:min(var(--alg-panel-width,380px),calc(100vw - 24px));height:min(var(--alg-panel-height,510px),calc(100vh - 115px));box-shadow:0 calc(var(--alg-chat-shadow,2)*5px) calc(var(--alg-chat-shadow,2)*22px) #15213a30}
.alg-chat-feed{gap:var(--alg-gap,12px)}.alg-chat-avatar{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;border-radius:50%;background:#ffffff25;font-size:12px;font-weight:800;margin-right:9px}.alg-chat-head strong{flex:1}.alg-launcher-icon{font-size:17px}

/* F01.8: independent floating button theme */
.alg-chat-launcher{background:var(--alg-button-bg,#3e55df)!important;color:var(--alg-button-text,#fff)!important;border:var(--alg-button-border-width,0px) solid var(--alg-button-border,#3e55df)!important;font-family:var(--alg-button-font,system-ui,sans-serif)!important;font-size:var(--alg-button-font-size,15px)!important;font-weight:var(--alg-button-weight,700)!important;gap:var(--alg-button-gap,9px)!important}.alg-chat-launcher .alg-launcher-icon{font-size:var(--alg-button-icon-size,17px)!important;line-height:1}

/* F01.9: answer option styles independent from floating launcher */
.alg-chat-controls{gap:var(--alg-option-gap,9px)}
.alg-chat-controls button.alg-chat-option{box-sizing:border-box;appearance:none;background:var(--alg-option-bg,#f5f7ff)!important;color:var(--alg-option-text,#253aa7)!important;border:var(--alg-option-border-width,1px) solid var(--alg-option-border,#a8b6e4)!important;border-radius:var(--alg-option-radius,10px)!important;padding:var(--alg-option-pad-y,12px) var(--alg-option-pad-x,14px)!important;font-size:var(--alg-option-font-size,14px)!important;font-weight:var(--alg-option-weight,500)!important;line-height:1.4;text-align:center;transition:background-color .16s ease,color .16s ease,border-color .16s ease;min-width:0;overflow-wrap:anywhere}
.alg-chat-controls button.alg-chat-option:hover,.alg-chat-controls button.alg-chat-option:focus-visible{background:var(--alg-option-hover-bg,#e7edff)!important;color:var(--alg-option-hover-text,#1d318d)!important;border-color:var(--alg-option-hover-border,#526be2)!important}
.alg-chat-controls button.alg-chat-option.alg-option-selected,.alg-chat-controls button.alg-chat-option:active{background:var(--alg-option-selected-bg,#dfe7ff)!important;color:var(--alg-option-selected-text,#172b80)!important;border-color:var(--alg-option-selected-border,#3e55df)!important}
.alg-chat-controls button.alg-chat-option:focus-visible{outline:2px solid var(--alg-option-hover-border,#526be2);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.alg-chat-controls button.alg-chat-option{transition:none}}

/* F01.11 — Contact details before WhatsApp */
.alg-chat-form.alg-contact-form{display:flex;flex-direction:column;gap:9px;width:100%}.alg-contact-form input{width:100%;box-sizing:border-box;flex:none;min-height:42px;background:#fff;color:#1a263b}.alg-contact-form button{width:100%;min-height:43px}.alg-contact-submit{appearance:none;background:var(--alg-wa-cta-bg,#25D366)!important;color:var(--alg-wa-cta-text,#ffffff)!important;border:var(--alg-wa-cta-border-width,0px) solid var(--alg-wa-cta-border,#25D366)!important;border-radius:var(--alg-wa-cta-radius,10px)!important;padding:var(--alg-wa-cta-pad-y,12px) var(--alg-wa-cta-pad-x,16px)!important;font-size:var(--alg-wa-cta-font-size,16px)!important;font-weight:700!important;line-height:1.35;box-shadow:0 calc(var(--alg-wa-cta-shadow,1)*4px) calc(var(--alg-wa-cta-shadow,1)*14px) rgba(10,26,48,.14)!important;cursor:pointer}.alg-contact-submit:hover,.alg-contact-submit:focus-visible{filter:brightness(.97)}.alg-contact-submit:focus-visible{outline:2px solid var(--alg-wa-cta-border,#25D366);outline-offset:2px}.alg-contact-note{display:block;width:100%;font-size:11px;line-height:1.4;color:var(--alg-text,#1a263b);opacity:.8}

.alg-consent-label{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.45;color:var(--alg-text,#1a263b)}.alg-consent-label input{flex:0 0 auto!important;width:16px!important;min-height:16px!important;margin:2px 0 0}.alg-contact-error{color:#a52c24;font-size:12px}.alg-contact-submit:disabled{opacity:.65;cursor:wait}
