/**
 * Gentle Moms Club Chatbot Styles
 * Isolated under .gmc-cbot namespace to prevent conflicts
 * ALL styles use !important to override theme styles
 *
 * @package gentlemomsclub
 */

/* CSS Variables (set from admin config) - Apply to root for accessibility */
:root {
	--chatbot-primary-color: #F43676;
	--chatbot-hover-color: #e52e6a;
	--chatbot-bg-color: #F1F1F1;
	--chatbot-border-color: #E4E3E3;
	--chatbot-width: 380px;
	--chatbot-height: 600px;
}

/* CRITICAL: Root element must be positioned fixed and outside normal flow */
body #gmc-chatbot-root,
html body #gmc-chatbot-root {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 0 !important;
	height: 0 !important;
	z-index: 999999 !important;
	pointer-events: none !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
}

/* Ensure container inside root is positioned correctly */
body #gmc-chatbot-root .gmc-cbot-container,
html body #gmc-chatbot-root .gmc-cbot-container {
	position: fixed !important;
	bottom: 20px !important;
	right: 20px !important;
	left: auto !important;
	top: auto !important;
	z-index: 999999 !important;
	pointer-events: auto !important;
	transform: none !important;
}

/* Reset and base styles for chatbot only */
.gmc-cbot *,
#gmc-chatbot-root * {
	box-sizing: border-box !important;
}

.gmc-cbot,
#gmc-chatbot-root {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
	line-height: 1.5 !important;
	font-size: 14px !important;
	color: #333 !important;
}

/* Chatbot Container - Must be fixed and outside normal flow - BOTTOM RIGHT */
.gmc-cbot-container {
	position: fixed !important;
	bottom: 20px !important;
	right: 20px !important;
	left: auto !important;
	top: auto !important;
	z-index: 999999 !important;
	font-family: inherit !important;
	pointer-events: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	height: auto !important;
	transform: none !important;
}

/* Desktop: Container should not interfere when widget is hidden */
.gmc-cbot-container:has(.gmc-cbot-widget.gmc-cbot-hidden) {
	pointer-events: none !important;
}

/* Desktop: Ensure widget stays normal size (not full screen) */
@media (min-width: 768px) {
	.gmc-cbot-container {
		position: fixed !important;
		bottom: 20px !important;
		right: 20px !important;
		left: auto !important;
		top: auto !important;
		width: auto !important;
		height: auto !important;
	}

	.gmc-cbot-widget:not(.gmc-cbot-hidden) {
		width: 380px !important;
		height: 600px !important;
		max-height: 90vh !important;
		position: relative !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		border-radius: 12px !important;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
		border: 1px solid #E4E3E3 !important;
	}
}

.gmc-cbot-widget {
	width: 380px !important;
	height: 600px !important;
	max-height: 90vh !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	border-radius: 12px !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
	display: none !important; /* Start hidden to prevent flashing - JS will show if needed */
	flex-direction: column !important;
	overflow: hidden !important;
	border: 1px solid #E4E3E3 !important;
	border-color: #E4E3E3 !important;
	position: relative !important;
	margin: 0 !important;
	padding: 0 !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	color: #333 !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.gmc-cbot-widget:not(.gmc-cbot-hidden) {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

/* Header */
.gmc-cbot-header {
	background: #F43676 !important;
	background-color: #F43676 !important;
	background-image: none !important;
	color: #ffffff !important;
	padding: 16px 20px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-shrink: 0 !important;
	border: none !important;
}

.gmc-cbot-header * {
	color: #ffffff !important;
}

.gmc-cbot-header-left {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
}

.gmc-cbot-header-avatar {
	width: auto !important;
	min-width: 56px !important;
	height: 40px !important;
	border-radius: 0 !important;
	background: transparent !important;
	display: block !important;
	overflow: visible !important;
	flex-shrink: 0 !important;
	position: relative !important;
}

/* Multi-avatar wrapper inside header avatar */
.gmc-cbot-header-avatar-multi {
	position: relative !important;
	width: 56px !important; /* allow overlap */
	height: 40px !important;
	overflow: visible !important;
	display: block !important;
}
.gmc-cbot-header-avatar-item {
	position: absolute !important;
	top: 2px !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	overflow: hidden !important;
	border: 2px solid rgba(255,255,255,0.92) !important;
	box-shadow: 0 6px 18px rgba(11,22,45,0.06) !important;
	background: #eee !important;
}
.gmc-cbot-header-avatar-item img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
/* arrange so first (front) is fully visible, others sit behind with small visible slivers */
.gmc-cbot-header-avatar-item:nth-child(1) { left: 18px !important; z-index: 4 !important; transform: scale(1) !important; opacity: 1 !important; }
.gmc-cbot-header-avatar-item:nth-child(2) { left: 10px !important; z-index: 3 !important; transform: scale(0.96) !important; opacity: 0.22 !important; }
.gmc-cbot-header-avatar-item:nth-child(3) { left: 2px !important; z-index: 2 !important; transform: scale(0.92) !important; opacity: 0.12 !important; }

/* Improve readability for multi-line assistant replies */
.gmc-cbot-message-content,
.gmc-cbot-message-content p {
	line-height: 1.4 !important;
	white-space: pre-line !important;
	word-break: break-word !important;
}


/* Show online/offline dot */
.gmc-cbot-header-status-dot {
	display: inline-block !important;
	width: 10px !important;
	height: 10px !important;
	border-radius: 50% !important;
	margin-right: 8px !important;
	flex: 0 0 auto !important;
	box-shadow: 0 0 0 4px rgba(76,175,80,0.06) !important;
}
.gmc-cbot-header-status-dot.status-online { background: #4CAF50 !important; }
.gmc-cbot-header-status-dot.status-offline { background: #9E9E9E !important; box-shadow: none !important; }


.gmc-cbot-header-info {
	flex: 1 !important;
	min-width: 0 !important;
}

.gmc-cbot-header-title {
	font-weight: 600 !important;
	font-size: 16px !important;
	margin: 0 0 2px 0 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	color: #ffffff !important;
	text-shadow: none !important;
}

.gmc-cbot-header-status {
	font-size: 12px !important;
	opacity: 0.95 !important;
	margin: 0 !important;
	color: #ffffff !important;
	text-shadow: none !important;
	visibility: visible !important;
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
}

.gmc-cbot-header-status::before {
	content: '' !important;
	width: 8px !important;
	height: 8px !important;
	border-radius: 50% !important;
	background: #4CAF50 !important;
	background-color: #4CAF50 !important;
	display: inline-block !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.gmc-cbot-header-status.status-offline::before {
	background: #9E9E9E !important;
	background-color: #9E9E9E !important;
}

.gmc-cbot-header-close {
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	border-width: 0 !important;
	color: #ffffff !important;
	font-size: 28px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	padding: 4px !important;
	padding-top: 4px !important;
	padding-right: 4px !important;
	padding-bottom: 4px !important;
	padding-left: 4px !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	max-width: 32px !important;
	max-height: 32px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 4px !important;
	transition: background-color 0.2s !important;
	flex-shrink: 0 !important;
	font-weight: 300 !important;
	font-family: inherit !important;
	text-shadow: none !important;
	box-shadow: none !important;
	outline: none !important;
}

.gmc-cbot-header-close:hover {
	background: rgba(255, 255, 255, 0.2) !important;
	background-color: rgba(255, 255, 255, 0.2) !important;
}

.gmc-cbot-header-close:active {
	background: rgba(255, 255, 255, 0.3) !important;
	background-color: rgba(255, 255, 255, 0.3) !important;
}

.gmc-cbot-header-close:focus {
	outline: none !important;
	box-shadow: none !important;
}

.gmc-cbot-header-close {
	pointer-events: auto !important;
	z-index: 100 !important;
	position: relative !important;
}

/* Toggle Button */
.gmc-cbot-toggle {
	position: fixed !important;
	bottom: 20px !important;
	right: 20px !important;
	left: auto !important;
	top: auto !important;
	width: 60px !important;
	height: 60px !important;
	border-radius: 50% !important;
	background: #F43676 !important;
	background-color: #F43676 !important;
	color: #fff !important;
	border: none !important;
	cursor: pointer !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 24px !important;
	z-index: 999998 !important;
	transition: transform 0.2s, background 0.2s !important;
	pointer-events: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

.gmc-cbot-toggle:hover {
	background: #e52e6a !important;
	background-color: #e52e6a !important;
	transform: scale(1.05) !important;
}

.gmc-cbot-toggle svg {
	width: 28px !important;
	height: 28px !important;
	fill: currentColor !important;
}

/* Compact preview inside closed toggle (left-aligned pill with message) */
.gmc-cbot-compact {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	background: #fff !important;
	padding: 12px 14px !important;
	border-radius: 12px !important;
	box-shadow: 0 10px 30px rgba(11,22,45,0.08) !important;
	max-width: 320px !important;
	margin-right: 8px !important;
}
.gmc-cbot-compact-avatar { width: 40px !important; height: 40px !important; border-radius: 50% !important; overflow: hidden !important; flex: 0 0 auto !important; }
.gmc-cbot-compact-avatar img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.gmc-cbot-compact-message {
	color: #0f1724 !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	line-height: 1.15 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	max-width: 220px !important;
}

/* Toggle badge */
.gmc-cbot-toggle-badge {
	position: absolute !important;
	top: -6px !important;
	right: -6px !important;
	width: 16px !important;
	height: 16px !important;
	background: #ff3b3b !important;
	border-radius: 999px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #fff !important;
	font-size: 10px !important;
	line-height: 1 !important;
	box-shadow: 0 6px 18px rgba(244,59,59,0.18) !important;
}
.gmc-cbot-toggle-badge.has-number { width: 22px !important; height: 22px !important; font-size: 11px !important; padding: 0 3px !important; }

/* Pulse animation for new message */
.gmc-pulse { animation: gmc-badge-pulse 900ms ease both; }
@keyframes gmc-badge-pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.25); }
	100% { transform: scale(1); }
}

/* FAB badge */
.gmc-cbot-fab-badge {
	position: absolute !important;
	top: -6px !important;
	right: -6px !important;
	min-width: 18px !important;
	height: 18px !important;
	background: #ff3b3b !important;
	color: #fff !important;
	font-size: 11px !important;
	line-height: 18px !important;
	border-radius: 999px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 4px !important;
	box-shadow: 0 10px 30px rgba(255,59,59,0.14) !important;
}

/* Floating FAB send button */
.gmc-cbot-fab {
	position: absolute !important;
	right: 18px !important;
	bottom: 18px !important;
	width: 56px !important;
	height: 56px !important;
	border-radius: 50% !important;
	border: none !important;
	background: linear-gradient(135deg,#06b6d4 0%,#3b82f6 100%) !important;
	box-shadow: 0 18px 40px rgba(6,182,212,0.18) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #fff !important;
	cursor: pointer !important;
	z-index: 120 !important;
}
.gmc-cbot-fab svg { width: 22px !important; height: 22px !important; fill: #fff !important; }

/* Hide the previously inline send button inside the input area on larger screens (keep for accessibility) */
@media (min-width: 680px) {
	.gmc-cbot-send-button { opacity: 0; pointer-events: none; }
}

/* Messages Area */
.gmc-cbot-messages {
	flex: 1 !important;
	overflow-y: auto !important;
	padding: 20px !important;
	background: #F1F1F1 !important;
	background-color: #F1F1F1 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
}
/* Make each message occupy full width, then align content left/right to look like a real chat */
.gmc-cbot-message {
	display: flex;
	width: 100%;
	align-items: flex-end;
}
.gmc-cbot-message.assistant {
	justify-content: flex-start;
}
.gmc-cbot-message.user {
	justify-content: flex-end;
}
.gmc-cbot-message-avatar {
	flex: 0 0 auto;
}
.gmc-cbot-message.assistant .gmc-cbot-message-avatar { margin-right: 12px; }
.gmc-cbot-message.user .gmc-cbot-message-avatar { margin-left: 0 !important; margin-right: 12px !important; }
.gmc-cbot-message-content {
	display: inline-block;
	max-width: 72%;
	word-break: break-word;
}

.gmc-cbot-message {
	display: flex !important;
	gap: 8px !important;
	align-items: flex-start !important;
	max-width: 100% !important;
}

.gmc-cbot-message.user {
	align-self: flex-end !important;
	/* use normal row direction so DOM order (content then avatar) places avatar on the right */
	flex-direction: row !important;
	justify-content: flex-end !important;
}

.gmc-cbot-message-avatar {
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	flex-shrink: 0 !important;
	overflow: hidden !important;
	background: #ddd !important;
}

.gmc-cbot-message-avatar img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

.gmc-cbot-message-content {
	position: relative !important;
	background: #fff7f3 !important; /* assistant default */
	background-color: #fff7f3 !important;
	padding: 12px 16px !important;
	border-radius: 18px !important;
	box-shadow: 0 6px 18px rgba(11,22,45,0.04) !important;
	word-wrap: break-word !important;
	line-height: 1.5 !important;
	max-width: 72% !important;
	display: inline-block !important;
	color: #263238 !important;
}

.gmc-cbot-message.user .gmc-cbot-message-content {
	background: #F43676 !important;
	background-color: #F43676 !important;
	color: #fff !important;
}

/* Ensure assistant messages align left and user messages align right with avatar placement */
.gmc-cbot-message.assistant {
    align-self: flex-start !important;
    flex-direction: row !important;
}

/* On very small screens allow bubbles to be wider */
@media (max-width: 420px) {
    .gmc-cbot-message-content { max-width: 86% !important; }
}

/* --- Modern, friendly visual refresh (Tidio-like) --- */

.gmc-cbot-header {
	background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%) !important;
	color: #ffffff !important;
	padding: 14px 18px !important;
	border-radius: 16px 16px 0 0 !important;
}
.gmc-cbot-header-avatar {
	width: auto !important;
	min-width: 56px !important;
	height: 40px !important;
	border-radius: 0 !important;
	overflow: visible !important;
	border: none !important;
	display: block !important;
	position: relative !important;
}
.gmc-cbot-header-title { font-size: 16px !important; font-weight:700 !important; }
.gmc-cbot-header-status { font-size: 12px !important; opacity: 0.95 !important; margin-top:4px !important; }
.gmc-cbot-header-status::before { display:none !important; }
.gmc-cbot-header-info { color: #fff !important; }

/* Tagline under header title */
.gmc-cbot-header-tagline { font-size: 13px; opacity: 0.95; margin-top:4px; color: rgba(255,255,255,0.92); }

/* Decorative wave below header */
.gmc-cbot-header-wave {
	width: 100% !important;
	overflow: hidden !important;
	line-height: 0 !important;
}
.gmc-cbot-header-wave svg { display: block; width: 100% !important; height: 42px !important; }

/* Messages area should appear like the white card under the header wave */
.gmc-cbot-messages {
	background: #ffffff !important;
	border-bottom-left-radius: 16px !important;
	border-bottom-right-radius: 16px !important;
	padding: 22px 20px !important;
	gap: 16px !important;
}

/* Make the chat look like a card with inner white area and subtle outer shadow */
.gmc-cbot-widget {
	background: transparent !important;
	box-shadow: 0 26px 60px rgba(11,22,45,0.08) !important;
}

/* Slightly indent assistant bubbles from left to match reference */
.gmc-cbot-message.assistant { padding-left: 8px !important; }

/* Make user bubble smaller and more pill-like (reference) */
.gmc-cbot-message.user .gmc-cbot-message-content { padding: 10px 14px !important; font-weight:600 !important; }

/* Widget container with rounded corners and nicer shadow */
.gmc-cbot-widget {
	border-radius: 16px !important;
	box-shadow: 0 20px 50px rgba(11,22,45,0.12) !important;
	overflow: hidden !important;
}

/* Messages area tweaks */
.gmc-cbot-messages { padding: 18px !important; gap: 14px !important; }
.gmc-cbot-message { max-width: 100% !important; }

/* Assistant bubble: soft card with slight border and shadow */
.gmc-cbot-message.assistant .gmc-cbot-message-content {
	background: #fff7f3 !important;
	border: 1px solid rgba(15,23,42,0.04) !important;
	box-shadow: 0 6px 18px rgba(11,22,45,0.04) !important;
	color: #263238 !important;
	max-width: 72% !important;
	border-radius: 18px 18px 18px 6px !important;
}

.gmc-cbot-message.assistant .gmc-cbot-message-content::after {
	content: '' !important;
	position: absolute !important;
	left: -8px !important;
	top: 14px !important;
	width: 0 !important;
	height: 0 !important;
	border-top: 8px solid transparent !important;
	border-bottom: 8px solid transparent !important;
	border-right: 8px solid #fff7f3 !important;
}

/* User bubble: gradient pill, right aligned */
.gmc-cbot-message.user .gmc-cbot-message-content {
	background: linear-gradient(135deg,#e16c8e 0%,#ff6900 100%) !important;
	color: #fff !important;
	max-width: 72% !important;
	box-shadow: 0 8px 20px rgba(225,108,142,0.12) !important;
	border-radius: 18px 18px 6px 18px !important;
	/* shrink-to-fit so short messages produce small pills */
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	width: auto !important;
	min-width: 44px !important;
	padding: 8px 14px 8px 16px !important;
	box-sizing: border-box !important;
	text-align: left !important;
}

.gmc-cbot-message.user .gmc-cbot-message-content::after {
	content: '' !important;
	position: absolute !important;
	right: -8px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 0 !important;
	height: 0 !important;
	border-top: 8px solid transparent !important;
	border-bottom: 8px solid transparent !important;
	border-left: 8px solid #e16c8e !important;
}

/* Minor spacing/visual tweaks to match conversation look from reference */
.gmc-cbot-message { gap: 10px !important; padding: 4px 0 !important; }
.gmc-cbot-message-avatar { width: 36px !important; height: 36px !important; }
.gmc-cbot-messages { padding-top: 18px !important; padding-bottom: 18px !important; }
.gmc-cbot-message.assistant .gmc-cbot-message-content, .gmc-cbot-message.user .gmc-cbot-message-content { transition: transform .12s ease, box-shadow .12s ease !important; }
.gmc-cbot-message.user .gmc-cbot-message-content:hover { transform: translateY(-2px) !important; }

/* Quick buttons: modern pill outline then filled on hover */
.gmc-cbot-quick-button {
	background: transparent !important;
	border: 1px solid rgba(15,23,42,0.06) !important;
	padding: 10px 16px !important;
	border-radius: 999px !important;
	color: #263238 !important;
	transition: all .18s ease !important;
}
.gmc-cbot-quick-button:hover { background: #06b6d4 !important; color: #fff !important; border-color: transparent !important; transform: translateY(-1px) !important; }

/* Input area: floating, subtle */
.gmc-cbot-input-area { padding: 14px 16px !important; background: #fff !important; border-top: 1px solid rgba(15,23,42,0.04) !important; }
.gmc-cbot-input { border-radius: 999px !important; padding: 12px 16px !important; box-shadow: 0 6px 18px rgba(11,22,45,0.04) inset !important; }

/* Send button: bold circular gradient */
.gmc-cbot-send-button {
	width: 46px !important;
	height: 46px !important;
	border-radius: 50% !important;
	background: linear-gradient(135deg,#06b6d4 0%,#3b82f6 100%) !important;
	box-shadow: 0 8px 26px rgba(6,182,212,0.18) !important;
	display:flex;align-items:center;justify-content:center;
}
.gmc-cbot-send-button svg { width:20px;height:20px;fill:#fff !important; }

/* Loading dots */
.gmc-cbot-loading-dot { background: rgba(15,23,42,0.16) !important; }

/* Rating controls below assistant messages */
.gmc-cbot-rating { display:flex;gap:8px;align-items:center;margin-top:8px }
.gmc-cbot-rating button { background:transparent;border:1px solid rgba(15,23,42,0.06);padding:6px 8px;border-radius:8px;cursor:pointer }
.gmc-cbot-rating button:hover { background:#06b6d4;color:#fff;border-color:transparent }
.gmc-cbot-rating .thumb { width:18px;height:18px;display:inline-block;vertical-align:middle }

/* Scrollbar styling */
.gmc-cbot-messages::-webkit-scrollbar{width:10px}
.gmc-cbot-widget {
	width: 380px;
	box-shadow: 0 8px 30px rgba(12,20,30,0.22);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
}
.gmc-cbot-messages::-webkit-scrollbar-thumb{background:rgba(15,23,42,0.06);border-radius:999px}


.gmc-cbot-message-text {
	margin: 0 !important;
	white-space: pre-wrap !important;
	text-align: left !important;
}

/* Quick Buttons */
.gmc-cbot-quick-buttons {
	padding: 16px 20px !important;
	background: #fff !important;
	background-color: #ffffff !important;
	border-top: 1px solid #E4E3E3 !important;
	border-top-color: #E4E3E3 !important;
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 12px !important;
	flex-shrink: 0 !important;
}

.gmc-cbot-quick-button {
	background: #F1F1F1 !important;
	background-color: #F1F1F1 !important;
	border: 1px solid #E4E3E3 !important;
	border-color: #E4E3E3 !important;
	border-radius: 20px !important;
	padding-top: 12px !important;
	padding-right: 16px !important;
	padding-bottom: 12px !important;
	padding-left: 16px !important;
	padding: 12px 16px !important;
	font-size: 13px !important;
	cursor: pointer !important;
	transition: all 0.2s !important;
	color: #333 !important;
	font-family: inherit !important;
	margin: 0 !important;
	margin-top: 0 !important;
	margin-right: 0 !important;
	margin-bottom: 0 !important;
	margin-left: 0 !important;
	display: inline-block !important;
	line-height: 1.4 !important;
	text-align: center !important;
	box-sizing: border-box !important;
}

.gmc-cbot-quick-button:hover {
	background: #F43676 !important;
	background-color: #F43676 !important;
	color: #fff !important;
	border-color: #F43676 !important;
}

.gmc-cbot-input-area {
	padding: 16px 20px !important;
	background: #fff !important;
	background-color: #ffffff !important;
	border-top: 1px solid #E4E3E3 !important;
	border-top-color: #E4E3E3 !important;
	display: flex !important;
	gap: 8px !important;
	flex-shrink: 0 !important;
	align-items: center !important;
}

.gmc-cbot-input {
	flex: 1 !important;
	border: 1px solid #E4E3E3 !important;
	border-color: #E4E3E3 !important;
	border-radius: 24px !important;
	padding: 10px 16px !important;
	font-size: 14px !important;
	font-family: inherit !important;
	outline: none !important;
	transition: border-color 0.2s !important;
	margin: 0 !important;
	background: #fff !important;
	color: #333 !important;
	resize: none !important;
	min-height: 48px !important;
	max-height: 180px !important;
	overflow: auto !important;
	line-height: 1.4 !important;
}

/* Ensure the send button and input line up visually */
.gmc-cbot-input-area { align-items: center !important; }
.gmc-cbot-send, .gmc-cbot-send-button { align-self: center !important; }
.gmc-cbot-input { padding-top: 6px !important; padding-bottom: 6px !important; }

/* Very high-specificity rules to guarantee user avatar on right for the exact DOM structure provided */
.gmc-cbot-messages > .gmc-cbot-message.user.gmc-cbot-user-right,
.gmc-cbot-messages > .gmc-cbot-message.gmc-cbot-user-right.user {
	display: flex !important;
	flex-direction: row-reverse !important;
	justify-content: flex-end !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
}
.gmc-cbot-messages > .gmc-cbot-message.user.gmc-cbot-user-right .gmc-cbot-message-avatar,
.gmc-cbot-messages > .gmc-cbot-message.gmc-cbot-user-right.user .gmc-cbot-message-avatar {
	order: 2 !important;
	margin-left: 12px !important;
	margin-right: 0 !important;
}
.gmc-cbot-messages > .gmc-cbot-message.user.gmc-cbot-user-right .gmc-cbot-message-content,
.gmc-cbot-messages > .gmc-cbot-message.gmc-cbot-user-right.user .gmc-cbot-message-content {
	order: 1 !important;
	text-align: right !important;
	display: block !important;
	flex: 1 1 auto !important;
}
/* Prevent user bubble from stretching to fill space — make it shrink-to-fit */
.gmc-cbot-messages > .gmc-cbot-message.user.gmc-cbot-user-right .gmc-cbot-message-content {
	flex: 0 0 auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	width: auto !important;
	max-width: 60% !important;
	min-width: 36px !important;
	padding: 8px 12px 8px 14px !important;
}
.gmc-cbot-messages > .gmc-cbot-message.user.gmc-cbot-user-right .gmc-cbot-message-content::after {
	right: -6px !important;
}

/* Ensure avatar does not collapse and sits to the right */
.gmc-cbot-messages > .gmc-cbot-message.user.gmc-cbot-user-right .gmc-cbot-message-avatar,
.gmc-cbot-messages > .gmc-cbot-message.gmc-cbot-user-right.user .gmc-cbot-message-avatar {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
}

.gmc-cbot-input:focus {
	border-color: #F43676 !important;
}

/* Compatibility: JS may generate slightly different classnames - ensure they get the same styles */
.gmc-cbot-quick-btn { 
	background: #F1F1F1 !important;
	border: 1px solid #E4E3E3 !important;
	border-radius: 20px !important;
	padding: 12px 16px !important;
	font-size: 13px !important;
	color: #333 !important;
	cursor: pointer !important;
	transition: all 0.2s !important;
	display: inline-block !important;
}
.gmc-cbot-quick-btn:hover { background: #F43676 !important; color: #fff !important; border-color: #F43676 !important; }

.gmc-cbot-send { /* alias for send button */
	background: #F43676 !important;
	background-color: #F43676 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 50% !important;
	width: 48px !important;
	height: 48px !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}
.gmc-cbot-send svg { width: 22px !important; height: 22px !important; fill: currentColor !important; }

/* Input placeholder styling to match visual */
.gmc-cbot-input::placeholder { color: #bdbdbd !important; opacity: 1 !important; }

.gmc-cbot-send-button {
	background: #F43676 !important;
	background-color: #F43676 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 50% !important;
	width: 48px !important;
	height: 48px !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background 0.2s !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.gmc-cbot-send-button:hover {
	background: #e52e6a !important;
	background-color: #e52e6a !important;
}

.gmc-cbot-send-button:disabled {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
}

.gmc-cbot-send-button svg {
	width: 20px !important;
	height: 20px !important;
	fill: currentColor !important;
}

/* Loading Indicator */
.gmc-cbot-loading {
	display: flex !important;
	gap: 4px !important;
	padding: 10px 14px !important;
	align-items: center !important;
}

.gmc-cbot-loading-dot {
	width: 8px !important;
	height: 8px !important;
	border-radius: 50% !important;
	background: #999 !important;
	animation: gmc-cbot-bounce 1.4s infinite ease-in-out !important;
}

.gmc-cbot-loading-dot:nth-child(1) {
	animation-delay: -0.32s !important;
}

.gmc-cbot-loading-dot:nth-child(2) {
	animation-delay: -0.16s !important;
}

@keyframes gmc-cbot-bounce {
	0%, 80%, 100% {
		transform: scale(0) !important;
	}
	40% {
		transform: scale(1) !important;
	}
}

/* Error Message */
.gmc-cbot-error {
	background: #fee !important;
	background-color: #fee !important;
	color: #c33 !important;
	padding: 10px 14px !important;
	border-radius: 12px !important;
	border: 1px solid #fcc !important;
	font-size: 13px !important;
}

/* Mobile Responsive - Full Screen on Smartphones ONLY */
@media (max-width: 767px) {
	/* Container: Full screen positioning ONLY when widget is visible */
	.gmc-cbot-container:has(.gmc-cbot-widget:not(.gmc-cbot-hidden)),
	body #gmc-chatbot-root .gmc-cbot-container:has(.gmc-cbot-widget:not(.gmc-cbot-hidden)),
	html body #gmc-chatbot-root .gmc-cbot-container:has(.gmc-cbot-widget:not(.gmc-cbot-hidden)) {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: 100vw !important;
		height: 100vh !important;
		max-width: 100vw !important;
		max-height: 100vh !important;
		margin: 0 !important;
		padding: 0 !important;
		z-index: 999999 !important;
		pointer-events: auto !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	/* Container should be hidden/normal when widget is hidden */
	.gmc-cbot-container:has(.gmc-cbot-widget.gmc-cbot-hidden),
	body #gmc-chatbot-root .gmc-cbot-container:has(.gmc-cbot-widget.gmc-cbot-hidden),
	html body #gmc-chatbot-root .gmc-cbot-container:has(.gmc-cbot-widget.gmc-cbot-hidden) {
		position: fixed !important;
		bottom: 20px !important;
		right: 20px !important;
		left: auto !important;
		top: auto !important;
		width: auto !important;
		height: auto !important;
		pointer-events: none !important;
		z-index: -1 !important;
		visibility: hidden !important;
		opacity: 0 !important;
	}

	/* Widget: Full screen dimensions ONLY when NOT hidden on mobile */
	.gmc-cbot-widget:not(.gmc-cbot-hidden) {
		width: 100vw !important;
		width: 100dvw !important; /* Dynamic viewport width for mobile browsers */
		height: 100vh !important;
		height: 100dvh !important; /* Dynamic viewport height for mobile browsers */
		max-width: 100vw !important;
		max-width: 100dvw !important;
		max-height: 100vh !important;
		max-height: 100dvh !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		border: none !important;
		margin: 0 !important;
		padding: 0 !important;
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		z-index: 999999 !important;
		pointer-events: auto !important;
		visibility: visible !important;
		opacity: 1 !important;
		transform: none !important;
		background: #ffffff !important;
		background-color: #ffffff !important;
		display: flex !important;
	}

	/* When hidden on mobile, ensure it's completely hidden and doesn't cover screen */
	.gmc-cbot-widget.gmc-cbot-hidden {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		z-index: -1 !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
		top: -9999px !important;
		left: -9999px !important;
	}

	/* Ensure all content inside widget is visible when open */
	.gmc-cbot-widget:not(.gmc-cbot-hidden) * {
		visibility: visible !important;
		opacity: 1 !important;
	}

	.gmc-cbot-widget:not(.gmc-cbot-hidden) .gmc-cbot-header,
	.gmc-cbot-widget:not(.gmc-cbot-hidden) .gmc-cbot-messages,
	.gmc-cbot-widget:not(.gmc-cbot-hidden) .gmc-cbot-input-area,
	.gmc-cbot-widget:not(.gmc-cbot-hidden) .gmc-cbot-quick-buttons {
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	/* Ensure container is always visible on mobile (widget controls its own visibility) */
	.gmc-cbot-container,
	body #gmc-chatbot-root .gmc-cbot-container,
	html body #gmc-chatbot-root .gmc-cbot-container {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}

	/* Header: Full width, no border radius */
	.gmc-cbot-header {
		border-radius: 0 !important;
		padding: 16px 20px !important;
	}

	/* Messages area: Adjust height to account for header and input */
	.gmc-cbot-messages {
		max-height: calc(100vh - 180px) !important;
		max-height: calc(100dvh - 180px) !important;
		padding: 16px 14px !important;
	}

	/* Input area: Full width */
	.gmc-cbot-input-area {
		padding: 12px 16px !important;
		border-top: 1px solid rgba(15,23,42,0.08) !important;
	}

	/* Input field: Touch-friendly sizing */
	.gmc-cbot-input {
		flex: 1 !important;
		min-height: 48px !important;
		padding: 12px 16px !important;
		font-size: 16px !important; /* Prevent zoom on iOS */
	}

	/* Send button: Larger for touch */
	.gmc-cbot-send-button,
	.gmc-cbot-send {
		width: 48px !important;
		height: 48px !important;
		min-width: 48px !important;
		min-height: 48px !important;
	}

	/* Toggle button: Keep visible and properly positioned */
	.gmc-cbot-toggle {
		bottom: 20px !important;
		right: 20px !important;
		z-index: 999998 !important;
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		position: fixed !important;
	}

	/* Toggle button active state - visual feedback */
	.gmc-cbot-toggle:active {
		transform: scale(0.95) !important;
		background: #e52e6a !important;
	}

	/* Message bubbles: Wider on mobile */
	.gmc-cbot-message-content {
		max-width: 85% !important;
	}

	/* Quick buttons: Full width on very small screens */
	.gmc-cbot-quick-buttons {
		padding: 12px 16px !important;
		gap: 10px !important;
	}

	.gmc-cbot-quick-button {
		font-size: 14px !important;
		padding: 10px 14px !important;
	}
}

/* Extra small devices - ensure full screen ONLY when visible */
@media (max-width: 480px) {
	.gmc-cbot-widget:not(.gmc-cbot-hidden) {
		width: 100vw !important;
		width: 100dvw !important;
		height: 100vh !important;
		height: 100dvh !important;
	}

	.gmc-cbot-messages {
		max-height: calc(100vh - 170px) !important;
		max-height: calc(100dvh - 170px) !important;
		padding: 14px 12px !important;
	}

	.gmc-cbot-header {
		padding: 14px 16px !important;
	}

	.gmc-cbot-input-area {
		padding: 10px 14px !important;
	}
}

/* Hide when closed */
.gmc-cbot-hidden {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Mobile: Ensure hidden class works properly and visible class shows widget */
@media (max-width: 767px) {
	.gmc-cbot-widget.gmc-cbot-hidden {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		position: fixed !important;
		z-index: -1 !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
		top: -9999px !important;
		left: -9999px !important;
	}

	/* CRITICAL: When NOT hidden, widget MUST be fully visible on mobile */
	.gmc-cbot-widget:not(.gmc-cbot-hidden) {
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		width: 100vw !important;
		width: 100dvw !important;
		height: 100vh !important;
		height: 100dvh !important;
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		z-index: 999999 !important;
		background: #ffffff !important;
		background-color: #ffffff !important;
	}

	/* Ensure container doesn't block when widget is hidden */
	.gmc-cbot-container:has(.gmc-cbot-widget.gmc-cbot-hidden) {
		pointer-events: none !important;
		z-index: -1 !important;
	}
}

/* Strong overrides to ensure user messages render on the right */
.gmc-cbot-message.user {
	flex-direction: row !important;
	justify-content: flex-end !important;
	align-items: flex-end !important;
}
.gmc-cbot-message.user .gmc-cbot-message-avatar {
	order: 2 !important;
	margin-left: 12px !important;
	margin-right: 0 !important;
}
.gmc-cbot-message.user .gmc-cbot-message-content {
	order: 1 !important;
	text-align: right !important;
}

/* Very specific rule for programmatic user-right class to override other styles */
.gmc-cbot-message.gmc-cbot-user-right {
	flex-direction: row !important;
	justify-content: flex-end !important;
}
.gmc-cbot-message.gmc-cbot-user-right .gmc-cbot-message-avatar {
	order: 2 !important;
	margin-left: 12px !important;
	margin-right: 0 !important;
}
.gmc-cbot-message.gmc-cbot-user-right .gmc-cbot-message-content {
	order: 1 !important;
	text-align: right !important;
}
