.wpse-chat { position: fixed; right: 24px; bottom: 24px; z-index: 99990; font-size: 14px; line-height: 1.5; }
.wpse-chat [hidden] { display: none !important; }
.wpse-chat button, .wpse-chat input, .wpse-chat select, .wpse-chat textarea { font: inherit; }
.wpse-chat button { cursor: pointer; }
.wpse-chat button:disabled { cursor: wait; opacity: .6; }
.wpse-chat button:focus-visible, .wpse-chat a:focus-visible, .wpse-chat input:focus-visible, .wpse-chat textarea:focus-visible, .wpse-chat select:focus-visible { outline: 3px solid #fbbc04; outline-offset: 3px; }
.wpse-chat__launcher { display: flex; align-items: center; gap: 9px; padding: 10px 16px; border: 0; border-radius: 30px; color: #fff; background: #176d89; box-shadow: 0 4px 20px #112d4033; font-weight: 600; }
.wpse-chat__avatar { display: block; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; object-position: 50% 35%; border: 2px solid #ffffffaa; box-sizing: border-box; }
.wpse-chat__avatar--launcher { width: 34px; height: 34px; }
.wpse-chat__identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wpse-chat__panel { position: absolute; right: 0; bottom: 64px; width: 390px; max-width: calc(100vw - 32px); height: 600px; max-height: calc(100dvh - 130px); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; color: #172b40; box-shadow: 0 8px 40px #10293833; border: 1px solid #dce5e9; }
.wpse-chat__header { padding: 17px 18px; background: #176d89; color: #fff; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.wpse-chat__header strong { display: block; font-size: 16px; }
.wpse-chat__header span { display: block; font-size: 12px; opacity: .9; }
.wpse-chat__header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.wpse-chat__header-actions button { color: #fff; background: transparent; border: 1px solid #ffffff55; border-radius: 7px; min-width: 36px; min-height: 36px; }
.wpse-chat__body { padding: 18px; overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.wpse-chat__message { border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; background: #f1f5f7; white-space: pre-wrap; overflow-wrap: anywhere; }
.wpse-chat__message--user { background: #e2f2f7; margin-left: 28px; }
.wpse-chat__status { font-size: 13px; color: #546675; margin: 8px 0; }
.wpse-chat__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wpse-chat__actions button, .wpse-chat__actions a, .wpse-chat__workflow button { padding: 8px 11px; border: 1px solid #c4d7df; border-radius: 8px; background: #fff; color: #155b75; text-decoration: none; }
.wpse-chat__composer { flex-shrink: 0; padding: 12px 16px 16px; border-top: 1px solid #e1e8ec; background: #fff; }
.wpse-chat__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; color: #526271; margin-bottom: 10px; }
.wpse-chat__consent input { flex: 0 0 auto; margin-top: 3px; }
.wpse-chat__input-row { display: flex; align-items: center; gap: 8px; }
.wpse-chat textarea, .wpse-chat__workflow input, .wpse-chat__workflow select { border: 1px solid #c5d2db; border-radius: 8px; background: #fff; color: #172b40; padding: 9px; min-width: 0; }
.wpse-chat__input-row textarea { flex: 1; resize: none; }
.wpse-chat__input-row button { border: 0; border-radius: 8px; background: #176d89; color: #fff; padding: 11px; }
.wpse-chat__workflow { display: grid; gap: 10px; border-top: 1px solid #e1e8ec; padding-top: 14px; }
.wpse-chat__workflow label { display: grid; gap: 4px; }
.wpse-chat__workflow label > input, .wpse-chat__workflow label > select, .wpse-chat__workflow label > textarea { width: 100%; box-sizing: border-box; }
.wpse-chat__workflow pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; background: #f1f5f7; padding: 12px; border-radius: 8px; }
.wpse-chat__card { padding: 12px; border: 1px solid #dce5e9; border-radius: 10px; display: grid; gap: 5px; }
.wpse-chat__card a { color: #155b75; }
.wpse-chat__card button { text-align: left; }
@media (max-width: 480px) { .wpse-chat { right: 16px; bottom: 16px; } .wpse-chat__panel { height: 650px; max-height: calc(100dvh - 110px); } .wpse-chat__launcher { padding: 12px 16px; } }
@media (prefers-reduced-motion: reduce) { .wpse-chat * { scroll-behavior: auto; } }
