#cvc-chat-widget-root {
	position: fixed;
	z-index: 999999;
	bottom: 24px;
	right: 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cvc-bubble {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #f0ad4e;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	position: relative;
	transition: transform 0.15s ease;
}
.cvc-bubble:hover {
	transform: scale(1.06);
}

.cvc-bubble-alert {
	animation: cvc-bounce 0.6s ease 2;
}

@keyframes cvc-bounce {
	0%, 100% { transform: translateY(0); }
	30% { transform: translateY(-10px); }
	50% { transform: translateY(0); }
	65% { transform: translateY(-5px); }
}

.cvc-bubble-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: #e74c3c;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.cvc-panel {
	position: fixed;
	bottom: 96px;
	right: 24px;
	width: 340px;
	height: 480px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	display: none;
	flex-direction: column;
	overflow: hidden;
}
.cvc-panel.cvc-open {
	display: flex;
}

.cvc-panel-header {
	background: #f0ad4e;
	color: #fff;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	font-size: 15px;
}
.cvc-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
}

.cvc-panel-body {
	position: relative;
	flex: 1;
	overflow: hidden;
}

.cvc-list {
	position: absolute;
	inset: 0;
	overflow-y: auto;
}

.cvc-row {
	padding: 10px 16px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}
.cvc-row:hover {
	background: #fafafa;
}
.cvc-row-name {
	font-weight: 600;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.cvc-row-preview {
	font-size: 12px;
	color: #888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 2px;
}
.cvc-row-badge {
	background: #e74c3c;
	color: #fff;
	font-size: 10px;
	border-radius: 8px;
	padding: 1px 6px;
}

.cvc-empty {
	padding: 24px 16px;
	color: #888;
	font-size: 13px;
	text-align: center;
}
.cvc-login-link {
	display: inline-block;
	margin-top: 10px;
	background: #f0ad4e;
	color: #fff;
	padding: 6px 14px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 13px;
}

.cvc-thread {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.2s ease;
	background: #fff;
}
.cvc-panel-body.cvc-thread-open .cvc-thread {
	transform: translateX(0);
}

.cvc-thread-header {
	padding: 10px 14px;
	border-bottom: 1px solid #eee;
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 14px;
}
.cvc-thread-header-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	overflow: hidden;
}
.cvc-thread-subtitle {
	font-weight: 400;
	font-size: 11px;
	color: #999;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cvc-back {
	background: none;
	border: none;
	font-size: 16px;
	cursor: pointer;
}

.cvc-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #f7f7f7;
}

.cvc-msg {
	display: flex;
}
.cvc-msg-mine {
	justify-content: flex-end;
}
.cvc-msg-bubble {
	max-width: 75%;
	padding: 8px 12px;
	border-radius: 14px;
	font-size: 13px;
	line-height: 1.4;
	word-wrap: break-word;
}
.cvc-msg-theirs .cvc-msg-bubble {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-bottom-left-radius: 4px;
}
.cvc-msg-mine .cvc-msg-bubble {
	background: #f0ad4e;
	color: #fff;
	border-bottom-right-radius: 4px;
}

.cvc-composer {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #eee;
}
.cvc-composer textarea {
	flex: 1;
	resize: none;
	height: 38px;
	border-radius: 8px;
	border: 1px solid #ddd;
	padding: 8px 10px;
	font-size: 13px;
	font-family: inherit;
}
.cvc-composer button {
	background: #f0ad4e;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 16px;
	font-size: 13px;
	cursor: pointer;
}

/* Store page + product page inline button */
.cvc-store-chat-btn-wrap {
	list-style: none;
	display: inline-block;
}
.cvc-product-chat-btn-wrap {
	margin: 12px 0;
}
.cvc-chat-now-btn {
	background: #f0ad4e !important;
	color: #fff !important;
	border: none;
	cursor: pointer;
}

@media (max-width: 480px) {
	.cvc-panel {
		width: calc(100vw - 24px);
		right: 12px;
		height: 70vh;
	}
	#cvc-chat-widget-root {
		right: 12px;
		bottom: 16px;
	}
}
