.ueal-lock-scroll {
	overflow: hidden !important;
}

.ueal-chat-root {
	--ueal-navy: #0d1b2a;
	--ueal-blue: #1b3c73;
	--ueal-primary: var(--wp--preset--color--primary, var(--ueal-primary-fallback, #0077ff));
	--ueal-accent: var(--wp--preset--color--secondary, var(--ueal-accent-fallback, #00d4ff));
	--ueal-ice: #f8fafc;
	--ueal-border: #dbe3ef;
	--ueal-text: #0d1b2a;
	position: fixed;
	right: max(22px, env(safe-area-inset-right));
	bottom: max(22px, env(safe-area-inset-bottom));
	z-index: 99999;
	direction: rtl;
	font-family: Cairo, Inter, Poppins, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	color: var(--ueal-text);
}

.ueal-chat-root.ueal-pos-left {
	right: auto;
	left: max(22px, env(safe-area-inset-left));
}

.ueal-chat-root * {
	box-sizing: border-box;
	letter-spacing: 0;
}

.ueal-launcher {
	position: relative;
	width: 64px;
	height: 64px;
	min-width: 64px;
	min-height: 64px;
	max-width: 64px;
	max-height: 64px;
	border: 0;
	border-radius: 50%;
	background: var(--ueal-navy);
	box-shadow: 0 8px 24px rgba(0, 119, 255, .28), 0 0 0 5px rgba(0, 119, 255, .07);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 0;
	line-height: 0;
	text-indent: 0;
	white-space: nowrap;
	overflow: visible;
	transition: transform .18s ease, box-shadow .18s ease;
}

.ueal-launcher .ueal-status-dot {
	position: absolute !important;
	inset-inline-end: 3px !important;
	right: 3px !important;
	bottom: 3px !important;
	top: auto !important;
	left: auto !important;
	width: 14px !important;
	height: 14px !important;
	z-index: 6;
}

.ueal-pos-left .ueal-launcher {
	padding: 0;
}

.ueal-launcher-text,
.ueal-launcher__label,
.ueal-launcher__text,
.ueal-launcher__name,
.ueal-launcher__subtitle,
.ueal-launcher::before,
.ueal-launcher::after {
	display: none !important;
	content: none !important;
}

.ueal-launcher > :not(.ueal-launcher-avatar) {
	display: none !important;
}

.ueal-launcher:hover,
.ueal-launcher:focus-visible {
	transform: translateY(-1px) scale(1.03);
	outline: 3px solid rgba(0, 212, 255, .42);
	outline-offset: 4px;
	box-shadow: 0 10px 26px rgba(0, 119, 255, .32), 0 0 0 7px rgba(0, 212, 255, .1);
}

.ueal-launcher-avatar,
.ueal-header-avatar {
	position: relative;
	flex: 0 0 auto;
}

.ueal-launcher-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: block;
	overflow: visible;
	background: #fff;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .86);
}

.ueal-avatar {
	display: block;
	overflow: hidden;
	background: #f3f6fa;
	border: 2px solid rgba(0, 119, 255, .18);
	box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.ueal-avatar img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	border-radius: inherit;
}

.ueal-avatar-fit-contain .ueal-avatar img {
	object-fit: contain;
}

.ueal-avatar-broken::before {
	content: "";
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: #fff;
	font-weight: 900;
	background: linear-gradient(135deg, var(--ueal-primary), var(--ueal-navy));
}

.ueal-avatar-launcher {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .92);
	box-shadow: 0 7px 16px rgba(13, 27, 42, .18);
}

.ueal-avatar-header {
	width: 44px;
	height: 44px;
	border-radius: 16px;
}

.ueal-avatar-small {
	width: 28px;
	height: 28px;
	border-radius: 10px;
	border-color: #fff;
	box-shadow: 0 5px 12px rgba(13, 27, 42, .12);
}

.ueal-avatar-welcome {
	width: 72px;
	height: 72px;
	margin: 0 auto 10px;
	border-radius: 24px;
	border-color: #fff;
}

.ueal-avatar-fallback {
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 900;
	background: radial-gradient(circle at 50% 12%, #5fe7ff 0 7%, transparent 8%), linear-gradient(145deg, #ffffff 0 18%, #eaf4ff 42%, #0d75ff 100%);
	position: relative;
}

.ueal-avatar-fallback::before {
	content: "";
	width: 74%;
	height: 48%;
	border-radius: 999px;
	background: radial-gradient(circle at 34% 42%, #55e6ff 0 10%, transparent 11%), radial-gradient(circle at 66% 42%, #55e6ff 0 10%, transparent 11%), radial-gradient(ellipse at 50% 68%, transparent 0 22%, #55e6ff 23% 29%, transparent 30%), linear-gradient(180deg, #06183c, #071f55);
	box-shadow: inset 0 -8px 0 rgba(0, 119, 255, .24), 0 0 0 2px rgba(255, 255, 255, .72);
	transform: translateY(-1px);
}

.ueal-avatar-fallback::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 50%;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #0d75ff;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
	transform: translateX(-50%);
}

.ueal-status-dot {
	position: absolute;
	inset-inline-end: 1px;
	bottom: 1px;
	width: 13px;
	height: 13px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #21d375;
	box-shadow: 0 0 0 2px rgba(33, 211, 117, .2);
}

.ueal-panel {
	position: absolute;
	right: 0;
	bottom: 82px;
	width: 390px;
	max-width: calc(100vw - 44px);
	max-height: min(680px, calc(100dvh - 120px));
	background: #fff;
	border: 1px solid rgba(13, 27, 42, .12);
	border-radius: 22px;
	box-shadow: 0 28px 80px rgba(13, 27, 42, .34);
	overflow: hidden;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
}

.ueal-panel-x {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 9;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(13, 27, 42, .12);
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 8px 20px rgba(13, 27, 42, .16);
	color: #334155;
	cursor: pointer;
	display: grid;
	place-items: center;
	font: 900 22px/1 Arial, sans-serif;
	padding: 0;
}

.ueal-panel-x:hover,
.ueal-panel-x:focus-visible {
	background: #0d1b2a;
	color: #fff;
	outline: 3px solid rgba(0, 212, 255, .32);
	outline-offset: 2px;
}

.ueal-pos-left .ueal-panel {
	right: auto;
	left: 0;
}

.ueal-panel[hidden] {
	display: none;
}

.ueal-header {
	background: linear-gradient(135deg, var(--ueal-navy), #102f59 55%, var(--ueal-blue));
	color: #fff;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 42px 42px;
	align-items: center;
	gap: 10px;
	padding: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.ueal-header-copy p,
.ueal-header-copy h2 {
	margin: 0;
	color: inherit;
}

.ueal-header-copy p {
	color: #bdeeff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.35;
}

.ueal-header-copy h2 {
	font-size: 17px;
	font-weight: 900;
	line-height: 1.35;
}

.ueal-close,
.ueal-minimize,
.ueal-clear,
.ueal-send,
.ueal-form-close {
	display: grid;
	place-items: center;
	border: 0;
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-weight: 800;
}

.ueal-close,
.ueal-minimize {
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 14px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 28px;
	line-height: 1;
}

.ueal-minimize {
	font-size: 24px;
}

.ueal-close:hover,
.ueal-minimize:hover,
.ueal-close:focus-visible,
.ueal-minimize:focus-visible,
.ueal-form-close:focus-visible,
.ueal-clear:focus-visible,
.ueal-send:focus-visible,
.ueal-suggestion:focus-visible,
.ueal-mail:focus-visible,
.ueal-form textarea:focus-visible {
	outline: 3px solid rgba(0, 212, 255, .44);
	outline-offset: 2px;
}

.ueal-messages {
	min-height: 320px;
	max-height: 440px;
	padding: 16px;
	overflow-y: auto;
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
	overscroll-behavior: contain;
}

.ueal-welcome {
	text-align: center;
	padding: 10px 0 2px;
}

.ueal-welcome h3 {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.55;
	color: var(--ueal-navy);
}

.ueal-welcome-subtitle {
	max-width: 320px;
	color: #27415f !important;
	font-weight: 800;
}

.ueal-welcome-greeting {
	display: block;
	margin: 0 0 8px;
	color: var(--ueal-navy);
	font-size: 14px;
	line-height: 1.55;
}

.ueal-welcome p {
	margin: 0 auto 14px;
	max-width: 300px;
	font-size: 14px;
	line-height: 1.75;
	color: #405169;
}

.ueal-suggestions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.ueal-suggestion {
	min-height: 42px;
	border: 1px solid var(--ueal-border);
	border-radius: 12px;
	background: #fff;
	color: var(--ueal-blue);
	padding: 8px 10px;
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
	cursor: pointer;
	white-space: normal;
}

.ueal-suggestion:hover {
	border-color: var(--ueal-primary);
	color: var(--ueal-primary);
	background: #fafdff;
}

.ueal-message-row {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	margin: 0 0 10px;
}

.ueal-bot-row {
	justify-content: flex-start;
}

.ueal-user-row {
	justify-content: flex-end;
}

.ueal-message {
	width: fit-content;
	max-width: 82%;
	padding: 10px 13px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.75;
	overflow-wrap: anywhere;
	text-align: start;
}

.ueal-message p {
	margin: 0 0 8px;
}

.ueal-message p:last-child {
	margin-bottom: 0;
}

.ueal-bot {
	background: #fff;
	border: 1px solid var(--ueal-border);
	color: var(--ueal-text);
	box-shadow: 0 8px 22px rgba(13, 27, 42, .06);
}

.ueal-user {
	background: linear-gradient(135deg, var(--ueal-primary), var(--ueal-blue));
	color: #fff;
	box-shadow: 0 10px 24px rgba(0, 119, 255, .2);
}

.ueal-form {
	display: grid;
	grid-template-columns: 42px 42px minmax(0, 1fr) 46px;
	gap: 8px;
	align-items: end;
	padding: 12px;
	border-top: 1px solid var(--ueal-border);
	background: var(--ueal-ice);
}

.ueal-form textarea {
	min-width: 0;
	min-height: 44px;
	max-height: 104px;
	resize: vertical;
	border: 1px solid var(--ueal-border);
	border-radius: 14px;
	padding: 11px 13px;
	font: inherit;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ueal-text);
	background: #fff;
}

.ueal-clear,
.ueal-send,
.ueal-form-close {
	width: 44px;
	height: 44px;
	border-radius: 14px;
}

.ueal-form-close {
	border: 1px solid rgba(13, 27, 42, .14);
	background: #fff;
	color: var(--ueal-navy);
	font-size: 24px;
	line-height: 1;
	box-shadow: 0 8px 18px rgba(13, 27, 42, .1);
}

.ueal-form-close:hover,
.ueal-form-close:focus-visible {
	background: var(--ueal-navy);
	color: #fff;
}

.ueal-clear {
	border: 1px solid var(--ueal-border);
	background: #fff;
	color: var(--ueal-blue);
	font-size: 20px;
}

.ueal-send {
	background: linear-gradient(135deg, var(--ueal-primary), var(--ueal-blue));
	color: #fff;
	font-size: 20px;
	transform: scaleX(-1);
	box-shadow: 0 12px 24px rgba(0, 119, 255, .24);
}

.ueal-mail {
	display: inline-flex;
	margin-top: 10px;
	border: 0;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--ueal-primary), var(--ueal-blue));
	color: #fff !important;
	font-weight: 800;
	padding: 9px 13px;
	text-decoration: none;
}

.ueal-answer-card {
	display: grid;
	gap: 10px;
	min-width: min(280px, 100%);
	background: #fff;
	border: 1px solid rgba(0, 119, 255, .22);
	border-radius: 16px;
	box-shadow: 0 10px 26px rgba(13, 27, 42, .08);
	padding: 12px;
	color: var(--ueal-text);
	user-select: text;
}

.ueal-answer-card strong {
	display: block;
	margin-bottom: 4px;
	color: var(--ueal-navy);
	font-size: 13px;
}

.ueal-answer-card p {
	margin: 0;
}

.ueal-answer-card__source {
	color: #526579;
	font-size: 12px;
	font-weight: 700;
}

.ueal-answer-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--ueal-primary), var(--ueal-blue));
	color: #fff !important;
	font-weight: 900;
	text-decoration: none;
	padding: 10px 14px;
	text-align: center;
}

.ueal-answer-card__link:focus-visible {
	outline: 3px solid rgba(0, 212, 255, .44);
	outline-offset: 2px;
}

.ueal-smart-answer {
	display: grid;
	gap: 10px;
	width: min(330px, 100%);
	background: #fff;
	border: 1px solid rgba(0, 119, 255, .18);
	border-radius: 16px;
	box-shadow: 0 10px 24px rgba(13, 27, 42, .07);
	padding: 12px;
	text-align: right;
	user-select: text;
}

.ueal-smart-answer__entity {
	color: var(--ueal-blue);
	font-size: 12px;
	font-weight: 900;
	line-height: 1.4;
}

.ueal-smart-answer__faculty,
.ueal-answer-card__faculty {
	color: #526579;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.4;
	margin-top: -4px;
}

.ueal-smart-answer__text {
	margin: 0;
	color: var(--ueal-text);
	font-size: 14.5px;
	line-height: 1.75;
}

.ueal-smart-answer__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	user-select: none;
}

.ueal-smart-answer__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--ueal-primary), var(--ueal-blue));
	color: #fff !important;
	font-weight: 900;
	font-size: 13px;
	line-height: 1.35;
	text-decoration: none;
	padding: 10px 13px;
	text-align: center;
}

.ueal-smart-answer__button--secondary {
	background: #f8fafc;
	color: var(--ueal-blue) !important;
	border: 1px solid var(--ueal-border);
}

.ueal-smart-answer__button:focus-visible {
	outline: 3px solid rgba(0, 212, 255, .44);
	outline-offset: 2px;
}

.ueal-auto-prompt {
	position: absolute;
	right: 76px;
	left: auto;
	bottom: 7px;
	width: max-content;
	max-width: 320px;
	display: flex;
	align-items: flex-start;
	gap: 7px;
	opacity: 0;
	transform: translateX(10px) translateY(4px);
	pointer-events: none;
	transition: opacity .22s ease, transform .22s ease;
}

.ueal-pos-left .ueal-auto-prompt {
	right: auto;
	left: 76px;
	transform: translateX(-10px) translateY(4px);
}

.ueal-auto-prompt.is-visible {
	opacity: 1;
	transform: translateX(0) translateY(0);
	pointer-events: auto;
}

.ueal-is-open .ueal-auto-prompt {
	display: none !important;
}

.ueal-auto-prompt[hidden] {
	display: none;
}

.ueal-auto-prompt__bubble {
	position: relative;
	max-width: 320px;
	border: 1px solid rgba(13, 27, 42, .1);
	border-radius: 18px 18px 6px 18px;
	background: var(--ueal-auto-bg, #fff) !important;
	box-shadow: 0 12px 34px rgba(13, 27, 42, .18);
	color: var(--ueal-auto-text, var(--ueal-text)) !important;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.65;
	margin: 0;
	padding: 12px 14px;
	text-align: start;
	white-space: normal;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.ueal-auto-prompt__bubble.is-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: #25d366;
	color: #fff;
	border-color: rgba(18, 140, 126, .32);
}

.ueal-auto-prompt__bubble.is-whatsapp::before {
	display: none;
}

.ueal-whatsapp-icon {
	width: 23px;
	height: 23px;
	flex: 0 0 23px;
	display: inline-block;
}

.ueal-contact-whatsapp {
	display: flex;
	align-items: center;
	margin-block: 22px;
	font-family: Cairo, Inter, Poppins, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.ueal-whatsapp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 12px 20px;
	border-radius: 14px;
	background: #25d366;
	box-shadow: 0 8px 20px rgba(18, 140, 126, .22);
	color: #fff !important;
	font-weight: 800;
	line-height: 1.4;
	text-decoration: none !important;
	transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.ueal-whatsapp-button:hover,
.ueal-whatsapp-button:focus-visible {
	background: #128c7e;
	box-shadow: 0 11px 24px rgba(18, 140, 126, .3);
	color: #fff !important;
	transform: translateY(-2px);
}

.ueal-whatsapp-button:focus-visible {
	outline: 3px solid rgba(37, 211, 102, .3);
	outline-offset: 3px;
}

.ueal-auto-prompt__bubble::after {
	content: "";
	position: absolute;
	right: -7px;
	left: auto;
	bottom: 16px;
	width: 14px;
	height: 14px;
	background: inherit;
	border-right: 1px solid rgba(13, 27, 42, .1);
	border-bottom: 1px solid rgba(13, 27, 42, .1);
	transform: rotate(-45deg);
}

.ueal-pos-left .ueal-auto-prompt__bubble {
	border-radius: 18px 18px 18px 6px;
}

.ueal-pos-left .ueal-auto-prompt__bubble::after {
	right: auto;
	left: -7px;
	border-right: 0;
	border-left: 1px solid rgba(13, 27, 42, .1);
	transform: rotate(135deg);
}

.ueal-auto-prompt__bubble.is-clickable {
	padding-inline-end: 32px;
}

.ueal-auto-prompt__bubble.is-clickable::before {
	content: "↗";
	position: absolute;
	inset-inline-end: 12px;
	top: 50%;
	color: var(--ueal-primary);
	font-size: 15px;
	font-weight: 900;
	transform: translateY(-50%);
}

.ueal-auto-prompt__close {
	width: 24px;
	height: 24px;
	min-width: 24px;
	border: 1px solid rgba(13, 27, 42, .12);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 8px 18px rgba(13, 27, 42, .12);
	color: #334155;
	cursor: pointer;
	display: grid;
	place-items: center;
	font: 700 18px/1 Arial, sans-serif;
	margin-top: -8px;
	padding: 0;
}

.ueal-auto-prompt__bubble:hover,
.ueal-auto-prompt__bubble:focus-visible,
.ueal-auto-prompt__close:hover,
.ueal-auto-prompt__close:focus-visible {
	outline: 3px solid rgba(0, 212, 255, .28);
	outline-offset: 2px;
}

.ueal-auto-prompt__bubble:hover {
	background: linear-gradient(135deg, #0d1b2a, #1b3c73) !important;
	border-color: rgba(0, 212, 255, .42) !important;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 14px 36px rgba(0, 119, 255, .2);
}

.ueal-auto-prompt__bubble:hover::after {
	background: #1b3c73 !important;
	border-color: rgba(0, 212, 255, .28) !important;
}

.ueal-auto-prompt__bubble:hover::before {
	color: #55e6ff !important;
}

.ueal-auto-prompt__bubble:focus-visible {
	background: linear-gradient(135deg, #0d1b2a, #1b3c73) !important;
	border-color: rgba(0, 212, 255, .42) !important;
	color: #fff !important;
}

.ueal-auto-prompt__bubble.is-whatsapp:hover,
.ueal-auto-prompt__bubble.is-whatsapp:focus-visible {
	background: #128c7e !important;
	color: #fff !important;
	border-color: rgba(18, 140, 126, .42) !important;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
}

@media (max-width: 767px) {
	.ueal-contact-whatsapp {
		position: fixed;
		right: max(14px, env(safe-area-inset-right));
		left: max(14px, env(safe-area-inset-left));
		bottom: max(96px, calc(82px + env(safe-area-inset-bottom)));
		z-index: 99990;
		width: auto;
		margin: 0;
	}

	.ueal-whatsapp-button {
		width: 100%;
		min-height: 52px;
		padding-inline: 16px;
	}
	.ueal-chat-root,
	.ueal-chat-root.ueal-pos-left {
		right: max(14px, env(safe-area-inset-right));
		left: auto;
		bottom: max(16px, env(safe-area-inset-bottom));
	}

	.ueal-launcher {
		min-width: 64px;
		min-height: 64px;
		width: 64px;
		height: 64px;
		max-width: 64px;
		max-height: 64px;
		padding: 0;
		border-radius: 50%;
		justify-content: center;
		box-shadow: 0 12px 30px rgba(0, 119, 255, .34), 0 0 0 6px rgba(0, 212, 255, .12);
	}

	.ueal-launcher .ueal-status-dot {
		inset-inline-end: 4px !important;
		right: 4px !important;
		bottom: 4px !important;
		width: 13px !important;
		height: 13px !important;
	}

	.ueal-is-open .ueal-launcher {
		display: none;
	}

	.ueal-launcher-text {
		display: none !important;
	}

	.ueal-launcher-avatar {
		width: 56px;
		height: 56px;
		border-radius: 50%;
	}

	.ueal-avatar-launcher {
		width: 56px;
		height: 56px;
		border-radius: 50%;
	}

	.ueal-auto-prompt,
	.ueal-pos-left .ueal-auto-prompt {
		right: 72px;
		left: auto;
		bottom: 8px;
		max-width: min(300px, calc(100vw - 102px));
		gap: 6px;
	}

	.ueal-auto-prompt__bubble {
		max-width: min(300px, calc(100vw - 102px));
		border-radius: 16px 16px 6px 16px;
		font-size: 13px;
		line-height: 1.6;
		padding: 10px 12px;
	}

	.ueal-auto-prompt__bubble.is-clickable {
		padding-inline-end: 28px;
	}

	.ueal-auto-prompt__close {
		width: 23px;
		height: 23px;
		min-width: 23px;
		font-size: 17px;
	}

	.ueal-panel,
	.ueal-pos-left .ueal-panel {
		position: fixed;
		right: max(12px, env(safe-area-inset-right));
		left: max(12px, env(safe-area-inset-left));
		bottom: max(12px, env(safe-area-inset-bottom));
		width: calc(100% - 24px);
		max-width: none;
		max-height: calc(100dvh - 24px);
		border-radius: 20px;
		grid-template-rows: auto minmax(0, 1fr) auto;
	}

	.ueal-header {
		grid-template-columns: 48px minmax(0, 1fr) 44px 44px;
		padding: 12px;
		gap: 8px;
	}

	.ueal-header-copy p {
		font-size: 11px;
	}

	.ueal-header-copy h2 {
		font-size: 16px;
	}

	.ueal-close,
	.ueal-minimize,
	.ueal-form-close {
		width: 44px;
		height: 44px;
		border-radius: 14px;
	}

	.ueal-messages {
		min-height: 0;
		max-height: none;
		padding: 14px;
	}

	.ueal-message {
		max-width: 86%;
		font-size: 15px;
		line-height: 1.65;
	}

	.ueal-smart-answer {
		width: 100%;
		padding: 11px;
	}

	.ueal-smart-answer__text {
		font-size: 15px;
		line-height: 1.7;
	}

	.ueal-smart-answer__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.ueal-smart-answer__button {
		width: 100%;
	}

	.ueal-form {
		grid-template-columns: 44px 44px minmax(0, 1fr) 48px;
		padding: 10px;
		padding-bottom: max(10px, env(safe-area-inset-bottom));
	}

	.ueal-form textarea {
		font-size: 16px;
		min-height: 46px;
		max-height: 88px;
	}
}

@media (max-width: 480px) {
	.ueal-panel,
	.ueal-pos-left .ueal-panel {
		border-radius: 18px;
	}

	.ueal-header {
		grid-template-columns: 42px minmax(0, 1fr) 42px 42px;
		padding: 10px;
	}

	.ueal-avatar-header {
		width: 40px;
		height: 40px;
		border-radius: 14px;
	}

	.ueal-header-copy p {
		display: none;
	}

	.ueal-header-copy h2 {
		font-size: 15px;
	}

	.ueal-welcome h3 {
		font-size: 18px;
		white-space: nowrap;
	}

	.ueal-welcome p {
		font-size: 14px;
		line-height: 1.65;
	}

	.ueal-suggestions {
		grid-template-columns: 1fr 1fr;
		gap: 7px;
	}

	.ueal-suggestion {
		min-height: 44px;
		font-size: 12.5px;
		padding: 7px 8px;
	}

	.ueal-small-avatar {
		display: none;
	}

	.ueal-message {
		max-width: 92%;
	}
}

@media (max-width: 340px) {
	.ueal-welcome h3 {
		white-space: normal;
		font-size: 17px;
	}

	.ueal-suggestions {
		grid-template-columns: 1fr;
	}

	.ueal-header-copy h2 {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ueal-chat-root *,
	.ueal-chat-root *::before,
	.ueal-chat-root *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
