/* Avi Support Assistant Pro – chat additions. */

.avcap-mic,
.avcap-speaker {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.avcap-mic {
	width: 42px;
	height: 42px;
	color: var(--avca-muted);
}

.avcap-mic:hover,
.avcap-mic:focus {
	background: var(--avca-bot-bg);
	color: var(--avca-color);
}

.avcap-mic svg,
.avcap-speaker svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.avcap-mic.is-listening {
	background: #dc2626;
	color: #fff;
	animation: avcap-pulse 1.2s ease-in-out infinite;
}

@keyframes avcap-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5);
	}

	50% {
		box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
	}
}

.avcap-speaker {
	width: 34px;
	height: 34px;
	color: #fff;
}

.avcap-speaker:hover,
.avcap-speaker:focus {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.avcap-speaker.is-muted {
	opacity: 0.7;
}

/* Product cards. */
.avcap-products {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
	white-space: normal;
}

.avcap-product {
	display: flex;
	gap: 10px;
	padding: 8px;
	border: 1px solid var(--avca-border);
	border-radius: 12px;
	background: var(--avca-bg);
}

.avcap-product img {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
}

.avcap-product-info {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.avcap-product-info strong {
	overflow: hidden;
	font-size: 14px;
	line-height: 1.3;
	text-overflow: ellipsis;
}

.avcap-product-price {
	color: var(--avca-muted);
	font-size: 13px;
}

.avcap-product-actions {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}

.avcap-product-actions a {
	padding: 3px 12px;
	border: 1px solid var(--avca-color);
	border-radius: 14px;
	color: var(--avca-color);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.avcap-product-actions a.is-primary {
	background: var(--avca-color);
	color: #fff;
}

.avcap-product-actions a:hover,
.avcap-product-actions a:focus {
	text-decoration: none;
	filter: brightness(1.08);
}

@media (prefers-reduced-motion: reduce) {
	.avcap-mic.is-listening {
		animation: none;
	}
}
