.case-native-chat-root {
	--case-native-chat-color: #83b735;
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1000001;
	box-sizing: border-box;
	color: #202124;
	font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.case-native-chat-root *, .case-native-chat-root *::before, .case-native-chat-root *::after { box-sizing: border-box; }
.case-native-chat-root button { appearance: none; margin: 0; padding: 0; border: 0; font: inherit; cursor: pointer; }
.case-native-chat-panel {
	position: fixed;
	right: 24px;
	bottom: 98px;
	display: grid;
	grid-template-rows: auto auto minmax(0, 1fr);
	width: min(400px, calc(100vw - 32px));
	height: min(640px, calc(100dvh - 122px));
	min-height: 420px;
	overflow: hidden;
	visibility: hidden;
	opacity: 0;
	transform: translateY(16px) scale(.98);
	border: 1px solid rgba(20,24,32,.08);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 52px rgba(26,32,44,.2);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.case-native-chat-root--open .case-native-chat-panel { visibility: visible; opacity: 1; transform: none; }
.case-native-chat-header { position: relative; grid-row: 1; display: flex; align-items: center; gap: 9px; min-height: 68px; padding: 12px 12px 12px 14px; border-bottom: 1px solid #eef0eb; background: #fff; }
.case-native-chat-header-copy { min-width: 0; flex: 1; }
.case-native-chat-header-copy strong, .case-native-chat-header-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-native-chat-header-copy strong { color: #24301d; font-size: 15px; }
.case-native-chat-header-copy span { margin-top: 2px; color: #747b70; font-size: 10px; }
.case-native-chat-back, .case-native-chat-menu-button, .case-native-chat-close { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; color: #43513b; background: transparent; font-size: 22px; }
.case-native-chat-close { font-size: 28px; }
.case-native-chat-back:hover, .case-native-chat-menu-button:hover, .case-native-chat-close:hover { background: #f2f5ef; }
.case-native-chat-menu { position: absolute; top: 58px; right: 48px; z-index: 5; min-width: 190px; padding: 6px; border: 1px solid #e1e5dc; border-radius: 11px; background: #fff; box-shadow: 0 10px 30px rgba(20,25,15,.17); }
.case-native-chat-menu[hidden], .case-native-chat-screen[hidden], .case-native-chat-status[hidden], .case-native-chat-badge[hidden], .case-native-chat-current[hidden], .case-native-chat-reminder[hidden], .case-native-chat-quick-list[hidden], .case-native-chat-quick-toggle[hidden] { display: none !important; }
.case-native-chat-menu button { width: 100%; padding: 10px 12px; border-radius: 7px; background: transparent; color: #263021; text-align: left; }
.case-native-chat-menu button:hover { background: #f3f7ef; }
.case-native-chat-status { grid-row: 2; padding: 7px 14px; color: #53604b; background: #f4f7f0; font-size: 12px; text-align: center; }
.case-native-chat-status--error { color: #9b3025; background: #fff4f2; }
.case-native-chat-content-area { position: relative; grid-row: 3; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.case-native-chat-screen { height: 100%; min-height: 0; }

.case-native-chat-home { overflow: auto; padding: 22px 18px 18px; background: linear-gradient(180deg, #f7faf4 0, #fff 46%); }
.case-native-chat-home-logo { display: block; width: auto; max-width: 120px; max-height: 42px; margin: 0 0 20px; object-fit: contain; object-position: left center; }
.case-native-chat-home h2, .case-native-chat-prechat h2, .case-native-chat-contact-editor h2 { margin: 0 0 7px; padding: 0; color: #263021; font: inherit; font-size: 23px; font-weight: 750; line-height: 1.18; }
.case-native-chat-home-description, .case-native-chat-prechat-description, .case-native-chat-contact-form > p { margin: 0; color: #687064; line-height: 1.5; }
.case-native-chat-ai-slot { min-height: 130px; margin: 18px 0; }
.case-native-chat-current { margin: 18px 0 0; padding: 13px; border: 1px solid #dce6d5; border-radius: 13px; background: #fff; }
.case-native-chat-current p { margin: 4px 0 10px; overflow: hidden; color: #687064; text-overflow: ellipsis; white-space: nowrap; }
.case-native-chat-team { margin-top: 22px; padding: 16px; border: 1px solid #e2e7de; border-radius: 15px; background: #fff; box-shadow: 0 7px 24px rgba(35,50,25,.08); }
.case-native-chat-online { display: flex; align-items: center; gap: 7px; color: #35452c; }
.case-native-chat-online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--case-native-chat-color); box-shadow: 0 0 0 4px rgba(131,183,53,.13); }
.case-native-chat-avatars { display: flex; min-height: 40px; margin: 14px 0 10px; padding-left: 3px; }
.case-native-chat-avatar { display: grid; place-items: center; width: 42px; height: 42px; margin-left: -5px; overflow: hidden; border: 3px solid #fff; border-radius: 50%; color: #fff; background: #738663; font-size: 12px; font-weight: 700; }
.case-native-chat-avatar:first-child { margin-left: 0; }
.case-native-chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.case-native-chat-team-description { display: block; color: #2d3927; }
.case-native-chat-team > p { margin: 4px 0 14px; color: #747b70; font-size: 12px; }
.case-native-chat-primary, .case-native-chat-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 15px !important; border-radius: 10px !important; font-weight: 700 !important; }
.case-native-chat-primary { width: 100%; color: #fff !important; background: var(--case-native-chat-color) !important; }
.case-native-chat-primary:hover { filter: brightness(.96); }
.case-native-chat-primary:disabled { opacity: .55; cursor: wait; }
.case-native-chat-secondary { border: 1px solid #cfe0c3 !important; color: #52772d !important; background: #f7fbf3 !important; }
.case-native-chat-link { min-height: 34px; padding: 6px 4px !important; color: #5d812f; background: transparent !important; font-size: 12px !important; text-decoration: none; }

.case-native-chat-prechat, .case-native-chat-contact-editor { overflow: auto; padding: 18px; background: #fff; }
.case-native-chat-prechat-form, .case-native-chat-contact-form { display: grid; gap: 9px; }
.case-native-chat-prechat-description, .case-native-chat-contact-form > p { margin-bottom: 5px; font-size: 12px; }
.case-native-chat-field { display: grid; gap: 3px; color: #3e4639; font-size: 11px; font-weight: 650; }
.case-native-chat-field input, .case-native-chat-field textarea { display: block; width: 100%; min-height: 36px; margin: 0; padding: 7px 9px; border: 1px solid #cfd5ca; border-radius: 8px; outline: 0; color: #202124; background: #fff; font: inherit; font-size: 13px; font-weight: 400; box-shadow: none; }
.case-native-chat-field textarea { min-height: 62px; resize: vertical; }
.case-native-chat-field input:focus, .case-native-chat-field textarea:focus { border-color: var(--case-native-chat-color); box-shadow: 0 0 0 2px rgba(131,183,53,.15); }
.case-native-chat-field input[aria-invalid="true"], .case-native-chat-field textarea[aria-invalid="true"] { border-color: #d63638; }
.case-native-chat-field-error { color: #b32d2e; font-size: 10px; font-weight: 400; }
.case-native-chat-field-error:empty { display: none; }
.case-native-chat-prechat-actions { display: grid; gap: 2px; margin-top: 3px; }

.case-native-chat-conversation { position: absolute; inset: 0; display: grid; grid-template-areas: "push" "reminder" "messages" "composer"; grid-template-rows: auto auto minmax(0, 1fr) auto; width: 100%; overflow: hidden; background: #f8f9fb; }
.case-native-chat-push-prompt { grid-area: push; }
.case-native-chat-reminder { grid-area: reminder; display: flex; align-items: center; gap: 10px; margin: 10px 12px 0; padding: 10px 12px; border: 1px solid #dce7d4; border-radius: 11px; background: #fff; box-shadow: 0 2px 10px rgba(30,45,20,.05); }
.case-native-chat-reminder > div { min-width: 0; flex: 1; }
.case-native-chat-reminder strong { display: block; color: #334329; font-size: 12px; }
.case-native-chat-reminder p { margin: 2px 0 0; color: #6f776b; font-size: 10px; line-height: 1.35; }
.case-native-chat-reminder .case-native-chat-link { flex: 0 0 auto; max-width: 105px; text-align: right; }
.case-native-chat-messages { grid-area: messages; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px 14px 10px; scrollbar-width: thin; }
.case-native-chat-message { display: flex; margin-bottom: 10px; }
.case-native-chat-message--customer { justify-content: flex-end; }
.case-native-chat-message--operator, .case-native-chat-message--bot, .case-native-chat-message--system { justify-content: flex-start; }
.case-native-chat-bubble { max-width: 82%; padding: 9px 11px 6px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 1px 3px rgba(20,24,32,.09); word-break: break-word; }
.case-native-chat-message--customer .case-native-chat-bubble { border-radius: 14px 14px 4px 14px; color: #fff; background: var(--case-native-chat-color); }
.case-native-chat-message-content { white-space: pre-wrap; }
.case-native-chat-message-author { margin-bottom: 3px; color: #66705f; font-size: 10px; font-weight: 700; line-height: 1.2; }
.case-native-chat-message--customer .case-native-chat-message-author { color: rgba(255,255,255,.82); }
.case-native-chat-meta { display: flex; justify-content: flex-end; gap: 7px; min-height: 14px; margin-top: 3px; color: #8a9099; font-size: 9px; }
.case-native-chat-message--customer .case-native-chat-meta { color: rgba(255,255,255,.78); }
.case-native-chat-retry { color: inherit; background: transparent; text-decoration: underline; }
.case-native-chat-message--failed .case-native-chat-bubble { outline: 2px solid #d63638; }
.case-native-chat-composer { position: relative; z-index: 2; grid-area: composer; align-self: end; display: grid; grid-template-areas: "main tools send"; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 3px; min-height: 50px; margin: 8px 10px max(9px, env(safe-area-inset-bottom)); padding: 3px 4px 3px 10px; border: 2px solid var(--case-native-chat-color); border-radius: 13px; background: #fff; }
.case-native-chat-composer:focus-within { box-shadow: 0 0 0 3px rgba(131,183,53,.2); }
.case-native-chat-tools { position: relative; grid-area: tools; display: flex; align-items: center; }
.case-native-chat-tool { display: grid; place-items: center; width: 31px; height: 34px; color: #4f565d; background: transparent !important; }
.case-native-chat-tool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.case-native-chat-emoji-picker { position: absolute; bottom: 44px; right: 0; display: grid; grid-template-columns: repeat(4, 36px); gap: 2px; padding: 8px; border: 1px solid #dcdcde; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.case-native-chat-emoji-picker[hidden] { display: none; }
.case-native-chat-emoji-picker button { width: 36px; height: 34px; background: transparent; font-size: 20px; }
.case-native-chat-compose-main { grid-area: main; min-width: 0; }
.case-native-chat-input { display: block; width: 100%; height: 40px; min-width: 0; min-height: 40px; max-height: 88px; padding: 9px 0 7px; resize: none; border: 0; outline: 0; color: #202124; background: transparent; font: inherit; box-shadow: none; }
.case-native-chat-selected-files { display: flex; flex-wrap: wrap; gap: 4px; }
.case-native-chat-file-chip { display: inline-flex; align-items: center; max-width: 100%; gap: 4px; padding: 3px 5px 3px 8px; border-radius: 10px; color: #3c434a; background: #eef1f4; font-size: 11px; }
.case-native-chat-file-chip button { width: 18px; height: 18px; border-radius: 50%; color: inherit; background: rgba(0,0,0,.08); }
.case-native-chat-send, .case-native-chat-launcher { display: grid !important; place-items: center; border: 0 !important; border-radius: 50% !important; color: #fff !important; background: var(--case-native-chat-color) !important; }
.case-native-chat-send { grid-area: send; width: 36px; height: 36px; min-height: 36px; }
.case-native-chat-send:disabled { opacity: .55; cursor: wait; }
.case-native-chat-quick-actions { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 9px; transition: transform .2s; }
.case-native-chat-quick-list { position: absolute; right: 7px; bottom: 124px; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 9px; visibility: hidden; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .16s, transform .16s, visibility .16s; }
.case-native-chat-root--quick-open .case-native-chat-quick-list { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
.case-native-chat-quick-link { display: grid; place-items: center; width: 50px; height: 50px; border: 3px solid #fff; border-radius: 50%; color: #fff !important; box-shadow: 0 5px 18px rgba(32,43,25,.22); transform: translateY(0); transition: transform .16s, box-shadow .16s; }
.case-native-chat-quick-link:hover { color: #fff !important; box-shadow: 0 7px 22px rgba(32,43,25,.3); transform: translateY(-2px); }
.case-native-chat-quick-link svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.case-native-chat-quick-link img { display: block; width: 28px; height: 28px; object-fit: contain; }
.case-native-chat-quick-link--call { background: #347ff0; }
.case-native-chat-quick-link--telegram { background: #229ed9; }
.case-native-chat-quick-link--whatsapp { background: #25d366; }
.case-native-chat-quick-link--max { background: linear-gradient(145deg,#471aff,#9500ff); }
.case-native-chat-quick-toggle { position: relative; z-index: 5; display: grid !important; place-items: center; width: 42px; height: 42px; min-height: 42px; padding: 0 !important; border: 3px solid #fff !important; border-radius: 50% !important; color: var(--case-native-chat-color) !important; background: #fff !important; box-shadow: 0 5px 18px rgba(39,53,30,.2); line-height: 0 !important; touch-action: manipulation; }
.case-native-chat-quick-toggle svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.case-native-chat-root--open .case-native-chat-quick-actions { flex-direction: row; }
.case-native-chat-launcher { position: relative; width: 64px; height: 64px; min-height: 64px; box-shadow: 0 6px 24px rgba(39,53,30,.28); transition: transform .2s; isolation: isolate; }
.case-native-chat-launcher::before { content: ""; position: absolute; z-index: -1; inset: -2px; border: 2px solid rgba(131,183,53,.72); border-radius: 50%; pointer-events: none; animation: case-native-chat-pulse 2.2s ease-out infinite; }
.case-native-chat-launcher svg { position: relative; z-index: 1; width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.case-native-chat-launcher:hover { transform: translateY(-2px); }
.case-native-chat-root--coexists .case-native-chat-quick-actions { transform: translateX(-76px); }
@keyframes case-native-chat-pulse { 0% { opacity: .75; transform: scale(.94); } 75%, 100% { opacity: 0; transform: scale(1.42); } }
.case-native-chat-badge { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px; border: 2px solid #fff; border-radius: 12px; color: #fff; background: #e4493f; font-size: 11px; font-weight: 700; }
.case-native-chat-root button:focus-visible, .case-native-chat-root [role="button"]:focus-visible { outline: 3px solid rgba(24,90,160,.35); outline-offset: 2px; }

.case-native-chat-attachments { display: grid; gap: 5px; margin-top: 5px; }
.case-native-chat-attachments:empty { display: none; }
.case-native-chat-image-preview { display: grid; gap: 4px; }
.case-native-chat-image-preview img { display: block; width: auto; max-width: 100%; max-height: 210px; border-radius: 9px; object-fit: contain; cursor: zoom-in; }
.case-native-chat-attachment { display: block; max-width: 100%; padding: 6px 8px !important; overflow: hidden; border-radius: 8px !important; color: inherit; background: rgba(0,0,0,.07) !important; font-size: 12px !important; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.case-native-chat-message--customer .case-native-chat-attachment { background: rgba(255,255,255,.18) !important; }
.case-native-chat-image-viewer { position: fixed; inset: 0; z-index: 1000020; display: grid; place-items: center; padding: 28px; background: rgba(12,16,20,.86); }
.case-native-chat-image-viewer > img { display: block; max-width: min(1100px, 94vw); max-height: 88vh; border-radius: 10px; object-fit: contain; box-shadow: 0 18px 60px rgba(0,0,0,.4); }
.case-native-chat-image-viewer-close { position: fixed; top: 18px; right: 20px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50% !important; color: #fff; background: rgba(0,0,0,.55) !important; font-size: 32px !important; }

@media (max-width: 700px) {
	.case-native-chat-root { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
	.case-native-chat-root--coexists .case-native-chat-quick-actions { transform: translateY(-72px); }
	.case-native-chat-panel { inset: 0; width: 100vw; height: 100dvh; min-height: 0; border: 0; border-radius: 0; transform: translateY(18px); }
	.case-native-chat-root--open .case-native-chat-quick-actions { visibility: hidden; opacity: 0; pointer-events: none; }
	.case-native-chat-header { padding-top: max(12px, env(safe-area-inset-top)); padding-right: max(10px, env(safe-area-inset-right)); padding-left: max(10px, env(safe-area-inset-left)); }
	.case-native-chat-home, .case-native-chat-prechat, .case-native-chat-contact-editor { padding-right: max(16px, env(safe-area-inset-right)); padding-left: max(16px, env(safe-area-inset-left)); }
	.case-native-chat-home { padding-top: 18px; }
	.case-native-chat-team { margin-top: 18px; }
	.case-native-chat-messages { padding-right: max(12px, env(safe-area-inset-right)); padding-left: max(12px, env(safe-area-inset-left)); }
	.case-native-chat-composer { margin-right: max(8px, env(safe-area-inset-right)); margin-left: max(8px, env(safe-area-inset-left)); }
	.case-native-chat-image-viewer { padding: 14px; }
	.case-native-chat-image-viewer-close { top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); }
}
@media (prefers-reduced-motion: reduce) {
	.case-native-chat-launcher::before { animation: none; opacity: .28; transform: scale(1.12); }
}
@media (max-height: 660px) and (min-width: 701px) {
	.case-native-chat-home { padding-top: 16px; }
	.case-native-chat-home-logo { margin-bottom: 12px; }
	.case-native-chat-team { margin-top: 14px; padding: 13px; }
	.case-native-chat-avatars { margin: 9px 0 7px; }
	.case-native-chat-prechat, .case-native-chat-contact-editor { padding-top: 13px; }
	.case-native-chat-prechat-form, .case-native-chat-contact-form { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .case-native-chat-root * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
