.alhez-assistant {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1050;
	font-family: inherit;
	display: none !important;
}

.alhez-assistant-launch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 58px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #286d69;
	font-size: 1.35rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform .18s ease;
}

.alhez-assistant-launch:hover,
.alhez-assistant-launch:focus-visible {
	transform: translateY(-2px);
	color: #174f4b;
}

.alhez-assistant-launch-icon {
	display: inline-grid;
	width: 58px;
	height: 58px;
	place-items: center;
	border: 1px solid rgba(255,255,255,.65);
	border-radius: 50%;
	background: linear-gradient(135deg, #168f86, #3c8981);
	box-shadow: 0 10px 28px rgba(21, 80, 89, .25);
	color: #fff;
	font-size: 1.8rem;
}

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

.alhez-assistant-panel {
	position: absolute;
	right: 0;
	bottom: 68px;
	display: flex;
	width: min(390px, calc(100vw - 32px));
	height: min(590px, calc(100dvh - 112px));
	min-height: 410px;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #dce8e9;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(17, 48, 65, .22);
}

.alhez-assistant-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 18px 16px;
	background: linear-gradient(115deg, #0b9dce, #3c8981);
	color: #fff;
}

.alhez-assistant-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.alhez-assistant-brand-mark { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,255,255,.13); font-size: 1.9rem; }
.alhez-assistant-title { margin: 0; color: #fff; font-size: 1.7rem; line-height: 1.25; }
.alhez-assistant-status { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: rgba(255,255,255,.88); font-size: 1.2rem; }
.alhez-assistant-status::before { width: 7px; height: 7px; border-radius: 50%; background: #c6f2d0; content: ''; }
.alhez-assistant-close { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: transparent; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.alhez-assistant-close:hover,
.alhez-assistant-close:focus-visible { background: rgba(255,255,255,.14); color: #fff; }

.alhez-assistant-messages { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 12px; overflow-y: auto; padding: 18px 16px 12px; overscroll-behavior: contain; }
.alhez-assistant-message { max-width: 88%; padding: 11px 13px; border-radius: 14px; color: #294b55; font-size: 1.35rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.alhez-assistant-message--assistant { align-self: flex-start; border: 1px solid #e4eff1; border-bottom-left-radius: 5px; background: #f3f9fa; }
.alhez-assistant-message--user { align-self: flex-end; border-bottom-right-radius: 5px; background: #e5f7fc; color: #174e60; }
.alhez-assistant-message--error { border-color: #f2d6c7; background: #fff8f3; color: #725342; }
.alhez-assistant-typing { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; }
.alhez-assistant-typing span { width: 6px; height: 6px; border-radius: 50%; background: #3c8981; animation: alhez-assistant-pulse 1.1s infinite ease-in-out; }
.alhez-assistant-typing span:nth-child(2) { animation-delay: .15s; }
.alhez-assistant-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes alhez-assistant-pulse { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.alhez-assistant-suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px 16px 12px; }
.alhez-assistant-suggestion { display: flex; width: 100%; min-width: 0; min-height: 66px; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #e1ebed; border-radius: 12px; background: #fff; color: #286d69; text-align: left; box-shadow: 0 3px 10px rgba(24, 74, 82, .04); cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.alhez-assistant-suggestion--wide { grid-column: 1 / -1; min-height: 58px; }
.alhez-assistant-suggestion-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; background: #edf7f6; color: #33827b; font-size: 1.35rem; }
.alhez-assistant-suggestion-copy { display: grid; min-width: 0; gap: 3px; }
.alhez-assistant-suggestion-copy strong { color: #214f55; font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.alhez-assistant-suggestion-copy small { overflow: hidden; color: #75858a; font-size: 1rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.alhez-assistant-suggestion-arrow { flex: 0 0 auto; margin-left: auto; color: #91aaa9; font-size: 1rem; }
.alhez-assistant-suggestion:hover,
.alhez-assistant-suggestion:focus-visible { border-color: #3c8981; background: #fbfefe; box-shadow: 0 5px 16px rgba(24, 74, 82, .1); transform: translateY(-1px); }
.alhez-assistant-suggestion:hover { border-color: #a9cfcb; background: #fbfefe; box-shadow: 0 5px 16px rgba(24, 74, 82, .1); transform: translateY(-1px); }
.alhez-assistant-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid #e6eef0; background: #fff; }
.alhez-assistant-input { min-width: 0; min-height: 44px; flex: 1; padding: 11px 13px; border: 1px solid #d7e2e5; border-radius: 12px; outline: 0; color: #264b54; font-size: 1.35rem; }
.alhez-assistant-input:focus { border-color: #0cb1eb; box-shadow: 0 0 0 3px rgba(12,177,235,.13); }
.alhez-assistant-send { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 0; border-radius: 12px; background: #3c8981; color: #fff; font-size: 1.6rem; cursor: pointer; }
.alhez-assistant-send:hover,
.alhez-assistant-send:focus-visible { background: #286d69; }
.alhez-assistant-send:disabled { cursor: wait; opacity: .6; }
.alhez-assistant-disclaimer { margin: 0; padding: 0 15px 12px; background: #fff; color: #72838a; font-size: 1.05rem; line-height: 1.4; }
.alhez-assistant [hidden] { display: none !important; }

@media (max-width: 520px) {
	.alhez-assistant { right: 14px; bottom: 14px; }
	.alhez-assistant-launch { min-height: 52px; font-size: 1.25rem; }
	.alhez-assistant-launch-icon { width: 52px; height: 52px; }
	.alhez-assistant-panel { right: -4px; bottom: 62px; width: min(390px, calc(100vw - 20px)); height: min(610px, calc(100dvh - 88px)); min-height: 360px; border-radius: 16px; }
	.alhez-assistant-suggestions { grid-template-columns: minmax(0, 1fr); gap: 7px; }
	.alhez-assistant-suggestion--wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.alhez-assistant-launch,
	.alhez-assistant-suggestion { transition: none; }
	.alhez-assistant-typing span { animation: none; opacity: .7; }
}
