/* Aadyanex website chatbot */
.adyanex-chat {
	--ac-primary: #0d9488;
	--ac-primary-dark: #0f766e;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999999;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
}

.adyanex-chat__fab {
	position: relative;
	z-index: 2;
	width: 56px;
	height: 56px;
	border: none;
	border-radius: 50%;
	background: linear-gradient(135deg, #2dd4bf, var(--ac-primary), var(--ac-primary-dark));
	color: #fff;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s;
}

.adyanex-chat__fab:hover {
	transform: scale(1.06);
}

.adyanex-chat.is-open .adyanex-chat__fab {
	display: none;
}

.adyanex-chat__panel {
	position: absolute;
	right: 0;
	bottom: 0;
	width: min(380px, calc(100vw - 32px));
	height: min(520px, calc(100vh - 48px));
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
	border: 1px solid #d1fae5;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

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

.adyanex-chat__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px;
	background: linear-gradient(135deg, var(--ac-primary), var(--ac-primary-dark));
	color: #fff;
}

.adyanex-chat__head span {
	display: block;
	font-size: 12px;
	opacity: 0.9;
}

.adyanex-chat__close {
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}

.adyanex-chat__messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #fafdfc;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.adyanex-chat__msg {
	max-width: 88%;
	padding: 10px 14px;
	border-radius: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}

.adyanex-chat__msg--bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #d1fae5;
	border-bottom-left-radius: 4px;
}

.adyanex-chat__msg--user {
	align-self: flex-end;
	background: var(--ac-primary);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.adyanex-chat__msg-text {
	white-space: pre-wrap;
}

.adyanex-chat__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.adyanex-chat__chip {
	border: 1px solid var(--ac-primary);
	background: #fff;
	color: var(--ac-primary-dark);
	border-radius: 20px;
	padding: 8px 14px;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.adyanex-chat__chip:hover {
	background: var(--ac-primary);
	color: #fff;
}

.adyanex-chat__footer {
	padding: 12px;
	border-top: 1px solid #e5e7eb;
	background: #fff;
}

.adyanex-chat__form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.adyanex-chat__form input,
.adyanex-chat__form textarea {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 10px 12px;
	font: inherit;
	width: 100%;
	box-sizing: border-box;
}

.adyanex-chat__form textarea {
	resize: vertical;
	min-height: 72px;
}

.adyanex-chat__form button {
	background: var(--ac-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 11px;
	font-weight: 600;
	cursor: pointer;
}

.adyanex-chat__form button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.adyanex-chat__input-row {
	display: flex;
	gap: 8px;
}

.adyanex-chat__input-row input {
	flex: 1;
}

.adyanex-chat__input-row button {
	padding: 10px 16px;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.adyanex-chat {
		right: 12px;
		bottom: 12px;
	}

	.adyanex-chat__panel {
		width: calc(100vw - 24px);
		height: calc(100vh - 80px);
	}
}
