.chatbot-widget {
	bottom: 1.5rem;
	font-family: "Open Sans", Arial, sans-serif;
	position: fixed;
	right: 1.5rem;
	z-index: 10001;
}

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

.chatbot-toggle {
	align-items: center;
	background: #e60082;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.9rem;
	font-weight: 700;
	gap: 0.55rem;
	letter-spacing: 0;
	min-height: 3.25rem;
	padding: 0 1.15rem;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.chatbot-toggle:hover,
.chatbot-toggle:focus {
	background: #3090c7;
	outline: none;
	transform: translateY(-1px);
}

.chatbot-toggle .fa {
	font-size: 1.1rem;
}

.chatbot-panel {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	bottom: 4.5rem;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
	color: #222;
	display: none;
	flex-direction: column;
	height: min(640px, calc(100vh - 7rem));
	overflow: hidden;
	position: absolute;
	right: 0;
	width: min(390px, calc(100vw - 2rem));
}

.chatbot-widget.is-open .chatbot-panel {
	display: flex;
}

.chatbot-header {
	align-items: center;
	background: #2e3842;
	color: #fff;
	display: flex;
	justify-content: space-between;
	padding: 0.85rem 1rem;
}

.chatbot-title {
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.02rem;
	margin: 0;
	text-transform: uppercase;
}

.chatbot-close {
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 1.1rem;
	height: 2rem;
	line-height: 2rem;
	padding: 0;
	text-align: center;
	width: 2rem;
}

.chatbot-close:focus {
	outline: 2px solid rgba(255, 255, 255, 0.65);
	outline-offset: 2px;
}

.chatbot-messages {
	background: #f7f8fa;
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.75rem;
	overflow-y: auto;
	padding: 1rem;
}

.chatbot-message {
	border-radius: 8px;
	font-size: 0.86rem;
	line-height: 1.45;
	max-width: 86%;
	padding: 0.75rem 0.85rem;
	white-space: pre-wrap;
	word-break: break-word;
}

.chatbot-message.bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #e1e5ea;
	color: #252b33;
}

.chatbot-message.user {
	align-self: flex-end;
	background: #3090c7;
	color: #fff;
}

.chatbot-message.status,
.chatbot-message.error {
	align-self: stretch;
	max-width: none;
}

.chatbot-message.status {
	background: #edf7fb;
	border: 1px solid #c8e6f3;
	color: #29576a;
}

.chatbot-message.error {
	background: #fff1f1;
	border: 1px solid #f3c4c4;
	color: #9d1f1f;
}

.chatbot-form {
	background: #fff;
	border-top: 1px solid #e1e5ea;
	display: flex;
	gap: 0.6rem;
	padding: 0.85rem;
}

.chatbot-input {
	border: 1px solid #cfd6df;
	border-radius: 8px;
	color: #222;
	flex: 1;
	font: inherit;
	font-size: 0.86rem;
	line-height: 1.35;
	max-height: 7rem;
	min-height: 2.55rem;
	padding: 0.65rem 0.75rem;
	resize: none;
}

.chatbot-input:focus {
	border-color: #3090c7;
	box-shadow: 0 0 0 2px rgba(48, 144, 199, 0.12);
	outline: none;
}

.chatbot-send {
	align-items: center;
	background: #e60082;
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 1rem;
	height: 2.55rem;
	justify-content: center;
	padding: 0;
	width: 2.85rem;
}

.chatbot-send:hover,
.chatbot-send:focus {
	background: #3090c7;
	outline: none;
}

.chatbot-send:disabled,
.chatbot-input:disabled {
	cursor: wait;
	opacity: 0.55;
}

@media screen and (max-width: 480px) {
	.chatbot-widget {
		bottom: 1rem;
		right: 1rem;
	}

	.chatbot-panel {
		bottom: 4.25rem;
		height: min(600px, calc(100vh - 6rem));
		width: calc(100vw - 2rem);
	}

	.chatbot-toggle {
		min-height: 3rem;
		padding: 0 1rem;
	}
}
