/* High specificity on purpose: the host "Rekhi Scheme Bridge" and some theme
   builders re-declare the widget palette with selectors such as
   `html[data-ruh-theme="light"] body .rekhi-live-chat:not([...])`. The widget
   also emits `data-rekhi-scheme-lock` as an explicit opt-out, but this block
   must still win if an older bridge build ignores that attribute. */
html body .rekhi-live-chat[data-rekhi-live-chat] {
	/* The widget is a self-contained dark surface. It must never inherit the
	   host theme's palette: light themes flip --text-light-main to near-black
	   and a Scheme Bridge stylesheet can re-declare our own tokens. Keeping the
	   values `!important` and self-contained makes the panel readable in light
	   and dark themes regardless of stylesheet order or UCSS/combine. */
	color-scheme: dark !important;
	--rekhi-chat-green: #22c55e !important;
	--rekhi-chat-orange: #ff6b00 !important;
	--rekhi-chat-on-orange: #14110e !important;
	--rekhi-chat-surface: rgba(11, 11, 11, 0.96) !important;
	--rekhi-chat-surface-solid: #0b0b0b !important;
	--rekhi-chat-text: #ffffff !important;
	--rekhi-chat-muted: rgba(255, 255, 255, 0.72) !important;
	--rekhi-chat-border: rgba(255, 255, 255, 0.18) !important;
	--rekhi-chat-control: rgba(255, 255, 255, 0.10) !important;
	--rekhi-chat-control-hover: rgba(255, 255, 255, 0.16) !important;
	--rekhi-chat-focus: #ffb066 !important;
	color: var(--rekhi-chat-text) !important;
	position: fixed;
	right: calc(22px + env(safe-area-inset-right, 0px));
	bottom: calc(96px + env(safe-area-inset-bottom, 0px));
	z-index: 9998;
	font-family: inherit;
}

/* Host themes and page builders often style every button/input (font, casing,
   letter spacing). Keep widget typography under the widget's control while
   still inheriting the site's family from the root. */
html body .rekhi-live-chat[data-rekhi-live-chat] button,
html body .rekhi-live-chat[data-rekhi-live-chat] input,
html body .rekhi-live-chat[data-rekhi-live-chat] textarea,
html body .rekhi-live-chat[data-rekhi-live-chat] select {
	font-family: inherit !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.rekhi-live-chat--inline {
	position: relative;
	right: auto;
	bottom: auto;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
}

.rekhi-live-chat__avatar,
.rekhi-live-chat__toggle-face {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(255, 107, 0, 0.28);
	flex: 0 0 auto;
}

.rekhi-live-chat__avatar--sm {
	width: 36px;
	height: 36px;
}

.rekhi-live-chat__avatar img,
.rekhi-live-chat__toggle-face img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}

.rekhi-live-chat__avatar-fallback {
	font-weight: 800;
	font-size: 0.95rem;
	color: #fff;
}

.rekhi-live-chat__toggle {
	position: relative;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: transparent;
	box-shadow: 0 0 0 3px #fff, 0 10px 28px rgba(255, 107, 0, 0.45);
	overflow: visible;
}

.rekhi-live-chat__toggle-face {
	width: 64px;
	height: 64px;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.rekhi-live-chat__live-badge {
	position: absolute;
	right: 2px;
	bottom: 2px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--rekhi-chat-green);
	border: 2.5px solid #fff;
	animation: rekhi-chat-ring 2s ease-out infinite;
	z-index: 2;
}

@keyframes rekhi-chat-ring {
	0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
	70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.rekhi-live-chat__toggle-label:empty {
	display: none;
}

.rekhi-live-chat--inline .rekhi-live-chat__toggle {
	width: 100%;
	height: auto;
	min-height: 52px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	background: var(--rekhi-chat-orange);
	color: var(--rekhi-chat-on-orange);
	box-shadow: none;
	font-weight: 800;
}

.rekhi-live-chat--inline .rekhi-live-chat__toggle-face {
	width: 40px;
	height: 40px;
}

.rekhi-live-chat--inline .rekhi-live-chat__toggle-label {
	display: inline;
	color: var(--rekhi-chat-on-orange);
}

.rekhi-live-chat__pill {
	position: fixed;
	right: 98px;
	bottom: 114px;
	z-index: 9998;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 13px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	background: #fff;
	color: #0f172a;
	font: 600 13px/1 inherit;
	box-shadow: 0 4px 16px rgba(16, 24, 40, 0.18);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.rekhi-live-chat__pill[hidden],
.rekhi-live-chat.is-open .rekhi-live-chat__pill {
	opacity: 0;
	pointer-events: none;
	transform: translateY(6px);
}

.rekhi-live-chat--inline .rekhi-live-chat__pill {
	display: none;
}

.rekhi-live-chat__pill-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rekhi-chat-green);
	animation: rekhi-chat-dot 1.6s ease-in-out infinite;
}

@keyframes rekhi-chat-dot {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(0.7); opacity: 0.55; }
}

.rekhi-live-chat__greet {
	position: fixed;
	right: 22px;
	bottom: 176px;
	z-index: 9999;
	width: 268px;
	max-width: calc(100vw - 48px);
	padding: 14px 16px;
	border-radius: 16px;
	background: #fff;
	color: #15171c;
	box-shadow: 0 10px 40px rgba(16, 24, 40, 0.2);
	cursor: pointer;
	font-size: 13.5px;
	line-height: 1.45;
}

.rekhi-live-chat__greet[hidden] {
	display: none !important;
}

.rekhi-live-chat--inline .rekhi-live-chat__greet {
	display: none !important;
}

.rekhi-live-chat__greet-x {
	position: absolute;
	top: 6px;
	right: 8px;
	border: 0;
	background: transparent;
	color: #9aa1ad;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
}

.rekhi-live-chat__greet-head {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 8px;
	padding-right: 18px;
}

.rekhi-live-chat__greet-head strong {
	display: block;
	font-size: 13px;
	color: #15171c;
}

.rekhi-live-chat__greet-head small {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: #6b7280;
}

.rekhi-live-chat__online-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--rekhi-chat-green);
	display: inline-block;
}

.rekhi-live-chat__greet p {
	margin: 0;
	color: #15171c;
}

.rekhi-live-chat__panel {
	/* Desktop: a tall side rail, not a corner card. The page stays interactive
	   beside it because no backdrop or body scroll lock is applied here. */
	position: fixed;
	top: calc(16px + env(safe-area-inset-top, 0px));
	right: calc(22px + env(safe-area-inset-right, 0px));
	bottom: calc(172px + env(safe-area-inset-bottom, 0px));
	left: auto;
	display: flex;
	flex-direction: column;
	width: min(420px, calc(100vw - 44px));
	height: auto;
	max-height: none;
	box-sizing: border-box;
	overflow: hidden;
	border: 1px solid var(--rekhi-chat-border);
	border-radius: 18px;
	color: var(--rekhi-chat-text) !important;
	background:
		linear-gradient(135deg, rgba(255, 107, 0, 0.14), transparent 55%),
		var(--rekhi-chat-surface) !important;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.rekhi-live-chat__panel[hidden] {
	display: none !important;
}

.rekhi-live-chat__panel > * {
	flex: 0 0 auto;
}

.rekhi-live-chat--inline .rekhi-live-chat__panel {
	position: relative;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	width: 100%;
	height: auto;
	min-height: 0;
	margin-top: 12px;
	max-height: none;
}

.rekhi-live-chat__panel header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--rekhi-chat-border);
}

.rekhi-live-chat__header-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.rekhi-live-chat__header-meta strong {
	display: block;
	font-size: 0.92rem;
	line-height: 1.2;
}

.rekhi-live-chat__header-meta small {
	display: block;
	font-size: 0.72rem;
	color: var(--rekhi-chat-muted);
	line-height: 1.3;
}

.rekhi-live-chat__panel header button {
	border: 0;
	color: var(--rekhi-chat-text);
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	flex: 0 0 auto;
}

.rekhi-live-chat__log {
	display: grid;
	align-content: start;
	gap: 10px;
	flex: 1 1 auto !important;
	min-height: 0;
	max-height: none;
	padding: 14px;
	overflow: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-gutter: stable;
}

.rekhi-live-chat__log span {
	display: inline-block;
	padding: 10px 12px;
	border-radius: 14px;
	background: var(--rekhi-chat-control);
	line-height: 1.45;
	font-size: 0.9rem;
	white-space: pre-wrap;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.rekhi-live-chat__log p {
	margin: 0;
}

.rekhi-live-chat__log p.is-user {
	text-align: right;
}

.rekhi-live-chat__log p.is-user span {
	background: rgba(255, 107, 0, 0.28);
}

.rekhi-live-chat__log p.is-typing span {
	color: var(--rekhi-chat-muted);
	font-style: italic;
}

.rekhi-live-chat__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.rekhi-live-chat__actions button,
.rekhi-live-chat__actions a {
	border: 1px solid var(--rekhi-chat-border);
	border-radius: 999px;
	padding: 7px 11px;
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	color: var(--rekhi-chat-text);
	background: var(--rekhi-chat-control);
}

.rekhi-live-chat__actions button:hover,
.rekhi-live-chat__actions a:hover {
	background: var(--rekhi-chat-control-hover);
}

.rekhi-live-chat__actions .is-primary {
	border: 0;
	background: var(--rekhi-chat-orange);
	color: var(--rekhi-chat-on-orange);
}

.rekhi-live-chat__citations {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-size: 0.72rem;
	max-width: 100%;
}

.rekhi-live-chat__citations-label {
	color: var(--rekhi-chat-muted);
	font-weight: 700;
}

.rekhi-live-chat__citations a {
	color: var(--rekhi-chat-text);
	text-decoration: underline;
	overflow-wrap: anywhere;
}

.rekhi-live-chat__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 12px 10px;
	max-width: 100%;
}

.rekhi-live-chat__chip {
	max-width: 100%;
	border: 1px solid var(--rekhi-chat-border);
	border-radius: 999px;
	padding: 7px 11px;
	background: var(--rekhi-chat-control);
	color: var(--rekhi-chat-text);
	font-size: 0.75rem;
	font-weight: 650;
	cursor: pointer;
	text-align: left;
}

.rekhi-live-chat__chip:hover {
	border-color: rgba(255, 107, 0, 0.55);
	background: rgba(255, 107, 0, 0.14);
}

.rekhi-live-chat__lead {
	padding: 0 12px 10px;
	border-top: 1px solid var(--rekhi-chat-border);
	padding-top: 10px;
}

.rekhi-live-chat__lead-hint {
	margin: 0 0 8px;
	font-size: 0.72rem;
	color: var(--rekhi-chat-muted);
	line-height: 1.35;
}

.rekhi-live-chat__lead-fields {
	display: grid;
	gap: 6px;
}

.rekhi-live-chat__lead-fields input,
.rekhi-live-chat input[name="question"] {
	min-width: 0;
	width: 100%;
	border: 1px solid var(--rekhi-chat-border);
	border-radius: 999px;
	padding: 10px 12px;
	color: var(--rekhi-chat-text);
	background: var(--rekhi-chat-control);
	caret-color: var(--rekhi-chat-text);
	box-sizing: border-box;
}

.rekhi-live-chat input::placeholder,
.rekhi-live-chat textarea::placeholder {
	color: var(--rekhi-chat-muted);
	opacity: 1;
}

.rekhi-live-chat__lead-fields input:hover,
.rekhi-live-chat input[name="question"]:hover {
	background: var(--rekhi-chat-control-hover);
}

.rekhi-live-chat form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	padding: 0 12px 12px;
	max-width: 100%;
	box-sizing: border-box;
}

.rekhi-live-chat form input,
.rekhi-live-chat form button {
	min-width: 0;
}

.rekhi-live-chat form input[name="question"] {
	width: 100%;
}

.rekhi-live-chat form button {
	border: 0;
	border-radius: 999px;
	padding: 0 16px;
	color: var(--rekhi-chat-on-orange);
	background: var(--rekhi-chat-orange);
	font-weight: 800;
	cursor: pointer;
	min-height: 48px;
	min-width: 68px;
}

.rekhi-live-chat form button:hover {
	filter: brightness(1.08);
}

.rekhi-live-chat button:disabled,
.rekhi-live-chat input:disabled,
.rekhi-live-chat textarea:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.rekhi-live-chat form[aria-busy="true"] button,
.rekhi-live-chat button[aria-busy="true"] {
	cursor: progress;
	opacity: 0.75;
}

.rekhi-live-chat :focus-visible {
	outline: 2px solid var(--rekhi-chat-focus);
	outline-offset: 2px;
}

.rekhi-live-chat__handoff {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 8px;
	padding: 0 12px 12px;
}

.rekhi-live-chat__handoff a {
	padding: 10px;
	border: 1px solid var(--rekhi-chat-border);
	border-radius: 12px;
	color: var(--rekhi-chat-text);
	text-align: center;
	text-decoration: none;
	font-weight: 800;
	font-size: 0.78rem;
	background: var(--rekhi-chat-control);
}

.rekhi-live-chat__handoff a:hover {
	background: var(--rekhi-chat-control-hover);
}

.rekhi-live-chat__cta-primary {
	border: 0 !important;
	background: var(--rekhi-chat-orange) !important;
	color: var(--rekhi-chat-on-orange) !important;
}

.rekhi-live-chat__nudge {
	position: fixed;
	right: 22px;
	bottom: 176px;
	z-index: 9999;
	max-width: 260px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #fff;
	color: #0f172a;
	font-size: 0.82rem;
	font-weight: 650;
	line-height: 1.4;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
	cursor: pointer;
}

.rekhi-live-chat__nudge[hidden] {
	display: none !important;
}

/* Lead + quote handoff stay hidden until inquiry phase ends */
.rekhi-live-chat__lead[hidden],
.rekhi-live-chat__handoff[hidden] {
	display: none !important;
}

.rekhi-live-chat__lead.is-visible,
.rekhi-live-chat__handoff.is-visible {
	display: block;
}

.rekhi-live-chat__handoff.is-visible {
	display: grid;
}

/* Phones + small tablets: full-viewport sheet (never a zoomed corner card) */
@media (max-width: 900px) {
	html.rekhi-chat-open,
	body.rekhi-chat-open {
		overflow: hidden !important;
		touch-action: none;
		overscroll-behavior: none;
		height: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		position: relative !important;
		transform: none !important;
		zoom: 1 !important;
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
	}

	.rekhi-live-chat {
		right: 14px;
		bottom: calc(88px + env(safe-area-inset-bottom, 0px));
		transform: none !important;
		zoom: 1 !important;
	}

	.rekhi-live-chat__toggle {
		width: 54px;
		height: 54px;
	}

	.rekhi-live-chat__toggle-face {
		width: 54px;
		height: 54px;
	}

	.rekhi-live-chat__pill {
		display: none !important;
	}

	.rekhi-live-chat__greet,
	.rekhi-live-chat__nudge {
		right: 14px;
		bottom: calc(156px + env(safe-area-inset-bottom, 0px));
		max-width: min(300px, calc(100vw - 28px));
		font-size: 15px;
	}

	/* Always ≥16px on mobile inputs — stops iOS page-zoom on focus */
	.rekhi-live-chat input,
	.rekhi-live-chat textarea,
	.rekhi-live-chat select,
	.rekhi-live-chat button {
		font-size: 16px !important;
	}

	.rekhi-live-chat.is-open {
		position: fixed !important;
		inset: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		top: 0 !important;
		width: 100vw !important;
		width: 100dvw !important;
		height: 100vh !important;
		height: 100dvh !important;
		max-width: none !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0 !important;
		transform: none !important;
		zoom: 1 !important;
		z-index: 2147483000 !important;
		overflow: hidden !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__toggle,
	.rekhi-live-chat.is-open .rekhi-live-chat__greet,
	.rekhi-live-chat.is-open .rekhi-live-chat__nudge,
	.rekhi-live-chat.is-open .rekhi-live-chat__pill {
		display: none !important;
		visibility: hidden !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__panel,
	.rekhi-live-chat.is-open .rekhi-live-chat__panel[hidden] {
		position: fixed !important;
		inset: 0 !important;
		left: 0 !important;
		right: 0 !important;
		top: var(--rekhi-chat-vv-top, 0px) !important;
		bottom: auto !important;
		width: 100vw !important;
		width: 100dvw !important;
		max-width: 100vw !important;
		height: var(--rekhi-chat-vh, 100vh) !important;
		height: var(--rekhi-chat-vh, 100dvh) !important;
		max-height: var(--rekhi-chat-vh, 100dvh) !important;
		min-height: 0 !important;
		margin: 0 !important;
		border-radius: 0 !important;
		border: 0 !important;
		box-shadow: none !important;
		transform: none !important;
		zoom: 1 !important;
		display: flex !important;
		flex-direction: column !important;
		grid-template-rows: none !important;
		padding-top: env(safe-area-inset-top, 0px);
		padding-bottom: env(safe-area-inset-bottom, 0px);
		padding-left: env(safe-area-inset-left, 0px);
		padding-right: env(safe-area-inset-right, 0px);
		z-index: 2147483001 !important;
		background: var(--rekhi-chat-surface-solid) !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
		visibility: visible !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__panel header {
		flex: 0 0 auto !important;
		min-height: 0 !important;
		height: auto !important;
		padding: 10px 14px !important;
		line-height: 1.2 !important;
		flex-wrap: nowrap !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__panel header button {
		width: 40px !important;
		height: 40px !important;
		min-height: 0 !important;
		min-width: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
		border: 0 !important;
		border-radius: 10px !important;
		background: transparent !important;
		color: var(--rekhi-chat-text) !important;
		font-size: 26px !important;
		line-height: 1 !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__header-meta strong {
		font-size: 0.95rem !important;
		line-height: 1.25 !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__header-meta small {
		font-size: 0.78rem !important;
		line-height: 1.3 !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__log {
		flex: 1 1 auto !important;
		max-height: none !important;
		min-height: 0 !important;
		overflow: auto !important;
		-webkit-overflow-scrolling: touch;
		padding: 12px 14px !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__log span {
		font-size: 1rem;
		line-height: 1.5;
		padding: 12px 14px;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__chips {
		flex: 0 0 auto !important;
		flex-wrap: nowrap !important;
		overflow-x: auto;
		overflow-y: hidden;
		padding: 0 14px 8px !important;
		gap: 8px;
		-webkit-overflow-scrolling: touch;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__chip {
		flex: 0 0 auto !important;
		white-space: nowrap;
		min-height: 0 !important;
		height: auto !important;
		line-height: 1.25 !important;
		font-size: 0.82rem !important;
		padding: 8px 12px !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__lead,
	.rekhi-live-chat.is-open form,
	.rekhi-live-chat.is-open .rekhi-live-chat__handoff {
		flex: 0 0 auto !important;
		padding-left: 14px !important;
		padding-right: 14px !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__lead-hint {
		font-size: 0.82rem;
	}

	/* 16px+ prevents iOS Safari from zooming the page into the input */
	.rekhi-live-chat.is-open .rekhi-live-chat__lead-fields input,
	.rekhi-live-chat.is-open input[name="question"],
	.rekhi-live-chat.is-open form button {
		font-size: 16px !important;
		min-height: 44px !important;
		height: 44px !important;
		max-height: 44px !important;
		line-height: 1.2 !important;
		border-radius: 12px !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.rekhi-live-chat.is-open form {
		padding-top: 8px !important;
		padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
		background: var(--rekhi-chat-surface-solid) !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__handoff {
		grid-template-columns: 1fr;
		gap: 10px;
		padding-bottom: 16px;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__handoff a {
		font-size: 0.95rem;
		padding: 14px 12px;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__actions button,
	.rekhi-live-chat.is-open .rekhi-live-chat__actions a {
		font-size: 0.88rem;
		padding: 10px 14px;
	}

	html.rekhi-rmm-scroll-lock .rekhi-live-chat:not(.is-open) {
		opacity: 0;
		pointer-events: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rekhi-live-chat *,
	.rekhi-live-chat *::before,
	.rekhi-live-chat *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media (max-width: 900px) and (orientation: landscape) {
	.rekhi-live-chat.is-open .rekhi-live-chat__panel header {
		padding: 6px 12px !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__header-meta small {
		display: none !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__log {
		padding: 8px 12px !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__log span {
		font-size: 0.85rem;
		line-height: 1.35;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__chips {
		padding-bottom: 6px !important;
	}

	.rekhi-live-chat.is-open form {
		padding-top: 6px !important;
		padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
	}
}

/* Very short viewports: landscape phones, split-screen and embedded frames.
   The contact-capture and quote blocks are secondary; the visitor must always
   get a readable log plus a reachable composer. They come back as soon as the
   viewport has room again. Quote/citation actions also remain inside the log. */
@media (max-width: 900px) and (max-height: 520px) {
	.rekhi-live-chat.is-open .rekhi-live-chat__lead,
	.rekhi-live-chat.is-open .rekhi-live-chat__handoff {
		display: none !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__chips {
		padding-bottom: 4px !important;
	}

	.rekhi-live-chat.is-open .rekhi-live-chat__log span {
		padding: 8px 12px;
	}

	.rekhi-live-chat.is-open form {
		padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
	}
}

