/* Zain's Assistant. Colours fall back to the zainismail theme's tokens. */
.za-root {
	--za-bg: var(--surface, #17171a);
	--za-bg2: var(--bg-secondary, #141416);
	--za-text: var(--text, #f5f5f7);
	--za-dim: var(--text-dim, #a6a6ac);
	--za-border: var(--border-strong, rgba(255, 255, 255, 0.18));
	--za-accent: var(--accent, #e8ff3d);
	--za-on-accent: var(--on-accent, #0a0a0c);
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99990;
	font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}
.za-bubble {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	border: 0;
	background: var(--za-accent);
	color: var(--za-on-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
	margin-left: auto;
	transition: transform 0.2s ease;
}
.za-bubble:hover, .za-bubble:focus-visible { transform: scale(1.06); }
.za-bubble:focus-visible, .za-root button:focus-visible, .za-root input:focus-visible { outline: 2px solid var(--za-accent); outline-offset: 2px; }
.za-panel {
	display: none;
	flex-direction: column;
	width: 380px;
	height: min(620px, calc(100vh - 120px));
	margin-bottom: 14px;
	background: var(--za-bg);
	color: var(--za-text);
	border: 1px solid var(--za-border);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}
.za-root.is-open .za-panel { display: flex; }
.za-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: var(--za-bg2);
	border-bottom: 1px solid var(--za-border);
}
.za-title { display: flex; flex-direction: column; }
.za-title strong { font-size: 16px; }
.za-title span { font-size: 12px; color: var(--za-dim); }
.za-close { background: none; border: 0; color: var(--za-dim); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.za-close:hover { color: var(--za-text); }
.za-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	overscroll-behavior: contain;
}
.za-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.za-bot { background: var(--za-bg2); border: 1px solid var(--za-border); align-self: flex-start; border-bottom-left-radius: 4px; }
.za-you { background: var(--za-accent); color: var(--za-on-accent); align-self: flex-end; border-bottom-right-radius: 4px; }
.za-tips ol, .za-links ul { margin: 6px 0 0; padding-left: 20px; }
.za-tips li, .za-links li { margin-bottom: 8px; }
.za-tips, .za-links { white-space: normal; max-width: 100%; }
.za-root a { color: var(--za-accent); text-decoration: underline; }
.za-src { display: block; font-size: 12px; margin-top: 3px; }
.za-input { padding: 12px; border-top: 1px solid var(--za-border); background: var(--za-bg2); }
.za-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.za-choice {
	background: transparent;
	color: var(--za-text);
	border: 1px solid var(--za-border);
	border-radius: 999px;
	padding: 8px 13px;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	text-align: left;
}
.za-choice:hover { border-color: var(--za-accent); color: var(--za-accent); }
.za-text { display: flex; gap: 8px; }
.za-root input {
	flex: 1;
	min-width: 0;
	background: var(--za-bg);
	color: var(--za-text);
	border: 1px solid var(--za-border);
	border-radius: 10px;
	padding: 10px 12px;
	font: inherit;
}
.za-contact { display: flex; flex-direction: column; gap: 8px; }
.za-send {
	background: var(--za-accent);
	color: var(--za-on-accent);
	border: 0;
	border-radius: 10px;
	padding: 10px 14px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.za-wide { width: 100%; }
.za-skip { margin-top: 8px; background: none; border: 0; color: var(--za-dim); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.za-privacy { margin: 0; font-size: 12px; color: var(--za-dim); }
.za-err { margin: 0; font-size: 13px; color: #ff6b6b; }
.za-err:empty { display: none; }
.za-root .za-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 480px) {
	.za-root { right: 12px; bottom: 12px; }
	.za-root.is-open { left: 12px; }
	.za-root.is-open .za-bubble { display: none; }
	.za-panel { width: 100%; height: calc(100vh - 24px); height: calc(100dvh - 24px); margin-bottom: 0; }
	.za-bubble { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.za-bubble { transition: none; }
}
