/**
 * MyD Delivery - product tag and featured products.
 */

/* Tag on the product card */
.myd-product-item__tag-wrapper {
	flex-basis: 100%;
	width: 100%;
	margin-block-end: 6px;
}

.myd-product-item__tag {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	padding: 2px 10px;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	background: #fff;
	color: #333;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	text-overflow: ellipsis;
	vertical-align: middle;
	white-space: nowrap;
}

/* Featured products section */
.myd-featured {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-block-end: 16px;
}

.myd-featured[hidden] {
	display: none;
}

.myd-featured__list {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-block-end: 6px;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}

/* Class selectors win over theme styles for the "button" element. */
.myd-featured__item,
.myd-featured__item:hover,
.myd-featured__item:focus {
	display: flex;
	flex: 0 0 140px;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin: 0;
	padding: 10px;
	border: 1px solid #efefef;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	color: inherit;
	cursor: pointer;
	font: inherit;
	scroll-snap-align: start;
	text-align: left;
	text-transform: none;
}

.myd-featured__item:hover,
.myd-featured__item:focus {
	border-color: #d9d9d9;
}

.myd-featured__image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
	background: #ececec;
}

.myd-featured__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.myd-featured__name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.myd-featured__price.myd-product-item__price {
	font-size: 13px;
	text-align: left;
}
