.acth {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99980;
	font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
}

.acth[hidden] {
	display: none !important;
}

.acth-fab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #e10600;
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 12px 18px;
	font-weight: 800;
	font-size: 14px;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.acth-fab:hover,
.acth-fab:focus {
	background: #ff1f17;
}

.acth-panel {
	position: absolute;
	left: 0;
	bottom: 58px;
	width: min(380px, calc(100vw - 24px));
	max-height: min(560px, calc(100vh - 90px));
	display: flex;
	flex-direction: column;
	background: #121212;
	color: #fff;
	border: 2px solid #e10600;
	border-radius: 20px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}

.acth-panel[hidden] {
	display: none !important;
}

.acth-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: #000;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.acth-head-title {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.acth-head strong {
	font-size: 15px;
}

.acth img.acth-avatar {
	flex: 0 0 36px;
	width: 36px !important;
	height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	object-fit: cover;
	object-position: center;
	display: block;
	background: #e10600;
	border: 2px solid #e10600;
	box-sizing: border-box;
}

.acth-row img.acth-avatar {
	flex: 0 0 28px;
	width: 28px !important;
	height: 28px !important;
	max-width: 28px !important;
	max-height: 28px !important;
	margin-top: 2px;
}

.acth-close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.acth-log {
	flex: 1;
	overflow-y: auto;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.acth-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	max-width: 95%;
}

.acth-row .acth-msg {
	max-width: 100%;
}

.acth-msg {
	max-width: 95%;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
}

.acth-msg.bot {
	background: #1c1c1c;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.acth-msg.user {
	align-self: flex-end;
	background: #e10600;
}

.acth-choices,
.acth-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 16px 14px;
}

.acth-choices button,
.acth-actions button,
.acth-form button {
	background: #0a0a0a;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	padding: 8px 12px;
	font-weight: 800;
	font-size: 13px;
	cursor: pointer;
	font-family: inherit;
}

.acth-choices button:hover,
.acth-actions button:hover,
.acth-form button:hover {
	border-color: #fff;
}

.acth-form button,
.acth-actions .acth-primary {
	background: #e10600;
	border-color: #e10600;
	width: 100%;
}

.acth-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 16px 16px;
}

.acth-form[hidden],
.acth-choices[hidden],
.acth-actions[hidden],
.acth-phone-wrap[hidden] {
	display: none !important;
}

.acth-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #bdbdbd;
}

.acth-form input,
.acth-form textarea {
	background: #0a0a0a;
	color: #fff;
	border: 2px solid #e10600;
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 15px;
	font-family: inherit;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
}

@media (max-width: 600px) {
	.acth {
		left: 10px;
		right: 10px;
		bottom: 12px;
	}

	.acth-panel {
		width: 100%;
	}
}

body.acth-open .xoo-wsc-basket {
	display: none !important;
}
