.st-ki-widget{--st-ki-accent:#b85c90;font:inherit;color:#352c33;box-sizing:border-box}.st-ki-widget *{box-sizing:border-box}.st-ki-widget button{cursor:pointer;font:inherit}.st-ki-floating{position:fixed;right:20px;bottom:20px;z-index:99999;max-width:calc(100vw - 24px)}.st-ki-toggle{border:none!important;border-radius:999px!important;background:var(--st-ki-accent)!important;color:white!important;padding:12px 18px!important;box-shadow:0 5px 20px #3333!important;font-weight:700!important}.st-ki-floating .st-ki-panel{position:absolute;right:0;bottom:65px;width:355px;max-width:calc(100vw - 24px);height:min(520px,75vh);box-shadow:0 12px 36px #0003}.st-ki-panel{display:flex;flex-direction:column;border-radius:17px;background:white;overflow:hidden;border:1px solid #e9d8e2;min-height:360px;box-shadow:0 4px 14px #0001}.st-ki-panel[hidden]{display:none!important}.st-ki-embedded{max-width:540px;margin:20px auto}.st-ki-embedded .st-ki-panel{height:500px}.st-ki-header{background:var(--st-ki-accent);color:white;padding:13px 14px;display:flex;justify-content:space-between;gap:10px;align-items:center}.st-ki-header span{display:flex;flex-direction:column;gap:2px}.st-ki-header small{font-size:12px;opacity:.95}.st-ki-close{background:transparent;border:0;color:white;font-size:24px}.st-ki-messages{padding:13px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:10px;background:#fffafc;min-height:80px}.st-ki-bubble{padding:10px 12px;border-radius:14px;line-height:1.45;max-width:94%;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.st-ki-bot{background:#fff;border:1px solid #eedfe7;align-self:flex-start}.st-ki-user{background:#f0d9e6;align-self:flex-end}.st-ki-privacy{font-size:11px;background:#fff;padding:8px 12px;border-top:1px solid #eee}.st-ki-privacy label{display:flex;gap:6px;align-items:flex-start}.st-ki-privacy input{flex:none;margin-top:3px}.st-ki-privacy small{display:block;line-height:1.35;margin-top:5px;color:#6f656b}.st-ki-privacy a{color:var(--st-ki-accent)}.st-ki-chat-form{display:flex;gap:7px;padding:10px;background:white;border-top:1px solid #eee}.st-ki-chat-form input{flex:1;min-width:0;padding:9px;border:1px solid #dbc6d3;border-radius:10px;background:white;color:#222;font-size:14px}.st-ki-chat-form button{border:0;border-radius:10px;background:var(--st-ki-accent);color:white;padding:9px 13px;font-weight:600}.st-ki-chat-form button:disabled{opacity:.6;cursor:wait}.st-ki-error{padding:7px 12px;font-size:12px;color:#911b3d;background:#fff1f3}.st-ki-error[hidden]{display:none!important}@media(max-width:450px){.st-ki-floating{right:12px;bottom:12px}.st-ki-floating .st-ki-panel{height:min(570px,80vh)}.st-ki-widget .st-ki-chat-form input{font-size:16px}}

/* v0.1.7: safe markdown and direct real-product links */
.st-ki-bubble a,.st-ki-message a{color:#9b286f;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}.st-ki-message a{color:#2271b1}.st-ki-result-links{margin-top:10px;padding-top:9px;border-top:1px solid #e6d6e0}.st-ki-result-links strong{font-size:12px}.st-ki-result-links ul{padding-left:16px;margin:6px 0 0;list-style:disc}.st-ki-result-links li{margin-bottom:5px}.st-ki-result-links a{font-weight:600}

/* Admin preview under WooCommerce Coming Soon; never rendered for visitors */
.st-ki-preview-note{padding:8px 12px;background:#fff7db;color:#5c4400;border-bottom:1px solid #ead28c;font-size:12px;line-height:1.4;font-weight:600}
/* v0.1.21 - Chatverlauf und Bestellung: mobil bedienbare Werkzeugleiste. */
.st-ki-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:8px 12px;border-bottom:1px solid #f0e1e9;background:#fff}
.st-ki-toolbar button{border:1px solid #e5cbd9;background:#fff;color:#583245;border-radius:8px;padding:5px 9px;font-size:12px;cursor:pointer}
.st-ki-toolbar button:hover,.st-ki-toolbar button:focus-visible{border-color:var(--st-ki-accent)}
.st-ki-remember-label{display:flex!important;align-items:flex-start!important;gap:7px;margin-top:9px;font-size:11px;line-height:1.4}
.st-ki-remember-label span{color:#735763}
.st-ki-remember-label input{margin-top:2px!important}
.st-ki-order-box{padding:12px;border-top:1px solid #edd8e5;background:#fff6fa;max-height:47vh;overflow:auto;font-size:13px}
.st-ki-order-box[hidden],.st-ki-order-box form[hidden],.st-ki-order-feedback[hidden]{display:none!important}
.st-ki-order-heading{display:flex;align-items:center;justify-content:space-between}
.st-ki-order-heading button{font-size:21px;border:0;background:none;color:#4f3b44}
.st-ki-order-box p{margin:8px 0}
.st-ki-order-box form{display:flex;flex-direction:column;gap:8px}
.st-ki-order-box form label{display:flex;flex-direction:column;gap:4px}
.st-ki-order-box input{width:100%;padding:8px;border:1px solid #dcbacb;border-radius:6px;font-size:16px;background:#fff;color:#222}
.st-ki-order-box form button,.st-ki-my-orders{border:0;background:var(--st-ki-accent);color:#fff;padding:9px 12px;border-radius:8px;font-size:13px}
.st-ki-order-feedback{margin:10px 0 0!important;line-height:1.45}

/* v0.1.22 – kompakte Einwilligung; Details nur bei Bedarf ausklappen. */
.st-ki-widget .st-ki-privacy{flex:0 0 auto;padding:6px 12px;font-size:11px;line-height:1.32}
.st-ki-widget .st-ki-consent-row{display:flex;align-items:center;gap:8px;line-height:1.35;margin:0}
.st-ki-widget .st-ki-consent-row input{margin:0;flex:0 0 auto}
.st-ki-widget .st-ki-consent-row .st-ki-consent-confirmed{font-weight:600;color:#39754d}
.st-ki-widget .st-ki-privacy [hidden]{display:none!important}
.st-ki-widget .st-ki-privacy-details{margin:3px 0 0;padding:0}
.st-ki-widget .st-ki-privacy-details summary{display:list-item;cursor:pointer;list-style:revert;color:#824c6d;font-weight:600;font-size:11px;line-height:1.5;list-style-position:inside}
.st-ki-widget .st-ki-privacy-details summary:focus-visible{outline:2px solid var(--st-ki-accent);outline-offset:2px}
.st-ki-widget .st-ki-privacy-details-content{padding:8px 3px 4px;max-height:min(190px,34vh);overflow-y:auto}
.st-ki-widget .st-ki-privacy-details-content p{margin:0 0 7px;font-size:11px;line-height:1.45;color:#655663}
.st-ki-widget .st-ki-privacy-details-content .st-ki-remember-label{margin:7px 0!important;font-size:11px;align-items:flex-start!important}
.st-ki-widget .st-ki-privacy-details-content .st-ki-remember-label span{color:#44343d}
.st-ki-widget .st-ki-messages{min-height:80px;min-width:0;overflow:auto;flex:1 1 auto}
.st-ki-widget .st-ki-chat-form{flex:0 0 auto}
.st-ki-widget .st-ki-preview-note{font-size:11px;font-weight:500;padding:5px 12px}
.st-ki-widget .st-ki-preview-note summary{cursor:pointer;font-weight:600}
.st-ki-widget .st-ki-preview-note span{display:block;margin-top:5px}


/* v0.1.27: Privilegierter Admin-Modus im selben Widget; strikt separate Chat-Oberflächen. */
.st-ki-widget .st-ki-mode-switch{display:flex;flex:0 0 auto;padding:6px 9px;gap:6px;background:#fbf1f7;border-bottom:1px solid #ead7e3}
.st-ki-widget .st-ki-mode-switch button{flex:1 1 50%;padding:7px 5px;border:1px solid #e2c8d8;background:white;color:#513347;border-radius:9px;font-size:12px;font-weight:600;line-height:1.35}
.st-ki-widget .st-ki-mode-switch button[aria-pressed="true"]{background:var(--st-ki-accent);color:#fff;border-color:var(--st-ki-accent)}
.st-ki-widget .st-ki-admin-title[hidden]{display:none!important}
.st-ki-widget .st-ki-admin-chat[hidden]{display:none!important}
.st-ki-widget .st-ki-admin-chat{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;background:#fffafc}
.st-ki-widget .st-ki-admin-chat-note{flex:0 0 auto;padding:7px 12px;font-size:11px;line-height:1.4;background:#fff3df;color:#58482c;max-height:82px;overflow-y:auto}
.st-ki-widget .st-ki-admin-messages{flex:1 1 auto;min-height:80px;overflow-y:auto;padding:13px;display:flex;flex-direction:column;gap:10px}
.st-ki-widget .st-ki-admin-actions{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:6px;padding:5px 11px;background:#fff;border-top:1px solid #eee;font-size:11px}
.st-ki-widget .st-ki-admin-actions button{font-size:11px;border:1px solid #e2cad7;border-radius:7px;background:#fff;color:#643d51;padding:4px 8px}
.st-ki-widget .st-ki-admin-actions a{font-size:11px;color:#804167;text-decoration:underline}
.st-ki-widget .st-ki-admin-chat-form{flex:0 0 auto;display:flex;gap:7px;padding:10px;background:white;border-top:1px solid #eee}
.st-ki-widget .st-ki-admin-chat-form input{min-width:0;flex:1;padding:9px;border:1px solid #dbc6d3;border-radius:10px;background:white;color:#222;font-size:14px}
.st-ki-widget .st-ki-admin-chat-form button{padding:9px 11px;border:0;border-radius:10px;background:var(--st-ki-accent);color:white}
.st-ki-widget .st-ki-admin-chat-form button:disabled{opacity:.6;cursor:wait}
.st-ki-widget .st-ki-admin-error{padding:7px 12px;color:#911b3d;background:#fff1f3;font-size:12px}
.st-ki-widget .st-ki-admin-error[hidden]{display:none!important}
.st-ki-widget.st-ki-admin-active .st-ki-toolbar,.st-ki-widget.st-ki-admin-active .st-ki-messages,.st-ki-widget.st-ki-admin-active .st-ki-privacy,.st-ki-widget.st-ki-admin-active .st-ki-chat-form,.st-ki-widget.st-ki-admin-active .st-ki-order-box,.st-ki-widget.st-ki-admin-active .st-ki-error,.st-ki-widget.st-ki-admin-active .st-ki-preview-note,.st-ki-widget.st-ki-admin-active .st-ki-customer-title{display:none!important}
@media(max-width:450px){.st-ki-widget .st-ki-admin-chat-form input{font-size:16px}}
.st-ki-widget .st-ki-admin-chat-note summary{cursor:pointer;font-weight:600}
.st-ki-widget .st-ki-admin-chat-note span{display:block;margin-top:6px}


/* 0.1.31: Chat selbst scrollt weiter; die Hintergrundseite bleibt gesperrt.
   Insbesondere am unteren/oberen Ende der Nachrichten darf keine Berührung
   oder Mausradbewegung zur Shopseite durchgereicht werden. */
.st-ki-floating .st-ki-panel {overscroll-behavior:contain;touch-action:pan-y;}
.st-ki-floating .st-ki-messages,
.st-ki-floating .st-ki-admin-messages,
.st-ki-floating .st-ki-order-box {
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
}

/* 0.1.37 – nur auf Handys: schwebende Admin-KI platzsparender darstellen.
   Der Kundenchat, eingebettete Shortcodes und die Theme-Chatgroessen bleiben
   unberuehrt. Theme 1.22.32 verwendet eigene !important-Hoehen, daher hier
   bewusst spezifischere Selektoren mit Begrenzung durch Theme und Viewport. */
@media (max-width:600px) {
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-panel {
    height:min(500px, 75dvh, calc(100dvh - 190px))!important;
    min-height:0!important;
  }
  .st-theme-floating-actions .st-ki-theme-mounted.st-ki-admin-active .st-ki-panel,
  .st-theme-floating-actions.st-floating-mobile-layout-right-stack .st-ki-theme-mounted.st-ki-admin-active .st-ki-panel {
    height:min(500px, var(--st-ki-panel-mobile-height,620px), calc(100dvh - 190px))!important;
    min-height:0!important;
  }
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-mode-switch {padding:4px 8px;gap:5px}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-mode-switch button {padding:5px 6px;font-size:11.5px;line-height:1.2;min-height:32px}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-header {padding:8px 12px;min-height:0;gap:8px}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-header .st-ki-admin-title {gap:1px;line-height:1.15}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-header .st-ki-admin-title strong {font-size:17px!important;line-height:1.2!important}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-header .st-ki-admin-title small {font-size:10.5px!important;line-height:1.2!important}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-close {font-size:22px;line-height:1;min-width:30px;min-height:30px}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-admin-chat-note {padding:5px 11px;line-height:1.3;font-size:10.5px;max-height:76px}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-admin-chat-note span {margin-top:4px}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-admin-messages {padding:9px 10px;gap:7px;min-height:48px}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-admin-messages .st-ki-bubble {padding:8px 10px;font-size:13px;line-height:1.38}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-admin-actions {padding:4px 9px;gap:5px;font-size:10.5px}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-admin-actions button {padding:4px 7px;font-size:10.5px;line-height:1.25}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-admin-actions a {font-size:10.5px;line-height:1.25}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-admin-chat-form {padding:7px 9px;gap:6px}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-admin-chat-form input {min-height:40px;padding:7px 9px;font-size:16px;line-height:1.3}
  .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-admin-chat-form button {min-height:40px;padding:7px 11px;font-size:13px;line-height:1.2}
}

/* 0.1.41 – Persönlicher Kundenservice im bestehenden Trulla-Fenster. */
.st-ki-widget .st-ki-support-box[hidden]{display:none!important}
.st-ki-widget .st-ki-support-box{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;background:#fffafd;gap:6px}
.st-ki-widget .st-ki-support-heading{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#fff1f8;border-bottom:1px solid #eed8e4;flex:0 0 auto}
.st-ki-widget .st-ki-support-back{background:transparent;border:0;color:#6e435d;font-size:22px;line-height:1}
.st-ki-widget .st-ki-support-notice{font-size:11px;color:#5c4b54;margin:0;padding:5px 12px;line-height:1.35;flex:0 0 auto;max-height:105px;overflow:auto}
.st-ki-widget .st-ki-support-messages{display:flex;flex-direction:column;gap:8px;overflow-y:auto;flex:1 1 auto;min-height:55px;padding:9px 12px;overscroll-behavior:contain}
.st-ki-widget .st-ki-support-messages .st-ki-bubble{flex:0 0 auto}
.st-ki-widget .st-ki-support-form{padding:8px 10px;flex:0 0 auto;border-top:1px solid #f2dce7}
.st-ki-widget .st-ki-support-consent-label{font-size:11px;display:flex;gap:5px;align-items:start;line-height:1.4;margin-bottom:7px}
.st-ki-widget .st-ki-support-consent-label input{flex:0 0 auto;margin-top:3px}
.st-ki-widget .st-ki-support-input{display:flex;gap:6px}
.st-ki-widget .st-ki-support-input input{flex:1;min-width:0;padding:9px;border:1px solid #d8c4ce;border-radius:10px;font-size:14px}
.st-ki-widget .st-ki-support-input button{flex:0 0 auto;border:0;border-radius:10px;background:var(--st-ki-accent);color:white;padding:8px 10px}
.st-ki-widget .st-ki-support-footer{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:6px 10px;background:#fff;border-top:1px solid #f1dfe9;font-size:11px}
.st-ki-widget .st-ki-support-end{color:#8d3559;border:1px solid #eac5d6;border-radius:7px;padding:4px;background:white;font-size:11px}
.st-ki-widget.st-ki-support-active:not(.st-ki-admin-active) .st-ki-messages,
.st-ki-widget.st-ki-support-active:not(.st-ki-admin-active) .st-ki-chat-form,
.st-ki-widget.st-ki-support-active:not(.st-ki-admin-active) .st-ki-privacy,
.st-ki-widget.st-ki-support-active:not(.st-ki-admin-active) .st-ki-order-box{display:none!important}
.st-ki-widget.st-ki-admin-active .st-ki-support-box{display:none!important}
@media(max-width:550px){.st-ki-widget .st-ki-support-notice{font-size:10px;max-height:74px}.st-ki-widget .st-ki-support-consent-label{font-size:10px}.st-ki-widget .st-ki-support-input input{font-size:16px}}

/* 0.1.42 – third private customer-service window inside the floating staff chat.
   No messages are passed to the AI transcript or stored in localStorage. */
.st-ki-widget .st-ki-staff-title[hidden], .st-ki-widget .st-ki-staff-chat[hidden]{display:none!important}
.st-ki-widget .st-ki-mode-switch button{flex:1 1 0;min-width:0}
.st-ki-widget .st-ki-staff-chat{display:flex;flex-direction:column;min-height:0;flex:1;background:#fffafd}
.st-ki-widget .st-ki-staff-chat-intro{display:flex;align-items:center;gap:6px;padding:7px 9px;font-size:11px;background:#fff0f7;border-bottom:1px solid #ead6e0}
.st-ki-widget .st-ki-staff-chat-intro span{flex:1 1 auto;font-size:10px;line-height:1.2}
.st-ki-widget .st-ki-staff-reload{border:1px solid #d8bacb;background:#fff;border-radius:6px;padding:3px 9px;font-size:17px;cursor:pointer}
.st-ki-widget .st-ki-staff-threads{display:flex;flex:0 0 auto;min-height:45px;max-height:100px;gap:6px;padding:7px;overflow-x:auto;overflow-y:hidden;border-bottom:1px solid #f1dce6;overscroll-behavior:contain}
.st-ki-widget .st-ki-staff-empty{font-size:12px;color:#655566;padding:6px}
.st-ki-widget .st-ki-staff-thread{display:flex;flex-direction:column;gap:2px;text-align:left;flex:0 0 auto;max-width:180px;min-width:112px;border:1px solid #e5cada;border-radius:8px;background:#fff;padding:7px 9px;cursor:pointer;color:#3a3035}
.st-ki-widget .st-ki-staff-thread.is-active{border-color:var(--st-ki-accent);background:#fbedf4}
.st-ki-widget .st-ki-staff-thread strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-ki-widget .st-ki-staff-thread small{font-size:10px;color:#79536b}
.st-ki-widget .st-ki-staff-heading{font-weight:600;padding:6px 10px;font-size:12px;flex:0 0 auto}
.st-ki-widget .st-ki-staff-messages{display:flex;flex-direction:column;gap:7px;flex:1 1 auto;min-height:45px;overflow-y:auto;padding:8px 10px;overscroll-behavior:contain}
.st-ki-widget .st-ki-staff-messages .st-ki-bubble{flex:0 0 auto}
.st-ki-widget .st-ki-staff-form{display:flex;flex-direction:row;gap:5px;align-items:end;flex:0 0 auto;padding:7px 9px;border-top:1px solid #eedbe5}
.st-ki-widget .st-ki-staff-form textarea{flex:1 1 auto;min-width:0;resize:vertical;max-height:115px;min-height:40px;font:inherit;font-size:13px;padding:7px;border-radius:8px;border:1px solid #d6bacc}
.st-ki-widget .st-ki-staff-form button{background:var(--st-ki-accent);color:white;border:0;border-radius:8px;padding:10px;font-size:12px}
.st-ki-widget .st-ki-staff-footer{display:flex;align-items:center;gap:6px;padding:5px 9px;background:#fff;border-top:1px solid #eedbe5;font-size:10px;flex:0 0 auto}
.st-ki-widget .st-ki-staff-feedback{flex:1 1 auto;min-width:0}
.st-ki-widget .st-ki-staff-close-thread{background:#fff;border:1px solid #e4c1d4;color:#86425e;border-radius:6px;padding:5px;font-size:10px}
.st-ki-widget.st-ki-staff-active .st-ki-admin-chat,.st-ki-widget.st-ki-staff-active .st-ki-support-box,
.st-ki-widget.st-ki-staff-active .st-ki-toolbar,.st-ki-widget.st-ki-staff-active .st-ki-messages,
.st-ki-widget.st-ki-staff-active .st-ki-privacy,.st-ki-widget.st-ki-staff-active .st-ki-chat-form,
.st-ki-widget.st-ki-staff-active .st-ki-order-box,.st-ki-widget.st-ki-staff-active .st-ki-error,
.st-ki-widget.st-ki-staff-active .st-ki-preview-note{display:none!important}
@media(max-width:600px){
 .st-ki-widget .st-ki-mode-switch{gap:4px;padding:4px}
 .st-ki-widget .st-ki-mode-switch button{padding:5px 2px;font-size:10px;line-height:1.15}
 .st-ki-widget.st-ki-floating.st-ki-staff-active .st-ki-panel{height:min(530px,80dvh,calc(100dvh - 160px))!important}
 .st-theme-floating-actions .st-ki-theme-mounted.st-ki-staff-active .st-ki-panel{height:min(530px,var(--st-ki-panel-mobile-height,620px),calc(100dvh - 160px))!important}
 .st-ki-widget .st-ki-staff-form textarea{font-size:16px}
}

/* 0.1.43: Ungelesene Kundenservice-Gespraeche – sichtbarer Hinweis fuer
   eingeloggte Administratoren und Shop-Manager auch bei geschlossenem Widget. */
.st-ki-widget .st-ki-unread-badge[hidden]{display:none!important}
.st-ki-widget .st-ki-unread-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:19px;min-height:19px;padding:2px 5px;background:#d42e45;color:#fff;border-radius:999px;font-size:11px!important;font-weight:800;line-height:1.2;box-shadow:0 1px 5px #0003}
.st-ki-widget .st-ki-toggle{position:relative}
.st-ki-widget .st-ki-unread-button{position:absolute;right:-7px;top:-9px;z-index:3;border:2px solid #fff}
.st-ki-widget .st-ki-unread-tab{vertical-align:middle;margin-left:3px}
.st-ki-widget .st-ki-staff-thread.has-unread{border-color:#d42e45;background:#fff0f3}
.st-ki-widget .st-ki-thread-unread{font-size:10px;font-weight:700;color:#b21f39;line-height:1.25}
/* Layout: der Chat muss auch bei aktiver WP-Adminbar in den Viewport passen.
   Die JS-Korrektur rechnet zusaetzlich die aktuelle Theme-Button-Position ein. */
body.admin-bar .st-ki-widget.st-ki-floating .st-ki-panel{min-height:0!important}
.st-ki-widget.st-ki-floating .st-ki-panel{max-height:calc(100dvh - 58px)}
.st-ki-widget .st-ki-staff-threads{scrollbar-width:thin}
@media (max-width:600px){.st-ki-widget .st-ki-mode-switch button{min-height:36px}.st-ki-widget .st-ki-unread-tab{min-width:16px;min-height:16px;font-size:9px!important;padding:1px 4px}}

/* 0.1.45: Topic selection before a deliberate staff request. */
.st-ki-widget .st-ki-support-topics{padding:10px 12px;display:flex;flex-direction:column;gap:8px;overflow-y:auto;min-height:0;flex:1 1 auto;overscroll-behavior:contain}
.st-ki-widget .st-ki-support-topics p{margin:0 0 5px}
.st-ki-widget .st-ki-support-topics button,.st-ki-widget .st-ki-support-contact-back{padding:9px 11px;min-height:42px;text-align:left;white-space:normal;border:1px solid #dfc6d4;border-radius:9px;color:#63394f;background:#fff;font:inherit;cursor:pointer;flex:0 0 auto}
.st-ki-widget .st-ki-support-topics button:focus-visible{outline:2px solid var(--st-ki-accent);outline-offset:2px}
.st-ki-widget .st-ki-support-contact-back{margin:4px 10px;font-size:12px;min-height:34px}
.st-ki-widget .st-ki-support-chosen-topic{margin:0;padding:4px 12px;font-weight:600;overflow-wrap:anywhere;flex:0 0 auto}
.st-ki-widget .st-ki-support-box [hidden]{display:none!important}
.st-ki-widget .st-ki-support-website{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}
.st-ki-widget .st-ki-staff-command-help{padding:5px 10px;font-size:12px;flex:0 0 auto;max-height:150px;overflow:auto}

/* 0.1.46: Honor hidden in every mode. Explicit flex rules must not revive
   the customer heading or the reply form of a completed staff conversation. */
.st-ki-widget .st-ki-panel [hidden]{display:none!important}
.st-ki-widget .st-ki-panel .st-ki-header > [hidden]{display:none!important}
.st-ki-widget.st-ki-staff-active .st-ki-customer-title{display:none!important}
.st-ki-widget .st-ki-staff-heading-row{display:flex;flex-wrap:wrap;align-items:center;gap:5px;flex:0 0 auto;padding-right:9px;min-width:0}
.st-ki-widget .st-ki-staff-heading-row .st-ki-staff-heading{flex:1 1 0;min-width:0}
.st-ki-widget .st-ki-staff-heading-row .st-ki-staff-reload{flex:0 0 auto}

/* Compact phone layout in all modes, including theme-mounted widgets.
   Keep the transcript flexible instead of spending its height on headings. */
@media(max-width:600px){
 .st-ki-widget.st-ki-floating .st-ki-panel,
 .st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-panel,
 .st-ki-widget.st-ki-floating.st-ki-staff-active .st-ki-panel,
 .st-theme-floating-actions .st-ki-widget.st-ki-theme-mounted.st-ki-floating .st-ki-panel,
 .st-theme-floating-actions.st-floating-mobile-layout-right-stack .st-ki-widget.st-ki-theme-mounted.st-ki-floating .st-ki-panel{
  width:min(360px,calc(100vw - 24px))!important;
  max-width:calc(100vw - 24px)!important;
  height:min(var(--st-ki-requested-height,640px),calc(100dvh - 90px))!important;
  min-height:0!important;
 }
 .st-ki-widget .st-ki-panel .st-ki-mode-switch{padding:3px 5px!important;gap:4px!important}
 .st-ki-widget .st-ki-panel .st-ki-mode-switch button{min-height:32px!important;padding:5px 3px!important;font-size:10.5px!important;line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .st-ki-widget .st-ki-panel .st-ki-header{padding:5px 9px!important;min-height:36px!important;gap:6px!important;flex:0 0 auto!important;align-items:center!important}
 .st-ki-widget .st-ki-panel .st-ki-header > span{min-width:0;flex:1 1 auto;gap:0!important;line-height:1.2!important}
 .st-ki-widget .st-ki-panel .st-ki-header strong{display:block;font-size:14px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .st-ki-widget .st-ki-panel .st-ki-header small{display:none!important}
 .st-ki-widget .st-ki-panel .st-ki-close{flex:0 0 30px!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:0!important;font-size:23px!important;line-height:1!important;border:0!important}
 .st-ki-widget .st-ki-panel .st-ki-toolbar{padding:4px 7px;gap:4px;flex:0 0 auto}
 .st-ki-widget .st-ki-panel .st-ki-toolbar button{font-size:10.5px;min-height:30px;padding:4px 6px;line-height:1.2}
 .st-ki-widget .st-ki-panel .st-ki-staff-chat-intro{display:none!important}
 .st-ki-widget .st-ki-panel .st-ki-staff-threads{min-height:42px;max-height:52px;padding:4px 6px;gap:5px}
 .st-ki-widget .st-ki-panel .st-ki-staff-thread{flex-direction:row;align-items:center;gap:5px;min-width:90px;max-width:190px;padding:5px 7px;min-height:32px}
 .st-ki-widget .st-ki-panel .st-ki-staff-thread strong{font-size:11px;min-width:0}
 .st-ki-widget .st-ki-panel .st-ki-staff-thread small{font-size:10px;white-space:nowrap}
 .st-ki-widget .st-ki-panel .st-ki-staff-heading-row{padding:2px 7px;gap:5px}
 .st-ki-widget .st-ki-panel .st-ki-staff-heading{padding:3px 0;font-size:11px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .st-ki-widget .st-ki-panel .st-ki-staff-reload{min-width:30px;min-height:30px;font-size:17px;line-height:1;padding:3px 6px}
 .st-ki-widget .st-ki-panel .st-ki-staff-command-help{padding:2px 8px;font-size:10.5px;line-height:1.25}
 .st-ki-widget .st-ki-panel .st-ki-staff-command-help p{margin:5px 0}
 .st-ki-widget .st-ki-panel .st-ki-staff-messages,
 .st-ki-widget .st-ki-panel .st-ki-admin-messages,
 .st-ki-widget .st-ki-panel .st-ki-messages{padding:7px 8px;gap:6px;min-height:50px;flex:1 1 auto}
 .st-ki-widget .st-ki-panel .st-ki-bubble{padding:7px 9px;font-size:14px;line-height:1.4}
 .st-ki-widget .st-ki-panel .st-ki-staff-form{padding:5px 7px;gap:5px}
 .st-ki-widget .st-ki-panel .st-ki-staff-form textarea{height:40px!important;min-height:40px!important;max-height:70px!important;font-size:16px!important;line-height:1.25!important;padding:7px!important;margin:0!important}
 .st-ki-widget .st-ki-panel .st-ki-staff-form button{min-height:40px;padding:7px 9px;font-size:12px;line-height:1.2;margin:0}
 .st-ki-widget .st-ki-panel .st-ki-staff-footer{padding:3px 7px;font-size:10px}
 .st-ki-widget .st-ki-panel .st-ki-chat-form,
 .st-ki-widget .st-ki-panel .st-ki-admin-chat-form{padding:6px 7px;gap:5px}
 .st-ki-widget .st-ki-panel .st-ki-chat-form input,
 .st-ki-widget .st-ki-panel .st-ki-admin-chat-form input{min-height:40px;font-size:16px;line-height:1.25;padding:7px 8px}
 .st-ki-widget .st-ki-panel .st-ki-chat-form button,
 .st-ki-widget .st-ki-panel .st-ki-admin-chat-form button{min-height:40px;font-size:12px;padding:7px 9px}
 .st-ki-widget .st-ki-panel .st-ki-support-heading{padding:5px 9px;font-size:13px}
 .st-ki-widget .st-ki-panel .st-ki-support-topics{gap:6px;padding:8px 9px;font-size:13px}
 .st-ki-widget .st-ki-panel .st-ki-support-topics button{min-height:38px;padding:7px 9px;font-size:13px}
}

/* Keep the collapsed @ki help beside the conversation heading. */
.st-ki-widget .st-ki-staff-heading-row .st-ki-staff-command-help{flex:0 0 auto;padding:3px 5px;max-width:100%}
.st-ki-widget .st-ki-staff-heading-row .st-ki-staff-command-help[open]{order:3;flex-basis:100%;width:100%}

/* 0.1.46: The archive switch shares the horizontal list row, without another toolbar. */
.st-ki-widget .st-ki-staff-list-row{display:flex;align-items:center;gap:4px;flex:0 0 auto;min-width:0;border-bottom:1px solid #f1dce6;padding-right:6px}
.st-ki-widget .st-ki-staff-list-row .st-ki-staff-threads{flex:1 1 0;min-width:0;border-bottom:0}
.st-ki-widget .st-ki-staff-archive{flex:0 0 auto;background:#fff;border:1px solid #dfc6d4;border-radius:7px;padding:5px 7px;min-height:32px;font-size:11px;color:#63394f}
.st-ki-widget .st-ki-staff-archive[aria-pressed="true"]{background:#f5e5ee;border-color:var(--st-ki-accent)}

/* 0.1.49: Plugin height settings take precedence over theme panel heights.
   JavaScript limits floating panels to the actual visible viewport/admin bar. */
.st-ki-widget .st-ki-panel{--st-ki-requested-height:var(--st-ki-customer-height-desktop,620px)}
.st-ki-widget.st-ki-admin-active .st-ki-panel,
.st-ki-widget.st-ki-staff-active .st-ki-panel{--st-ki-requested-height:var(--st-ki-staff-height-desktop,620px)}
.st-ki-widget.st-ki-embedded .st-ki-panel{height:var(--st-ki-requested-height)!important;min-height:0!important;max-height:none}
.st-ki-widget.st-ki-floating .st-ki-panel,
.st-ki-widget.st-ki-floating.st-ki-admin-active .st-ki-panel,
.st-ki-widget.st-ki-floating.st-ki-staff-active .st-ki-panel,
.st-theme-floating-actions .st-ki-widget.st-ki-theme-mounted.st-ki-floating .st-ki-panel,
.st-theme-floating-actions.st-floating-mobile-layout-right-stack .st-ki-widget.st-ki-theme-mounted.st-ki-floating .st-ki-panel{
 height:min(var(--st-ki-requested-height),calc(100dvh - 90px))!important;
 min-height:0!important;
}
@media(max-width:600px){
 .st-ki-widget .st-ki-panel{--st-ki-requested-height:var(--st-ki-customer-height-mobile,640px)}
 .st-ki-widget.st-ki-admin-active .st-ki-panel,
 .st-ki-widget.st-ki-staff-active .st-ki-panel{--st-ki-requested-height:var(--st-ki-staff-height-mobile,600px)}
}

/* 0.1.50: No redundant Trulla title strip in the customer view. */
.st-ki-widget:not(.st-ki-admin-active):not(.st-ki-staff-active) .st-ki-panel > .st-ki-header{display:none!important}
.st-ki-widget.st-ki-support-active .st-ki-panel > .st-ki-toolbar{display:none!important}
.st-ki-widget .st-ki-toolbar .st-ki-customer-close{flex:0 0 28px;min-width:28px;min-height:28px!important;padding:2px!important;font-size:23px!important;line-height:1!important;color:var(--st-ki-accent)!important;background:transparent!important;border:0!important}
.st-ki-widget .st-ki-panel .st-ki-support-box{overflow:hidden;gap:3px}
.st-ki-widget .st-ki-panel .st-ki-support-heading{flex:0 0 auto;min-height:32px!important;max-height:48px;padding:3px 8px!important;margin:0!important;gap:5px}
.st-ki-widget .st-ki-panel .st-ki-support-heading strong{font-size:13px!important;line-height:1.2!important;margin:0!important;padding:0!important;min-width:0}
.st-ki-widget .st-ki-support-heading-actions{display:flex;gap:4px;flex:0 0 auto}
.st-ki-widget .st-ki-panel .st-ki-support-heading-actions button{flex:0 0 28px;min-width:28px!important;width:28px!important;height:28px!important;min-height:28px!important;padding:2px!important;line-height:1!important;font-size:22px!important;color:#6e435d;background:transparent;border:0;margin:0!important}
.st-ki-widget .st-ki-panel .st-ki-support-chosen-topic{font-size:12px!important;line-height:1.25!important;margin:0!important;padding:3px 9px!important;max-height:36px;overflow:auto}
.st-ki-widget .st-ki-panel .st-ki-support-contact-back{font-size:11px!important;line-height:1.2!important;min-height:26px!important;padding:4px 8px!important;margin:1px 8px!important}
.st-ki-widget .st-ki-support-topic-row{display:flex;align-items:center;gap:3px;flex:0 0 auto;min-width:0}
.st-ki-widget .st-ki-support-topic-row .st-ki-support-chosen-topic{flex:1 1 auto;min-width:0}
.st-ki-widget .st-ki-support-topic-row .st-ki-support-contact-back{flex:0 1 auto;max-width:65%}
.st-ki-widget .st-ki-panel details.st-ki-support-notice{flex:0 0 auto;padding:3px 9px!important;font-size:11px!important;line-height:1.3!important;max-height:110px;overflow:auto;margin:0!important}
.st-ki-widget .st-ki-support-notice summary{cursor:pointer;font-weight:600;line-height:1.4;font-size:11px;list-style:revert;list-style-position:inside}
.st-ki-widget .st-ki-panel .st-ki-support-notice p{font-size:11px!important;line-height:1.35!important;margin:5px 0!important;padding:0!important}
.st-ki-widget .st-ki-panel .st-ki-support-messages{flex:1 1 0;min-height:0;overflow-y:auto;padding:6px 8px;overscroll-behavior:contain}
.st-ki-widget .st-ki-panel .st-ki-support-form{flex:0 0 auto;padding:5px 7px!important;margin:0!important;background:#fff}
.st-ki-widget .st-ki-panel .st-ki-support-consent-label{font-size:11px!important;line-height:1.25!important;max-height:56px;overflow:auto;margin:0 0 4px!important}
.st-ki-widget .st-ki-panel .st-ki-support-input input{height:40px;min-height:40px!important;font-size:16px!important;line-height:1.25!important;padding:7px 8px!important}
.st-ki-widget .st-ki-panel .st-ki-support-input button{min-height:40px!important;line-height:1.2!important;font-size:12px!important;padding:6px 9px!important;margin:0!important}
.st-ki-widget .st-ki-panel .st-ki-support-footer{flex:0 0 auto;min-height:0;padding:3px 7px;font-size:10px;line-height:1.2;max-height:45px;overflow:auto}
.st-ki-widget .st-ki-panel .st-ki-support-end{flex:0 0 auto;font-size:10px;line-height:1.2;padding:4px;min-height:24px;margin:0}
@media(max-width:980px){
 .st-ki-widget.st-ki-keyboard-open .st-ki-panel > .st-ki-mode-switch,
 .st-ki-widget.st-ki-keyboard-open .st-ki-staff-list-row,
 .st-ki-widget.st-ki-keyboard-open .st-ki-admin-chat-note{display:none!important}
 .st-ki-widget.st-ki-keyboard-open .st-ki-panel .st-ki-support-box{gap:1px}
 .st-ki-widget.st-ki-keyboard-open .st-ki-panel .st-ki-support-chosen-topic{max-height:22px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
 .st-ki-widget.st-ki-keyboard-open .st-ki-panel .st-ki-support-notice[open]{max-height:65px}
 .st-ki-widget.st-ki-keyboard-open .st-ki-panel .st-ki-support-footer{max-height:32px;padding:2px 6px}
 .st-ki-widget.st-ki-keyboard-open .st-ki-panel .st-ki-support-messages{padding:4px 7px;gap:5px}
}

/* 0.1.52: Optional desktop width; zero keeps the previous theme/default sizing. */
@media(min-width:601px){
 .st-ki-widget.st-ki-floating.st-ki-custom-width .st-ki-panel,
 .st-theme-floating-actions .st-ki-widget.st-ki-theme-mounted.st-ki-floating.st-ki-custom-width .st-ki-panel{
  width:min(var(--st-ki-width-desktop),calc(100vw - 24px))!important;
  max-width:calc(100vw - 24px)!important;
 }
 .st-ki-widget.st-ki-embedded.st-ki-custom-width{width:var(--st-ki-width-desktop)!important;max-width:min(100%,calc(100vw - 24px))!important}
 .st-ki-widget.st-ki-embedded.st-ki-custom-width .st-ki-panel{width:100%!important;max-width:100%!important}
}

/* 0.1.51: Personal service is a peer tab, not a second window or title strip. */
.st-ki-widget:not(.st-ki-support-page) .st-ki-support-heading,
.st-ki-widget .st-ki-header > .st-ki-close,
.st-ki-widget .st-ki-customer-close,
.st-ki-widget .st-ki-toolbar .st-ki-support-open{display:none!important}
.st-ki-widget .st-ki-mode-switch .st-ki-mode-close{flex:0 0 26px!important;width:26px;min-width:26px;min-height:26px!important;border:0!important;background:transparent!important;color:#79405e!important;padding:1px!important;font-size:22px!important;line-height:1!important}
@media(max-width:600px){
 .st-ki-widget .st-ki-mode-switch.st-ki-has-internal{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 26px;grid-template-rows:auto auto;gap:3px}
 .st-ki-widget .st-ki-has-internal .st-ki-mode-customer{grid-column:1;grid-row:1}
 .st-ki-widget .st-ki-has-internal .st-ki-mode-support{grid-column:2;grid-row:1}
 .st-ki-widget .st-ki-has-internal .st-ki-mode-admin{grid-column:1;grid-row:2}
 .st-ki-widget .st-ki-has-internal .st-ki-mode-staff{grid-column:2;grid-row:2}
 .st-ki-widget .st-ki-has-internal .st-ki-mode-close{grid-column:3;grid-row:1/3}
}
@media(max-width:980px){
 .st-ki-widget.st-ki-keyboard-open:not(.st-ki-support-page) .st-ki-panel > .st-ki-mode-switch{display:flex!important;min-height:30px;padding:2px 5px!important;gap:3px!important}
 .st-ki-widget.st-ki-keyboard-open .st-ki-mode-switch .st-ki-mode-admin,
 .st-ki-widget.st-ki-keyboard-open .st-ki-mode-switch .st-ki-mode-staff{display:none!important}
 .st-ki-widget.st-ki-keyboard-open.st-ki-admin-active .st-ki-mode-switch .st-ki-mode-admin,
 .st-ki-widget.st-ki-keyboard-open.st-ki-staff-active .st-ki-mode-switch .st-ki-mode-staff{display:block!important}
 .st-ki-widget.st-ki-keyboard-open .st-ki-panel .st-ki-mode-switch button{min-height:28px!important;padding:3px!important;font-size:10px!important;line-height:1.2!important}
}

/* 0.1.53: Optional font sizes per area/device. Zero adds no class or override. */
@media(max-width:600px){
 .st-ki-widget.st-ki-font-messages-mobile .st-ki-panel :is(.st-ki-messages,.st-ki-admin-messages,.st-ki-support-messages,.st-ki-staff-messages) .st-ki-bubble,
 .st-ki-widget.st-ki-font-messages-mobile .st-ki-panel :is(.st-ki-messages,.st-ki-admin-messages,.st-ki-support-messages,.st-ki-staff-messages) .st-ki-bubble *{font-size:var(--st-ki-font-messages-mobile)!important}
 .st-ki-widget.st-ki-font-inputs-mobile .st-ki-panel :is(.st-ki-chat-form,.st-ki-admin-chat-form,.st-ki-support-form,.st-ki-staff-form,.st-ki-order-box) :is(input:not([type="checkbox"]):not([type="hidden"]),textarea){font-size:var(--st-ki-font-inputs-mobile)!important;line-height:1.25!important;min-height:calc(var(--st-ki-font-inputs-mobile) * 1.25 + 16px)!important}
 .st-ki-widget.st-ki-font-controls-mobile .st-ki-panel button:not(.st-ki-close):not(.st-ki-staff-reload):not(.st-ki-support-back){font-size:var(--st-ki-font-controls-mobile)!important}
 .st-ki-widget.st-ki-font-hints-mobile .st-ki-panel :is(.st-ki-privacy,.st-ki-privacy label,.st-ki-privacy span,.st-ki-privacy small,.st-ki-privacy summary,.st-ki-privacy p,.st-ki-remember-label,.st-ki-support-notice summary,.st-ki-support-notice p,.st-ki-support-consent-label,.st-ki-support-status,.st-ki-staff-feedback,.st-ki-admin-chat-note,.st-ki-admin-chat-note summary,.st-ki-admin-chat-note span,.st-ki-admin-chat-note p,.st-ki-error,.st-ki-admin-error,.st-ki-order-feedback,.st-ki-preview-note){font-size:var(--st-ki-font-hints-mobile)!important;line-height:1.35!important}
}
@media(min-width:601px){
 .st-ki-widget.st-ki-font-messages-desktop .st-ki-panel :is(.st-ki-messages,.st-ki-admin-messages,.st-ki-support-messages,.st-ki-staff-messages) .st-ki-bubble,
 .st-ki-widget.st-ki-font-messages-desktop .st-ki-panel :is(.st-ki-messages,.st-ki-admin-messages,.st-ki-support-messages,.st-ki-staff-messages) .st-ki-bubble *{font-size:var(--st-ki-font-messages-desktop)!important}
 .st-ki-widget.st-ki-font-inputs-desktop .st-ki-panel :is(.st-ki-chat-form,.st-ki-admin-chat-form,.st-ki-support-form,.st-ki-staff-form,.st-ki-order-box) :is(input:not([type="checkbox"]):not([type="hidden"]),textarea){font-size:var(--st-ki-font-inputs-desktop)!important;line-height:1.25!important;min-height:calc(var(--st-ki-font-inputs-desktop) * 1.25 + 16px)!important}
 .st-ki-widget.st-ki-font-controls-desktop .st-ki-panel button:not(.st-ki-close):not(.st-ki-staff-reload):not(.st-ki-support-back){font-size:var(--st-ki-font-controls-desktop)!important}
 .st-ki-widget.st-ki-font-hints-desktop .st-ki-panel :is(.st-ki-privacy,.st-ki-privacy label,.st-ki-privacy span,.st-ki-privacy small,.st-ki-privacy summary,.st-ki-privacy p,.st-ki-remember-label,.st-ki-support-notice summary,.st-ki-support-notice p,.st-ki-support-consent-label,.st-ki-support-status,.st-ki-staff-feedback,.st-ki-admin-chat-note,.st-ki-admin-chat-note summary,.st-ki-admin-chat-note span,.st-ki-admin-chat-note p,.st-ki-error,.st-ki-admin-error,.st-ki-order-feedback,.st-ki-preview-note){font-size:var(--st-ki-font-hints-desktop)!important;line-height:1.35!important}
}
