.ppai-chat {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99999;
	font-family: Arial, sans-serif;
	text-align: left;
	height: var(--ppai-icon-size, 64px);
	width: var(--ppai-icon-size, 64px);
}
.ppai-chat__toggle,
.ppai-chat__form button {
	background: #ff1f17;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-weight: 700;
}
.ppai-chat .ppai-chat__toggle {
	align-items: center;
	border-radius: 50% !important;
	display: inline-flex !important;
	height: var(--ppai-icon-size, 64px) !important;
	justify-content: center;
	padding: 0 !important;
	width: var(--ppai-icon-size, 64px) !important;
	box-shadow: 0 16px 36px rgba(0, 0, 0, .22) !important;
	min-width: var(--ppai-icon-size, 64px) !important;
	transition: none;
}
.ppai-chat__toggle:hover,
.ppai-chat__toggle:focus {
	background: #ff1f17 !important;
	box-shadow: 0 16px 36px rgba(0, 0, 0, .22) !important;
	color: #fff !important;
	transform: none !important;
}
.ppai-chat .ppai-chat__robot {
	align-items: center;
	background: transparent !important;
	border-radius: 50%;
	color: #fff !important;
	display: inline-flex !important;
	height: 66%;
	justify-content: center;
	width: 66%;
}
.ppai-chat .ppai-chat__robot i {
	display: inline-block;
	font-size: calc(var(--ppai-icon-size, 64px) * .48);
	line-height: 1;
}
.ppai-chat__toggle-label {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}
.ppai-chat .ppai-chat__prompt {
	background: #fff;
	border: 0 !important;
	border-radius: 26px !important;
	box-shadow: 0 14px 36px rgba(17, 17, 17, .16) !important;
	color: #202636 !important;
	cursor: pointer;
	display: block !important;
	font-size: var(--ppai-popup-font-size, 15px) !important;
	font-weight: 700;
	letter-spacing: 0 !important;
	line-height: 1.38;
	max-width: 250px !important;
	min-width: 210px;
	opacity: 0;
	padding: 12px 15px !important;
	position: absolute;
	bottom: calc(var(--ppai-icon-size, 64px) + 14px);
	right: 0;
	text-align: left;
	text-transform: none !important;
	transform: translateY(10px) scale(.98);
	transition: opacity .22s ease, transform .22s ease;
	width: auto;
	white-space: normal !important;
	word-break: normal;
	overflow-wrap: break-word;
}
.ppai-chat .ppai-chat__prompt:hover,
.ppai-chat .ppai-chat__prompt:focus {
	background: #fff !important;
	color: #202636 !important;
	box-shadow: 0 14px 36px rgba(17, 17, 17, .16) !important;
	outline: none;
}
.ppai-chat .ppai-chat__prompt span {
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.ppai-chat .ppai-chat__prompt::after {
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-top: 9px solid #fff;
	bottom: -8px;
	content: "";
	position: absolute;
	right: 23px;
}
.ppai-chat__prompt.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}
.ppai-chat__panel {
	width: min(360px, calc(100vw - 24px));
	height: 460px;
	background: #fff;
	border: 1px solid #1f1f1f;
	border-radius: 8px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	bottom: calc(var(--ppai-icon-size, 64px) + 14px);
	position: absolute;
	right: 0;
}
.ppai-chat__header {
	align-items: center;
	background: #111;
	border-top: 4px solid #ff1f17;
	color: #fff;
	display: flex;
	justify-content: space-between;
	padding: 13px 14px 12px;
	font-weight: 700;
}
.ppai-chat__header-title {
	align-items: center;
	display: inline-flex;
	gap: 8px;
	min-width: 0;
}
.ppai-chat__header-title i {
	color: #ff1f17;
	font-size: 15px;
	line-height: 1;
}
.ppai-chat__header-title span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ppai-chat__window-actions {
	display: inline-flex;
	gap: 6px;
}
.ppai-chat__window-button {
	align-items: center;
	background: rgba(255, 255, 255, .12);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 18px;
	font-weight: 700;
	height: 26px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 26px;
}
.ppai-chat__window-button:hover,
.ppai-chat__window-button:focus {
	background: rgba(255, 255, 255, .24);
	outline: none;
}
.ppai-chat__messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	background: #f5f5f5;
}
.ppai-chat__message {
	max-width: 86%;
	margin: 0 0 10px;
	padding: 9px 11px;
	border-radius: 8px;
	line-height: 1.35;
	font-size: 14px;
}
.ppai-chat__message--bot {
	background: #fff;
	border: 1px solid #e3e3e3;
	border-left: 3px solid #ff1f17;
}
.ppai-chat__message--user {
	background: #111;
	color: #fff;
	margin-left: auto;
}
.ppai-chat__form {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #e0e4e8;
}
.ppai-chat__footer {
	background: #fff;
	border-top: 1px solid #eeeeee;
	color: #6b7280;
	font-size: 11px;
	line-height: 1.35;
	padding: 7px 10px 8px;
	text-align: center;
}
.ppai-chat__footer a {
	color: #ff1f17 !important;
	text-decoration: none !important;
}
.ppai-chat__footer strong {
	color: #111;
}
.ppai-chat__form input[type="text"]:not(.ppai-chat__hp) {
	flex: 1;
	min-width: 0;
	border: 1px solid #d7d7d7;
	border-radius: 6px;
	padding: 10px;
}
.ppai-chat__form button {
	border-radius: 6px;
	padding: 0 14px;
	text-transform: uppercase;
}
.ppai-chat__hp {
	display: none;
}
@media (max-width: 480px) {
	.ppai-chat {
		right: 12px;
		bottom: 12px;
	}
	.ppai-chat__prompt {
		font-size: 13px !important;
		max-width: calc(100vw - 28px) !important;
		min-width: min(230px, calc(100vw - 28px));
		padding: 12px 14px !important;
	}
	.ppai-chat__panel {
		right: 0;
		height: 70vh;
	}
}
