/*
 * OG WooAi product cards under a chatbot reply.
 * The chatbot gives every image inline sizes, so the image rules use !important.
 */
.ogwa-carousel {
	display: flex;
	gap: 10px;
	margin: 8px 0 4px;
	padding: 2px 2px 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	white-space: normal;
}

.ogwa-carousel > a,
.ogwa-carousel > a:hover,
.ogwa-carousel > a:focus {
	flex: 0 0 150px;
	color: inherit !important;
	text-decoration: none !important;
	scroll-snap-align: start;
}

.ogwa-carousel > a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 8px;
}

.ogwa-carousel .ogwa-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	box-sizing: border-box;
	padding: 8px;
	border: 1px solid rgba(127, 127, 127, 0.3);
	border-radius: 8px;
	background: rgba(127, 127, 127, 0.06);
	font-size: 13px;
	line-height: 1.3;
}

.ogwa-carousel > a:hover .ogwa-card {
	border-color: rgba(127, 127, 127, 0.6);
}

.ogwa-carousel .ogwa-card-image {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: 120px !important;
	max-height: 120px !important;
	margin: 0 !important;
	border-radius: 6px;
	object-fit: cover;
	cursor: pointer !important;
	background: rgba(127, 127, 127, 0.15);
}

.ogwa-carousel .ogwa-card-name {
	display: -webkit-box;
	overflow: hidden;
	font-weight: 600;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ogwa-carousel .ogwa-card-price del {
	margin-right: 4px;
	opacity: 0.6;
}

.ogwa-carousel .ogwa-card-stock {
	align-self: flex-start;
	margin-top: auto;
	padding: 1px 6px;
	border-radius: 10px;
	font-size: 11px;
	background: rgba(127, 127, 127, 0.15);
}

.ogwa-carousel .ogwa-in-stock {
	background: rgba(0, 138, 32, 0.15);
}

.ogwa-carousel .ogwa-out-of-stock {
	background: rgba(179, 45, 46, 0.15);
}

.ogwa-carousel .ogwa-backorder {
	background: rgba(153, 104, 0, 0.15);
}

@media (prefers-reduced-motion: no-preference) {
	.ogwa-carousel {
		scroll-behavior: smooth;
	}
}
