.ap-chatbot {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99998;
	font-family: inherit;
	color: #1f2933;
}

.ap-chatbot * {
	box-sizing: border-box;
}

.ap-chatbot__toggle {
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 50%;
	background: #b18a57;
	color: #fff;
	box-shadow: 0 12px 28px rgba(28, 21, 14, .24);
	cursor: pointer;
	font-size: 24px;
	line-height: 58px;
	text-align: center;
}

.ap-chatbot__panel {
	position: absolute;
	right: 0;
	bottom: 74px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 500px;
	max-height: calc(100vh - 120px);
	background: #fff;
	border: 1px solid rgba(31, 41, 51, .12);
	border-radius: 8px;
	box-shadow: 0 18px 50px rgba(28, 21, 14, .24);
	overflow: hidden;
	display: none;
	flex-direction: column;
}

.ap-chatbot.is-open .ap-chatbot__panel {
	display: flex;
}

.ap-chatbot__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: #2f2722;
	color: #fff;
}

.ap-chatbot__title {
	font-size: 15px;
	font-weight: 700;
}

.ap-chatbot__mode {
	margin-top: 2px;
	font-size: 12px;
	opacity: .82;
}

.ap-chatbot__close {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	font-size: 22px;
	line-height: 30px;
}

.ap-chatbot__messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	background: #f7f5f1;
}

.ap-chatbot__message {
	max-width: 86%;
	margin: 0 0 10px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.42;
	white-space: pre-wrap;
}

.ap-chatbot__message--bot {
	background: #fff;
	border: 1px solid rgba(31, 41, 51, .08);
}

.ap-chatbot__message--user {
	margin-left: auto;
	background: #b18a57;
	color: #fff;
}

.ap-chatbot__quick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 16px 12px;
	background: #f7f5f1;
}

.ap-chatbot__quick button {
	border: 1px solid rgba(177, 138, 87, .38);
	border-radius: 999px;
	background: #fff;
	color: #2f2722;
	padding: 7px 10px;
	font-size: 12px;
	cursor: pointer;
}

.ap-chatbot__form {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid rgba(31, 41, 51, .1);
	background: #fff;
}

.ap-chatbot__input {
	flex: 1;
	min-width: 0;
	border: 1px solid rgba(31, 41, 51, .18);
	border-radius: 6px;
	padding: 10px 11px;
	font-size: 14px;
}

.ap-chatbot__send {
	border: 0;
	border-radius: 6px;
	background: #2f2722;
	color: #fff;
	padding: 0 14px;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 480px) {
	.ap-chatbot {
		right: 14px;
		bottom: 14px;
	}

	.ap-chatbot__panel {
		right: -2px;
		width: calc(100vw - 28px);
		height: min(500px, calc(100vh - 110px));
	}
}
