.sp3kcc-helpbot {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 9999;
	font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.sp3kcc-helpbot-fab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3.4rem;
	height: 3.4rem;
	padding: 0 1rem;
	border: 3px solid #111;
	border-radius: 999px;
	background: #f0c400;
	color: #111;
	font-weight: 800;
	font-size: 0.95rem;
	cursor: pointer;
	box-shadow: 4px 4px 0 #111;
}

.sp3kcc-helpbot-fab:hover {
	background: #ffd84a;
}

.sp3kcc-helpbot-panel {
	position: absolute;
	right: 0;
	bottom: 4.2rem;
	width: min(22rem, calc(100vw - 1.5rem));
	max-height: min(32rem, calc(100vh - 6rem));
	display: flex;
	flex-direction: column;
	background: #f7f4e8;
	border: 3px solid #111;
	border-radius: 14px;
	box-shadow: 6px 6px 0 #111;
	overflow: hidden;
}

.sp3kcc-helpbot-panel[hidden] {
	display: none !important;
}

.sp3kcc-helpbot-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.7rem 0.85rem;
	background: #163214;
	color: #fff6a8;
}

.sp3kcc-helpbot-head p {
	margin: 0;
	font-weight: 800;
	font-size: 0.95rem;
}

.sp3kcc-helpbot-x {
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.sp3kcc-helpbot-list {
	flex: 1;
	overflow: auto;
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	min-height: 12rem;
}

.sp3kcc-helpbot-msg {
	max-width: 92%;
	padding: 0.55rem 0.7rem;
	border-radius: 10px;
	font-size: 0.92rem;
	line-height: 1.35;
}

.sp3kcc-helpbot-msg a {
	color: #163214;
	font-weight: 800;
}

.sp3kcc-helpbot-msg.bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid rgba(17, 17, 17, 0.16);
}

.sp3kcc-helpbot-msg.me {
	align-self: flex-end;
	background: #dcefc8;
	border: 1px solid rgba(22, 50, 20, 0.2);
}

.sp3kcc-helpbot-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	padding: 0 0.75rem 0.45rem;
}

.sp3kcc-helpbot-chips button {
	border: 2px solid #111;
	border-radius: 999px;
	background: #fff;
	padding: 0.2rem 0.65rem;
	font-weight: 700;
	font-size: 0.8rem;
	cursor: pointer;
}

.sp3kcc-helpbot-chips button:hover {
	background: #f0c400;
}

.sp3kcc-helpbot-ask {
	display: flex;
	gap: 0.35rem;
	padding: 0.55rem 0.7rem 0.7rem;
	border-top: 1px solid rgba(17, 17, 17, 0.12);
	background: #efe9d4;
}

.sp3kcc-helpbot-ask input {
	flex: 1;
	min-width: 0;
	border: 2px solid #111;
	border-radius: 8px;
	padding: 0.45rem 0.55rem;
	font: inherit;
}

.sp3kcc-helpbot-ask button,
.sp3kcc-helpbot-mail button {
	border: 2px solid #111;
	border-radius: 8px;
	background: #f0c400;
	font-weight: 800;
	cursor: pointer;
	padding: 0.45rem 0.7rem;
}

.sp3kcc-helpbot-mail {
	display: grid;
	gap: 0.35rem;
	margin-top: 0.45rem;
}

.sp3kcc-helpbot-mail input,
.sp3kcc-helpbot-mail textarea {
	width: 100%;
	border: 2px solid #111;
	border-radius: 8px;
	padding: 0.4rem 0.5rem;
	font: inherit;
}

.sp3kcc-helpbot-mail textarea {
	min-height: 4.2rem;
	resize: vertical;
}

.sp3kcc-helpbot-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

@media (max-width: 520px) {
	.sp3kcc-helpbot {
		right: 0.6rem;
		bottom: 0.6rem;
	}
}
