.gmz-chatbot {
	--gmz-chatbot-brand: #c0392b;
	--gmz-chatbot-bg: #ffffff;
	--gmz-chatbot-text: #1f2937;
	--gmz-chatbot-muted: #6b7280;
	font-family: "Segoe UI", "Inter", sans-serif;
}

.gmz-chatbot.is-dark {
	--gmz-chatbot-bg: #101924;
	--gmz-chatbot-text: #f8fafc;
	--gmz-chatbot-muted: #cbd5e1;
}

.gmz-chatbot-panel {
	background: var(--gmz-chatbot-bg);
	color: var(--gmz-chatbot-text);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	box-shadow: 0 12px 42px rgba(0, 0, 0, 0.18);
	width: min(380px, calc(100vw - 24px));
	max-height: min(76vh, 700px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	transform: translateY(8px) scale(0.98);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.gmz-chatbot.gmz-chatbot-shortcode .gmz-chatbot-panel,
.gmz-chatbot.gmz-chatbot-my_account .gmz-chatbot-panel,
.gmz-chatbot.gmz-chatbot-gift_builder .gmz-chatbot-panel {
	position: relative;
	width: 100%;
	max-width: 580px;
	max-height: 70vh;
	opacity: 1;
	transform: none;
}

.gmz-chatbot.gmz-chatbot-floating_widget .gmz-chatbot-panel {
	position: fixed;
	bottom: 84px;
	z-index: 99999;
}

.gmz-chatbot.is-open .gmz-chatbot-panel {
	opacity: 1;
	transform: none;
}

.gmz-chatbot.gmz-chatbot-floating_widget.is-right .gmz-chatbot-panel {
	right: 18px;
}

.gmz-chatbot.gmz-chatbot-floating_widget.is-left .gmz-chatbot-panel {
	left: 18px;
}

.gmz-chatbot-launcher {
	position: fixed;
	bottom: 18px;
	z-index: 99999;
	background: linear-gradient(135deg, var(--gmz-chatbot-brand), #f59e0b);
	color: #fff;
	border: 0;
	padding: 10px 16px;
	border-radius: 999px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gmz-chatbot-mini {
	position: fixed;
	bottom: 68px;
	max-width: 260px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	padding: 8px 10px;
	font-size: 12px;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
	color: #1f2937;
	z-index: 99999;
}

.gmz-chatbot.is-right .gmz-chatbot-mini {
	right: 18px;
}

.gmz-chatbot.is-left .gmz-chatbot-mini {
	left: 18px;
}

.gmz-chatbot.is-right .gmz-chatbot-launcher {
	right: 18px;
}

.gmz-chatbot.is-left .gmz-chatbot-launcher {
	left: 18px;
}

.gmz-chatbot-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	background: linear-gradient(135deg, rgba(192, 57, 43, 0.12), rgba(245, 158, 11, 0.18));
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.gmz-chatbot-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--gmz-chatbot-brand);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.gmz-chatbot-title-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.gmz-chatbot-title-wrap span {
	font-size: 12px;
	color: var(--gmz-chatbot-muted);
}

.gmz-chatbot-title-wrap .gmz-chatbot-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
	font-weight: 600;
	line-height: 1.2;
}

.gmz-chatbot-status i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	display: inline-block;
	flex: 0 0 auto;
	background: #ef4444;
	box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
}

.gmz-chatbot-status.is-online i {
	background: #22c55e;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
	animation: gmz-chatbot-status-pulse 1.45s ease-out infinite;
}

.gmz-chatbot-status.is-offline {
	color: #b91c1c;
}

@keyframes gmz-chatbot-status-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
	}
	70% {
		box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
	}
}

.gmz-chatbot-close {
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
}

.gmz-chatbot-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(249, 250, 251, 0.9));
}

.is-dark .gmz-chatbot-messages {
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.95));
}

.gmz-chat-msg {
	margin-bottom: 10px;
}

.gmz-chat-msg p {
	margin: 0;
	padding: 10px 12px;
	border-radius: 12px;
	max-width: 95%;
	line-height: 1.4;
}

.gmz-chat-msg-user {
	text-align: right;
}

.gmz-chat-msg-user p {
	margin-left: auto;
	background: var(--gmz-chatbot-brand);
	color: #fff;
}

.gmz-chat-msg-bot p {
	background: rgba(0, 0, 0, 0.06);
}

.is-dark .gmz-chat-msg-bot p {
	background: rgba(255, 255, 255, 0.12);
}

.gmz-chatbot-typing {
	font-size: 12px;
	color: var(--gmz-chatbot-muted);
	padding: 0 12px 8px;
}

.gmz-chatbot-suggestions {
	padding: 8px 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gmz-chat-chip {
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(255, 255, 255, 0.9);
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	cursor: pointer;
}

.gmz-chatbot-footer {
	padding: 10px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	gap: 8px;
	align-items: flex-end;
}

.gmz-chatbot-input {
	flex: 1;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 12px;
	padding: 8px 10px;
	resize: none;
}

.gmz-chatbot-send {
	border: 0;
	background: var(--gmz-chatbot-brand);
	color: #fff;
	border-radius: 10px;
	padding: 9px 14px;
	font-weight: 700;
	cursor: pointer;
}

.gmz-chat-actions {
	margin-top: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gmz-chat-action {
	text-decoration: none;
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	font-size: 12px;
}

.gmz-chat-action-primary {
	background: var(--gmz-chatbot-brand);
	color: #fff;
	border-color: transparent;
}

.gmz-chat-feedback {
	margin-top: 8px;
	display: flex;
	gap: 8px;
}

.gmz-chat-feedback button {
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	border-radius: 8px;
	padding: 4px 8px;
	cursor: pointer;
}

@media (max-width: 640px) {
	.gmz-chatbot.gmz-chatbot-floating_widget .gmz-chatbot-panel {
		left: 8px !important;
		right: 8px !important;
		bottom: 8px;
		width: calc(100vw - 16px);
		max-height: calc(100vh - 16px);
	}
}
