.mwdai-core-shell{--gap:14px;color:var(--mwdai-core-text);font-family:inherit;font-size:15px;line-height:1.5}.mwdai-core-widget{background:var(--mwdai-core-panel);border:1px solid #d0d5dd;border-radius:20px;box-shadow:0 22px 60px rgba(16,24,40,.18);display:flex;flex-direction:column;height:min(var(--mwdai-core-height),calc(100vh - 32px));max-height:calc(100vh - 32px);max-width:calc(100vw - 24px);overflow:hidden;width:min(var(--mwdai-core-width),calc(100vw - 24px))}.mwdai-core-widget header{align-items:center;background:var(--mwdai-core-primary);color:#fff;display:flex;justify-content:space-between;padding:15px 16px}.mwdai-core-widget header>div{display:grid;gap:1px}.mwdai-core-widget header small{opacity:.82}.mwdai-core-reset,.mwdai-core-launcher,.mwdai-core-widget form button{align-items:center;background:var(--mwdai-core-primary);border:0;color:#fff;cursor:pointer;display:flex;justify-content:center}.mwdai-core-reset{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);border-radius:9px;font-size:20px;height:38px;width:38px}.mwdai-core-messages{display:flex;flex:1 1 auto;flex-direction:column;gap:10px;overflow:auto;padding:var(--gap)}.mwdai-core-message{border:0;border-radius:14px;max-width:86%;padding:10px 12px;white-space:pre-wrap;word-break:break-word}.mwdai-core-message.is-assistant{align-self:flex-start;background:#f2f4f7}.mwdai-core-message.is-user{align-self:flex-end;background:var(--mwdai-core-primary);color:#fff}.mwdai-core-widget form{border-top:1px solid #e4e7ec;display:flex;gap:8px;padding:12px}.mwdai-core-widget form input{background:#fff;border:1px solid #d0d5dd;border-radius:12px;box-shadow:none;box-sizing:border-box;color:var(--mwdai-core-text);font:inherit;min-width:0;padding:10px 12px;width:100%}.mwdai-core-widget form button{border-radius:11px;flex:0 0 44px;font-size:19px;height:44px}.mwdai-core-launcher{border-radius:999px;box-shadow:0 12px 30px rgba(21,94,239,.3);gap:8px;min-height:50px;padding:0 17px}.mwdai-core-launcher span{font-size:20px}.mwdai-core-inline .mwdai-core-launcher{display:none}.mwdai-core-floating{bottom:20px;position:fixed;right:20px;z-index:999999}.mwdai-core-floating.is-left{left:20px;right:auto}.mwdai-core-floating .mwdai-core-widget{bottom:62px;display:none;position:absolute;right:0}.mwdai-core-floating.is-left .mwdai-core-widget{left:0;right:auto}.mwdai-core-floating.is-open .mwdai-core-widget{display:flex}.mwdai-core-inline{margin:0 auto;max-width:100%;width:max-content}.mwdai-core-inline .mwdai-core-widget{position:relative}.mwdai-core-shell[dir=rtl] .mwdai-core-message.is-assistant{align-self:flex-end;text-align:right}.mwdai-core-shell[dir=rtl] .mwdai-core-message.is-user{align-self:flex-start;text-align:right}.mwdai-core-shell[dir=rtl] .mwdai-core-widget form button{transform:scaleX(-1)}@media(max-width:600px){.mwdai-core-floating{bottom:12px;left:12px!important;right:12px!important}.mwdai-core-floating .mwdai-core-widget{bottom:60px;left:0!important;right:0!important;width:100%}.mwdai-core-launcher{margin-left:auto}.mwdai-core-floating.is-left .mwdai-core-launcher{margin-left:0;margin-right:auto}}@media(prefers-reduced-motion:no-preference){.mwdai-core-message{animation:mwdai-core-in .16s ease-out}@keyframes mwdai-core-in{from{opacity:0;transform:translateY(5px)}}}

/* Fit short screens and narrow shortcode columns without clipping controls. */
.mwdai-core-inline .mwdai-core-widget{max-width:100%}
.mwdai-core-floating .mwdai-core-widget{max-height:calc(100vh - 100px)}
.mwdai-core-widget header,.mwdai-core-widget form{flex-shrink:0}
.mwdai-core-messages{min-height:0}
.mwdai-core-shell .screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.mwdai-core-shell button:focus-visible{outline:2px solid #84adff;outline:2px solid color-mix(in srgb,var(--mwdai-core-primary,#155eef) 55%,transparent);outline-offset:2px}
@supports(height:100dvh){.mwdai-core-floating .mwdai-core-widget{max-height:calc(100dvh - 100px)}}
.mwdai-core-logo {
  background: transparent;
  border-radius: 50%;
  clip-path: circle(50%);
  height: 34px;
  object-fit: cover;
  overflow: hidden;
  width: 34px;
}

.mwdai-core-identity {
  align-items: center !important;
  display: flex !important;
  gap: 10px !important;
}

.mwdai-core-identity > div {
  display: grid;
  gap: 1px;
}

.mwdai-core-launcher .mwdai-core-logo {
  height: 34px;
  width: 34px;
}

.mwdai-core-shell {
  font-size: var(--mwdai-core-chat-font, 16px);
}

.mwdai-core-widget {
  box-shadow: 0 22px 60px rgba(21, 94, 239, .18);
  box-shadow: 0 22px 60px color-mix(in srgb, var(--mwdai-core-shadow, #155eef) 18%, transparent);
}

.mwdai-core-identity strong {
  font-size: var(--mwdai-core-name-font, 18px);
}

.mwdai-core-widget header small {
  font-size: var(--mwdai-core-online-font, 13px);
}

.mwdai-core-launcher {
  border: 0 !important;
  box-shadow: 0 12px 30px rgba(21, 94, 239, .3);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--mwdai-core-shadow, #155eef) 30%, transparent);
  font-size: var(--mwdai-core-launcher-font, 15px);
  outline: 0 !important;
}

.mwdai-core-floating .mwdai-core-widget {
  border: 0 !important;
  outline: 0 !important;
}

/* A mouse click, hover or tap leaves the launcher as it was, whatever the theme sets for buttons (outlines,
   borders or shadows on :focus/:hover/:active); only keyboard focus adds a soft ring. */
.mwdai-core-shell .mwdai-core-launcher.mwdai-core-launcher,
.mwdai-core-shell .mwdai-core-launcher.mwdai-core-launcher:hover,
.mwdai-core-shell .mwdai-core-launcher.mwdai-core-launcher:active,
.mwdai-core-shell .mwdai-core-launcher.mwdai-core-launcher:focus {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: 0 12px 30px rgba(21, 94, 239, .3) !important;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--mwdai-core-shadow, #155eef) 30%, transparent) !important;
  -webkit-tap-highlight-color: transparent;
}

.mwdai-core-shell .mwdai-core-launcher.mwdai-core-launcher:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--mwdai-core-shadow, #155eef) 30%, transparent), 0 0 0 3px color-mix(in srgb, var(--mwdai-core-primary, #155eef) 28%, transparent) !important;
}

.mwdai-core-tools { display: flex !important; gap: 5px; }
.mwdai-core-tools button { color: #fff; background: transparent; border: 1px solid #ffffff70; border-radius: 7px; width: 34px; height: 36px; cursor: pointer; font-size: 20px; }
.mwdai-core-inline .mwdai-core-close { display: none; }
.mwdai-core-message a { color: #155eef; text-decoration: underline; display: inline-block; margin-block: 4px; }
.mwdai-core-message button, .mwdai-core-controls button { padding: 7px 12px; margin: 5px; border: 1px solid #155eef; border-radius: 6px; background: #fff; color: #155eef; cursor: pointer; }
.mwdai-core-controls:empty { display: none; }
.mwdai-core-controls:not(:has(> :not([hidden]))) { display: none; }
.mwdai-core-controls [hidden], .mwdai-core-controls[hidden] { display: none !important; }
.mwdai-core-disclosure { display: block; font-size: 11px; padding: 0 12px 9px; color: #475467; background: #fff; }
.mwdai-core-shell button:disabled { opacity: .55; cursor: wait; }
/* Soft focus that wins over theme outlines: buttons get a keyboard-only ring, text fields a brand border and glow. */
.mwdai-core-shell button:not(.mwdai-core-launcher):focus-visible { outline: 2px solid #84adff !important; outline: 2px solid color-mix(in srgb, var(--mwdai-core-primary, #155eef) 55%, transparent) !important; outline-offset: 2px; }
.mwdai-core-shell button:focus:not(:focus-visible) { outline: 0 !important; }
.mwdai-core-shell input:focus, .mwdai-core-shell textarea:focus, .mwdai-core-shell select:focus { outline: 0 !important; border-color: var(--mwdai-core-primary, #155eef); box-shadow: 0 0 0 3px rgba(21, 94, 239, .15); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mwdai-core-primary, #155eef) 16%, transparent); }

/* Own the widget controls even inside a theme's pre/code or global button rules. */
.mwdai-core-shell,.mwdai-core-shell button,.mwdai-core-shell input{font-family:var(--mwdai-core-font,system-ui,-apple-system,"Segoe UI",sans-serif)!important;font-style:normal;letter-spacing:normal;line-height:1.5;text-transform:none;white-space:normal}
.mwdai-core-shell *{box-sizing:border-box}
.mwdai-core-shell,.mwdai-core-shell button,.mwdai-core-shell input{font-family:var(--mwdai-core-font,system-ui),"Segoe UI",Tahoma,sans-serif!important}
.mwdai-core-shell .mwdai-core-widget{margin:0;padding:0;text-align:start}
.mwdai-core-shell .mwdai-core-widget header{position:static;width:100%;min-height:76px;gap:8px;margin:0;padding:15px 16px;line-height:1.4}
.mwdai-core-shell .mwdai-core-identity{min-width:0}.mwdai-core-identity>div{min-width:0}.mwdai-core-shell .mwdai-core-identity strong{font-weight:600;line-height:1.35;overflow-wrap:anywhere}.mwdai-core-shell .mwdai-core-identity small{font-weight:400;line-height:1.5}
.mwdai-core-shell .mwdai-core-logo{flex:0 0 34px;display:block;margin:0;padding:0;border:0;max-width:none;width:34px;height:34px;border-radius:50%;object-fit:cover;overflow:hidden}
.mwdai-core-shell .mwdai-core-tools{flex-shrink:0;align-items:center;gap:4px}
.mwdai-core-shell .mwdai-core-tools button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;min-width:30px;height:34px;min-height:34px;padding:0!important;margin:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#fff!important;box-shadow:none!important;line-height:1}
.mwdai-core-shell .mwdai-core-tools button:hover{background:#ffffff24!important}
.mwdai-core-shell.mwdai-core-inline .mwdai-core-close,.mwdai-core-inline .mwdai-core-tools .mwdai-core-close{display:none}
.mwdai-core-shell button svg{display:block;flex-shrink:0;width:20px;height:20px;margin:0;pointer-events:none}
.mwdai-core-shell .mwdai-core-launcher{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--mwdai-core-primary)!important;color:#fff!important;border-radius:999px!important;min-height:54px;height:auto;width:auto;max-width:100%;padding:10px 18px!important;margin-block:0;line-height:1.3;white-space:nowrap}
.mwdai-core-shell .mwdai-core-launcher b{font:inherit;font-weight:600;white-space:normal}.mwdai-core-inline .mwdai-core-launcher{display:none!important}
.mwdai-core-shell .mwdai-core-widget form{margin:0;min-height:0;background:var(--mwdai-core-panel);align-items:center}
.mwdai-core-shell .mwdai-core-widget form input{font-size:var(--mwdai-core-chat-font,16px);height:46px;margin:0;line-height:1.4}
.mwdai-core-shell .mwdai-core-widget form button{padding:0!important;margin:0!important;display:inline-flex;align-items:center;justify-content:center;background:var(--mwdai-core-primary)!important;color:#fff!important;border:0!important;border-radius:13px!important;width:46px;height:46px;min-width:46px;box-shadow:none}
.mwdai-core-shell .mwdai-core-message{white-space:normal;font-size:var(--mwdai-core-chat-font,16px);line-height:1.55;text-align:start}.mwdai-core-shell .mwdai-core-message p{font:inherit;color:inherit;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.mwdai-core-shell .mwdai-core-message p+p{margin-top:.7em}.mwdai-core-shell .mwdai-core-disclosure{font-family:inherit;line-height:1.5;white-space:normal}


/* Phones: the fixed shell spans the screen only to place the open panel. It must not swallow taps on the page behind it, and the launcher stays on its configured side. */
@media(max-width:600px){.mwdai-core-floating{display:flex;flex-direction:column;pointer-events:none}.mwdai-core-floating .mwdai-core-launcher{margin-left:auto;margin-right:0}.mwdai-core-floating.is-left .mwdai-core-launcher{margin-left:0;margin-right:auto}.mwdai-core-floating>*{pointer-events:auto}}
/* M33: themes and page builders style images and headers inside post content (an Elementor section rule centred every image with auto margins and pushed the name to the far side). The widget's header keeps its own layout wherever it is placed, at any size; only layout properties are fixed, so colours and sizes stay themable. */
.mwdai-core-shell .mwdai-core-widget header{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;float:none!important;text-align:start!important}
.mwdai-core-shell .mwdai-core-identity{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;margin:0!important;float:none!important;text-align:start!important}
.mwdai-core-shell .mwdai-core-identity>div{margin:0!important;padding:0!important;float:none!important;text-align:start!important}
.mwdai-core-shell .mwdai-core-widget header .mwdai-core-logo{margin:0!important;padding:0!important;float:none!important;position:static!important;align-self:center!important;flex-shrink:0!important;border-radius:50%!important;box-shadow:none!important;transform:none!important}
.mwdai-core-shell .mwdai-core-tools{margin:0!important;margin-inline-start:auto!important;flex:0 0 auto!important}
.mwdai-core-shell.mwdai-core-inline .mwdai-core-close{display:none!important}
/* M37: on a phone, when the open floating chat at its normal place (the Appearance geometry) does not fit the visible
   viewport (the on-screen keyboard is open, or the page is zoomed), it fills the visible viewport instead; chat.js sets
   the box from VisualViewport so the header and the close button stay on screen while the visitor types. The doubled
   class outranks Appearance rules (Pro skins) that place the panel above the launcher. */
.mwdai-core-shell.mwdai-core-shell.mwdai-core-floating.is-open.is-sheet .mwdai-core-widget{position:fixed!important;top:var(--mwdai-core-view-top,0px)!important;left:var(--mwdai-core-view-left,0px)!important;right:auto!important;bottom:auto!important;width:var(--mwdai-core-view-width,100vw)!important;height:var(--mwdai-core-view-height,100vh)!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;border-radius:0!important;transform:none!important}
.mwdai-core-shell.mwdai-core-shell.mwdai-core-floating.is-open.is-sheet .mwdai-core-widget header{padding-top:max(15px,env(safe-area-inset-top))}
.mwdai-core-shell.mwdai-core-shell.mwdai-core-floating.is-open.is-sheet .mwdai-core-disclosure{padding-bottom:max(9px,env(safe-area-inset-bottom))}
.mwdai-core-shell.mwdai-core-shell.mwdai-core-floating.is-open.is-sheet .mwdai-core-launcher{visibility:hidden!important}
.mwdai-core-shell .mwdai-core-messages{overscroll-behavior:contain}
.mwdai-core-shell .mwdai-core-widget:focus{outline:0}
html.mwdai-core-locked,html.mwdai-core-locked body{overflow:hidden!important;overscroll-behavior:none}
/* While the chat fills the visible viewport its field uses at least 16 pixel text, so iOS does not zoom into it again (a field
   focused at the normal place keeps the Appearance size, which the M31 preview parity requires). */
.mwdai-core-shell.mwdai-core-shell.mwdai-core-floating.is-open.is-sheet .mwdai-core-widget form input{font-size:max(16px,var(--mwdai-input-font,var(--mwdai-core-chat-font,16px)))!important}
/* Core 2.12.0: links and suggestions in their own block under the reply text (logical properties: RTL-safe). */
.mwdai-core-shell .mwdai-core-components{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-block-start:10px;padding-block-start:8px;border-block-start:1px solid rgba(16,24,40,.12)}
.mwdai-core-shell .mwdai-core-components:empty{display:none}
.mwdai-core-shell .mwdai-core-components a.mwdai-core-link{margin:0;max-width:100%;overflow-wrap:anywhere}
.mwdai-core-shell .mwdai-core-suggestions{display:flex;flex-wrap:wrap;gap:6px;align-self:stretch}
.mwdai-core-shell .mwdai-core-suggestions .mwdai-core-chip{margin:0;border-radius:999px;padding:6px 12px;font:inherit;font-size:.92em;line-height:1.3;text-align:start;max-width:100%;overflow-wrap:anywhere}
.mwdai-core-shell .mwdai-core-suggestions .mwdai-core-chip:focus-visible{outline:2px solid currentColor;outline-offset:2px}
