:root {
	--ta-red: #ef0b0b;
	--ta-red-deep: #8f1114;
	--ta-gold: #d9ab45;
	--ta-gold-light: #f2d17d;
	--ta-ink: #171313;
	--ta-panel: #211c1c;
	--ta-panel-soft: #2b2525;
	--ta-text: #fffaf1;
	--ta-muted: #bdb3aa;
}

#teelace-assistant-root,
#teelace-assistant-root * {
	box-sizing: border-box;
}

#teelace-assistant-root {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999999;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	color: var(--ta-text);
}

.teelace-assistant button,
.teelace-assistant input,
.teelace-assistant textarea {
	font: inherit;
}

.teelace-assistant__launcher {
	position: relative;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-left: auto;
	padding: 0;
	border: 1px solid rgba(217, 171, 69, 0.75);
	border-radius: 50%;
	background: linear-gradient(145deg, #2b2423 0%, #151111 100%);
	color: var(--ta-gold-light);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(217, 171, 69, 0.07);
	cursor: pointer;
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 160ms ease;
}

.teelace-assistant__launcher:hover {
	transform: translateY(-2px);
	border-color: var(--ta-gold-light);
	box-shadow: 0 20px 54px rgba(0, 0, 0, 0.52), 0 0 0 5px rgba(217, 171, 69, 0.11);
}

.teelace-assistant__launcher svg {
	width: 26px;
	height: 26px;
}

.teelace-assistant__status-dot {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 12px;
	height: 12px;
	border: 2px solid #1a1515;
	border-radius: 50%;
	background: var(--ta-red);
}

.teelace-assistant__window {
	position: absolute;
	right: 0;
	bottom: 76px;
	display: flex;
	flex-direction: column;
	width: min(400px, calc(100vw - 32px));
	height: min(650px, calc(100vh - 130px));
	overflow: hidden;
	border: 1px solid rgba(217, 171, 69, 0.42);
	border-radius: 20px;
	background: var(--ta-panel);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58);
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(0.98);
	transform-origin: right bottom;
	transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.teelace-assistant--open .teelace-assistant__window {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.teelace-assistant--open .teelace-assistant__launcher {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.teelace-assistant__header {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 82px;
	padding: 13px 14px;
	border-bottom: 1px solid rgba(217, 171, 69, 0.2);
	background: linear-gradient(100deg, rgba(239, 11, 11, 0.08), transparent 44%), linear-gradient(145deg, #2d2524, #1b1616);
}

.teelace-assistant__avatar,
.teelace-assistant__mini-avatar {
	overflow: hidden;
	border: 1px solid rgba(217, 171, 69, 0.72);
	border-radius: 50%;
	background: #171313;
	box-shadow: 0 0 0 3px rgba(217, 171, 69, 0.08);
}

.teelace-assistant__avatar {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
}

.teelace-assistant__avatar img,
.teelace-assistant__mini-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.teelace-assistant__heading {
	min-width: 0;
	margin-right: auto;
}

.teelace-assistant__title {
	margin: 0;
	color: var(--ta-text);
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.teelace-assistant__subtitle {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 3px 0 0;
	color: var(--ta-muted);
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.035em;
}

.teelace-assistant__subtitle > span:first-child {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ta-gold);
	box-shadow: 0 0 0 3px rgba(217, 171, 69, 0.11);
}

.teelace-assistant__header-actions {
	display: flex;
	align-items: center;
	gap: 5px;
}

.teelace-assistant__icon-button {
	display: grid;
	place-items: center;
	width: 31px;
	height: 31px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.035);
	color: #f4eee6;
	cursor: pointer;
	transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.teelace-assistant__icon-button:hover {
	border-color: rgba(217, 171, 69, 0.62);
	background: rgba(217, 171, 69, 0.08);
	color: var(--ta-gold-light);
}

.teelace-assistant__icon-button svg {
	width: 15px;
	height: 15px;
}

.teelace-assistant__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 13px;
	overflow-y: auto;
	padding: 18px 16px 16px;
	scrollbar-color: rgba(217, 171, 69, 0.45) transparent;
	scrollbar-width: thin;
}

.teelace-assistant__body::-webkit-scrollbar {
	width: 6px;
}

.teelace-assistant__body::-webkit-scrollbar-thumb {
	border-radius: 20px;
	background: rgba(217, 171, 69, 0.38);
}

.teelace-assistant__message {
	max-width: 89%;
	padding: 11px 13px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 5px 15px 15px 15px;
	background: var(--ta-panel-soft);
	color: #f6f0e9;
	font-size: 13.5px;
	box-shadow: 0 9px 25px rgba(0, 0, 0, 0.15);
}

.teelace-assistant__message--user {
	align-self: flex-end;
	border-color: rgba(217, 171, 69, 0.34);
	border-radius: 15px 5px 15px 15px;
	background: linear-gradient(145deg, rgba(132, 19, 21, 0.88), rgba(72, 18, 18, 0.94));
}

.teelace-assistant__message p,
.teelace-assistant__card p {
	margin: 0;
}

.teelace-assistant__choices {
	display: grid;
	gap: 8px;
	width: 100%;
}

.teelace-assistant__choices--compact {
	gap: 7px;
}

.teelace-assistant__choice {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 45px;
	padding: 9px 12px 9px 14px;
	border: 1px solid rgba(217, 171, 69, 0.3);
	border-radius: 11px;
	background: rgba(18, 14, 14, 0.53);
	color: var(--ta-text);
	font-size: 12.75px;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.teelace-assistant__choice::after {
	content: "\2192";
	flex: 0 0 auto;
	color: var(--ta-gold);
	font-size: 16px;
	line-height: 1;
}

.teelace-assistant__choice:hover:not(:disabled) {
	transform: translateX(2px);
	border-color: rgba(217, 171, 69, 0.78);
	background: rgba(217, 171, 69, 0.075);
}

.teelace-assistant__choice:disabled {
	opacity: 0.45;
	cursor: default;
}

.teelace-assistant__card {
	padding: 15px;
	border: 1px solid rgba(217, 171, 69, 0.34);
	border-radius: 14px;
	background: linear-gradient(145deg, rgba(46, 38, 37, 0.98), rgba(24, 19, 19, 0.98));
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.teelace-assistant__card h3 {
	margin: 4px 0 7px;
	color: var(--ta-gold-light);
	font-size: 20px;
	line-height: 1.15;
}

.teelace-assistant__card p {
	font-size: 13px;
}

.teelace-assistant__eyebrow {
	color: var(--ta-gold);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.teelace-assistant__reason {
	margin-top: 9px !important;
	padding-top: 9px;
	border-top: 1px solid rgba(217, 171, 69, 0.16);
	font-weight: 700;
}

.teelace-assistant__muted {
	margin-top: 8px !important;
	color: var(--ta-muted);
	font-size: 11.5px !important;
}

.teelace-assistant__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 13px;
}

.teelace-assistant__links--standalone {
	margin-top: -2px;
}

.teelace-assistant__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 7px 11px;
	border: 1px solid rgba(217, 171, 69, 0.44);
	border-radius: 9px;
	color: var(--ta-gold-light);
	font-size: 11.5px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
}

.teelace-assistant__link:hover {
	border-color: var(--ta-gold);
	color: #fff;
}

.teelace-assistant__link--primary {
	border-color: var(--ta-red);
	background: var(--ta-red);
	color: #fff;
}

.teelace-assistant__section-label {
	margin: 2px 0 -4px;
	color: var(--ta-gold);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.teelace-assistant__search {
	display: flex;
	gap: 7px;
}

.teelace-assistant__input {
	width: 100%;
	min-height: 42px;
	padding: 9px 11px;
	border: 1px solid rgba(217, 171, 69, 0.3);
	border-radius: 9px;
	outline: none;
	background: #171313;
	color: var(--ta-text);
	font-size: 13px;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.teelace-assistant textarea.teelace-assistant__input {
	min-height: 92px;
	resize: vertical;
}

.teelace-assistant__input::placeholder {
	color: #877e78;
}

.teelace-assistant__input:focus {
	border-color: var(--ta-gold);
	box-shadow: 0 0 0 3px rgba(217, 171, 69, 0.1);
}

.teelace-assistant__composer {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid rgba(217, 171, 69, 0.2);
	background: linear-gradient(180deg, #211a1a, #191414);
}

.teelace-assistant__chat-input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
	border-radius: 13px;
	background: #120f0f;
}

.teelace-assistant__send {
	display: grid;
	flex: 0 0 44px;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(217, 171, 69, 0.72);
	border-radius: 13px;
	background: linear-gradient(145deg, #e70b0b, #9f0505);
	box-shadow: 0 8px 20px rgba(185, 6, 6, 0.2);
	color: #fff;
	cursor: pointer;
	transition: transform 150ms ease, border-color 150ms ease, filter 150ms ease;
}

.teelace-assistant__send:hover {
	border-color: var(--ta-gold-light);
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.teelace-assistant__send:disabled {
	cursor: wait;
	filter: grayscale(0.35);
	opacity: 0.58;
	transform: none;
}

.teelace-assistant__send svg {
	width: 20px;
	height: 20px;
}

.teelace-assistant__typing {
	display: flex;
	align-items: center;
	gap: 4px;
	width: max-content;
	min-width: 48px;
	min-height: 38px;
}

.teelace-assistant__typing i {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--ta-gold);
	animation: teelace-assistant-typing 900ms ease-in-out infinite;
}

.teelace-assistant__typing i:nth-child(2) { animation-delay: 120ms; }
.teelace-assistant__typing i:nth-child(3) { animation-delay: 240ms; }

@keyframes teelace-assistant-typing {
	0%, 60%, 100% { opacity: 0.38; transform: translateY(0); }
	30% { opacity: 1; transform: translateY(-3px); }
}

.teelace-assistant__search-button,
.teelace-assistant__submit {
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid var(--ta-red);
	border-radius: 9px;
	background: var(--ta-red);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.teelace-assistant__form {
	display: grid;
	gap: 11px;
	padding: 14px;
	border: 1px solid rgba(217, 171, 69, 0.26);
	border-radius: 14px;
	background: rgba(20, 16, 16, 0.62);
}

.teelace-assistant__field {
	display: grid;
	gap: 5px;
}

.teelace-assistant__field > span {
	color: #e9e2da;
	font-size: 11px;
	font-weight: 750;
}

.teelace-assistant__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--ta-muted);
	font-size: 10.5px;
	line-height: 1.4;
}

.teelace-assistant__consent input {
	flex: 0 0 auto;
	margin-top: 2px;
	accent-color: var(--ta-red);
}

.teelace-assistant__consent a {
	color: var(--ta-gold-light);
}

.teelace-assistant__honeypot {
	position: absolute !important;
	left: -99999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.teelace-assistant__submit {
	width: 100%;
}

.teelace-assistant__submit:disabled {
	opacity: 0.55;
	cursor: wait;
}

.teelace-assistant__form-status {
	min-height: 0;
	margin: 0;
	font-size: 11px;
}

.teelace-assistant__form-status--error {
	color: #ff9595;
}

.teelace-assistant__success {
	margin: 0;
	color: #e7f3d9;
	font-size: 13px;
}

.teelace-assistant__footer {
	padding: 9px 14px 11px;
	border-top: 1px solid rgba(217, 171, 69, 0.14);
	background: #1b1616;
	color: #918781;
	font-size: 9.5px;
	line-height: 1.4;
	text-align: center;
}

.teelace-assistant__teaser {
	position: absolute;
	right: 0;
	bottom: 76px;
	width: min(330px, calc(100vw - 32px));
	padding: 5px 27px 5px 5px;
	border: 1px solid rgba(217, 171, 69, 0.42);
	border-radius: 15px;
	background: linear-gradient(145deg, #2b2423, #181313);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.teelace-assistant__teaser--visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.teelace-assistant__teaser-open {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 5px;
	border: 0;
	background: transparent;
	color: var(--ta-text);
	font-size: 12px;
	font-weight: 650;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.teelace-assistant__mini-avatar {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
}

.teelace-assistant__teaser-close {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #aa9f97;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.teelace-assistant__launcher:focus-visible,
.teelace-assistant__icon-button:focus-visible,
.teelace-assistant__choice:focus-visible,
.teelace-assistant__search-button:focus-visible,
.teelace-assistant__submit:focus-visible,
.teelace-assistant__send:focus-visible,
.teelace-assistant__teaser-open:focus-visible,
.teelace-assistant__teaser-close:focus-visible,
.teelace-assistant__link:focus-visible {
	outline: 2px solid var(--ta-gold-light);
	outline-offset: 3px;
}

@media (max-width: 600px) {
	#teelace-assistant-root {
		right: 14px;
		bottom: 14px;
	}

	.teelace-assistant__launcher {
		width: 56px;
		height: 56px;
	}

	.teelace-assistant__window {
		position: fixed;
		right: 8px;
		bottom: 8px;
		width: calc(100vw - 16px);
		height: min(700px, calc(100dvh - 16px));
		max-height: calc(100dvh - 16px);
		border-radius: 17px;
		transform-origin: right bottom;
	}

	.teelace-assistant__header {
		min-height: 74px;
		padding: 11px 12px;
	}

	.teelace-assistant__avatar {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}

	.teelace-assistant__body {
		padding: 15px 13px 13px;
	}

	.teelace-assistant__composer {
		padding: 9px 10px;
	}

	.teelace-assistant__teaser {
		position: fixed;
		right: 12px;
		bottom: 80px;
		width: min(330px, calc(100vw - 24px));
	}
}

@media (max-width: 380px) {
	.teelace-assistant__header {
		gap: 8px;
	}

	.teelace-assistant__header-actions {
		gap: 3px;
	}

	.teelace-assistant__icon-button {
		width: 29px;
		height: 29px;
	}

	.teelace-assistant__title {
		font-size: 16px;
	}

	.teelace-assistant__subtitle {
		font-size: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.teelace-assistant__launcher,
	.teelace-assistant__window,
	.teelace-assistant__choice,
	.teelace-assistant__teaser {
		transition: none !important;
	}
}
