.unik-ai-chat {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1000001;
	font-family: Arial, Helvetica, sans-serif;
}

.unik-ai-chat__toggle {
	width: 64px;
	height: 64px;
	border: 1px solid #c79843;
	border-radius: 999px;
	background:
		linear-gradient(135deg, rgba(249, 224, 129, 0.86) 0%, rgba(249, 224, 129, 0.28) 42%, rgba(249, 224, 129, 0) 58%),
		linear-gradient(180deg, #d2a957 0%, #c79843 52%, #b98833 100%);
	color: #fff;
	box-shadow: 0 16px 34px rgba(47, 36, 16, 0.22);
	cursor: pointer;
	display: grid;
	place-items: center;
	position: relative;
}

.unik-ai-chat__toggle-dot {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 9px;
	height: 9px;
	background: #18c26e;
	border: 2px solid #fff;
	border-radius: 999px;
}

.unik-ai-chat__toggle-icon {
	width: 32px;
	height: 32px;
	display: block;
	position: relative;
}

.unik-ai-chat__toggle-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: #fff;
	stroke-width: 2.1;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.unik-ai-chat__teaser {
	position: absolute;
	right: 0;
	bottom: 78px;
	width: min(330px, calc(100vw - 32px));
	padding: 13px 40px 13px 15px;
	border: 1px solid rgba(199, 152, 67, 0.72);
	background: #fff;
	color: #27231c;
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.35;	
	text-align: left;
	box-shadow: 0 18px 42px rgba(28, 24, 18, 0.2);
	cursor: pointer;
	animation: unikAiTeaserIn 0.28s ease-out both;
}

.unik-ai-chat__teaser[hidden] {
	display: none !important;
}

.unik-ai-chat__teaser-close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 1px solid rgba(199, 152, 67, 0.34);
	border-radius: 999px;
	background: #fbf7ef;
	color: #7a612d;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1;
}

.unik-ai-chat__teaser::after {
	content: '';
	position: absolute;
	right: 22px;
	bottom: -8px;
	width: 14px;
	height: 14px;
	background: #fff;
	border-right: 1px solid rgba(199, 152, 67, 0.72);
	border-bottom: 1px solid rgba(199, 152, 67, 0.72);
	transform: rotate(45deg);
}

.unik-ai-chat__teaser-head,
.unik-ai-chat__teaser-text {
	display: block;
}

.unik-ai-chat__teaser-head {
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(199, 152, 67, 0.2);
}

.unik-ai-chat__teaser-head strong {
	display: block;
	margin-bottom: 4px;
	color: #222;
	font-size: 0.94rem;
	font-weight: 800;
}

.unik-ai-chat__teaser-head em {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #7a612d;
	font-size: 0.7rem;
	font-style: normal;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.unik-ai-chat__teaser-head i {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #18c26e;
}

.unik-ai-chat__teaser-text {
	color: #27231c;
	font-size: 0.92rem;
	font-weight: 600;
}

.unik-ai-chat__panel {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 78px;
	width: min(380px, calc(100vw - 32px));
	height: min(620px, calc(100vh - 120px));
	background: #fff;
	border: 1px solid rgba(199, 152, 67, 0.7);
	box-shadow: 0 24px 60px rgba(28, 24, 18, 0.22);
	display: grid;
	grid-template-rows: auto 1fr auto;
	overflow: hidden;
}

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

.unik-ai-chat__panel::before {
	content: '';
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(199, 152, 67, 0.34);
	pointer-events: none;
	z-index: 1;
}

.unik-ai-chat__header,
.unik-ai-chat__messages,
.unik-ai-chat__form {
	position: relative;
	z-index: 2;
}

.unik-ai-chat__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 24px 18px;
	background: #fbf7ef;
	border-bottom: 1px solid rgba(199, 152, 67, 0.22);
}

.unik-ai-chat__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 7px;
	color: #7a612d;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.unik-ai-chat__eyebrow span {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #18c26e;
}

.unik-ai-chat__header h2 {
	margin: 0;
	color: #222;
	font-family: Georgia, 'Times New Roman', Times, serif;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.15;
}

.unik-ai-chat__close {
	width: 34px;
	height: 34px;
	border: 1px solid rgba(199, 152, 67, 0.38);
	background: #fff;
	color: #222;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.unik-ai-chat__messages {
	padding: 18px 18px 16px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #fff;
}

.unik-ai-chat__message {
	display: flex;
}

.unik-ai-chat__message--user {
	justify-content: flex-end;
}

.unik-ai-chat__message--assistant {
	justify-content: flex-start;
}

.unik-ai-chat__bubble {
	max-width: 86%;
	padding: 11px 13px;
	border: 1px solid rgba(199, 152, 67, 0.28);
	font-size: 0.92rem;
	line-height: 1.45;
	white-space: pre-wrap;
}

.unik-ai-chat__message--assistant .unik-ai-chat__bubble {
	background: #fbf7ef;
	color: #27231c;
}

.unik-ai-chat__message--assistant .unik-ai-chat__bubble a {
	color: #8c6825;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	word-break: break-word;
}

.unik-ai-chat__message--assistant .unik-ai-chat__bubble a:hover {
	color: #c79843;
}

.unik-ai-chat__message--user .unik-ai-chat__bubble {
	background: #c79843;
	color: #fff;
	border-color: #c79843;
}

.unik-ai-chat__typing {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 36px;
	min-height: 16px;
}

.unik-ai-chat__typing i {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: #c79843;
	animation: unikAiTyping 0.9s infinite ease-in-out;
}

.unik-ai-chat__typing i:nth-child(2) {
	animation-delay: 0.12s;
}

.unik-ai-chat__typing i:nth-child(3) {
	animation-delay: 0.24s;
}

.unik-ai-chat__form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	padding: 14px 18px 18px;
	background: #fbf7ef;
	border-top: 1px solid rgba(199, 152, 67, 0.22);
}

.unik-ai-chat__input {
	min-height: 44px;
	max-height: 120px;
	padding: 12px 13px;
	border: 1px solid rgba(199, 152, 67, 0.42);
	border-radius: 0;
	background: #fff;
	color: #222;
	font-size: 16px;
	line-height: 1.35;
	resize: none;
	outline: none;
}

.unik-ai-chat__input:focus {
	border-color: #c79843;
	box-shadow: 0 0 0 2px rgba(199, 152, 67, 0.16);
}

.unik-ai-chat__submit {
	align-self: end;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid #c79843;
	border-radius: 0;
	background:
		linear-gradient(135deg, rgba(249, 224, 129, 0.86) 0%, rgba(249, 224, 129, 0.28) 42%, rgba(249, 224, 129, 0) 58%),
		linear-gradient(180deg, #d2a957 0%, #c79843 52%, #b98833 100%);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.unik-ai-chat__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

@keyframes unikAiTeaserIn {
	from {
		transform: translateY(8px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes unikAiTyping {
	0%,
	80%,
	100% {
		transform: translateY(0);
		opacity: 0.45;
	}

	40% {
		transform: translateY(-4px);
		opacity: 1;
	}
}

@media (max-width: 768px) {
	.unik-ai-chat {
		left: 78px;
		right: auto;
		bottom: 16px;
	}

	.unik-ai-chat__toggle {
		width: 56px;
		height: 56px;
	}

	.unik-ai-chat__panel {
		position: fixed;
		right: 14px;
		bottom: 90px;
		width: calc(100vw - 28px);
		height: min(590px, calc(100svh - 104px));
	}

	.unik-ai-chat__teaser {
		left: 0;
		right: auto;
		bottom: 72px;
		width: min(270px, calc(100vw - 56px));
	}

	.unik-ai-chat__teaser::after {
		left: 22px;
		right: auto;
	}

	.unik-ai-chat__header {
		padding: 22px 22px 16px;
	}

	.unik-ai-chat__form {
		grid-template-columns: 1fr;
	}

	.unik-ai-chat__submit {
		width: 100%;
	}
}
