.zlc-chat {
	--zlc-height: 100dvh;
	--zlc-admin-offset: 0px;
	--zlc-primary: #e30613;
	--zlc-title: var(--zlc-primary);
	--zlc-author: var(--zlc-text);
	--zlc-toolbar-bg: var(--zlc-messages-bg);
	--zlc-toolbar-text: var(--zlc-text);
	--zlc-sidebar-bg: var(--zlc-messages-bg);
	--zlc-sidebar-text: var(--zlc-text);
	--zlc-composer-bg: var(--zlc-bg);
	--zlc-composer-text: var(--zlc-text);
	--zlc-composer-name: var(--zlc-title);
	--zlc-pm-active-bg: rgba(46, 162, 108, 0.22);
	--zlc-pm-active-border: rgba(76, 175, 80, 0.5);
	--zlc-pm-active-text: #b8f5c8;
	--zlc-pm-typing-bg: rgba(46, 125, 50, 0.45);
	--zlc-pm-typing-border: rgba(129, 199, 132, 0.85);
	--zlc-customize: var(--zlc-text);
	--zlc-message-font-size: 0.95rem;
	--zlc-message-author-font-size: 16px;
	--zlc-message-meta-font-size: 0.72rem;
	--zlc-bubble-mine-bg: var(--zlc-bubble-bg);
	--zlc-bg: #ffffff;
	--zlc-messages-bg: #f7f7f8;
	--zlc-bubble-bg: rgba(0, 0, 0, 0.06);
	--zlc-text: #1a1a1a;
	--zlc-radius: 12px;
	--zlc-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	--zlc-emoji-font: "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", sans-serif;

	box-sizing: border-box;
	container-type: inline-size;
	container-name: zlc-chat;
	font-family: inherit;
	color: var(--zlc-text);
	background: var(--zlc-bg);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--zlc-radius);
	box-shadow: var(--zlc-shadow);
	overflow: hidden;
	max-width: 100%;
	width: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	max-height: var(--zlc-height);
}

body.admin-bar .zlc-chat {
	--zlc-admin-offset: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .zlc-chat {
		--zlc-admin-offset: 46px;
	}
}

body.admin-bar .zlc-chat:not(.zlc-chat--fullpage) {
	--zlc-height: calc(100dvh - var(--zlc-admin-offset));
	scroll-margin-top: var(--zlc-admin-offset);
}

/* Motywy WP/Elementor często nadpisują [hidden] — wymuszamy ukrycie */
.zlc-chat [hidden] {
	display: none !important;
}

.zlc-chat *,
.zlc-chat *::before,
.zlc-chat *::after {
	box-sizing: border-box;
}

.zlc-chat__header {
	display: none;
}

/* Pasek aktywnych rozmów + zakładki */
.zlc-chat__wc-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	padding: 10px 16px;
	min-height: var(--zlc-header-h, 44px);
	background: var(--zlc-toolbar-bg);
	color: var(--zlc-toolbar-text);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
}

.zlc-chat__tabs {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
}

.zlc-chat__tab--channel {
	flex: 0 0 auto;
}

.zlc-chat__pm-tabs {
	display: flex;
	align-items: stretch;
	gap: 6px;
	min-width: 0;
	flex: 1 1 auto;
	overflow-x: auto;
	overflow-y: hidden;
	flex-wrap: nowrap;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	touch-action: pan-x;
	padding-bottom: 1px;
}

.zlc-chat__pm-tabs::-webkit-scrollbar {
	display: none;
}

.zlc-chat__tab-pm-wrap {
	display: inline-flex;
	align-items: stretch;
	flex: 0 0 auto;
	max-width: none;
	border-radius: 6px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	opacity: 0.75;
}

.zlc-chat__tab-pm-wrap.is-active {
	opacity: 1;
	background: rgba(255, 255, 255, 0.14);
}

.zlc-chat--pm-open .zlc-chat__tab-pm-wrap.is-active {
	background: var(--zlc-pm-active-bg);
	box-shadow: inset 0 0 0 1px var(--zlc-pm-active-border);
}

.zlc-chat--pm-open .zlc-chat__tab-pm-wrap.is-active .zlc-chat__tab--pm,
.zlc-chat--pm-open .zlc-chat__tab-pm-wrap.is-active .zlc-chat__tab-pm-icon {
	color: var(--zlc-pm-active-text);
}

.zlc-chat--pm-typing .zlc-chat__tab-pm-wrap.is-active,
.zlc-chat__tab-pm-wrap.is-active.is-typing {
	background: var(--zlc-pm-typing-bg);
	box-shadow: inset 0 0 0 1px var(--zlc-pm-typing-border);
	animation: zlc-pm-typing-pulse 1.6s ease-in-out infinite;
}

.zlc-chat__tab-pm-wrap.is-active .zlc-chat__tab--pm {
	color: var(--zlc-title);
}

.zlc-chat__tab-pm-wrap[hidden] {
	display: none !important;
}

.zlc-chat__tab-pm-wrap .zlc-chat__tab--pm {
	border-radius: 6px 0 0 6px;
	background: transparent;
	opacity: 1;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 11rem;
}

.zlc-chat__tab-pm-wrap .zlc-chat__tab-label {
	max-width: 8rem;
}

.zlc-chat__tab-pm-wrap .zlc-chat__tab-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 36px;
	min-height: 36px;
	padding: 4px 10px;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0 6px 6px 0;
	background: rgba(198, 40, 40, 0.18);
	color: #ff6b6b;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	opacity: 1;
	touch-action: manipulation;
}

.zlc-chat__tab-pm-wrap .zlc-chat__tab-close:hover,
.zlc-chat__tab-pm-wrap .zlc-chat__tab-close:focus-visible {
	opacity: 1;
	background: rgba(198, 40, 40, 0.32);
	color: #fff;
	outline: none;
}

.zlc-chat__tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 0;
	border-radius: 6px;
	padding: 5px 12px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--zlc-toolbar-text);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	opacity: 0.75;
	max-width: 100%;
}

.zlc-chat__tab:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.1);
}

.zlc-chat__tab.is-active {
	opacity: 1;
	background: rgba(255, 255, 255, 0.14);
	color: var(--zlc-title);
}

.zlc-chat__tab-label {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 9rem;
}

.zlc-chat__tab-unread {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	margin-left: 6px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--zlc-primary, #e30613);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1;
}

.zlc-chat__wc-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.zlc-chat__wc-actions .zlc-chat__status {
	font-size: 0.75rem;
	opacity: 0.65;
}

.zlc-chat__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
}

.zlc-chat__status {
	font-size: 0.8rem;
	opacity: 0.9;
}

.zlc-chat__consent {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: calc(var(--zlc-height) - 44px);
	padding: 24px 20px;
	background:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(227, 6, 19, 0.18), transparent 70%),
		var(--zlc-bg);
}

.zlc-chat--welcome {
	display: flex;
	flex-direction: column;
	min-height: var(--zlc-height);
}

.zlc-chat--welcome .zlc-chat__header {
	flex-shrink: 0;
}

.zlc-chat--welcome .zlc-chat__consent {
	flex: 1;
	min-height: 0;
}

.zlc-chat__welcome-card {
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	padding: 36px 32px 32px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
	text-align: center;
}

.zlc-theme-light .zlc-chat__welcome-card {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.08);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.zlc-chat__welcome-icon {
	font-size: 2.5rem;
	line-height: 1;
	margin-bottom: 12px;
}

.zlc-chat__welcome-heading {
	margin: 0 0 6px;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--zlc-title);
}

.zlc-chat__welcome-lead {
	margin: 0 0 24px;
	font-size: 0.95rem;
	opacity: 0.75;
}

.zlc-chat__welcome-name-wrap {
	display: block;
	text-align: left;
	margin-bottom: 18px;
}

.zlc-chat__welcome-name-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--zlc-title);
	opacity: 0.95;
}

.zlc-chat__welcome-name {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid rgba(0, 0, 0, 0.15);
	border-radius: 10px;
	background: #ffffff !important;
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
	caret-color: #1a1a1a;
	font: inherit;
	font-size: 1rem;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.zlc-chat__welcome-name::placeholder {
	color: #888 !important;
	opacity: 1;
	-webkit-text-fill-color: #888 !important;
}

.zlc-theme-light .zlc-chat__welcome-name,
.zlc-chat__consent--portal .zlc-chat__welcome-name {
	background: #ffffff !important;
	color: #1a1a1a !important;
	border-color: rgba(0, 0, 0, 0.18);
}

.zlc-chat__welcome-name:focus {
	outline: none;
	border-color: var(--zlc-primary);
	box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.25);
}

.zlc-chat__consent-text {
	margin: 0 0 14px;
	line-height: 1.55;
	font-size: 0.88rem;
	opacity: 0.85;
	text-align: left;
}

.zlc-chat__consent-text a {
	color: var(--zlc-primary);
}

.zlc-chat__consent-toggle {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 58px;
	margin: 0 0 10px;
	padding: 14px 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: inherit;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	position: relative;
	z-index: 3;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.zlc-theme-light .zlc-chat__consent-toggle {
	border-color: rgba(0, 0, 0, 0.2);
	background: rgba(0, 0, 0, 0.04);
}

.zlc-chat__consent-toggle:active {
	transform: scale(0.99);
}

.zlc-chat__consent-toggle.is-accepted,
.zlc-chat__consent-toggle[aria-pressed="true"] {
	border-color: #2ecc71;
	background: #1e9e4a;
	color: #fff;
	box-shadow: 0 6px 20px rgba(46, 204, 113, 0.45);
}

.zlc-chat__consent-ok {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(46, 204, 113, 0.18);
	border: 1px solid rgba(46, 204, 113, 0.55);
	color: #b8f5c9;
	font-size: 0.92rem;
	font-weight: 600;
	text-align: left;
}

.zlc-chat__consent-ok[hidden] {
	display: none !important;
}

.zlc-theme-light .zlc-chat__consent-ok {
	background: #e8f9ee;
	border-color: #2ecc71;
	color: #167a39;
}

.zlc-chat__consent-ok-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #2ecc71;
	color: #fff;
	font-weight: 800;
	flex-shrink: 0;
}

.zlc-chat__consent-label-text {
	flex: 1;
	min-width: 0;
	padding: 4px 0;
	pointer-events: none;
}

.zlc-chat__consent-check {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 6px;
	background: transparent;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, border-color 0.15s ease;
	pointer-events: none;
}

.zlc-theme-light .zlc-chat__consent-check {
	border-color: rgba(0, 0, 0, 0.28);
}

.zlc-chat__consent-toggle.is-accepted .zlc-chat__consent-check,
.zlc-chat__consent-toggle[aria-pressed="true"] .zlc-chat__consent-check {
	background: #fff;
	border-color: #fff;
}

.zlc-chat__consent-check::after {
	content: "";
	width: 6px;
	height: 11px;
	border: solid transparent;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg) translate(-1px, -1px);
}

.zlc-chat__consent-toggle.is-accepted .zlc-chat__consent-check::after,
.zlc-chat__consent-toggle[aria-pressed="true"] .zlc-chat__consent-check::after {
	border-color: #1e9e4a;
}

.zlc-chat--welcome .zlc-chat__wc-bar {
	display: none;
}

.zlc-chat--welcome .zlc-chat__consent {
	position: relative;
	z-index: 20;
	touch-action: manipulation;
}

.zlc-chat__consent--portal {
	background: var(--zlc-bg, #2c2f38);
}

.zlc-chat--welcome .zlc-chat__welcome-card {
	position: relative;
	z-index: 2;
}

.zlc-chat__consent-error {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(227, 6, 19, 0.15);
	color: #ff8a8a;
	font-size: 0.85rem;
	text-align: left;
}

.zlc-chat__consent-error[hidden] {
	display: none !important;
}

.zlc-chat__consent-error--info {
	background: rgba(46, 204, 113, 0.15);
	color: #b8f5c9;
	border: 1px solid rgba(46, 204, 113, 0.45);
}

.zlc-theme-light .zlc-chat__consent-error--info {
	background: #e8f9ee;
	color: #167a39;
	border-color: #2ecc71;
}

.zlc-chat__consent-btn,
.zlc-chat__erase-data {
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	font: inherit;
}

.zlc-chat__consent-btn {
	display: block;
	width: 100%;
	background: linear-gradient(135deg, var(--zlc-primary), #b9050f);
	color: #fff;
	padding: 14px 20px;
	font-weight: 700;
	font-size: 1rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 8px 20px rgba(227, 6, 19, 0.35);
}

.zlc-chat__consent-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(227, 6, 19, 0.45);
}

.zlc-chat__consent-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.zlc-chat__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
	gap: 0;
	flex: 1;
	min-height: 0;
	height: auto;
	overflow: hidden;
}

.zlc-chat:not(:has(.zlc-chat__sidebar)) .zlc-chat__body {
	grid-template-columns: 1fr;
}

.zlc-chat__sidebar {
	display: flex;
	flex-direction: column;
	padding: 12px 14px 8px 12px;
	border-left: 0;
	background: var(--zlc-sidebar-bg);
	color: var(--zlc-sidebar-text);
	min-height: 0;
	height: 100%;
	overflow: hidden;
}

.zlc-chat__sidebar-head {
	flex-shrink: 0;
	padding-bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.zlc-chat__sidebar-head .zlc-chat__online-count {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.zlc-chat__sidebar-close {
	flex-shrink: 0;
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.zlc-chat__sidebar-close:hover,
.zlc-chat__sidebar-close:focus-visible {
	background: rgba(255, 255, 255, 0.16);
	outline: none;
}

.zlc-chat--vp-tablet .zlc-chat__sidebar-close,
.zlc-chat--vp-phone .zlc-chat__sidebar-close {
	display: inline-flex;
}

.zlc-chat__users {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	overflow-y: auto;
	min-height: 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.zlc-chat__users::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.zlc-chat__users li {
	padding: 0;
	font-size: 0.9rem;
	border-bottom: none;
}

.zlc-chat__sidebar-footer {
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.zlc-chat__online-count {
	margin: 0;
	font-size: 0.82rem;
	opacity: 0.85;
}

.zlc-chat__main {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
	position: relative;
	flex: 1;
}

.zlc-chat__messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px 14px;
	background: var(--zlc-messages-bg);
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.zlc-chat__user-search-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
	min-height: 42px;
	padding: 0 16px 0 14px;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--zlc-input-bg, #4a4f5c);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	transition: gap 0.15s ease, padding 0.15s ease;
}

.zlc-chat__user-search-wrap:focus-within {
	outline: 2px solid var(--zlc-send-bg, var(--zlc-primary));
	outline-offset: 1px;
}

.zlc-chat__user-search-icon {
	flex-shrink: 0;
	position: static;
	transform: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: rgba(255, 255, 255, 0.55);
	pointer-events: none;
	transition: width 0.15s ease, opacity 0.15s ease, margin 0.15s ease;
}

.zlc-chat__user-search-wrap.is-active .zlc-chat__user-search-icon,
.zlc-chat__user-search-wrap:focus-within .zlc-chat__user-search-icon,
.zlc-chat__user-search-wrap:has(.zlc-chat__user-search:not(:placeholder-shown)) .zlc-chat__user-search-icon {
	width: 0;
	height: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
}

.zlc-chat__user-search-wrap.is-active,
.zlc-chat__user-search-wrap:focus-within,
.zlc-chat__user-search-wrap:has(.zlc-chat__user-search:not(:placeholder-shown)) {
	gap: 0;
	padding-left: 16px;
}

.zlc-chat__user-search-svg {
	display: block;
	width: 18px;
	height: 18px;
}

.zlc-chat__user-search {
	flex: 1;
	min-width: 0;
	width: auto;
	border: 0;
	border-radius: 0;
	padding: 0;
	min-height: 42px;
	box-sizing: border-box;
	font: inherit;
	font-size: 0.95rem;
	background: transparent;
	color: var(--zlc-input-text, inherit);
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.zlc-chat input.zlc-chat__user-search {
	border-radius: 0;
}

.zlc-chat__user-search::-webkit-search-decoration,
.zlc-chat__user-search::-webkit-search-cancel-button,
.zlc-chat__user-search::-webkit-search-results-button {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.zlc-chat__user-search::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.zlc-chat__user-search:focus {
	outline: none;
}

/* Wyszukiwarka na tej samej wysokosci co przycisk Wyślij (desktop) */
@media (min-width: 769px) {
	.zlc-chat__body:has(.zlc-chat__sidebar) .zlc-chat__sidebar-footer {
		margin-bottom: 28px;
		padding-top: 10px;
	}

	.zlc-chat__body:has(.zlc-chat__sidebar) .zlc-chat__composer {
		padding-top: 10px;
		padding-bottom: 8px;
	}

	.zlc-chat__body:has(.zlc-chat__sidebar) .zlc-chat__sidebar {
		padding-bottom: 8px;
	}
}

.zlc-chat__message {
	margin-bottom: 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
	border: 0;
}

.zlc-chat__message-row {
	display: flex;
	gap: 10px;
	align-items: flex-end;
	max-width: 100%;
}

.zlc-chat__message--mine .zlc-chat__message-row {
	justify-content: flex-end;
}

.zlc-chat__message-meta {
	display: flex;
	justify-content: flex-start;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 2px;
	padding: 0;
	font-size: var(--zlc-message-meta-font-size);
	color: rgba(255, 255, 255, 0.5);
}

.zlc-chat__message--mine .zlc-chat__message-meta {
	justify-content: flex-end;
}

.zlc-chat__message-author {
	font-weight: 600;
	color: var(--zlc-author);
	font-size: var(--zlc-message-author-font-size);
}

.zlc-chat__message-meta time {
	opacity: 0.85;
	white-space: nowrap;
}

.zlc-chat__message-reply-btn {
	border: 0;
	background: transparent;
	color: var(--zlc-primary, #ff8c00);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	opacity: 1;
	cursor: pointer;
	padding: 2px 6px;
	line-height: 1.3;
}

.zlc-chat__message-reply-btn:hover,
.zlc-chat__message-reply-btn:focus-visible {
	text-decoration: underline;
	opacity: 1;
}

.zlc-chat__message-edit-btn,
.zlc-chat__message-delete-btn {
	border: 0;
	background: transparent;
	color: var(--zlc-primary, #ff8c00);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	opacity: 1;
	cursor: pointer;
	padding: 2px 6px;
	line-height: 1.3;
}

.zlc-chat__message-delete-btn {
	color: #c62828;
}

.zlc-chat__message-edit-btn:hover,
.zlc-chat__message-edit-btn:focus-visible,
.zlc-chat__message-delete-btn:hover,
.zlc-chat__message-delete-btn:focus-visible {
	text-decoration: underline;
}

.zlc-chat__message--deleted .zlc-chat__message-text {
	font-style: italic;
	opacity: 0.78;
}

.zlc-chat__message-deleted-placeholder {
	font-style: italic;
	opacity: 0.78;
}

.zlc-chat__message-edited {
	margin-left: 6px;
	font-size: 0.72rem;
	font-style: italic;
	opacity: 0.7;
}

.zlc-chat__edit-preview {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
	padding: 6px 10px;
	border-left: 3px solid var(--zlc-primary, #ff8c00);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.08);
}

.zlc-chat__edit-preview-label {
	font-size: 0.82rem;
	font-weight: 600;
}

.zlc-chat__edit-preview-cancel {
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
}

.zlc-chat__message-col {
	display: flex;
	flex-direction: column;
	max-width: min(88%, 520px);
	min-width: 0;
}

.zlc-chat__message--mine .zlc-chat__message-col {
	align-items: flex-end;
}

.zlc-chat__message:not(.zlc-chat__message--mine) .zlc-chat__message-col {
	align-items: flex-start;
}

.zlc-chat__message-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 6px;
	width: 100%;
	margin-top: 4px;
	padding: 0 2px;
}

.zlc-chat__message--muted .zlc-chat__message-text {
	opacity: 0.72;
}

.zlc-chat__message-muted-placeholder {
	font-style: italic;
	opacity: 0.78;
}

.zlc-chat__relation-menu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 24px;
	padding: 0 6px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.72;
}

.zlc-chat__relation-menu-btn:hover,
.zlc-chat__relation-menu-btn:focus-visible {
	opacity: 1;
	background: rgba(0, 0, 0, 0.12);
}

.zlc-chat__relation-menu {
	position: fixed;
	z-index: 10050;
	min-width: 210px;
	max-width: min(92vw, 280px);
	padding: 6px;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	color: #111;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.zlc-chat--theme-dark .zlc-chat__relation-menu,
.zlc-chat--theme-zodiak .zlc-chat__relation-menu {
	background: #1f2430;
	color: #f2f4f8;
	border-color: rgba(255, 255, 255, 0.12);
}

.zlc-chat__relation-menu-group {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-bottom: 4px;
	margin-bottom: 4px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.zlc-chat--theme-dark .zlc-chat__relation-menu-group,
.zlc-chat--theme-zodiak .zlc-chat__relation-menu-group {
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

.zlc-chat__relation-menu-label {
	display: block;
	padding: 4px 10px 2px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.7;
}

.zlc-chat__relation-menu-item {
	display: block;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.zlc-chat__relation-menu-item:hover,
.zlc-chat__relation-menu-item:focus-visible {
	background: rgba(255, 140, 0, 0.14);
}

.zlc-chat__relation-menu-item--danger {
	color: #c62828;
}

.zlc-chat__user-blocked-badge {
	margin-left: auto;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background: rgba(198, 40, 40, 0.16);
	color: #c62828;
	white-space: nowrap;
}

.zlc-chat__user--blocked .zlc-chat__user-name {
	opacity: 0.72;
}

.zlc-chat__user--muted .zlc-chat__user-name {
	opacity: 0.85;
}

.zlc-chat__user .zlc-chat__relation-menu-btn {
	margin-left: 4px;
	flex-shrink: 0;
}

.zlc-chat__message-col .zlc-chat__message-content {
	max-width: 100%;
	width: 100%;
}

.zlc-chat__message-reply-quote {
	display: block;
	width: 100%;
	margin: 0 0 6px;
	padding: 6px 8px;
	border: 0;
	border-left: 3px solid var(--zlc-primary, #ff8c00);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.12);
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.zlc-chat__message-reply-quote-author {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	margin-bottom: 2px;
	color: var(--zlc-primary, #ff8c00);
}

.zlc-chat__message-reply-quote-text {
	display: block;
	font-size: 0.82rem;
	opacity: 0.9;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.zlc-chat__message--highlight .zlc-chat__message-content {
	outline: 2px solid var(--zlc-primary, #ff8c00);
	outline-offset: 2px;
}

.zlc-chat__reply-preview {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 8px;
	padding: 8px 10px;
	border-left: 3px solid var(--zlc-primary, #ff8c00);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.14);
}

.zlc-chat__reply-preview-bar {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.zlc-chat__reply-preview-label {
	font-size: 0.75rem;
	opacity: 0.75;
}

.zlc-chat__reply-preview-author {
	font-size: 0.82rem;
	color: var(--zlc-primary, #ff8c00);
}

.zlc-chat__reply-preview-text {
	font-size: 0.82rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0.9;
}

.zlc-chat__reply-preview-cancel {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
	padding: 0 4px;
}

.zlc-chat__reply-preview-cancel:hover {
	opacity: 1;
}

.zlc-chat__composer--replying .zlc-chat__input {
	border-color: var(--zlc-primary, #ff8c00);
}

.zlc-chat__message-content {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	max-width: min(88%, 520px);
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--zlc-bubble-bg);
	line-height: 1.45;
	word-break: break-word;
}

.zlc-chat__message-stack {
	flex: 1;
	min-width: 0;
}

.zlc-chat__message--mine .zlc-chat__message-content {
	flex-direction: row-reverse;
}

.zlc-chat__message-content .zlc-chat__avatar {
	width: 28px;
	height: 28px;
	font-size: 0.65rem;
	flex-shrink: 0;
}

.zlc-chat__message-text {
	margin: 0;
	color: var(--zlc-text);
	font-size: var(--zlc-message-font-size);
}

.zlc-chat__composer {
	flex-shrink: 0;
	padding: 10px 14px calc(8px + env(safe-area-inset-bottom, 0px));
	background: var(--zlc-composer-bg);
	color: var(--zlc-composer-text);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	position: relative;
	z-index: 5;
}

.zlc-chat__composer .zlc-chat__input,
.zlc-chat__composer .zlc-chat__tool {
	color: var(--zlc-composer-text);
}

.zlc-chat__composer-name {
	display: block;
	margin: 0 0 6px;
	padding: 0 6px;
	font-size: 0.9rem;
	line-height: 1.35;
	color: var(--zlc-user-color, var(--zlc-composer-name));
}

.zlc-chat__composer-name[hidden] {
	display: none !important;
}

.zlc-chat__composer-name-text,
.zlc-chat__composer-name-colon {
	color: inherit;
}

.zlc-chat__composer-name-text {
	font-weight: 700;
}

.zlc-chat__composer-name-colon {
	font-weight: 700;
}

.zlc-chat__name-label-wrap {
	display: flex;
	align-items: center;
	gap: 0;
}

.zlc-chat__name-input {
	width: auto;
	min-width: 80px;
	max-width: 220px;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.zlc-chat__name-input:focus {
	outline: none;
	border: 0;
	box-shadow: none;
	background: transparent;
}

.zlc-chat__name-input::placeholder {
	color: rgba(255, 255, 255, 0.4);
	font-weight: 600;
}

.zlc-chat__name-colon {
	margin-left: 2px;
	font-weight: 600;
}

.zlc-chat__form {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	padding: 0;
}

.zlc-chat__composer-toolbar {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
	position: relative;
}

.zlc-chat__composer-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.zlc-chat__customize-toggle--touch {
	display: none;
}

.zlc-chat__input {
	flex: 1;
	min-width: 0;
	min-height: 42px;
	border: 0;
	border-radius: 999px;
	padding: 12px 20px;
	font: inherit;
	font-size: 0.95rem;
	font-family: var(--zlc-emoji-font), inherit;
	background: var(--zlc-input-bg, #4a4f5c);
	color: var(--zlc-composer-text);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	-webkit-appearance: none;
	appearance: none;
	overflow: hidden;
}

.zlc-chat input.zlc-chat__input {
	border-radius: 999px;
}

.zlc-chat__input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.zlc-chat__input:focus {
	outline: 2px solid var(--zlc-send-bg, var(--zlc-primary));
	outline-offset: 1px;
}

.zlc-chat__composer-tools {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
	position: relative;
}

.zlc-chat__composer-trailing {
	display: contents;
}

.zlc-chat__tool-wrap {
	position: relative;
}

.zlc-chat__send {
	flex-shrink: 0;
	border: 0;
	border-radius: 999px;
	padding: 11px 20px;
	min-height: 42px;
	font-weight: 600;
	font-size: var(--zlc-send-font-size, inherit);
	background: var(--zlc-action-button-bg, var(--zlc-send-bg, var(--zlc-primary)));
	color: var(--zlc-action-button-text, #fff);
	cursor: pointer;
	font-family: inherit;
	line-height: 1.2;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.zlc-chat__send:hover,
.zlc-chat__send:focus,
.zlc-chat__send:focus-visible,
.zlc-chat__send:active {
	background: var(--zlc-action-button-active-bg, var(--zlc-action-button-bg, var(--zlc-send-bg, var(--zlc-primary))));
	color: var(--zlc-action-button-text, #fff);
}

.zlc-chat__privacy-actions {
	padding: 4px 0 0;
	position: relative;
}

.zlc-chat__privacy-row {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	max-width: 100%;
}

.zlc-chat__radio-player {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: var(--zlc-customize);
}

.zlc-chat__radio-player--touch {
	display: none;
}

.zlc-chat__radio-player--desktop {
	display: inline-flex;
}

.zlc-chat__radio-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	color: var(--zlc-customize);
}

.zlc-chat__radio-toggle {
	color: inherit;
	opacity: 1;
	width: 28px;
	height: 28px;
}

.zlc-chat__radio-glyph {
	display: block;
	flex-shrink: 0;
}

.zlc-chat__radio-glyph--play {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 5px 0 5px 8px;
	border-color: transparent transparent transparent currentColor;
	margin-left: 2px;
}

.zlc-chat__radio-glyph--pause {
	display: none;
	width: 3px;
	height: 10px;
	background: currentColor;
	box-shadow: 5px 0 0 currentColor;
}

.zlc-chat__radio--playing .zlc-chat__radio-glyph--play {
	display: none;
}

.zlc-chat__radio--playing .zlc-chat__radio-glyph--pause {
	display: block;
}

.zlc-chat__radio--playing .zlc-chat__radio-toggle {
	color: var(--zlc-primary, #e30613);
}

.zlc-chat__radio-tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	z-index: 50;
	transform: translateX(-50%) translateY(4px);
	padding: 5px 10px;
	border-radius: 6px;
	background: rgba(18, 20, 26, 0.94);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.zlc-chat__radio-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: rgba(18, 20, 26, 0.94);
}

.zlc-chat__radio-wrap:hover .zlc-chat__radio-tooltip,
.zlc-chat__radio-wrap:focus-within .zlc-chat__radio-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.zlc-chat__radio-player--has-meta .zlc-chat__radio-track-wrap {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.zlc-chat__radio-player--has-meta .zlc-chat__radio-track {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	max-width: min(220px, 42vw);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.78rem;
	font-weight: 600;
	opacity: 0.85;
}

.zlc-chat__radio-track-wrap:has(.zlc-chat__radio-track:empty) {
	display: none;
}

.zlc-chat__radio-track:empty {
	display: none;
}

.zlc-chat__radio-audio {
	display: none;
}

.zlc-chat__customize-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: transparent;
	border: 0;
	color: var(--zlc-customize);
	padding: 0;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.zlc-chat__tool-customize {
	width: 36px;
	height: 36px;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	color: var(--zlc-composer-text);
}

.zlc-chat__tool-customize .zlc-chat__customize-label-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Motywy WP często nadają przyciskom kolor primary przy :focus — wyłączamy */
.zlc-chat .zlc-chat__customize-toggle,
.zlc-chat .zlc-chat__customize-toggle:hover,
.zlc-chat .zlc-chat__customize-toggle:focus,
.zlc-chat .zlc-chat__customize-toggle:focus-visible,
.zlc-chat .zlc-chat__customize-toggle:active,
.zlc-chat .zlc-chat__customize-toggle.is-active {
	background: transparent;
	background-color: transparent;
	box-shadow: none;
	outline: none;
	color: var(--zlc-customize);
}

.zlc-chat .zlc-chat__customize-toggle:hover,
.zlc-chat .zlc-chat__customize-toggle.is-active {
	opacity: 0.85;
}

.zlc-chat__customize-toggle .zlc-chat__tool-icon {
	width: 16px;
	height: 16px;
	opacity: 0.95;
}

.zlc-chat--customize-open {
	overflow: visible;
}

.zlc-chat--customize-open .zlc-chat__main,
.zlc-chat--customize-open .zlc-chat__composer,
.zlc-chat--customize-open .zlc-chat__privacy-actions,
.zlc-chat--customize-open .zlc-chat__customize-panel {
	overflow: visible;
}

.zlc-chat__customize-panel {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px 14px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	position: relative;
	z-index: 40;
}

.zlc-chat__customize-panel[hidden] {
	display: none !important;
}

.zlc-chat__customize-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.zlc-chat__customize-label {
	font-size: 0.82rem;
	font-weight: 600;
	opacity: 0.9;
	color: var(--zlc-composer-text);
}

.zlc-chat__customize-mute-wrap {
	font-size: 0.82rem;
	cursor: pointer;
	user-select: none;
	color: var(--zlc-composer-text);
}

.zlc-chat__customize-mute-wrap input {
	accent-color: var(--zlc-send-bg, #2ea2cc);
}

.zlc-chat__customize-avatar-wrap {
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	gap: 8px;
}

.zlc-chat__customize-avatar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.zlc-chat__customize-avatar-pick {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.06);
	color: var(--zlc-composer-text);
	font: inherit;
	font-size: 0.8rem;
	cursor: pointer;
}

.zlc-chat__customize-avatar-pick input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.zlc-chat__customize-avatar-remove {
	border: 0;
	border-radius: 6px;
	padding: 6px 12px;
	font: inherit;
	font-size: 0.8rem;
	background: rgba(255, 255, 255, 0.08);
	color: var(--zlc-composer-text);
	cursor: pointer;
}

.zlc-chat__customize-avatar-hint {
	width: 100%;
	margin: 0;
	font-size: 0.72rem;
	opacity: 0.75;
	color: var(--zlc-composer-text);
}

.zlc-chat__customize-color-wrap {
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	gap: 8px;
}

.zlc-chat__customize-color-field {
	width: 100%;
	max-width: 320px;
	position: relative;
}

/* Surowe pole HEX ukryte — widoczna paleta lub picker WordPress */
.zlc-chat__customize-color-field > input.zlc-chat__customize-color {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Paleta od razu widoczna (fallback gdy Iris jeszcze się nie zamontował) */
.zlc-chat__color-fallback {
	width: 100%;
}

.zlc-chat__customize-color-field.zlc-color-picker-mounted .zlc-chat__color-fallback {
	display: none;
}

.zlc-chat__color-fallback-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	padding: 0 10px 0 0;
	height: 30px;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	background: #f6f7f7;
	color: #1d2327;
	font: inherit;
	font-size: 0.85rem;
	cursor: default;
}

.zlc-chat__color-fallback-chip {
	display: inline-block;
	width: 30px;
	height: 28px;
	border-right: 1px solid #8c8f94;
	background: #ff8c00;
}

.zlc-chat__color-fallback-panel {
	display: block;
}

.zlc-chat__color-fallback-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 8px;
}

.zlc-chat__color-swatch {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 2px;
	cursor: pointer;
}

.zlc-chat__color-swatch:hover,
.zlc-chat__color-swatch:focus {
	outline: 2px solid var(--zlc-send-bg, #2ea2cc);
	outline-offset: 1px;
}

.zlc-chat__color-fallback-custom {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 0.8rem;
	color: var(--zlc-composer-text);
}

.zlc-chat__native-color {
	width: 48px;
	height: 28px;
	padding: 0;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	background: transparent;
	cursor: pointer;
}

.zlc-chat__color-fallback-default {
	border: 0;
	border-radius: 3px;
	padding: 4px 10px;
	font: inherit;
	font-size: 0.8rem;
	background: #f6f7f7;
	color: #1d2327;
	border: 1px solid #8c8f94;
	cursor: pointer;
}

/* Pełny picker WordPress (Wybierz kolor + HEX + paleta) — nie samo pole tekstowe */
.zlc-chat__customize-color-wrap .wp-picker-container {
	display: block;
	width: 100%;
	position: relative;
	z-index: 50;
}

.zlc-chat__customize-color-wrap .wp-picker-holder {
	display: block !important;
	position: static !important;
	margin-top: 8px;
}

.zlc-chat__customize-color-wrap .wp-color-result {
	margin: 0 6px 0 0;
	height: 30px;
	vertical-align: top;
}

.zlc-chat__customize-color-wrap .wp-picker-input-wrap {
	vertical-align: top;
}

.zlc-chat__customize-color-wrap .wp-picker-input-wrap input[type="text"] {
	width: 7.5em;
	font-size: 0.85rem;
	background: #fff;
	color: #1d2327;
	border: 1px solid #8c8f94;
	border-radius: 3px;
}

.zlc-chat__customize-color-wrap .iris-picker {
	max-width: 100%;
	box-sizing: border-box;
}

.zlc-chat__customize-color-wrap .iris-palette {
	margin-top: 4px;
}

.zlc-chat__customize-reset {
	border: 0;
	border-radius: 6px;
	padding: 6px 12px;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	background: var(--zlc-send-bg, #2ea2cc);
	color: #fff;
	cursor: pointer;
}

.zlc-chat__customize-reset:hover {
	background: var(--zlc-action-button-active-bg, #1e8cbe);
}

.zlc-chat__privacy-actions .zlc-chat__erase-data {
	margin-left: auto;
	background: transparent;
	color: rgba(255, 255, 255, 0.45);
	padding: 0;
	font-size: 0.75rem;
	text-decoration: underline;
}

.zlc-chat__privacy-actions .zlc-chat__erase-data:hover {
	color: rgba(255, 255, 255, 0.75);
}

.zlc-chat__error {
	padding: 10px 16px;
	background: #fff3f3;
	color: #a40000;
	font-size: 0.9rem;
}

.zlc-chat__toggle-users {
	display: none;
	align-items: center;
	gap: 6px;
	border: 0;
	border-radius: 16px;
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.2);
	color: var(--zlc-toolbar-text);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
}

.zlc-chat__toggle-users-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: rgba(0, 0, 0, 0.25);
	font-size: 0.75rem;
}

/* Header actions */
.zlc-chat__header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Avatary */
.zlc-chat__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	font-size: 0.72rem;
	font-weight: 700;
	color: #fff;
	border: none;
	outline: none;
	box-shadow: none;
	background: transparent;
}

.zlc-chat__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: none;
	outline: none;
	box-shadow: none;
	border-radius: 50%;
}

.zlc-chat__avatar--placeholder {
	display: none;
}

.zlc-chat__customize-avatar-preview {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.12);
	color: var(--zlc-composer-text);
	font-weight: 700;
	font-size: 1.1rem;
	flex-shrink: 0;
	border: none;
	outline: none;
	box-shadow: none;
}

.zlc-chat__customize-avatar-preview.has-image {
	background: transparent;
}

.zlc-chat__customize-avatar-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: none;
	outline: none;
	box-shadow: none;
	border-radius: 50%;
}

.zlc-chat__user--clickable {
	cursor: pointer;
	border-radius: 8px;
	transition: background 0.12s ease;
}

.zlc-chat__user--clickable:hover {
	background: rgba(255, 255, 255, 0.06);
}

.zlc-chat__message-body {
	flex: 1;
	min-width: 0;
	max-width: min(78%, 520px);
	display: flex;
	flex-direction: column;
}

.zlc-chat__message--mine .zlc-chat__message-body {
	align-items: flex-end;
	margin-left: auto;
}

.zlc-chat__user {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 4px;
	position: relative;
}

.zlc-chat__user--empty {
	opacity: 0.65;
	font-size: 0.85rem;
	padding: 12px 4px;
}

.zlc-chat__sidebar .zlc-chat__user-search,
.zlc-chat__sidebar .zlc-chat__online-count {
	color: var(--zlc-sidebar-text);
}

.zlc-chat__user-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--zlc-sidebar-text, var(--zlc-text));
}

.zlc-chat__country-flag {
	flex-shrink: 0;
	margin-left: 0.35em;
	font-size: 1.05em;
	line-height: 1;
	cursor: default;
}

.zlc-chat__message-meta .zlc-chat__country-flag {
	margin-left: 0.3em;
	vertical-align: middle;
}

.zlc-chat__user .zlc-chat__country-flag {
	margin-left: 0.25em;
}

.zlc-chat__user--pm-active {
	background: rgba(46, 162, 204, 0.12);
	border-radius: 8px;
}

.zlc-chat__user--self {
	background: rgba(255, 255, 255, 0.09);
	border-radius: 8px;
}

.zlc-chat--theme-light .zlc-chat__user--self {
	background: rgba(0, 0, 0, 0.06);
}

.zlc-chat__user--self.zlc-chat__user--pm-active {
	background: rgba(255, 255, 255, 0.12);
}

.zlc-chat--theme-light .zlc-chat__user--self.zlc-chat__user--pm-active {
	background: rgba(0, 0, 0, 0.09);
}

.zlc-chat--theme-light.zlc-chat--pm-open .zlc-chat__tab-pm-wrap.is-active .zlc-chat__tab--pm,
.zlc-chat--theme-light.zlc-chat--pm-open .zlc-chat__tab-pm-wrap.is-active .zlc-chat__tab-pm-icon,
.zlc-chat--theme-light.zlc-chat--pm-open .zlc-chat__pm-header:not([hidden]),
.zlc-chat--theme-light.zlc-chat--pm-open .zlc-chat__pm-header:not([hidden]) .zlc-chat__pm-title {
	color: #1b5e20;
}

.zlc-chat--theme-light {
	--zlc-pm-active-bg: rgba(76, 175, 80, 0.18);
	--zlc-pm-active-border: rgba(56, 142, 60, 0.45);
	--zlc-pm-active-text: #1b5e20;
	--zlc-pm-typing-bg: rgba(56, 142, 60, 0.28);
	--zlc-pm-typing-border: rgba(46, 125, 50, 0.65);
}

.zlc-chat__user-pm-indicator,
.zlc-chat__tab-pm-icon {
	flex-shrink: 0;
	font-size: 0.9rem;
	line-height: 1;
	opacity: 0.9;
	color: var(--zlc-primary, #2ea2cc);
}

.zlc-chat__tab-pm-icon {
	margin-right: 4px;
}

.zlc-chat__user-pm-indicator--unread {
	opacity: 1;
	color: #ff8c00;
	animation: zlc-pm-envelope-pulse 1.4s ease-in-out infinite;
}

.zlc-chat__user-pm-indicator--active {
	opacity: 1;
	color: var(--zlc-primary, #2ea2cc);
}

@keyframes zlc-pm-envelope-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.2); }
}

.zlc-chat__user-status {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #3ecf6e;
	flex-shrink: 0;
	box-shadow: 0 0 0 2px rgba(62, 207, 110, 0.25);
}

.zlc-chat__user-pm {
	position: relative;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 0.95rem;
	opacity: 0.6;
	padding: 0 2px;
	flex-shrink: 0;
}

.zlc-chat__user-pm:hover {
	opacity: 1;
}

.zlc-chat__user-pm-badge,
.zlc-chat__toggle-users-unread {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--zlc-primary);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1;
}

.zlc-chat__user .zlc-chat__user-pm-badge {
	position: static;
	margin-left: auto;
	margin-right: 4px;
}

.zlc-chat__toggle-users-unread {
	margin-left: 4px;
}

/* Ikony w kompozytorze */
.zlc-chat__tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	padding: 0;
	cursor: pointer;
	font-size: 0;
	line-height: 0;
	color: rgba(255, 255, 255, 0.65);
	opacity: 0.85;
}

.zlc-chat__tool--pick {
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.zlc-chat__tool--pick .zlc-chat__tool-icon,
.zlc-chat__tool--pick > :not(.zlc-chat__file-input) {
	pointer-events: none;
}

.zlc-chat__file-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	font-size: 0;
	line-height: 0;
	color: transparent;
	z-index: 5;
}

.zlc-chat__tool-icon {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	pointer-events: none;
}

.zlc-chat__tool:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.08);
}

.zlc-chat__tool.is-recording,
.zlc-chat__tool.is-active {
	background: rgba(227, 6, 19, 0.2);
	color: var(--zlc-primary);
	animation: zlc-pulse 1s infinite;
}

.zlc-chat--emoji-open .zlc-chat__composer,
.zlc-chat--emoji-open .zlc-chat__form,
.zlc-chat--emoji-open .zlc-chat__composer-toolbar,
.zlc-chat--emoji-open .zlc-chat__composer-tools,
.zlc-chat--emoji-open .zlc-chat__tool-wrap {
	overflow: visible;
}

.zlc-chat__emoji-panel {
	position: absolute;
	left: auto;
	right: 0;
	bottom: calc(100% + 6px);
	display: grid;
	grid-template-columns: repeat(8, 34px);
	gap: 2px;
	width: 304px;
	max-width: min(304px, calc(100vw - 24px));
	box-sizing: border-box;
	max-height: 220px;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 10px;
	background: var(--zlc-sidebar-bg, #363a45);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	z-index: 30;
}

.zlc-chat__emoji-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	padding: 0;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	cursor: pointer;
}

.zlc-chat__emoji-img {
	display: block;
	width: 26px;
	height: 26px;
	pointer-events: none;
}

.zlc-chat__emoji-char {
	font-family: var(--zlc-emoji-font);
	font-size: 1.45rem;
	line-height: 1;
	pointer-events: none;
}

.zlc-chat__emoji-item:hover {
	background: rgba(255, 255, 255, 0.1);
}

.zlc-chat__message-text {
	font-family: var(--zlc-emoji-font), inherit;
}

/* Podgląd kamery (PiP) */
.zlc-chat__camera {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 200px;
	background: #111;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	z-index: 20;
	border: 2px solid var(--zlc-primary);
}

.zlc-chat__camera-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 10px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
}

.zlc-chat__camera-close {
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.zlc-chat__camera-video {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
	background: #000;
}

.zlc-chat__camera-video--mirror {
	transform: scaleX(-1);
}

.zlc-chat__camera-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 8px;
	background: rgba(0, 0, 0, 0.8);
}

.zlc-chat__camera-capture,
.zlc-chat__camera-switch {
	border: 0;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 1.1rem;
	cursor: pointer;
	line-height: 1;
}

.zlc-chat__camera-capture {
	background: var(--zlc-primary);
}

.zlc-chat__camera-capture:hover,
.zlc-chat__camera-switch:hover {
	opacity: 0.9;
}

.zlc-chat__recording-indicator {
	font-size: 0.8rem;
	color: var(--zlc-primary);
	font-weight: 600;
}

@keyframes zlc-pulse {
	50% { opacity: 0.6; }
}

/* Załączniki */
.zlc-chat__attachment-image {
	max-width: 100%;
	max-height: 240px;
	border-radius: 8px;
	display: block;
	cursor: zoom-in;
	transition: opacity 0.15s ease;
}

.zlc-chat__attachment-image:hover {
	opacity: 0.92;
}

/* Podgląd zdjęcia w oknie czatu */
.zlc-chat__lightbox {
	position: absolute;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.88);
	backdrop-filter: blur(4px);
}

.zlc-chat__lightbox[hidden] {
	display: none !important;
}

.zlc-chat__lightbox-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
	user-select: none;
}

.zlc-chat__lightbox-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 201;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.zlc-chat__lightbox-close:hover {
	background: rgba(255, 255, 255, 0.28);
}

.zlc-chat--lightbox-open .zlc-chat__messages {
	overflow: hidden;
}

.zlc-chat__message--mine .zlc-chat__message-read {
	text-align: right;
}

.zlc-chat__message-read {
	display: block;
	font-size: 0.75rem;
	line-height: 1.3;
	margin-top: 6px;
	opacity: 0.75;
	color: var(--zlc-sidebar-text, var(--zlc-text));
	font-weight: 500;
}

.zlc-chat__message-read.is-sent {
	opacity: 0.55;
}

.zlc-chat__message-read.is-delivered {
	opacity: 0.78;
}

.zlc-chat__message-read.is-read {
	opacity: 0.92;
	color: var(--zlc-primary, #e30613);
}

/* Potwierdzenie otwarcia rozmowy prywatnej */
.zlc-chat__pm-confirm {
	position: absolute;
	inset: 0;
	z-index: 220;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: var(--zlc-text, #f2f2f2);
	font-family: inherit;
}

.zlc-chat__pm-confirm--portal {
	--zlc-primary: #e30613;
	--zlc-title: #e30613;
	--zlc-text: #f2f2f2;
	--zlc-bg: #1c1c20;
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147482999 !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
	min-height: 100% !important;
	max-height: none !important;
	padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
	box-sizing: border-box;
}

.zlc-chat__pm-confirm--portal.zlc-theme-light {
	--zlc-text: #1a1a1a;
	--zlc-bg: #ffffff;
}

body.admin-bar .zlc-chat__pm-confirm--portal {
	top: 46px !important;
	height: calc(100% - 46px) !important;
}

@media (min-width: 783px) {
	body.admin-bar .zlc-chat__pm-confirm--portal {
		top: 32px !important;
		height: calc(100% - 32px) !important;
	}
}

body.zlc-pm-confirm-open {
	overflow: hidden;
}

.zlc-chat__pm-confirm[hidden] {
	display: none !important;
}

.zlc-chat__pm-confirm-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.zlc-chat__pm-confirm--portal .zlc-chat__pm-confirm-backdrop {
	background: rgba(0, 0, 0, 0.62);
}

.zlc-chat__pm-confirm-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 380px;
	padding: 32px 28px 24px;
	border-radius: 20px;
	text-align: center;
	background: rgba(28, 28, 32, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(227, 6, 19, 0.12);
	animation: zlc-pm-confirm-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.zlc-chat__pm-confirm--portal .zlc-chat__pm-confirm-card {
	background:
		radial-gradient(ellipse 90% 70% at 50% 0%, rgba(227, 6, 19, 0.14), transparent 65%),
		rgba(28, 28, 32, 0.98);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
}

.zlc-theme-light .zlc-chat__pm-confirm-card,
.zlc-chat__pm-confirm--portal.zlc-theme-light .zlc-chat__pm-confirm-card {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.08);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

@keyframes zlc-pm-confirm-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.zlc-chat__pm-confirm-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0 auto 16px;
	border-radius: 50%;
	font-size: 1.45rem;
	line-height: 1;
	color: #fff;
	background: linear-gradient(145deg, var(--zlc-primary, #e30613), #b9050f);
	border: none;
	box-shadow: 0 10px 28px rgba(227, 6, 19, 0.35);
}

.zlc-chat__pm-confirm-title {
	margin: 0 0 8px;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--zlc-title, var(--zlc-primary, #e30613));
	letter-spacing: -0.01em;
}

.zlc-chat__pm-confirm-lead {
	margin: 0 0 4px;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--zlc-text, #f2f2f2);
	opacity: 0.82;
}

.zlc-chat__pm-confirm-name {
	display: block;
	margin: 14px 0 26px;
	padding: 0;
	border: none;
	border-radius: 0;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--zlc-text, #f2f2f2);
	background: transparent;
	word-break: break-word;
}

.zlc-theme-light .zlc-chat__pm-confirm-name,
.zlc-chat__pm-confirm--portal.zlc-theme-light .zlc-chat__pm-confirm-name {
	color: #1a1a1a;
}

.zlc-chat__pm-confirm-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.zlc-chat__pm-confirm-cancel,
.zlc-chat__pm-confirm-accept {
	flex: 1;
	min-width: 0;
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	border: 0;
	border-radius: 10px;
	padding: 12px 16px;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-sizing: border-box;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	pointer-events: auto;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.zlc-chat__pm-confirm-cancel {
	background: rgba(255, 255, 255, 0.08);
	color: var(--zlc-text, #f2f2f2);
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.zlc-theme-light .zlc-chat__pm-confirm-cancel,
.zlc-chat__pm-confirm--portal.zlc-theme-light .zlc-chat__pm-confirm-cancel {
	background: #f4f4f6;
	color: #1a1a1a;
	border-color: rgba(0, 0, 0, 0.1);
}

.zlc-chat__pm-confirm-cancel:hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.12);
}

.zlc-theme-light .zlc-chat__pm-confirm-cancel:hover,
.zlc-chat__pm-confirm--portal.zlc-theme-light .zlc-chat__pm-confirm-cancel:hover {
	background: #ebebed;
}

.zlc-chat__pm-confirm-accept {
	background: linear-gradient(180deg, #d40612 0%, #9a040c 100%) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	box-shadow:
		0 8px 20px rgba(0, 0, 0, 0.35),
		0 4px 14px rgba(227, 6, 19, 0.4);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.zlc-chat__pm-confirm--portal .zlc-chat__pm-confirm-accept {
	background: linear-gradient(180deg, #d40612 0%, #9a040c 100%) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

.zlc-chat__pm-confirm-accept:hover {
	transform: translateY(-1px);
	background: linear-gradient(180deg, #e30613 0%, #b00510 100%) !important;
	box-shadow:
		0 12px 28px rgba(0, 0, 0, 0.38),
		0 6px 18px rgba(227, 6, 19, 0.48);
}

.zlc-chat__pm-confirm-cancel:focus-visible,
.zlc-chat__pm-confirm-accept:focus-visible {
	outline: 2px solid var(--zlc-primary, #e30613);
	outline-offset: 2px;
}

.zlc-chat__pm-confirm-accept:focus-visible {
	outline-color: #fff;
}

.zlc-chat--pm-confirm-open .zlc-chat__messages {
	overflow: hidden;
}

.zlc-chat__attachment-audio {
	display: block;
	width: 100%;
	min-width: 260px;
	height: 42px;
	margin: 0;
	background: #fff;
	border-radius: 8px;
}

.zlc-chat__audio-card {
	width: 100%;
	min-width: 280px;
	max-width: 340px;
}

.zlc-chat__message-content:has(.zlc-chat__audio-card) {
	max-width: min(92%, 380px);
}

.zlc-chat__audio-filename {
	margin-bottom: 8px;
	font-weight: 600;
	font-size: var(--zlc-message-font-size);
	color: var(--zlc-text);
	word-break: break-word;
	line-height: 1.35;
}

.zlc-chat__attachment-file {
	display: inline-block;
	padding: 6px 10px;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 6px;
	text-decoration: none;
	color: var(--zlc-primary);
	font-weight: 600;
}

/* Moderacja */
.zlc-chat__mod-actions {
	display: flex;
	gap: 8px;
	margin-top: 6px;
}

.zlc-chat__mod-delete,
.zlc-chat__mod-ban {
	border: 0;
	background: transparent;
	color: #a40000;
	font-size: 0.75rem;
	cursor: pointer;
	text-decoration: underline;
}

/* Motywy */
.zlc-chat--theme-dark,
.zlc-chat--theme-zodiak {
	--zlc-bg: #363a45;
	--zlc-messages-bg: #2c2f38;
	--zlc-sidebar-bg: #2c2f38;
	--zlc-bubble-bg: #3a3f4b;
	--zlc-bubble-mine-bg: var(--zlc-bubble-bg);
	--zlc-input-bg: #ffffff;
	--zlc-input-text: #333333;
	--zlc-action-button-bg: #2ea2cc;
	--zlc-send-bg: #2ea2cc;
	--zlc-text: #ececec;
}

.zlc-chat--theme-dark .zlc-chat__input,
.zlc-chat--theme-zodiak .zlc-chat__input,
.zlc-chat--theme-dark .zlc-chat__user-search,
.zlc-chat--theme-zodiak .zlc-chat__user-search {
	color: var(--zlc-input-text);
}

.zlc-chat--theme-dark .zlc-chat__user-search-wrap,
.zlc-chat--theme-zodiak .zlc-chat__user-search-wrap {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.zlc-chat--theme-dark .zlc-chat__input::placeholder,
.zlc-chat--theme-zodiak .zlc-chat__input::placeholder {
	color: #999;
}

.zlc-chat--theme-dark .zlc-chat__user-search-icon,
.zlc-chat--theme-zodiak .zlc-chat__user-search-icon {
	color: #555;
}

.zlc-chat--theme-dark .zlc-chat__user-search::placeholder,
.zlc-chat--theme-zodiak .zlc-chat__user-search::placeholder {
	color: #999;
}

.zlc-chat--theme-dark .zlc-chat__input:focus,
.zlc-chat--theme-zodiak .zlc-chat__input:focus {
	outline: 2px solid var(--zlc-action-button-bg, var(--zlc-send-bg));
	outline-offset: 1px;
}

.zlc-chat--theme-dark .zlc-chat__header,
.zlc-chat--theme-zodiak .zlc-chat__header {
	background: #2c2f38;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	color: #fff;
}

.zlc-chat--theme-dark .zlc-chat__toggle-users,
.zlc-chat--theme-zodiak .zlc-chat__toggle-users {
	background: rgba(255, 255, 255, 0.12);
}

.zlc-chat--theme-dark .zlc-chat__message-meta,
.zlc-chat--theme-zodiak .zlc-chat__message-meta {
	color: rgba(255, 255, 255, 0.5);
}

.zlc-chat--theme-dark .zlc-chat__emoji-panel,
.zlc-chat--theme-zodiak .zlc-chat__emoji-panel {
	background: #363a45;
	border-color: rgba(255, 255, 255, 0.1);
}

.zlc-chat--theme-dark .zlc-chat__emoji-item:hover,
.zlc-chat--theme-zodiak .zlc-chat__emoji-item:hover {
	background: rgba(255, 255, 255, 0.08);
}

.zlc-chat--theme-light {
	--zlc-bg: #ffffff;
	--zlc-messages-bg: #fafafa;
	--zlc-sidebar-bg: #f5f5f5;
	--zlc-bubble-bg: #ffffff;
	--zlc-bubble-mine-bg: #f0f2f5;
	--zlc-input-bg: #eef0f3;
	--zlc-text: #222;
}

.zlc-chat--theme-light .zlc-chat__sidebar {
	border-left-color: transparent;
}

.zlc-chat--theme-light .zlc-chat__message-content {
	background: var(--zlc-bubble-bg);
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.zlc-chat--theme-light .zlc-chat__message--mine .zlc-chat__message-content {
	border-color: rgba(0, 0, 0, 0.05);
}

.zlc-chat--theme-light .zlc-chat__message {
	border-bottom: 0;
}

.zlc-chat--theme-light .zlc-chat__input::placeholder {
	color: rgba(0, 0, 0, 0.4);
}

.zlc-chat--theme-light .zlc-chat__tool {
	color: rgba(0, 0, 0, 0.55);
}

.zlc-chat--theme-light .zlc-chat__user-search-wrap {
	background-color: #eef0f3;
}

.zlc-chat--theme-light .zlc-chat__user-search {
	color: var(--zlc-text, #222);
}

.zlc-chat--theme-light .zlc-chat__user-search-icon {
	color: rgba(0, 0, 0, 0.45);
}

.zlc-chat--theme-minimal {
	--zlc-radius: 4px;
	--zlc-shadow: none;
	border: 1px solid #ddd;
}

.zlc-chat--theme-minimal .zlc-chat__header {
	background: var(--zlc-bg);
	color: var(--zlc-text);
	border-bottom: 1px solid #ddd;
}

/* PM + WebRTC */
.zlc-chat__pm-header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	padding: 6px 12px 0;
	flex-wrap: wrap;
	font-size: 0.9rem;
	color: var(--zlc-title);
}

.zlc-chat--pm-open .zlc-chat__pm-header:not([hidden]) {
	background: var(--zlc-pm-active-bg);
	border-radius: 8px 8px 0 0;
	padding: 8px 12px 6px;
	box-shadow: inset 0 0 0 1px var(--zlc-pm-active-border);
	color: var(--zlc-pm-active-text);
}

.zlc-chat--pm-open .zlc-chat__pm-header:not([hidden]) .zlc-chat__pm-title,
.zlc-chat--pm-open .zlc-chat__pm-header:not([hidden]) .zlc-chat__pm-icon {
	color: var(--zlc-pm-active-text);
}

.zlc-chat--pm-typing .zlc-chat__pm-header:not([hidden]),
.zlc-chat__pm-header.is-typing:not([hidden]) {
	background: var(--zlc-pm-typing-bg);
	box-shadow: inset 0 0 0 1px var(--zlc-pm-typing-border);
	animation: zlc-pm-typing-pulse 1.6s ease-in-out infinite;
}

@keyframes zlc-pm-typing-pulse {
	0%, 100% { filter: brightness(1); }
	50% { filter: brightness(1.1); }
}

.zlc-chat__pm-icon {
	flex-shrink: 0;
}

.zlc-chat__pm-avatar {
	flex-shrink: 0;
}

.zlc-chat__pm-title {
	flex: 0 1 auto;
	min-width: 0;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.zlc-chat__pm-close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1;
	padding: 0;
	touch-action: manipulation;
}

.zlc-chat__pm-close:hover,
.zlc-chat__pm-close:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	outline: none;
}

.zlc-chat__pm-call-actions {
	display: flex;
	gap: 6px;
	margin-left: auto;
}

.zlc-chat__pm-header[hidden] .zlc-chat__pm-call-actions {
	display: none !important;
}

.zlc-chat__pm-header[hidden] .zlc-chat__pm-close {
	display: none !important;
}

.zlc-chat__pm-call-actions .zlc-chat__call-video,
.zlc-chat__pm-call-actions .zlc-chat__call-audio {
	border: 0;
	background: var(--zlc-action-button-bg, var(--zlc-send-bg, var(--zlc-primary)));
	color: var(--zlc-action-button-icon, #fff);
	border-radius: 8px;
	padding: 8px 10px;
	min-width: 42px;
	min-height: 42px;
	cursor: pointer;
	font-size: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.zlc-chat__pm-call-actions .zlc-chat__call-action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}

.zlc-chat__pm-call-actions .zlc-chat__call-svg-icon {
	width: 1.35rem;
	height: 1.35rem;
	display: block;
}

.zlc-chat__pm-call-actions .zlc-chat__call-video:hover,
.zlc-chat__pm-call-actions .zlc-chat__call-video:focus,
.zlc-chat__pm-call-actions .zlc-chat__call-video:focus-visible,
.zlc-chat__pm-call-actions .zlc-chat__call-video:active,
.zlc-chat__pm-call-actions .zlc-chat__call-audio:hover,
.zlc-chat__pm-call-actions .zlc-chat__call-audio:focus,
.zlc-chat__pm-call-actions .zlc-chat__call-audio:focus-visible,
.zlc-chat__pm-call-actions .zlc-chat__call-audio:active {
	background: var(--zlc-action-button-active-bg, var(--zlc-action-button-bg, var(--zlc-send-bg, var(--zlc-primary))));
	color: var(--zlc-action-button-icon, #fff);
}

.zlc-chat__call-incoming {
	background: rgba(0, 0, 0, 0.82);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	color: #fff;
	text-align: center;
	padding: 20px;
}

.zlc-chat__call-incoming-actions {
	display: flex;
	gap: 12px;
}

.zlc-chat__call-accept,
.zlc-chat__call-reject {
	border: 0;
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 600;
	cursor: pointer;
}

.zlc-chat__call-accept {
	background: #2e9e4b;
	color: #fff;
}

.zlc-chat__call-reject {
	background: #c62828;
	color: #fff;
}

.zlc-chat__call-incoming,
.zlc-chat__call-active {
	position: absolute;
	inset: 0;
	z-index: 80;
	border-radius: 0 0 var(--zlc-radius) var(--zlc-radius);
}

.zlc-chat__call-active {
	background: #111;
	display: flex;
	flex-direction: column;
}

.zlc-chat__call-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	background: rgba(0, 0, 0, 0.92);
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	flex-shrink: 0;
}

.zlc-chat__call-topbar-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.zlc-chat__call-title {
	font-size: 1rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.zlc-chat__call-status {
	font-size: 0.82rem;
	opacity: 0.85;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.zlc-chat__call-status--pulse::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4caf50;
	flex-shrink: 0;
	animation: zlc-call-status-pulse 1.2s ease-in-out infinite;
}

@keyframes zlc-call-status-pulse {
	0%, 100% { opacity: 0.35; transform: scale(0.85); }
	50% { opacity: 1; transform: scale(1.15); }
}

.zlc-chat__call-close {
	border: 0;
	border-radius: 8px;
	padding: 10px 16px;
	background: #c62828;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	flex-shrink: 0;
}

/* Jedno „Rozłącz” — dolny pasek sterowania zastępuje górny przycisk */
.zlc-chat__call-active:not([hidden]) .zlc-chat__call-close {
	display: none;
}

.zlc-chat__call-incoming-card {
	max-width: 320px;
	position: relative;
}

.zlc-chat__call-incoming-rings {
	position: absolute;
	inset: -24px;
	pointer-events: none;
	z-index: 0;
}

.zlc-chat__call-incoming-rings span {
	position: absolute;
	inset: 0;
	border-radius: 24px;
	border: 2px solid rgba(76, 175, 80, 0.55);
	opacity: 0;
	animation: zlc-call-ring-expand 2.4s ease-out infinite;
}

.zlc-chat__call-incoming-rings span:nth-child(2) {
	animation-delay: 0.8s;
}

.zlc-chat__call-incoming-rings span:nth-child(3) {
	animation-delay: 1.6s;
}

.zlc-chat__call-incoming-icon {
	font-size: 3rem;
	margin: 0;
	position: relative;
	z-index: 1;
	animation: zlc-call-incoming-bounce 1.4s ease-in-out infinite;
}

@keyframes zlc-call-incoming-bounce {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.08); }
}

.zlc-chat__call-incoming-text,
.zlc-chat__call-incoming-hint,
.zlc-chat__call-incoming-actions {
	position: relative;
	z-index: 1;
}

.zlc-chat__call-incoming-hint {
	margin: 0;
	font-size: 0.85rem;
	opacity: 0.85;
}

.zlc-chat__call-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	margin: 0;
	text-align: center;
	color: #fff;
	font-size: 0.95rem;
	background: rgba(0, 0, 0, 0.55);
	z-index: 2;
	pointer-events: none;
}

.zlc-chat__call-videos--waiting .zlc-chat__call-placeholder {
	background: rgba(0, 0, 0, 0.55);
}

.zlc-chat__call-videos {
	position: relative;
	flex: 1;
	min-height: 240px;
	background: #000;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.zlc-chat__call-remote {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	background: #000;
	z-index: 0;
}

.zlc-chat__call-remote-audio {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
}

.zlc-chat__call-local {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	border-radius: inherit;
	transform: scaleX(-1);
	background: #111;
}

.zlc-chat__call-local-wrap {
	position: absolute;
	z-index: 3;
	right: 16px;
	bottom: 16px;
	width: min(22vw, 200px);
	aspect-ratio: 2 / 3;
	height: auto;
	max-height: 32%;
	border-radius: 12px;
	border: 2px solid rgba(255, 255, 255, 0.92);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	background: #111;
}

.zlc-chat__call-local-wrap[hidden] {
	display: none !important;
}

.zlc-chat__call-local-off {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px;
	text-align: center;
	background: linear-gradient(155deg, #1e3a4a 0%, #0f1a24 55%, #0a1018 100%);
	color: #dce8f0;
	pointer-events: none;
}

.zlc-chat__call-local-off-title {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.9;
}

.zlc-chat__call-local-off-label {
	font-size: 0.68rem;
	line-height: 1.35;
	opacity: 0.78;
}

.zlc-chat__call-local-wrap--camera-off .zlc-chat__call-local {
	visibility: hidden;
}

.zlc-chat--vp-phone .zlc-chat__call-local-wrap,
.zlc-chat--vp-tablet .zlc-chat__call-local-wrap {
	touch-action: none;
	cursor: grab;
}

.zlc-chat--vp-phone .zlc-chat__call-local-wrap--dragging,
.zlc-chat--vp-tablet .zlc-chat__call-local-wrap--dragging {
	cursor: grabbing;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
	opacity: 0.96;
}

.zlc-chat__call-local[hidden],
.zlc-chat__call-local-wrap .zlc-chat__call-local[hidden] {
	display: none !important;
}

.zlc-chat__call-videos--audio {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
}

.zlc-chat__call-videos--audio::before {
	content: '📞';
	font-size: 3rem;
	opacity: 0.85;
}

.zlc-chat__call-active--audio .zlc-chat__call-remote,
.zlc-chat__call-active--audio .zlc-chat__call-local-wrap {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
}

.zlc-chat__call-controls {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: end;
	gap: 12px;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	background: rgba(0, 0, 0, 0.85);
}

.zlc-chat__call-mute,
.zlc-chat__call-remote-play,
.zlc-chat__call-hangup,
.zlc-chat__call-toggle-video {
	border: 0;
	color: var(--zlc-action-button-text, #fff);
	border-radius: 16px;
	min-width: 84px;
	min-height: 72px;
	padding: 10px 12px;
	font-size: 0.78rem;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
	-webkit-tap-highlight-color: transparent;
}

.zlc-chat__call-mute {
	grid-column: 1;
	justify-self: end;
}

.zlc-chat__call-hangup {
	grid-column: 2;
	background: #c62828;
	min-width: 96px;
	min-height: 80px;
	box-shadow: 0 4px 16px rgba(198, 40, 40, 0.45);
}

.zlc-chat__call-toggle-video {
	grid-column: 3;
	justify-self: start;
}

.zlc-chat__call-mute:active,
.zlc-chat__call-hangup:active,
.zlc-chat__call-toggle-video:active {
	transform: scale(0.96);
}

.zlc-chat__call-mute--on,
.zlc-chat__call-toggle-video--on {
	background-color: var(--zlc-send-bg, var(--zlc-primary));
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.zlc-chat__call-mute--off,
.zlc-chat__call-toggle-video--off {
	background-color: var(--zlc-action-button-active-bg, var(--zlc-action-button-bg, var(--zlc-send-bg, var(--zlc-primary))));
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	opacity: 1;
}

/* Motywy WP nadpisują button:focus — wymuszamy kolory stanu mikrofonu/kamery */
.zlc-chat .zlc-chat__call-mute.zlc-chat__call-mute--on,
.zlc-chat .zlc-chat__call-mute.zlc-chat__call-mute--on:hover,
.zlc-chat .zlc-chat__call-mute.zlc-chat__call-mute--on:focus,
.zlc-chat .zlc-chat__call-mute.zlc-chat__call-mute--on:focus-visible,
.zlc-chat .zlc-chat__call-mute.zlc-chat__call-mute--on:active,
.zlc-chat .zlc-chat__call-toggle-video.zlc-chat__call-toggle-video--on,
.zlc-chat .zlc-chat__call-toggle-video.zlc-chat__call-toggle-video--on:hover,
.zlc-chat .zlc-chat__call-toggle-video.zlc-chat__call-toggle-video--on:focus,
.zlc-chat .zlc-chat__call-toggle-video.zlc-chat__call-toggle-video--on:focus-visible,
.zlc-chat .zlc-chat__call-toggle-video.zlc-chat__call-toggle-video--on:active {
	background: var(--zlc-send-bg, var(--zlc-primary));
	background-color: var(--zlc-send-bg, var(--zlc-primary));
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	color: var(--zlc-action-button-text, #fff);
	outline: none;
}

.zlc-chat .zlc-chat__call-mute.zlc-chat__call-mute--off,
.zlc-chat .zlc-chat__call-mute.zlc-chat__call-mute--off:hover,
.zlc-chat .zlc-chat__call-mute.zlc-chat__call-mute--off:focus,
.zlc-chat .zlc-chat__call-mute.zlc-chat__call-mute--off:focus-visible,
.zlc-chat .zlc-chat__call-mute.zlc-chat__call-mute--off:active,
.zlc-chat .zlc-chat__call-toggle-video.zlc-chat__call-toggle-video--off,
.zlc-chat .zlc-chat__call-toggle-video.zlc-chat__call-toggle-video--off:hover,
.zlc-chat .zlc-chat__call-toggle-video.zlc-chat__call-toggle-video--off:focus,
.zlc-chat .zlc-chat__call-toggle-video.zlc-chat__call-toggle-video--off:focus-visible,
.zlc-chat .zlc-chat__call-toggle-video.zlc-chat__call-toggle-video--off:active {
	background: var(--zlc-action-button-active-bg, var(--zlc-action-button-bg, var(--zlc-send-bg, var(--zlc-primary))));
	background-color: var(--zlc-action-button-active-bg, var(--zlc-action-button-bg, var(--zlc-send-bg, var(--zlc-primary))));
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	color: var(--zlc-action-button-text, #fff);
	outline: none;
}

.zlc-chat__call-remote-play {
	background: #1565c0;
	box-shadow: 0 4px 14px rgba(21, 101, 192, 0.4);
}

.zlc-chat__call-control-icon {
	font-size: 1.65rem;
	line-height: 1;
	flex-shrink: 0;
	color: var(--zlc-action-button-icon, #fff);
}

.zlc-chat__call-control-label {
	color: var(--zlc-action-button-text, #fff);
}

.zlc-chat__call-svg-icon {
	width: 1.65rem;
	height: 1.65rem;
	display: block;
}

.zlc-chat__call-control-label {
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
	white-space: nowrap;
}

.zlc-chat__call-hangup .zlc-chat__call-control-icon {
	font-size: 1.85rem;
}

.zlc-chat__call-remote-play {
	grid-column: 1 / -1;
	justify-self: center;
	margin-bottom: 2px;
}

.zlc-chat__call-controls--no-video {
	grid-template-columns: 1fr auto;
	max-width: 280px;
	margin: 0 auto;
	width: 100%;
}

.zlc-chat__call-controls--no-video .zlc-chat__call-mute {
	grid-column: 1;
	justify-self: end;
}

.zlc-chat__call-controls--no-video .zlc-chat__call-hangup {
	grid-column: 2;
}

.zlc-chat__call-rings {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(54vw, 236px);
	height: min(62vh, 560px);
	max-width: calc(100% - 48px);
	max-height: calc(100% - 96px);
	aspect-ratio: 9 / 16;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 2;
}

.zlc-chat__call-rings span {
	position: absolute;
	inset: 0;
	border-radius: 16px;
	border: 2px solid rgba(76, 175, 80, 0.5);
	opacity: 0;
	animation: zlc-call-ring-expand 2.2s ease-out infinite;
}

.zlc-chat__call-rings span:nth-child(2) {
	animation-delay: 0.75s;
}

.zlc-chat__call-rings span:nth-child(3) {
	animation-delay: 1.5s;
}

@keyframes zlc-call-ring-expand {
	0% {
		transform: scale(0.92);
		opacity: 0.65;
	}
	100% {
		transform: scale(1.22);
		opacity: 0;
	}
}

.zlc-chat__call-videos--ringing .zlc-chat__call-local-wrap {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(76, 175, 80, 0.35);
}

.zlc-chat__call-active--connecting .zlc-chat__call-topbar {
	border-bottom-color: rgba(76, 175, 80, 0.35);
}

.zlc-chat__call-p2p-note {
	margin: 0;
	padding: 6px 12px 10px;
	font-size: 0.72rem;
	color: #aaa;
	text-align: center;
	background: rgba(0, 0, 0, 0.85);
}

/* Rozmowa wideo — rozmiary kamer: desktop / tablet / telefon */
.zlc-chat--vp-desktop .zlc-chat__call-videos {
	min-height: 360px;
}

.zlc-chat--vp-desktop .zlc-chat__call-remote {
	object-fit: contain;
}

.zlc-chat--vp-desktop .zlc-chat__call-local-wrap {
	width: 220px;
	max-height: 36%;
	right: 20px;
	bottom: 20px;
	border-radius: 14px;
}

.zlc-chat--vp-tablet .zlc-chat__call-videos {
	min-height: 0;
}

.zlc-chat--vp-tablet .zlc-chat__call-remote {
	object-fit: contain;
}

.zlc-chat--vp-tablet .zlc-chat__call-local-wrap {
	width: min(30vw, 190px);
	max-height: 34%;
	right: 14px;
	bottom: 14px;
}

.zlc-chat--vp-phone .zlc-chat__call-videos {
	min-height: 0;
}

.zlc-chat__call-remote--inactive {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none;
}

.zlc-chat__call-videos--remote-video-off .zlc-chat__call-placeholder {
	display: flex;
	z-index: 2;
	background: linear-gradient(160deg, #1a1a2e 0%, #16213e 48%, #0f3460 100%);
}

/* Telefon / tablet: tytuł rozmowy na tle wideo (większy obszar kamery) */
.zlc-chat--vp-phone .zlc-chat__call-active:not(.zlc-chat__call-active--audio) .zlc-chat__call-topbar,
.zlc-chat--vp-tablet .zlc-chat__call-active:not(.zlc-chat__call-active--audio) .zlc-chat__call-topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;
	flex-shrink: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 62%, transparent 100%);
	border-bottom: none;
	pointer-events: none;
}

.zlc-chat--vp-phone .zlc-chat__call-active:not(.zlc-chat__call-active--audio),
.zlc-chat--vp-tablet .zlc-chat__call-active:not(.zlc-chat__call-active--audio) {
	min-height: 0;
}

.zlc-chat--vp-phone .zlc-chat__call-active:not(.zlc-chat__call-active--audio) .zlc-chat__call-videos,
.zlc-chat--vp-tablet .zlc-chat__call-active:not(.zlc-chat__call-active--audio) .zlc-chat__call-videos {
	min-height: 0;
	flex: 1 1 auto;
}

.zlc-chat--vp-phone .zlc-chat__call-remote {
	object-fit: cover;
}

.zlc-chat--vp-phone .zlc-chat__call-local-wrap {
	width: auto;
	height: min(24vh, 190px);
	max-width: 34vw;
	max-height: none;
	aspect-ratio: 9 / 16;
	right: 10px;
	bottom: 10px;
	border-radius: 10px;
	border-width: 2px;
}

/* Telefon: własny podgląd na środku dopóki nie ma obrazu rozmówcy */
.zlc-chat--vp-phone .zlc-chat__call-videos--waiting .zlc-chat__call-local-wrap {
	left: 50%;
	top: 50%;
	right: auto;
	bottom: auto;
	width: auto;
	height: min(62vh, 560px);
	max-width: calc(100% - 48px);
	max-height: calc(100% - 96px);
	aspect-ratio: 9 / 16;
	transform: translate(-50%, -50%);
	border-radius: 14px;
	border-width: 3px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
	z-index: 3;
}

.zlc-chat--vp-phone .zlc-chat__call-videos--waiting .zlc-chat__call-local {
	object-fit: cover;
	object-position: center center;
}

.zlc-chat--vp-phone .zlc-chat__call-videos--waiting .zlc-chat__call-remote {
	opacity: 0;
	pointer-events: none;
}

.zlc-chat--vp-phone .zlc-chat__call-videos--waiting .zlc-chat__call-placeholder {
	inset: auto 12px 12px 12px;
	top: auto;
	height: auto;
	background: rgba(0, 0, 0, 0.72);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 0.85rem;
	z-index: 4;
}

.zlc-chat--vp-phone .zlc-chat__call-videos--remote-video-off .zlc-chat__call-placeholder,
.zlc-chat--vp-tablet .zlc-chat__call-videos--remote-video-off .zlc-chat__call-placeholder {
	inset: 0;
	top: 0;
	height: auto;
	border-radius: 0;
	font-size: 0.95rem;
}

.zlc-chat--fullpage .zlc-chat__call-active {
	min-height: 0;
}

.zlc-chat--fullpage .zlc-chat__call-videos {
	flex: 1;
	min-height: 0;
}

.zlc-chat--fullpage.zlc-chat--vp-phone .zlc-chat__call-videos {
	min-height: 0;
}

.zlc-chat--fullpage.zlc-chat--vp-tablet .zlc-chat__call-videos {
	min-height: 0;
}

@media (max-width: 768px) and (orientation: landscape) {
	.zlc-chat--vp-phone .zlc-chat__call-videos,
	.zlc-chat--vp-tablet .zlc-chat__call-videos {
		min-height: 0;
	}

	.zlc-chat--vp-phone .zlc-chat__call-remote,
	.zlc-chat--vp-tablet .zlc-chat__call-remote {
		object-fit: contain;
	}

	.zlc-chat--vp-phone .zlc-chat__call-local-wrap,
	.zlc-chat--vp-tablet .zlc-chat__call-local-wrap {
		left: auto;
		top: auto;
		width: auto;
		height: min(22vh, 168px);
		max-width: 32vw;
		max-height: none;
		aspect-ratio: 9 / 16;
		right: 8px;
		bottom: 8px;
	}
}

.zlc-chat--vp-phone .zlc-chat__tab-pm-wrap .zlc-chat__tab-close,
.zlc-chat--vp-tablet .zlc-chat__tab-pm-wrap .zlc-chat__tab-close {
	min-width: 46px;
	min-height: 46px;
	padding: 8px 12px;
	font-size: 1.6rem;
	flex: 0 0 auto;
}

.zlc-chat--vp-phone .zlc-chat__tab-pm-wrap .zlc-chat__tab-label,
.zlc-chat--vp-tablet .zlc-chat__tab-pm-wrap .zlc-chat__tab-label {
	max-width: 5.5rem;
}

.zlc-chat--vp-phone .zlc-chat__tab-pm-wrap .zlc-chat__tab--pm,
.zlc-chat--vp-tablet .zlc-chat__tab-pm-wrap .zlc-chat__tab--pm {
	max-width: 8.5rem;
}

.zlc-chat--vp-phone .zlc-chat__pm-tabs,
.zlc-chat--vp-tablet .zlc-chat__pm-tabs {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
}

.zlc-chat--vp-phone .zlc-chat__wc-bar,
.zlc-chat--vp-tablet .zlc-chat__wc-bar {
	flex-wrap: nowrap;
	align-items: stretch;
	padding-top: 8px;
	padding-bottom: 8px;
}

.zlc-chat--vp-phone .zlc-chat__tabs,
.zlc-chat--vp-tablet .zlc-chat__tabs {
	align-items: stretch;
}

.zlc-chat--vp-phone .zlc-chat__tab--channel,
.zlc-chat--vp-tablet .zlc-chat__tab--channel {
	align-self: center;
}

.zlc-chat--vp-phone .zlc-chat__wc-actions,
.zlc-chat--vp-tablet .zlc-chat__wc-actions {
	align-self: center;
}

/* Desktop — jeden poziomy pasek jak wcześniej */
@media (min-width: 1025px) {
	.zlc-chat__customize-toggle--touch {
		display: none !important;
	}

	.zlc-chat__customize-toggle--desktop {
		display: inline-flex;
	}

	.zlc-chat__composer-toolbar {
		display: flex;
		align-items: center;
		gap: 2px;
		flex-shrink: 0;
	}
}

/* ============================================================
   Responsywność: tablet, telefon, touch
   ============================================================ */

/* Tablet i telefon — stała kolumna online + widoczny pasek wpisywania */
@media (max-width: 1024px) {
	.zlc-chat {
		width: 100%;
		max-width: 100%;
		height: var(--zlc-height);
		min-height: 0;
	}

	.zlc-chat:not(.zlc-chat--fullpage) {
		--zlc-height: min(640px, 92dvh) !important;
		height: min(640px, 92dvh) !important;
		max-height: min(640px, 92dvh) !important;
	}

	.zlc-chat--fullpage {
		--zlc-height: 100dvh;
		height: 100dvh;
		max-height: 100dvh;
	}

	.zlc-chat__body {
		position: relative;
		width: 100%;
		min-height: 0;
		flex: 1;
		overflow: hidden;
	}

	.zlc-chat__body:has(.zlc-chat__sidebar) {
		grid-template-columns: minmax(0, 1fr) minmax(140px, 200px) !important;
		grid-template-rows: minmax(0, 1fr) auto;
		grid-template-areas:
			'chat-main users'
			'composer composer';
	}

	.zlc-chat:not(:has(.zlc-chat__sidebar)) .zlc-chat__body {
		grid-template-columns: 1fr !important;
		grid-template-rows: minmax(0, 1fr) auto;
		grid-template-areas:
			'chat-main'
			'composer';
	}

	.zlc-chat__body:has(.zlc-chat__sidebar) .zlc-chat__main {
		display: contents;
	}

	.zlc-chat:not(:has(.zlc-chat__sidebar)) .zlc-chat__main {
		display: flex;
		flex-direction: column;
		min-height: 0;
		height: 100%;
		max-height: 100%;
		overflow: hidden;
		grid-area: chat-main;
	}

	.zlc-chat:not(:has(.zlc-chat__sidebar)) .zlc-chat__messages {
		grid-area: auto;
		flex: 1;
	}

	.zlc-chat__pm-header {
		grid-area: chat-main;
		align-self: start;
		position: relative;
		z-index: 3;
		width: 100%;
	}

	.zlc-chat__messages {
		grid-area: chat-main;
		flex: none;
		min-height: 0;
		height: 100%;
		max-height: 100%;
		width: 100%;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.zlc-chat__composer {
		grid-area: composer;
		flex-shrink: 0;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		position: relative;
		z-index: 5;
		background: var(--zlc-composer-bg);
	}

	.zlc-chat__composer-name {
		display: block;
		margin: 0 0 6px;
		padding: 0 4px;
	}

	.zlc-chat__form {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
		gap: 8px;
		width: 100%;
	}

	.zlc-chat__input {
		flex: 1 1 0;
		min-width: 0;
		width: auto;
		order: 1;
	}

	.zlc-chat__send {
		flex: 0 0 auto;
		order: 2;
		margin-left: 0;
		align-self: center;
	}

	.zlc-chat__composer-toolbar {
		flex: 1 1 100%;
		width: 100%;
		order: 3;
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 4px;
		padding-top: 8px;
		margin-top: 2px;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}

	.zlc-chat__customize-toggle--desktop {
		display: none !important;
	}

	.zlc-chat__customize-toggle--touch {
		display: inline-flex;
	}

	.zlc-chat__privacy-actions {
		padding: 0;
		margin: 0;
		width: 100%;
	}

	.zlc-chat__customize-panel {
		margin-top: 8px;
		width: 100%;
	}

	.zlc-chat__message-text {
		word-break: normal;
		overflow-wrap: break-word;
	}

	/* Kolumna online — tablet: stała kolumna; telefon: panel wysuwany (patrz max-width:768px) */
	.zlc-chat__sidebar {
		position: static;
		display: flex;
		flex-direction: column;
		grid-area: users;
		width: auto;
		min-width: 0;
		height: 100%;
		max-height: none;
		padding: 10px 8px 8px;
		margin: 0;
		opacity: 1;
		pointer-events: auto;
		transform: none;
		overflow: hidden;
		box-shadow: none;
		border-left: 1px solid rgba(255, 255, 255, 0.08);
		background: var(--zlc-sidebar-bg);
		color: var(--zlc-sidebar-text);
	}

	.zlc-chat__sidebar-head {
		flex-shrink: 0;
		padding-bottom: 6px;
	}

	.zlc-chat__online-count {
		font-size: 0.78rem;
		line-height: 1.3;
		word-break: break-word;
	}

	.zlc-chat__users {
		flex: 1;
		min-height: 0;
		max-height: none;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.zlc-chat__sidebar-footer {
		flex-shrink: 0;
		margin-top: auto;
		padding-top: 10px;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}

	.zlc-chat__body:has(.zlc-chat__sidebar) .zlc-chat__sidebar-footer {
		margin-bottom: 28px;
	}

	.zlc-chat__user {
		padding: 7px 4px;
		gap: 6px;
	}

	.zlc-chat__sidebar .zlc-chat__avatar {
		display: none;
	}

	.zlc-chat__user-name {
		font-size: 0.85rem;
		color: var(--zlc-sidebar-text, var(--zlc-text));
		display: block;
		flex: 1 1 auto;
		min-width: 0;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.zlc-chat__user-search-wrap {
		min-height: 36px;
		padding: 0 10px;
	}

	.zlc-chat__user-search {
		min-height: 36px;
		font-size: 0.85rem;
	}

	.zlc-chat__wc-bar {
		padding: 8px 12px;
		gap: 8px 10px;
		flex-shrink: 0;
		flex-wrap: nowrap;
		align-items: center;
	}

	.zlc-chat__tabs {
		min-width: 0;
		flex: 1 1 auto;
	}

	.zlc-chat__wc-actions {
		flex-wrap: nowrap;
		flex-shrink: 0;
		align-items: center;
		gap: 8px;
	}

	.zlc-chat__pm-tabs {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.zlc-chat__tab-pm-wrap .zlc-chat__tab--pm {
		padding-right: 8px;
	}

	.zlc-chat__tab-pm-wrap .zlc-chat__tab-close {
		min-width: 44px;
		min-height: 44px;
		padding: 6px 12px;
		font-size: 1.55rem;
	}

	.zlc-chat__pm-tabs::-webkit-scrollbar {
		display: none;
	}

	.zlc-chat__pm-confirm {
		position: fixed;
		inset: 0;
		z-index: 220;
		padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
	}

	.zlc-chat__pm-confirm-card {
		max-width: min(400px, 100%);
		padding: 28px 22px 20px;
	}

	.zlc-chat__pm-confirm-actions {
		flex-direction: column;
	}

	.zlc-chat__pm-confirm-cancel,
	.zlc-chat__pm-confirm-accept {
		width: 100%;
		min-height: 48px;
	}
}

/* Tablet — stała kolumna online, wyszukiwarka na dole kolumny */
@media (min-width: 769px) and (max-width: 1024px) {
	.zlc-chat__toggle-users {
		display: none !important;
	}

	.zlc-chat--users-open::before {
		display: none;
	}

	.zlc-chat__body:has(.zlc-chat__sidebar) {
		grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) !important;
	}

	.zlc-chat__sidebar {
		display: flex !important;
		position: static !important;
		transform: none !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}

	.zlc-chat__users {
		flex: 1 1 auto;
		min-height: 0;
	}

	.zlc-chat__user {
		width: 100%;
		min-width: 0;
	}

	.zlc-chat__user-name {
		flex: 1 1 0%;
		min-width: 0;
		display: block !important;
		color: var(--zlc-sidebar-text, var(--zlc-text)) !important;
		font-size: 0.85rem;
		line-height: 1.3;
		opacity: 1;
		visibility: visible;
	}

	.zlc-chat__sidebar-footer {
		margin-top: auto;
		padding-top: 10px;
		padding-bottom: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}

	.zlc-chat__body:has(.zlc-chat__sidebar) .zlc-chat__sidebar-footer {
		margin-bottom: 28px;
	}

	.zlc-chat__user-search-wrap {
		width: 100%;
		min-height: 36px;
	}
}

/* Telefon — pełna szerokość czatu + wysuwany panel użytkowników */
@media (max-width: 768px) {
	.zlc-chat:not(.zlc-chat--fullpage) {
		--zlc-height: min(100dvh, 100svh) !important;
		height: min(100dvh, 100svh) !important;
		max-height: min(100dvh, 100svh) !important;
		border-radius: 0;
	}

	.zlc-chat__wc-actions .zlc-chat__status {
		display: none !important;
	}

	.zlc-chat__body:has(.zlc-chat__sidebar) {
		grid-template-columns: 1fr !important;
		grid-template-rows: minmax(0, 1fr) auto;
		grid-template-areas:
			'chat-main'
			'composer';
	}

	.zlc-chat__toggle-users {
		display: inline-flex !important;
	}

	.zlc-chat__body {
		position: relative;
	}

	.zlc-chat__sidebar {
		position: absolute !important;
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		width: min(300px, 88vw);
		z-index: 40;
		grid-area: unset !important;
		display: flex !important;
		flex-direction: column;
		padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
		border-left: 1px solid rgba(255, 255, 255, 0.1);
		box-shadow: -10px 0 36px rgba(0, 0, 0, 0.4);
		transform: translateX(100%) !important;
		opacity: 0;
		pointer-events: none;
		visibility: hidden;
		transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.25s ease;
		overflow: hidden;
		background: var(--zlc-sidebar-bg);
		color: var(--zlc-sidebar-text);
	}

	.zlc-chat--users-open::before {
		content: '';
		position: absolute;
		inset: 0;
		z-index: 30;
		background: rgba(0, 0, 0, 0.45);
		pointer-events: auto;
		display: block;
	}

	.zlc-chat--users-open .zlc-chat__sidebar {
		transform: translateX(0) !important;
		opacity: 1;
		pointer-events: auto;
		visibility: visible;
	}

	.zlc-chat__sidebar .zlc-chat__avatar {
		display: inline-flex;
	}

	.zlc-chat__users {
		flex: 1 1 auto;
		min-height: 80px;
		overflow-y: auto;
	}

	.zlc-chat__user {
		width: 100%;
		min-width: 0;
	}

	.zlc-chat__user-name {
		flex: 1 1 0%;
		min-width: 0;
		display: block !important;
		color: var(--zlc-sidebar-text, var(--zlc-text)) !important;
		font-size: 0.85rem;
		line-height: 1.3;
		opacity: 1;
		visibility: visible;
	}

	.zlc-chat__sidebar-footer {
		margin-top: auto;
		margin-bottom: 0;
		padding-top: 10px;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}

	.zlc-chat__body:has(.zlc-chat__sidebar) .zlc-chat__sidebar-footer {
		margin-bottom: 0;
	}

	.zlc-chat__header {
		padding: 10px 12px;
		flex-wrap: wrap;
	}

	.zlc-chat__title {
		font-size: 0.95rem;
	}

	.zlc-chat__sidebar {
		padding: 8px 6px 6px;
	}

	.zlc-chat__online-count {
		font-size: 0.72rem;
	}

	.zlc-chat__user-search-wrap {
		min-height: 34px;
		padding: 0 8px;
	}

	.zlc-chat__user-search {
		min-height: 34px;
		font-size: 16px;
	}

	.zlc-chat__sidebar-footer {
		display: block;
	}

	.zlc-chat__composer {
		padding: 8px 8px calc(10px + env(safe-area-inset-bottom, 0px));
		position: sticky;
		bottom: 0;
		z-index: 10;
	}

	.zlc-chat__form {
		gap: 8px;
	}

	.zlc-chat__input {
		font-size: 16px;
		padding: 12px 14px;
		min-height: 44px;
		border-radius: 999px;
		flex: 1 1 0;
	}

	.zlc-chat__send {
		min-height: 44px;
		min-width: 76px;
		padding: 10px 14px;
		font-size: 0.9rem;
		flex: 0 0 auto;
	}

	.zlc-chat__composer-toolbar {
		gap: 6px;
		padding-top: 8px;
	}

	.zlc-chat__tool {
		width: 40px;
		height: 40px;
	}

	.zlc-chat__tool-icon {
		width: 20px;
		height: 20px;
	}

	.zlc-chat__emoji-panel {
		left: 0;
		right: auto;
		width: min(300px, calc(100vw - 32px));
	}

	.zlc-chat__camera {
		width: 140px;
		right: 8px;
		bottom: calc(8px + env(safe-area-inset-bottom, 0px));
	}

	.zlc-chat__camera-video {
		height: 105px;
	}

	.zlc-chat__call-controls {
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		gap: 10px;
	}

	.zlc-chat__call-mute,
	.zlc-chat__call-hangup,
	.zlc-chat__call-toggle-video {
		min-width: 80px;
		min-height: 76px;
		padding: 10px 10px;
	}

	.zlc-chat__call-hangup {
		min-width: 92px;
		min-height: 84px;
	}

	.zlc-chat__call-control-icon {
		font-size: 1.75rem;
	}

	.zlc-chat__call-hangup .zlc-chat__call-control-icon {
		font-size: 2rem;
	}

	.zlc-chat__attachment-image {
		max-height: 200px;
	}

	.zlc-chat__attachment-audio {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.zlc-chat__audio-card {
		min-width: 0;
		max-width: 100%;
	}

	.zlc-chat__pm-header {
		padding: 6px 10px 0;
	}
}

/* Mały telefon */
@media (max-width: 480px) {
	.zlc-chat__header-actions {
		width: 100%;
		justify-content: flex-end;
	}

	.zlc-chat__send {
		width: auto;
		min-width: 72px;
	}

	.zlc-chat__message-meta {
		flex-wrap: wrap;
	}

	.zlc-chat__pm-header {
		gap: 8px;
		padding-right: 8px;
	}

	.zlc-chat__pm-title {
		flex: 0 1 auto;
		min-width: 0;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.zlc-chat__pm-close {
		width: 36px;
		height: 36px;
		font-size: 1.6rem;
	}

	.zlc-chat__pm-call-actions {
		margin-left: auto;
		flex-shrink: 0;
	}

	.zlc-chat__avatar {
		width: 28px;
		height: 28px;
		font-size: 0.65rem;
	}

	.zlc-chat__consent {
		padding: 14px;
	}
}

/* Poziomy telefon — szerszy panel wysuwany */
@media (max-width: 768px) and (orientation: landscape) {
	.zlc-chat__sidebar {
		width: min(340px, 50vw);
	}
}

/* Preferencja mniejszego ruchu */
@media (prefers-reduced-motion: reduce) {
	.zlc-chat__sidebar {
		transition: none;
	}

	.zlc-chat__tool.is-recording,
	.zlc-chat__tool.is-active {
		animation: none;
	}

	.zlc-chat__call-incoming-icon,
	.zlc-chat__call-incoming-rings span,
	.zlc-chat__call-rings span,
	.zlc-chat__call-status--pulse::before {
		animation: none !important;
	}
}

/* Tryb pełnoekranowy (cała strona) */
.zlc-chat--fullpage {
	--zlc-height: 100dvh;
	--zlc-header-h: 44px;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	margin: 0;
	height: var(--zlc-height);
	min-height: var(--zlc-height);
	max-height: var(--zlc-height);
	border-radius: 0;
	box-shadow: none;
	border: 0;
	overflow: hidden;
}

body.zlc-fullpage-chat .zlc-chat--fullpage {
	width: 100%;
	max-width: 100%;
	margin: 0;
}

html:has(body.zlc-fullpage-chat),
body.zlc-fullpage-chat {
	overflow: hidden;
	height: 100%;
	margin: 0;
}

body.zlc-fullpage-chat {
	background: #2c2f38;
}

.admin-bar .zlc-chat--fullpage {
	--zlc-height: calc(100dvh - var(--zlc-admin-offset, 32px));
	height: var(--zlc-height) !important;
	min-height: var(--zlc-height) !important;
	max-height: var(--zlc-height) !important;
}

@media (max-width: 782px) {
	.admin-bar .zlc-chat--fullpage {
		--zlc-height: calc(100dvh - var(--zlc-admin-offset, 46px));
	}
}

body.admin-bar.zlc-fullpage-chat .elementor-widget-zodiak_live_chat,
body.admin-bar.zlc-fullpage-chat .elementor-widget-zodiak_live_chat > .elementor-widget-container {
	min-height: var(--zlc-height, calc(100dvh - 32px)) !important;
	height: auto !important;
}

body.admin-bar.zlc-fullpage-chat .elementor-widget-zodiak_live_chat .zlc-chat--fullpage,
body.admin-bar .zlc-chat--open.zlc-chat--fullpage,
body.admin-bar .zlc-chat--joined.zlc-chat--fullpage {
	min-height: var(--zlc-height, calc(100dvh - 32px)) !important;
	height: var(--zlc-height, calc(100dvh - 32px)) !important;
	max-height: var(--zlc-height, calc(100dvh - 32px)) !important;
}

@media (max-width: 782px) {
	body.admin-bar.zlc-fullpage-chat .elementor-widget-zodiak_live_chat,
	body.admin-bar.zlc-fullpage-chat .elementor-widget-zodiak_live_chat > .elementor-widget-container,
	body.admin-bar.zlc-fullpage-chat .elementor-widget-zodiak_live_chat .zlc-chat--fullpage,
	body.admin-bar .zlc-chat--open.zlc-chat--fullpage,
	body.admin-bar .zlc-chat--joined.zlc-chat--fullpage {
		min-height: var(--zlc-height, calc(100dvh - 46px)) !important;
		height: var(--zlc-height, calc(100dvh - 46px)) !important;
		max-height: var(--zlc-height, calc(100dvh - 46px)) !important;
	}
}

.zlc-chat--fullpage .zlc-chat__wc-bar {
	flex-shrink: 0;
}

.zlc-chat--fullpage .zlc-chat__body {
	flex: 1;
	min-height: 0;
	height: auto;
	overflow: hidden;
	display: grid;
}

.zlc-chat--fullpage .zlc-chat__body:has(.zlc-chat__sidebar) .zlc-chat__main {
	display: contents;
	min-height: 0;
	height: auto;
	overflow: visible;
}

.zlc-chat--fullpage .zlc-chat__main {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
	overflow: hidden;
}

.zlc-chat--fullpage .zlc-chat__composer {
	flex-shrink: 0;
}

.zlc-chat--fullpage .zlc-chat__messages {
	flex: 1;
	min-height: 0;
}

.zlc-chat--fullpage .zlc-chat__consent {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.elementor-widget-zodiak_live_chat .zlc-chat--fullpage,
.elementor-element .zlc-chat--fullpage {
	width: 100%;
	max-width: 100%;
}

/* Strona tylko z czatem — ukryj nagłówek/stopkę motywu i padding */
body.zlc-fullpage-chat {
	margin: 0;
}

body.zlc-fullpage-chat .wp-site-blocks > header,
body.zlc-fullpage-chat .wp-site-blocks > footer,
body.zlc-fullpage-chat header.site-header,
body.zlc-fullpage-chat footer.site-footer,
body.zlc-fullpage-chat .entry-header,
body.zlc-fullpage-chat .page-header,
body.zlc-fullpage-chat h1.wp-block-post-title,
body.zlc-fullpage-chat .wp-block-post-title {
	display: none !important;
}

body.zlc-fullpage-chat #content,
body.zlc-fullpage-chat .site-content,
body.zlc-fullpage-chat .entry-content,
body.zlc-fullpage-chat .wp-site-blocks,
body.zlc-fullpage-chat .elementor-section-wrap {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
}

body.zlc-fullpage-chat .elementor,
body.zlc-fullpage-chat .elementor-section,
body.zlc-fullpage-chat .elementor-column,
body.zlc-fullpage-chat .elementor-widget-wrap,
body.zlc-fullpage-chat .elementor-widget-zodiak_live_chat,
body.zlc-fullpage-chat .elementor-widget-zodiak_live_chat > .elementor-widget-container {
	padding: 0;
	margin: 0;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 100dvh !important;
	height: 100% !important;
}

body.zlc-fullpage-chat .elementor-widget-zodiak_live_chat .zlc-chat--fullpage,
.zlc-chat--open.zlc-chat--fullpage,
.zlc-chat--joined.zlc-chat--fullpage {
	min-height: 100dvh !important;
	height: var(--zlc-height, 100dvh) !important;
	display: flex !important;
	flex-direction: column !important;
}

.zlc-chat--open .zlc-chat__wc-bar,
.zlc-chat--joined .zlc-chat__wc-bar {
	display: flex !important;
}

.zlc-chat__body--open,
.zlc-chat--joined .zlc-chat__body,
.zlc-chat--open .zlc-chat__body {
	display: grid !important;
	flex: 1 1 auto !important;
	min-height: 0 !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.zlc-chat--fullpage:not(.zlc-chat--welcome),
.zlc-chat--fullpage.zlc-chat--joined {
	display: flex !important;
	flex-direction: column;
	min-height: 100dvh;
	height: var(--zlc-height, 100dvh);
}

.zlc-chat__consent--done,
.zlc-chat__consent[hidden] {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.elementor-widget-zodiak_live_chat,
.elementor-widget-zodiak_live_chat > .elementor-widget-container {
	width: 100%;
	max-width: 100%;
}

/* =============================================================================
   Układ wg viewportu (klasy JS: zlc-chat--vp-desktop | tablet | phone)
   Desktop = bez zmian. Tablet i telefon = poniżej.
   ============================================================================= */

/* --- Wspólne: tablet + telefon — composer na pełną szerokość, 2 rzędy --- */
.zlc-chat--vp-tablet .zlc-chat__body,
.zlc-chat--vp-phone .zlc-chat__body {
	position: relative;
	min-height: 0;
	flex: 1;
	overflow: hidden;
}

.zlc-chat--vp-tablet .zlc-chat__body:has(.zlc-chat__sidebar) .zlc-chat__main,
.zlc-chat--vp-phone .zlc-chat__body:has(.zlc-chat__sidebar) .zlc-chat__main {
	display: contents;
}

.zlc-chat--vp-tablet .zlc-chat__messages,
.zlc-chat--vp-phone .zlc-chat__messages {
	grid-area: chat-main;
	min-height: 0;
	height: 100%;
	overflow-y: auto;
}

.zlc-chat--vp-tablet .zlc-chat__composer,
.zlc-chat--vp-phone .zlc-chat__composer {
	grid-area: composer;
	width: 100%;
	max-width: 100%;
}

.zlc-chat--vp-tablet .zlc-chat__composer-name,
.zlc-chat--vp-phone .zlc-chat__composer-name {
	display: block;
	margin: 0 0 6px;
	padding: 0 4px;
}

.zlc-chat--vp-tablet .zlc-chat__form,
.zlc-chat--vp-phone .zlc-chat__form {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 8px;
	width: 100%;
}

.zlc-chat--vp-tablet .zlc-chat__input,
.zlc-chat--vp-phone .zlc-chat__input {
	flex: 1 1 0;
	min-width: 0;
	order: 1;
}

.zlc-chat--vp-tablet .zlc-chat__send,
.zlc-chat--vp-phone .zlc-chat__send {
	flex: 0 0 auto;
	order: 2;
	align-self: center;
}

.zlc-chat--vp-tablet .zlc-chat__composer-toolbar,
.zlc-chat--vp-phone .zlc-chat__composer-toolbar {
	flex: 1 1 100%;
	width: 100%;
	order: 3;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.zlc-chat--vp-tablet .zlc-chat__customize-toggle--desktop,
.zlc-chat--vp-phone .zlc-chat__customize-toggle--desktop {
	display: none !important;
}

.zlc-chat--vp-tablet .zlc-chat__customize-toggle--touch,
.zlc-chat--vp-phone .zlc-chat__customize-toggle--touch {
	display: inline-flex;
}

.zlc-chat--vp-tablet .zlc-chat__radio-player--desktop,
.zlc-chat--vp-phone .zlc-chat__radio-player--desktop {
	display: none !important;
}

.zlc-chat--vp-tablet .zlc-chat__radio-player--touch,
.zlc-chat--vp-phone .zlc-chat__radio-player--touch {
	display: inline-flex;
}

.zlc-chat--vp-desktop .zlc-chat__radio-player--touch {
	display: none !important;
}

.zlc-chat--vp-tablet .zlc-chat__radio-player--has-meta .zlc-chat__radio-track,
.zlc-chat--vp-phone .zlc-chat__radio-player--has-meta .zlc-chat__radio-track {
	max-width: min(140px, 34vw);
}

/* --- PHONE: jedna linia — narzędzia | zębatka | player | przewijane metadane --- */
.zlc-chat--vp-phone .zlc-chat__composer-toolbar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px;
	min-width: 0;
	overflow: hidden;
}

.zlc-chat--vp-phone .zlc-chat__composer-tools {
	flex: 0 0 auto;
	min-width: 0;
}

.zlc-chat--vp-phone .zlc-chat__composer-trailing {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	margin-left: auto;
	gap: 2px;
	overflow: hidden;
}

.zlc-chat--vp-phone .zlc-chat__customize-toggle--touch {
	flex: 0 0 auto;
}

.zlc-chat--vp-phone .zlc-chat__radio-player--touch {
	flex: 1 1 auto;
	min-width: 0;
	max-width: none;
	gap: 4px;
	overflow: hidden;
}

.zlc-chat--vp-phone .zlc-chat__radio-player--touch .zlc-chat__radio-wrap {
	flex: 0 0 auto;
}

.zlc-chat--vp-phone .zlc-chat__radio-player--has-meta .zlc-chat__radio-track-wrap {
	flex: 1 1 auto;
	min-width: 0;
	max-width: none;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
}

.zlc-chat--vp-phone .zlc-chat__radio-player--has-meta .zlc-chat__radio-track {
	max-width: none;
	text-overflow: clip;
}

.zlc-chat--vp-phone .zlc-chat__radio-track-wrap--scroll .zlc-chat__radio-track-inner {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	animation: zlc-radio-marquee var(--zlc-radio-marquee-duration, 14s) linear infinite;
	will-change: transform;
}

.zlc-chat--vp-phone .zlc-chat__radio-track-wrap--scroll .zlc-chat__radio-track {
	display: inline;
	flex: none;
	max-width: none;
	overflow: visible;
	text-overflow: clip;
}

.zlc-chat--vp-phone .zlc-chat__radio-track-wrap--scroll .zlc-chat__radio-track-clone {
	display: inline;
	padding-left: 2em;
	opacity: 0.85;
}

@keyframes zlc-radio-marquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.zlc-chat--vp-tablet .zlc-chat__wc-bar,
.zlc-chat--vp-phone .zlc-chat__wc-bar {
	flex-wrap: nowrap;
	align-items: center;
}

.zlc-chat--vp-tablet .zlc-chat__wc-actions,
.zlc-chat--vp-phone .zlc-chat__wc-actions {
	flex-wrap: nowrap;
	flex-shrink: 0;
}

/* --- TABLET + TELEFON: czat pełna szerokość, panel wysuwany z prawej --- */
.zlc-chat--vp-tablet .zlc-chat__body:has(.zlc-chat__sidebar),
.zlc-chat--vp-phone .zlc-chat__body:has(.zlc-chat__sidebar) {
	display: grid !important;
	grid-template-columns: 1fr !important;
	grid-template-rows: minmax(0, 1fr) auto !important;
	grid-template-areas:
		'chat-main'
		'composer' !important;
}

.zlc-chat--vp-tablet .zlc-chat__toggle-users,
.zlc-chat--vp-phone .zlc-chat__toggle-users {
	display: inline-flex !important;
}

.zlc-chat--vp-tablet .zlc-chat__wc-actions .zlc-chat__status,
.zlc-chat--vp-phone .zlc-chat__wc-actions .zlc-chat__status {
	display: none !important;
}

.zlc-chat--vp-tablet .zlc-chat__body,
.zlc-chat--vp-phone .zlc-chat__body {
	position: relative;
}

.zlc-chat--vp-tablet .zlc-chat__sidebar,
.zlc-chat--vp-phone .zlc-chat__sidebar {
	position: absolute !important;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	z-index: 50;
	grid-area: unset !important;
	display: flex !important;
	flex-direction: column;
	padding: 12px;
	padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	background: var(--zlc-sidebar-bg);
	color: var(--zlc-sidebar-text);
	border-left: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
	transform: translateX(100%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: transform 0.28s ease, opacity 0.2s ease, visibility 0.28s ease;
	overflow: hidden;
}

.zlc-chat--vp-tablet .zlc-chat__sidebar {
	width: min(340px, 42vw);
}

.zlc-chat--vp-phone .zlc-chat__sidebar {
	width: min(300px, 88vw);
}

.zlc-chat--vp-tablet .zlc-chat__users,
.zlc-chat--vp-phone .zlc-chat__users {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

.zlc-chat--vp-tablet .zlc-chat__sidebar-footer,
.zlc-chat--vp-phone .zlc-chat__sidebar-footer {
	flex-shrink: 0;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.zlc-chat--vp-phone .zlc-chat__sidebar-footer {
	margin-bottom: 0;
}

.zlc-chat--vp-tablet .zlc-chat__user-search-wrap,
.zlc-chat--vp-phone .zlc-chat__user-search-wrap {
	width: 100%;
}

.zlc-chat--vp-tablet.zlc-chat--users-open .zlc-chat__body::after,
.zlc-chat--vp-phone.zlc-chat--users-open .zlc-chat__body::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 40;
	background: rgba(0, 0, 0, 0.5);
	pointer-events: auto;
}

.zlc-chat--vp-tablet.zlc-chat--users-open .zlc-chat__sidebar,
.zlc-chat--vp-phone.zlc-chat--users-open .zlc-chat__sidebar {
	transform: translateX(0);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.zlc-chat--vp-tablet .zlc-chat__user,
.zlc-chat--vp-phone .zlc-chat__user {
	width: 100%;
	min-width: 0;
	padding: 6px 2px;
	gap: 4px;
}

.zlc-chat--vp-tablet .zlc-chat__sidebar .zlc-chat__avatar {
	display: none;
}

.zlc-chat--vp-tablet .zlc-chat__user-status,
.zlc-chat--vp-phone .zlc-chat__user-status {
	flex-shrink: 0;
}

.zlc-chat--vp-tablet .zlc-chat__user-name,
.zlc-chat--vp-phone .zlc-chat__user-name {
	flex: 1 1 0%;
	min-width: 0;
	display: block !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--zlc-sidebar-text, var(--zlc-text)) !important;
	opacity: 1 !important;
	visibility: visible !important;
	font-size: 0.9rem;
	line-height: 1.35;
}

.zlc-chat--vp-tablet .zlc-chat__input,
.zlc-chat--vp-phone .zlc-chat__input {
	font-size: 16px !important;
	min-height: 44px;
	touch-action: manipulation;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-user-select: text;
	user-select: text;
	-webkit-tap-highlight-color: transparent;
}

.zlc-chat--vp-tablet .zlc-chat__form,
.zlc-chat--vp-phone .zlc-chat__form {
	touch-action: manipulation;
}

.zlc-chat--vp-tablet .zlc-chat__composer,
.zlc-chat--vp-phone .zlc-chat__composer {
	touch-action: manipulation;
	position: relative;
	z-index: 11;
}

/* --- TOUCH: menu wiadomości + opcje użytkownika --- */
.zlc-chat__message-menu-btn {
	display: none;
}

.zlc-chat--vp-tablet .zlc-chat__message-menu-btn,
.zlc-chat--vp-phone .zlc-chat__message-menu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: auto;
	min-width: 40px;
	min-height: 36px;
	padding: 0 8px;
	border: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.1);
	color: inherit;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	opacity: 1;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.zlc-chat--vp-tablet .zlc-chat__message-meta,
.zlc-chat--vp-phone .zlc-chat__message-meta {
	align-items: center;
	width: 100%;
}

.zlc-chat--vp-tablet .zlc-chat__message-actions,
.zlc-chat--vp-phone .zlc-chat__message-actions {
	display: none !important;
}

.zlc-chat--vp-tablet .zlc-chat__user .zlc-chat__relation-menu-btn,
.zlc-chat--vp-phone .zlc-chat__user .zlc-chat__relation-menu-btn {
	flex-shrink: 0;
	margin-left: auto;
	min-width: 40px;
	min-height: 40px;
	padding: 0 8px;
	opacity: 1 !important;
	font-size: 1.15rem;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.zlc-chat--vp-tablet .zlc-chat__user-blocked-badge,
.zlc-chat--vp-phone .zlc-chat__user-blocked-badge {
	margin-left: 0;
	flex-shrink: 0;
}

.zlc-chat--vp-tablet .zlc-chat__user--blocked .zlc-chat__user-name,
.zlc-chat--vp-phone .zlc-chat__user--blocked .zlc-chat__user-name {
	flex: 1 1 0;
	min-width: 0;
}

.zlc-chat--vp-tablet .zlc-chat__messages,
.zlc-chat--vp-phone .zlc-chat__messages {
	padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.zlc-chat__relation-menu-item {
	min-height: 44px;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

@media (hover: none), (pointer: coarse) {
	.zlc-chat__message-content:hover .zlc-chat__message-reply-btn {
		opacity: 1;
	}

	.zlc-chat__message-reply-btn,
	.zlc-chat__message-edit-btn,
	.zlc-chat__message-delete-btn {
		opacity: 1 !important;
		visibility: visible !important;
	}

	.zlc-chat--opera .zlc-chat__message-actions {
		display: none !important;
	}

	.zlc-chat--opera .zlc-chat__message-menu-btn {
		display: inline-flex !important;
	}
}

.zlc-chat--opera.zlc-chat--vp-phone .zlc-chat__body:has(.zlc-chat__sidebar) .zlc-chat__main,
.zlc-chat--opera.zlc-chat--vp-tablet .zlc-chat__body:has(.zlc-chat__sidebar) .zlc-chat__main {
	display: flex !important;
	flex-direction: column;
	min-height: 0;
	grid-area: chat-main;
	overflow: hidden;
}

/* --- TELEFON + TABLET: wyraźna kopertka PM przy użytkowniku online --- */
.zlc-chat--vp-phone .zlc-chat__user-pm-indicator,
.zlc-chat--vp-tablet .zlc-chat__user-pm-indicator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 32px;
	min-height: 32px;
	margin-left: 2px;
	padding: 0 6px;
	border-radius: 10px;
	font-size: 1.15rem;
	line-height: 1;
	opacity: 1;
	color: #fff;
	background: rgba(46, 162, 204, 0.92);
	box-shadow: 0 2px 10px rgba(46, 162, 204, 0.45);
}

.zlc-chat--vp-phone .zlc-chat__user-pm-indicator--active,
.zlc-chat--vp-tablet .zlc-chat__user-pm-indicator--active {
	background: var(--zlc-primary, #ff8c00);
	box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.35), 0 2px 10px rgba(255, 140, 0, 0.4);
}

.zlc-chat--vp-phone .zlc-chat__user-pm-indicator--unread,
.zlc-chat--vp-tablet .zlc-chat__user-pm-indicator--unread {
	background: #ff8c00;
	color: #fff;
	box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.45), 0 2px 12px rgba(255, 140, 0, 0.5);
	animation: zlc-pm-envelope-pulse 1.4s ease-in-out infinite;
}

.zlc-chat--vp-phone .zlc-chat__user--pm-active .zlc-chat__user-pm-indicator,
.zlc-chat--vp-tablet .zlc-chat__user--pm-active .zlc-chat__user-pm-indicator {
	transform: scale(1.05);
}

/* --- DESKTOP: przycisk Online ukryty --- */
.zlc-chat--vp-desktop .zlc-chat__toggle-users {
	display: none !important;
}

/* --- PHONE: wiersz 1 = pole + Wyślij; wiersz 2 = zębatka | emoji | zdjęcie | player --- */
.zlc-chat--vp-phone .zlc-chat__input {
	order: 1 !important;
	flex: 1 1 0 !important;
	min-width: 0;
	width: auto;
}

.zlc-chat--vp-phone .zlc-chat__send {
	order: 2 !important;
	flex: 0 0 auto !important;
}

.zlc-chat--vp-phone .zlc-chat__composer-toolbar {
	order: 3 !important;
	flex: 1 1 100% !important;
	width: 100%;
	display: flex !important;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px;
	padding-top: 8px;
	margin-top: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	overflow: visible;
}

.zlc-chat--vp-phone .zlc-chat__composer-trailing {
	display: contents;
}

.zlc-chat--vp-phone .zlc-chat__customize-toggle--touch {
	order: 1;
	flex: 0 0 auto;
}

.zlc-chat--vp-phone .zlc-chat__composer-tools {
	order: 2;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 2px;
	min-width: 0;
}

.zlc-chat--vp-phone .zlc-chat__radio-player--touch {
	order: 3;
	flex: 1 1 auto;
	min-width: 0;
}

.zlc-chat--vp-phone .zlc-chat__tool-audio,
.zlc-chat--vp-phone .zlc-chat__tool-file,
.zlc-chat--vp-phone .zlc-chat__recording-indicator {
	display: none;
}

/* --- TABLET + PHONE: klawiatura i panel emoji --- */
.zlc-chat--vp-tablet .zlc-chat__emoji-panel:not([hidden]),
.zlc-chat--vp-phone .zlc-chat__emoji-panel:not([hidden]) {
	position: fixed;
	left: 8px;
	right: 8px;
	width: auto;
	bottom: calc(var(--zlc-keyboard-inset, 0px) + var(--zlc-composer-height, 96px) + 8px);
	max-height: min(240px, 38dvh);
	max-width: none;
	grid-template-columns: repeat(8, 1fr);
	z-index: 250;
}

.zlc-chat--vp-tablet.zlc-chat--keyboard-open .zlc-chat__composer,
.zlc-chat--vp-phone.zlc-chat--keyboard-open .zlc-chat__composer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: var(--zlc-keyboard-inset, 0px);
	width: 100%;
	max-width: 100%;
	z-index: 120;
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
}

.zlc-chat--vp-tablet.zlc-chat--keyboard-open .zlc-chat__body,
.zlc-chat--vp-phone.zlc-chat--keyboard-open .zlc-chat__body {
	padding-bottom: calc(var(--zlc-composer-height, 100px) + var(--zlc-keyboard-inset, 0px));
}

.zlc-chat--vp-tablet.zlc-chat--emoji-open .zlc-chat__messages,
.zlc-chat--vp-phone.zlc-chat--emoji-open .zlc-chat__messages {
	scroll-padding-bottom: calc(var(--zlc-composer-height, 100px) + 180px);
}
