.support-widget { font: 15px/1.5 "Segoe UI", system-ui, sans-serif; color: #183550; }
.support-widget [hidden] { display: none !important; }
.support-widget button, .support-widget input, .support-widget textarea, .support-widget select { font: inherit; }
.support-widget button { cursor: pointer; min-height: 44px; border: 1px solid #b4cde6; border-radius: 10px; padding: 9px 14px; color: #173b64; background: #fff; }
.support-widget button:disabled { cursor: wait; opacity: .6; }
.support-widget button:focus-visible, .support-widget input:focus-visible, .support-widget textarea:focus-visible, .support-widget select:focus-visible { outline: 3px solid #c35f14; outline-offset: 3px; }
.support-widget .support-launcher { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 80; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; box-sizing: border-box; background: #165eaa; color: #fff; border: 0; border-radius: 50%; box-shadow: 0 5px 25px #173b6433; padding: 0; }
.support-popup { position: fixed; inset: auto max(16px, env(safe-area-inset-right)) max(86px, calc(env(safe-area-inset-bottom) + 70px)) auto; margin: 0; width: min(390px, calc(100vw - 32px)); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); padding: 0; border: 1px solid #b4cde6; border-radius: 18px; background: #fff; color: #183550; box-shadow: 0 10px 45px #173b6440; z-index: 81; overflow: auto; }
.support-popup[open] { display: flex; flex-direction: column; }
.support-popup > * { flex-shrink: 0; }
.support-heading { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #173b64; color: #fff; padding: 16px; }
.support-heading-title { min-width: 0; }
.support-header-tools { display: flex; align-items: center; flex-shrink: 0; gap: 4px; margin-left: auto; }
.support-heading .support-call-actions { position: static; flex-wrap: nowrap; gap: 4px; }
.support-heading:has(.support-call-actions:not([hidden])) .support-heading-title > span { display: none; }
.support-widget .support-heading:has(.support-call-actions:not([hidden])) h2 { font-size: 17px; margin: 0; }
.support-widget .support-heading h2 { font-size: 20px; margin: 0 0 3px; color: #fff; }
.support-heading span { font-size: 13px; }
.support-widget #supportMinimize, .support-widget #supportClose, .support-widget .support-heading .support-call-actions > button, .support-widget .support-heading summary.support-icon-control { background: transparent; border-color: #ffffff66; color: #fff; padding: 0; }
.support-popup:has(.support-header-tools details[open]) { min-height: min(560px, calc(100dvh - 110px)); }
.support-widget .support-heading .support-call-help > div, .support-widget .support-heading .support-translation-body { left: 8px; right: 8px; max-height: min(400px, var(--support-panel-height, 45dvh)); box-sizing: border-box; color: #183550; }
.support-heading .support-call-state, .support-heading .support-call-notice { font-size: 12px; line-height: 1.5; margin: 8px 0; }
.support-heading .support-call-notice { color: #53677a; }
.support-widget .support-heading .support-call-actions[data-rtt="connected"] .support-call-help > summary { border-color: #6bd6a6; }
.support-popup .support-call:not(.has-media) { padding-block: 0; border: 0; }
.support-heading { flex-wrap: wrap; }
.support-heading:has(.support-call-actions:not([hidden])) .support-heading-title { flex-basis: 100%; }
.support-widget .support-status { padding: 12px 16px; margin: 0; background: #edf4fa; color: #365470; font-size: 13px; }
.support-form { display: grid; gap: 12px; padding: 16px; }
.support-widget input:not([type="checkbox"]), .support-widget textarea, .support-widget select { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #9bb8d5; border-radius: 8px; padding: 10px; color: #183550; background: #fff; font-size: 16px; }
.support-widget .support-form p { font-size: 12px; margin: 0; color: #53677a; }
.support-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.support-check input { flex-shrink: 0; width: 18px; height: 18px; }
.support-widget button[type="submit"] { background: #165eaa; color: #fff; border-color: #165eaa; }
.support-conversation { display: flex; flex-direction: column; min-height: 0; }
.support-messages { min-height: 80px; max-height: 250px; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.support-message { width: fit-content; max-width: 94%; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid #dce5ed; background: #f0f4f7; overflow-wrap: anywhere; }
.support-message.own { margin-left: auto; background: #e6f4ee; border-color: #b7d8c9; }
.support-message strong, .support-message time { font-size: 12px; display: block; }
.support-widget .support-message p { margin: 5px 0; color: #183550; white-space: pre-wrap; }
.support-message time { color: #53677a; text-align: right; }
.support-send { display: flex; align-items: flex-end; gap: 2px; margin: 10px 12px; padding: 6px; border: 1px solid #dce5ed; border-radius: 30px; background: #fff; box-shadow: 0 3px 12px #173b641a; }
.support-input-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.support-widget .support-send textarea { flex: 1 1 0; width: 0; min-width: 0; height: 44px; max-height: 96px; resize: none; border: 0; border-radius: 0; padding: 11px 4px; background: transparent; box-shadow: none; }
.support-widget .support-send textarea:focus-visible { outline: none; }
.support-send:focus-within { outline: 2px solid #165eaa; outline-offset: 2px; }
.support-widget .support-send .support-icon-control { flex: 0 0 44px; border: 0; border-radius: 50%; background: #edf4ff; color: #173b64; padding: 0; }
.support-widget .support-send .support-icon-control[aria-pressed="false"]:not(:disabled) { color: #8a231a; background: #fff0ed; }
.support-widget .support-send button[type="submit"] { background: #165eaa; color: #fff; }
.support-emoji-panel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; margin: 4px 12px; padding: 6px; border: 1px solid #b4cde6; border-radius: 16px; background: #f4f8fc; }
.support-widget .support-emoji-panel button { min-width: 0; padding: 4px; font-size: 22px; border: 0; background: transparent; }
.support-widget textarea { resize: vertical; max-height: 160px; }
.support-send button { align-self: end; }
.support-footer { padding: 0 16px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.support-footer span { display: none; }
.support-footer button { font-size: 12px; }
.support-widget .support-error { margin: 0; padding: 12px 16px; color: #8a231a; background: #fff0ed; font-size: 13px; }
.support-confirm { padding: 16px; background: #fff5e6; }
.support-widget .support-confirm p { margin-bottom: 10px; }
.support-confirm button { margin: 4px 8px 0 0; }
.support-widget #supportEndYes { background: #a52b27; border-color: #a52b27; color: #fff; }
