.hwb-panel { font: 16px/1.55 system-ui, sans-serif; background:var(--mwai-backgroundSecondaryColor,#212121); color:var(--mwai-fontColor,#ececec); border: 1px solid #4f4f4f; border-radius: 16px; padding: 26px; margin: 16px 0; box-shadow: 0 12px 35px #0003; }
.hwb-panel .hwb-field { box-sizing:border-box; display:block; width:100%; min-height:44px; margin:8px 0 14px; padding:10px; color:var(--mwai-fontColor,#ececec); background:var(--mwai-backgroundPrimaryColor,#2f2f2f); border:1px solid #737373; border-radius:7px; font:inherit; }
.hwb-panel .hwb-field::placeholder { color:#bcbcbc; opacity:1; }
.hwb-panel a { color:#64b5f6; }
.hwb-panel textarea.hwb-field { min-height:95px; resize:vertical; }
.hwb-panel .hwb-danger { border-left:4px solid #f18c8c; padding:12px; background:#3b2424; color:#ffe4e4; font-weight:600; }
.hwb-panel .hwb-guidance { border-left:3px solid #64b5f6; padding-left:12px; }
.hwb-panel .hwb-service { display:block; margin:12px 0; }
.hwb-panel .hwb-danger-shortcut { margin-top:12px; }
.mwai-window[data-hwb-mounted="1"] .mwai-header .hwb-resize { order:-1; margin:0 8px; padding:5px 10px; min-height:30px; border:1px solid #88939b; border-radius:5px; background:transparent; color:inherit; font:500 13px/1.3 system-ui,sans-serif; cursor:pointer; }
.mwai-window[data-hwb-mounted="1"] .mwai-header .hwb-resize:focus-visible { outline:3px solid #5ab5e5; outline-offset:2px; }
.mwai-window[data-hwb-mounted="1"][data-hwb-minimized="1"] .mwai-window-box { display:none !important; }
.mwai-window[data-hwb-minimized="1"] .mwai-trigger { display:block !important; }
.mwai-window[data-hwb-expanded="1"].mwai-open:not([data-hwb-minimized="1"]) { width:min(1000px,calc(100vw - 32px)) !important; max-width:calc(100vw - 32px) !important; }
.mwai-window[data-hwb-expanded="1"] .mwai-window-box { width:100% !important; height:min(85dvh,850px) !important; max-height:calc(100dvh - 32px) !important; display:flex; flex-direction:column; }
.mwai-window[data-hwb-expanded="1"] .mwai-body { flex:1; min-height:0; height:auto !important; max-height:none !important; display:flex; flex-direction:column; }
.mwai-window[data-hwb-expanded="1"] .mwai-conversation { flex:1; min-height:0; height:auto !important; max-height:none !important; overflow:auto; }
.mwai-window[data-hwb-expanded="1"] .mwai-input { flex-shrink:0; }
.mwai-window[data-hwb-mounted="1"] .mwai-text table { display:block; max-width:100%; overflow-x:auto; }
.mwai-window[data-hwb-expanded="1"][data-hwb-active="1"] .hwb-panel { flex:1; max-height:none; }
@media(max-width:760px) { .mwai-window[data-hwb-expanded="1"] { width:100% !important; max-width:100% !important; } .mwai-window[data-hwb-expanded="1"] .mwai-window-box { height:100% !important; max-height:100dvh !important; } }
.hwb-panel[hidden] { display: none !important; }
.hwb-panel h2 { font: 650 clamp(21px,3vw,28px)/1.25 system-ui,sans-serif; margin: 10px 0 20px; color:inherit; }
.hwb-panel h2:focus { outline: none; }
.hwb-kicker, .hwb-progress { font-size: 13px; color:#bcbcbc; margin: 0 0 6px; }
.hwb-options { display: grid; gap: 10px; }
.hwb-panel button { font: 600 15px/1.4 system-ui,sans-serif; cursor: pointer; border-radius: 9px; padding: 14px 18px; min-height: 48px; border: 1px solid #b5cdd5; white-space: normal; text-align: left; }
.hwb-panel .hwb-answer { background:var(--mwai-backgroundPrimaryColor,#2f2f2f); color:inherit; border-color:#737373; }
.hwb-panel .hwb-answer:hover { background:#3b3b3b; border-color:#bcbcbc; }
.hwb-panel .hwb-answer[aria-pressed="true"] { background:#0876d9; color:#fff; border-color:#93caff; box-shadow:inset 0 0 0 1px #93caff; }
.hwb-panel .hwb-next { margin-top: 16px; }
.hwb-panel .hwb-secondary { background:var(--mwai-backgroundPrimaryColor,#2f2f2f); color:inherit; border-color:#737373; }
.hwb-panel .hwb-secondary:hover { background:#3b3b3b; }
.hwb-panel button:focus-visible { outline: 3px solid #64b5f6; outline-offset: 3px; }
.hwb-panel button:disabled { opacity: .45; cursor: default; }
.hwb-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; border-top: 1px solid #4f4f4f; padding-top: 18px; }
.hwb-panel dl { display: grid; grid-template-columns: minmax(85px,1fr) 3fr; gap: 8px 20px; }
.hwb-panel dt { font-weight: 650; }
.hwb-panel dd { margin: 0; }
.hwb-notice { background:#3a3020; color:#ffe6ad; padding: 12px; border-radius: 8px; }
.hwb-interview-active .mwai-input { display: none !important; }
[data-hwb-mounted="1"][data-hwb-active="1"] .mwai-input { display: none !important; }
/* Scope the compact layout to the selected bot's native popup only. */
[data-hwb-layout="popup"][data-hwb-active="1"] .mwai-body { display: none !important; }
[data-hwb-layout="popup"]:not(.mwai-open) .hwb-panel { display: none !important; }
[data-hwb-layout="popup"] .mwai-window-box { max-height: calc(100dvh - 80px); }
[data-hwb-layout="popup"] .hwb-panel { box-sizing: border-box; flex: 0 1 auto; min-height: 0; width: 100%; max-height: min(560px, calc(100dvh - 130px)); overflow-y: auto; overscroll-behavior: contain; padding: 16px; margin: 0; border: 0; border-radius: 0 0 12px 12px; box-shadow: none; font-size: 14px; }
[data-hwb-layout="popup"] .hwb-panel h2 { font-size: 20px; margin: 6px 0 14px; }
[data-hwb-layout="popup"] .hwb-panel button { font-size: 14px; min-height: 44px; padding: 10px 12px; }
[data-hwb-layout="popup"] .hwb-options { gap: 8px; }
[data-hwb-layout="popup"] .hwb-controls { margin-top: 16px; padding-top: 14px; }
[data-hwb-layout="popup"] .hwb-panel dl { grid-template-columns: 1fr; gap: 3px; }
[data-hwb-layout="popup"] .hwb-panel dd { margin-bottom: 10px; overflow-wrap: anywhere; }
@media(max-width:480px) { .hwb-panel {padding:20px;} .hwb-panel dl {grid-template-columns:1fr;gap:2px;} .hwb-panel dd {margin-bottom:12px;} }

/* Keep the original table intact for desktop and accessibility at that size. */
[data-hwb-mounted="1"] .hwb-mobile-table { display:none; }
@media(max-width:760px) {
  .mwai-chatbot-container:has(> .mwai-window[data-hwb-mounted="1"].mwai-open) { z-index:2147483000 !important; }
  .mwai-window[data-hwb-mounted="1"].mwai-open { z-index:2147483000 !important; }
  .mwai-window[data-hwb-mounted="1"].mwai-open .mwai-window-box { height:var(--mwai-vv-height,100dvh) !important; max-height:var(--mwai-vv-height,100dvh) !important; }
  .mwai-window[data-hwb-mounted="1"] .mwai-mobile-header-close { min-width:44px; min-height:44px; }
  [data-hwb-mounted="1"] .mwai-text table.hwb-desktop-table { display:none !important; }
  [data-hwb-mounted="1"] .mwai-text .hwb-mobile-table { display:block; margin:12px 0; }
  [data-hwb-mounted="1"] .mwai-text .hwb-mobile-card { border:1px solid #8886; border-radius:10px; padding:14px; margin:12px 0; background:transparent; }
  [data-hwb-mounted="1"] .mwai-text .hwb-mobile-card h3 { font-size:1.08em; font-weight:700; line-height:1.4; font-family:inherit; margin:0 0 10px; }
  [data-hwb-mounted="1"] .mwai-text .hwb-mobile-card dl { display:block; margin:0; }
  [data-hwb-mounted="1"] .mwai-text .hwb-mobile-card dt { font-weight:650; margin:10px 0 2px; }
  [data-hwb-mounted="1"] .mwai-text .hwb-mobile-card dd { margin:0; }
  [data-hwb-mounted="1"] .mwai-text .hwb-mobile-card p { margin:6px 0; }
  [data-hwb-mounted="1"] .mwai-text, [data-hwb-mounted="1"] .mwai-text a { overflow-wrap:anywhere; min-width:0; }
  [data-hwb-mounted="1"] .hwb-panel { padding:16px; }
  [data-hwb-mounted="1"] .hwb-panel button { width:100%; min-height:48px; padding:12px 14px; }
  [data-hwb-mounted="1"] .hwb-controls { flex-direction:column; }
  [data-hwb-mounted="1"] .hwb-panel input, [data-hwb-mounted="1"] .hwb-panel textarea { font-size:16px; max-width:100%; }
}
