/**
 * WP-Conversations Live Support Floating Widget Styles
 * Ultra-modern, rounded, compact, and high-visibility UI/UX.
 */

:root {
	--cr-primary: #18ac84;
	--cr-primary-hover: #138f6d;
	--cr-primary-light: #e6f7f2;
	--cr-text: #0f172a;
	--cr-text-muted: #64748b;
	--cr-bg: #ffffff;
	--cr-border: #e2e8f0;
	--cr-radius-card: 20px;
	--cr-radius-btn: 12px;
	--cr-radius-chip: 9999px;
}

/* Base Floating Widget Container */
.cr-chat-widget {
	position: fixed !important;
	z-index: 2147483647 !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	font-size: 14px;
	line-height: 1.5;
	box-sizing: border-box;
	direction: ltr;
	text-align: left;
	-webkit-font-smoothing: antialiased;
	transition: bottom 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease !important;
}

.cr-chat-widget * {
	box-sizing: border-box !important;
}

.cr-chat-widget.bottom-right {
	bottom: 24px;
	right: 24px;
}

.cr-chat-widget.bottom-left {
	bottom: 24px;
	left: 24px;
}

/* Auto-elevate position when visitor scrolls down to avoid Back-To-Top button collision */
.cr-chat-widget.cr-scrolled.bottom-right {
	bottom: 84px !important;
}

.cr-chat-widget.cr-scrolled.bottom-left {
	bottom: 84px !important;
}

/* Floating Teaser / Greeting Bubble */
.cr-teaser-bubble {
	position: absolute;
	bottom: 66px;
	right: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #ffffff;
	padding: 10px 14px;
	border-radius: 16px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(24, 172, 132, 0.25);
	white-space: nowrap;
	cursor: pointer;
	animation: cr-slide-up-fade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	transform-origin: bottom right;
	transition: transform 0.2s, box-shadow 0.2s;
}

.cr-chat-widget.bottom-left .cr-teaser-bubble {
	right: auto;
	left: 0;
	transform-origin: bottom left;
}

.cr-teaser-bubble:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px -4px rgba(24, 172, 132, 0.22);
}

.cr-teaser-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--cr-primary-light);
	color: var(--cr-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.cr-teaser-text {
	display: flex;
	flex-direction: column;
	font-size: 12px;
	line-height: 1.3;
}

.cr-teaser-text strong {
	color: var(--cr-text);
	font-size: 13px;
	font-weight: 600;
}

.cr-teaser-text span {
	color: var(--cr-text-muted);
	font-size: 11px;
}

.cr-teaser-close {
	background: transparent !important;
	border: none !important;
	color: #94a3b8 !important;
	font-size: 16px !important;
	line-height: 1 !important;
	padding: 2px 4px !important;
	cursor: pointer;
	border-radius: 4px;
	margin-left: 2px;
}
.cr-teaser-close:hover {
	color: #475569 !important;
	background: #f1f5f9 !important;
}

/* Compact Rounded Floating Launcher Button */
.cr-chat-launcher {
	width: 54px !important;
	height: 54px !important;
	border-radius: 9999px !important;
	background: linear-gradient(135deg, var(--cr-primary) 0%, #118a6a 100%) !important;
	color: #ffffff !important;
	border: 2px solid rgba(255, 255, 255, 0.25) !important;
	cursor: pointer;
	box-shadow: 0 8px 24px -4px rgba(24, 172, 132, 0.45), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
	position: relative !important;
	outline: none !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
}

.cr-chat-launcher:hover {
	transform: scale(1.08) translateY(-2px);
	box-shadow: 0 12px 28px -4px rgba(24, 172, 132, 0.55), 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

.cr-chat-launcher:active {
	transform: scale(0.96);
}

.cr-chat-launcher svg {
	display: block;
	stroke: #ffffff !important;
	transition: transform 0.2s ease;
}

.cr-chat-launcher .cr-icon-close {
	display: none;
}

.cr-chat-widget.open .cr-chat-launcher .cr-icon-chat {
	display: none;
}

.cr-chat-widget.open .cr-chat-launcher .cr-icon-close {
	display: block;
}

/* Green Live Online Dot with Pulse */
.cr-online-dot {
	position: absolute;
	top: 1px;
	right: 1px;
	width: 13px;
	height: 13px;
	background-color: #22c55e;
	border: 2px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
	animation: cr-pulse 2s infinite;
}

@keyframes cr-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
	}
	70% {
		box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
	}
}

/* Unread Badge */
.cr-chat-unread-badge {
	position: absolute;
	top: -4px;
	left: -4px;
	background: #ef4444;
	color: #ffffff;
	border: 2px solid #ffffff;
	min-width: 20px;
	height: 20px;
	padding: 0 4px;
	border-radius: 9999px;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Compact Rounded Chat & Contact Form Window Frames */
.cr-chat-window,
.cr-contact-form-window {
	position: absolute;
	bottom: 70px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 520px;
	max-height: calc(100vh - 100px);
	background: #ffffff;
	border-radius: var(--cr-radius-card);
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.16), 0 0 1px 1px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: cr-slide-up-fade 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	transform-origin: bottom right;
	border: 1px solid var(--cr-border);
	z-index: 2147483647;
}

.cr-chat-widget.bottom-left .cr-chat-window,
.cr-chat-widget.bottom-left .cr-contact-form-window {
	transform-origin: bottom left;
	left: 0;
	right: auto;
}

.cr-chat-widget.bottom-right .cr-chat-window,
.cr-chat-widget.bottom-right .cr-contact-form-window {
	right: 0;
	left: auto;
}

@keyframes cr-slide-up-fade {
	0% {
		opacity: 0;
		transform: translateY(16px) scale(0.96);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Header */
.cr-chat-header {
	background: linear-gradient(135deg, var(--cr-primary) 0%, #118a6a 100%) !important;
	color: #ffffff !important;
	padding: 12px 16px !important;
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	flex-shrink: 0 !important;
}

.cr-header-avatar {
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.2) !important;
	backdrop-filter: blur(4px);
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #ffffff !important;
	flex-shrink: 0;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.cr-header-info {
	flex: 1;
	min-width: 0;
}

.cr-header-info h4 {
	margin: 0 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	line-height: 1.2 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cr-chat-status-text {
	font-size: 11px !important;
	color: rgba(255, 255, 255, 0.9) !important;
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 2px;
}

.cr-status-indicator {
	width: 6px;
	height: 6px;
	background-color: #4ade80;
	border-radius: 50%;
	display: inline-block;
}

.cr-header-actions {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
}

/* Specific button styling to prevent theme white override */
#cr-chat-widget .cr-chat-header button.cr-header-btn,
#cr-chat-widget .cr-header-btn {
	background: rgba(255, 255, 255, 0.2) !important;
	background-color: rgba(255, 255, 255, 0.2) !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	color: #ffffff !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.15s ease !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	text-indent: 0 !important;
}

#cr-chat-widget .cr-chat-header button.cr-header-btn:hover,
#cr-chat-widget .cr-header-btn:hover {
	background: rgba(255, 255, 255, 0.35) !important;
	background-color: rgba(255, 255, 255, 0.35) !important;
	transform: scale(1.06) !important;
}

#cr-chat-widget .cr-chat-header button.cr-header-btn:active,
#cr-chat-widget .cr-header-btn:active {
	transform: scale(0.92) !important;
}

#cr-chat-widget .cr-header-btn svg {
	stroke: #ffffff !important;
	display: block !important;
}

/* Nav Switcher: Live Chat vs Instant FAQ Answers */
.cr-chat-nav-switcher {
	display: flex;
	background: #f1f5f9;
	padding: 4px;
	border-bottom: 1px solid var(--cr-border);
	gap: 4px;
}

.cr-nav-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 6px 10px;
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	background: transparent;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.cr-nav-btn.active {
	background: #ffffff;
	color: var(--cr-primary);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cr-nav-btn svg {
	stroke: currentColor;
}

/* Screens Container */
.cr-chat-screen {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Screen 1: Start Chat */
#cr-chat-start-screen {
	padding: 14px;
	overflow-y: auto;
}

.cr-welcome-callout {
	background: var(--cr-primary-light);
	border: 1px solid rgba(24, 172, 132, 0.3);
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 12px;
	line-height: 1.4;
	color: #065f46;
	margin-bottom: 12px;
}

.cr-quick-chips {
	margin-bottom: 12px;
}

.cr-chips-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #94a3b8;
	margin-bottom: 6px;
}

.cr-chips-list {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.cr-chip-btn {
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	color: #334155 !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	padding: 6px 10px !important;
	border-radius: 8px !important;
	text-align: left !important;
	cursor: pointer !important;
	transition: all 0.15s ease !important;
}

.cr-chip-btn:hover {
	background: var(--cr-primary-light) !important;
	border-color: var(--cr-primary) !important;
	color: var(--cr-primary) !important;
}

.cr-form-field {
	margin-bottom: 10px;
}

.cr-form-field label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 4px;
}

.cr-form-field input[type="text"],
.cr-form-field input[type="email"],
.cr-form-field textarea {
	width: 100% !important;
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 10px !important;
	padding: 8px 10px !important;
	font-size: 12px !important;
	color: #0f172a !important;
	outline: none !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
	font-family: inherit !important;
}

.cr-form-field input:focus,
.cr-form-field textarea:focus {
	border-color: var(--cr-primary) !important;
	box-shadow: 0 0 0 3px rgba(24, 172, 132, 0.15) !important;
}

.cr-consent-wrap label {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 10px;
	color: #64748b;
	font-weight: normal;
	cursor: pointer;
}

.cr-consent-wrap input[type="checkbox"] {
	margin-top: 2px;
	accent-color: var(--cr-primary);
}

.cr-form-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 11px;
	margin-bottom: 10px;
}

.cr-btn-submit {
	width: 100% !important;
	background: linear-gradient(135deg, var(--cr-primary) 0%, #118a6a 100%) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: var(--cr-radius-btn) !important;
	padding: 10px 14px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	cursor: pointer !important;
	box-shadow: 0 4px 12px -2px rgba(24, 172, 132, 0.35) !important;
	transition: all 0.2s ease !important;
}

.cr-btn-submit:hover {
	background: linear-gradient(135deg, var(--cr-primary-hover) 0%, #0d7358 100%) !important;
	transform: translateY(-1px);
}

.cr-btn-submit:active {
	transform: scale(0.98);
}

/* Screen 2: Active Chat Messages */
.cr-chat-messages {
	flex: 1;
	padding: 14px;
	overflow-y: auto;
	background: #f8fafc;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cr-message-bubble {
	max-width: 85%;
	padding: 10px 12px;
	border-radius: 14px;
	font-size: 12px;
	line-height: 1.45;
	word-break: break-word;
	position: relative;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cr-message-customer {
	align-self: flex-end;
	background: linear-gradient(135deg, var(--cr-primary) 0%, #118a6a 100%);
	color: #ffffff;
	border-bottom-right-radius: 2px;
}

.cr-message-admin {
	align-self: flex-start;
	background: #ffffff;
	color: #1e293b;
	border: 1px solid #e2e8f0;
	border-bottom-left-radius: 2px;
}

.cr-message-meta {
	font-size: 9px;
	color: #94a3b8;
	margin-top: 3px;
	display: flex;
	align-items: center;
	gap: 3px;
}

.cr-message-customer .cr-message-meta {
	justify-content: flex-end;
}

.cr-chat-input-bar {
	padding: 8px 12px;
	background: #ffffff;
	border-top: 1px solid var(--cr-border);
	display: flex;
	align-items: flex-end;
	gap: 6px;
	position: relative;
}

/* WhatsApp-style dynamic auto-expanding input box */
.cr-chat-input-bar textarea {
	flex: 1;
	border: 1px solid #cbd5e1 !important;
	border-radius: 18px !important;
	padding: 8px 14px !important;
	font-size: 13px !important;
	line-height: 1.4 !important;
	resize: none !important;
	outline: none !important;
	font-family: inherit !important;
	height: 38px;
	min-height: 38px;
	max-height: 100px;
	overflow-y: hidden;
	background: #f8fafc !important;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.03) !important;
	transition: border-color 0.2s, background 0.2s, height 0.1s ease !important;
}

.cr-chat-input-bar textarea:focus {
	border-color: var(--cr-primary) !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(24, 172, 132, 0.12), inset 0 1px 2px rgba(0,0,0,0.02) !important;
}

/* Scrollbar when reaching max-height ~100px */
.cr-chat-input-bar textarea::-webkit-scrollbar {
	width: 4px;
}
.cr-chat-input-bar textarea::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.cr-chat-attach-btn {
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	border-radius: 8px;
	transition: background 0.15s;
}

.cr-chat-attach-btn:hover {
	background: #f1f5f9;
	color: var(--cr-primary);
}

.cr-chat-send-btn {
	background: var(--cr-primary) !important;
	border: none !important;
	color: #ffffff !important;
	width: 34px !important;
	height: 34px !important;
	border-radius: 10px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	transition: all 0.15s ease !important;
	flex-shrink: 0;
	padding: 0 !important;
}

.cr-chat-send-btn:hover {
	background: var(--cr-primary-hover) !important;
}

/* Screen 3: Instant Answers & FAQ Screen */
#cr-chat-faq-screen {
	padding: 12px;
	background: #f8fafc;
	overflow-y: auto;
}

.cr-faq-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
}

.cr-faq-search-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 6px 10px;
}

.cr-faq-search-wrap svg {
	color: #94a3b8;
	flex-shrink: 0;
}

.cr-faq-search-wrap input {
	flex: 1;
	border: none !important;
	outline: none !important;
	font-size: 12px !important;
	background: transparent !important;
	padding: 0 !important;
	box-shadow: none !important;
}

.cr-faq-categories {
	display: flex;
	gap: 5px;
	overflow-x: auto;
	padding-bottom: 2px;
}

.cr-faq-cat-pill {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-size: 10px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 9999px;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.15s;
}

.cr-faq-cat-pill.active,
.cr-faq-cat-pill:hover {
	background: var(--cr-primary);
	color: #ffffff;
	border-color: var(--cr-primary);
}

.cr-faq-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	overflow-y: auto;
}

.cr-faq-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.cr-faq-card:hover {
	border-color: #cbd5e1;
}

.cr-faq-question-btn {
	width: 100%;
	background: transparent;
	border: none;
	padding: 10px 12px;
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	color: #1e293b;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	cursor: pointer;
}

.cr-faq-question-btn svg {
	transition: transform 0.2s;
	color: #94a3b8;
	flex-shrink: 0;
}

.cr-faq-card.open .cr-faq-question-btn svg {
	transform: rotate(180deg);
	color: var(--cr-primary);
}

.cr-faq-answer-body {
	display: none;
	padding: 0 12px 10px;
	font-size: 11px;
	line-height: 1.45;
	color: #475569;
	border-top: 1px dashed #f1f5f9;
}

.cr-faq-card.open .cr-faq-answer-body {
	display: block;
	padding-top: 8px;
}

.cr-faq-footer-cta {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: auto;
}

.cr-faq-footer-cta span {
	font-size: 11px;
	color: #64748b;
}

.cr-faq-agent-btn {
	background: var(--cr-primary-light) !important;
	border: 1px solid var(--cr-primary) !important;
	color: var(--cr-primary) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	padding: 6px 12px !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	transition: all 0.15s ease !important;
}

.cr-faq-agent-btn:hover {
	background: var(--cr-primary) !important;
	color: #ffffff !important;
}

/* Sleek Floating Omnichannel Quick Bar with Modern Chips */
.cr-omnichannel-bar {
	background: #f8fafc;
	border-bottom: 1px solid var(--cr-border);
	padding: 8px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cr-omnichannel-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
}

.cr-omnichannel-badges {
	display: flex;
	align-items: center;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: thin;
}

/* Modern Floating Chips / Pills */
.cr-channel-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 9999px;
	font-size: 11.5px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	border: 1px solid rgba(226, 232, 240, 0.9);
	background: #ffffff;
	color: #334155;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	cursor: pointer;
}

.cr-channel-pill svg {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.cr-channel-pill:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.12);
}

.cr-channel-pill:hover svg {
	transform: scale(1.1);
}

.cr-pill-livechat {
	color: var(--cr-primary);
	border-color: rgba(24, 172, 132, 0.35);
	background: #ffffff;
}

.cr-pill-livechat.active,
.cr-pill-livechat:hover {
	background: var(--cr-primary-light);
	color: var(--cr-primary);
	border-color: var(--cr-primary);
	box-shadow: 0 2px 8px rgba(24, 172, 132, 0.2);
}

.cr-pill-whatsapp {
	color: #15803d;
	border-color: #bbf7d0;
	background: #ffffff;
}

.cr-pill-whatsapp:hover {
	background: #25D366;
	color: #ffffff;
	border-color: #25D366;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.cr-pill-telegram {
	color: #0369a1;
	border-color: #bae6fd;
	background: #ffffff;
}

.cr-pill-telegram:hover {
	background: #229ED9;
	color: #ffffff;
	border-color: #229ED9;
	box-shadow: 0 4px 12px rgba(34, 158, 217, 0.3);
}

.cr-pill-messenger {
	color: #1d4ed8;
	border-color: #bfdbfe;
	background: #ffffff;
}

.cr-pill-messenger:hover {
	background: #0084FF;
	color: #ffffff;
	border-color: #0084FF;
	box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3);
}

.cr-pill-call {
	color: #047857;
	border-color: #a7f3d0;
	background: #ffffff;
}

.cr-pill-call:hover {
	background: #059669;
	color: #ffffff;
	border-color: #059669;
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* ==========================================================================
   Clean Vertical Floating Menu (Speed-Dial Stack matching reference screenshot)
   ========================================================================== */

.cr-floating-menu {
	position: absolute !important;
	bottom: 68px !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
	z-index: 2147483646 !important;
	pointer-events: auto !important;
	animation: cr-menu-slide-up 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
	transform-origin: bottom right !important;
}

.cr-chat-widget.bottom-right .cr-floating-menu {
	right: 4px !important;
	left: auto !important;
	align-items: flex-end !important;
	transform-origin: bottom right !important;
}

.cr-chat-widget.bottom-left .cr-floating-menu {
	left: 4px !important;
	right: auto !important;
	align-items: flex-start !important;
	transform-origin: bottom left !important;
}

@keyframes cr-menu-slide-up {
	0% {
		opacity: 0;
		transform: translateY(14px) scale(0.94);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Speed Dial Row */
.cr-menu-item {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	text-decoration: none !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer !important;
	outline: none !important;
	user-select: none !important;
	-webkit-tap-highlight-color: transparent !important;
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	animation: cr-item-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) backwards !important;
}

.cr-chat-widget.bottom-right .cr-menu-item {
	justify-content: flex-end !important;
}

.cr-chat-widget.bottom-left .cr-menu-item {
	justify-content: flex-start !important;
	flex-direction: row-reverse !important;
}

@keyframes cr-item-pop {
	0% {
		opacity: 0;
		transform: translateY(10px) scale(0.88);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Staggered entrance for items */
.cr-menu-item:nth-child(1) { animation-delay: 0.03s !important; }
.cr-menu-item:nth-child(2) { animation-delay: 0.06s !important; }
.cr-menu-item:nth-child(3) { animation-delay: 0.09s !important; }
.cr-menu-item:nth-child(4) { animation-delay: 0.12s !important; }
.cr-menu-item:nth-child(5) { animation-delay: 0.15s !important; }
.cr-menu-item:nth-child(6) { animation-delay: 0.18s !important; }

/* Left Capsule / Label (Clean white capsule with bold text & soft shadow) */
.cr-menu-label {
	background: #ffffff !important;
	color: #0f172a !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	letter-spacing: -0.01em !important;
	padding: 7px 16px !important;
	border-radius: 9999px !important;
	box-shadow: 0 4px 14px -1px rgba(0, 0, 0, 0.1), 0 2px 5px -1px rgba(0, 0, 0, 0.05) !important;
	border: 1px solid rgba(226, 232, 240, 0.95) !important;
	white-space: nowrap !important;
	line-height: 1.3 !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	pointer-events: auto !important;
}

.cr-menu-item:hover .cr-menu-label {
	background: #ffffff !important;
	color: #020617 !important;
	box-shadow: 0 8px 20px -2px rgba(0, 0, 0, 0.14), 0 3px 8px rgba(0, 0, 0, 0.06) !important;
	border-color: rgba(203, 213, 225, 1) !important;
	transform: translateX(-3px) !important;
}

.cr-chat-widget.bottom-left .cr-menu-item:hover .cr-menu-label {
	transform: translateX(3px) !important;
}

/* Right Colorful Circular Icon Button */
.cr-menu-icon-btn {
	width: 48px !important;
	height: 48px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #ffffff !important;
	box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
	border: 2px solid rgba(255, 255, 255, 0.4) !important;
	flex-shrink: 0 !important;
	transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
	position: relative !important;
	overflow: hidden !important;
}

.cr-menu-icon-btn svg {
	display: block !important;
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
	stroke: currentColor !important;
}

.cr-menu-item:hover .cr-menu-icon-btn {
	transform: scale(1.1) !important;
	box-shadow: 0 10px 24px -2px rgba(0, 0, 0, 0.28), 0 4px 10px rgba(0, 0, 0, 0.12) !important;
	border-color: rgba(255, 255, 255, 0.8) !important;
}

.cr-menu-item:hover .cr-menu-icon-btn svg {
	transform: scale(1.08) !important;
}

.cr-menu-item:active {
	transform: scale(0.96) !important;
}

/* Channel Specific Colors */
.cr-btn-contact_form {
	background: linear-gradient(135deg, #ff4500 0%, #ff6e40 100%) !important;
	box-shadow: 0 6px 16px -2px rgba(255, 69, 0, 0.42), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.cr-btn-messenger {
	background: linear-gradient(135deg, #0084FF 0%, #A033FF 100%) !important;
	box-shadow: 0 6px 16px -2px rgba(0, 132, 255, 0.42), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.cr-btn-whatsapp {
	background: #25D366 !important;
	box-shadow: 0 6px 16px -2px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.cr-btn-livechat {
	background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
	box-shadow: 0 6px 16px -2px rgba(245, 158, 11, 0.42), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.cr-btn-telegram {
	background: #229ED9 !important;
	box-shadow: 0 6px 16px -2px rgba(34, 158, 217, 0.42), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.cr-btn-call {
	background: #059669 !important;
	box-shadow: 0 6px 16px -2px rgba(5, 150, 105, 0.42), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Mobile Responsiveness & Safe Offset (Floating above theme footer bottom navigation bars) */
@media (max-width: 768px) {
	.cr-chat-widget.bottom-right {
		bottom: 78px !important;
		right: 16px !important;
	}

	.cr-chat-widget.bottom-left {
		bottom: 78px !important;
		left: 16px !important;
	}

	.cr-chat-widget.cr-scrolled.bottom-right,
	.cr-chat-widget.cr-scrolled.bottom-left {
		bottom: 96px !important;
	}

	.cr-chat-window,
	.cr-contact-form-window {
		width: calc(100vw - 32px) !important;
		bottom: 68px !important;
		height: 480px !important;
		max-height: calc(100vh - 120px) !important;
	}

	.cr-floating-menu {
		bottom: 66px !important;
		gap: 10px !important;
	}

	.cr-menu-icon-btn {
		width: 44px !important;
		height: 44px !important;
	}

	.cr-menu-label {
		font-size: 13px !important;
		padding: 6px 14px !important;
	}
}
