/*
 * Adidas jersey-type cards (product page linked variations).
 *
 * Measured against the Adidas PDP card row:
 * row 96px, gap 8px, padding 8px 8px 8px 16px,
 * title and price 16/20, description 14/20 with 4px above it,
 * image 80px, unselected 1px #eceff1, selected 2px #000.
 * The list is 2.5 rows tall and scrolls inside itself.
 * At the top or the bottom, the rest of a wheel or touch gesture scrolls the page.
 * Phones keep the touch on this list even with overscroll-behavior: auto.
 * assets/js/frontend.js lets the page take a gesture that starts at either end.
 */

.single-product .wpclv-attributes {
	--rz-lv-card-size: 96px;
	--rz-lv-card-gap: 8px;
	width: 100%;
	max-width: 100%;
	color: #000;
}

/*
 * Below the Shop {category} link, Style / Color sat on the border.
 * 20px is the same gap that sits above Add Personalization - Optional:
 * the size row's margin-bottom collapses to 20px.
 */
.single-product .entry-summary .rz-shop-category-link + .wpclv-attributes {
	margin-top: 20px;
}

.single-product .wpclv-attributes .wpclv-attribute {
	margin-bottom: 16px;
}

.single-product .wpclv-attributes .wpclv-attribute-label {
	margin: 0 0 8px;
	color: #000;
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	text-align: left;
}

.single-product .wpclv-attributes .wpclv-terms {
	display: flex;
	flex-flow: column nowrap;
	align-items: stretch;
	gap: var(--rz-lv-card-gap);
	width: 100%;
	max-height: calc(2.5 * var(--rz-lv-card-size) + 2 * var(--rz-lv-card-gap));
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: auto;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	scrollbar-width: thin;
	scrollbar-color: #767677 transparent;
	box-sizing: border-box;
}

.single-product .wpclv-attributes .wpclv-terms a {
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

.single-product .wpclv-attributes .wpclv-terms > .rz-lv-scroll-track {
	display: flex;
	flex: 0 0 auto;
	flex-flow: column nowrap;
	align-items: stretch;
	gap: var(--rz-lv-card-gap);
	width: 100%;
	min-width: 0;
}

.single-product .wpclv-attributes .wpclv-terms .wpclv-term.rz-lv-card {
	display: block;
	flex: 0 0 var(--rz-lv-card-size);
	width: 100% !important;
	height: var(--rz-lv-card-size);
	min-width: 0;
	min-height: var(--rz-lv-card-size);
	margin: 0;
	padding: 0;
	float: none;
	border: 1px solid #eceff1;
	border-radius: 0;
	background: #fff;
	color: #000;
	line-height: normal;
	text-align: left;
	box-sizing: border-box;
	overflow: hidden;
}

.single-product .wpclv-attributes .wpclv-terms .wpclv-term.rz-lv-card:hover {
	border-color: #000;
}

.single-product .wpclv-attributes .wpclv-terms .wpclv-term.rz-lv-card.active,
.single-product .wpclv-attributes .wpclv-terms .wpclv-term.rz-lv-card.active:hover {
	border-color: #000;
	box-shadow: inset 0 0 0 1px #000;
}

.single-product .wpclv-attributes .wpclv-terms .rz-lv-card .rz-lv-card__link {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 8px 8px 8px 16px;
	background: #fff;
	color: #000;
	line-height: normal;
	text-decoration: none;
	white-space: normal;
	border-radius: 0;
	box-shadow: none;
	box-sizing: border-box;
}

.single-product .wpclv-attributes .wpclv-terms .rz-lv-card a.rz-lv-card__link {
	cursor: pointer;
}

.single-product .wpclv-attributes .wpclv-terms .rz-lv-card .rz-lv-card__link:hover,
.single-product .wpclv-attributes .wpclv-terms .rz-lv-card .rz-lv-card__link:focus {
	color: #000;
	text-decoration: none;
	background: #fff;
}

.single-product .wpclv-attributes .wpclv-terms .rz-lv-card .rz-lv-card__link:focus-visible {
	outline: 2px solid #000;
	outline-offset: -4px;
}

.single-product .wpclv-attributes .wpclv-terms .rz-lv-card span {
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	background: transparent;
	background-color: transparent;
	border-radius: 0;
	line-height: inherit;
	white-space: normal;
	box-shadow: none;
}

.single-product .wpclv-attributes .wpclv-terms .rz-lv-card span.rz-lv-card__copy {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	width: auto;
	min-width: 0;
	background: transparent;
}

.single-product .wpclv-attributes .wpclv-terms .rz-lv-card span.rz-lv-card__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	width: 100%;
	gap: 16px;
	min-width: 0;
	background: transparent;
}

.single-product .wpclv-attributes .wpclv-terms .rz-lv-card span.rz-lv-card__title {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	overflow: hidden;
	color: #000;
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	letter-spacing: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
	background: transparent;
}

.single-product .wpclv-attributes .wpclv-terms .rz-lv-card span.rz-lv-card__price {
	flex: 0 0 auto;
	width: auto;
	color: #000;
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 0;
	white-space: nowrap;
	background: transparent;
}

.single-product .wpclv-attributes .wpclv-terms .rz-lv-card span.rz-lv-card__desc {
	display: block;
	width: 100%;
	margin-top: 4px;
	overflow: hidden;
	color: #000;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
	background: transparent;
}

.single-product .wpclv-attributes .wpclv-terms .rz-lv-card span.rz-lv-card__media {
	display: flex;
	flex: 0 0 80px;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background: transparent;
}

.single-product .wpclv-attributes .wpclv-terms .rz-lv-card__media img {
	display: block;
	width: 80px !important;
	height: 80px !important;
	max-width: 80px !important;
	margin: 0;
	object-fit: contain;
	background: #fff;
}
