/* Polished line-item spec display — cart, mini-cart, checkout review, thank-you page, My Account order view */

ul.variation,
ul.wc-item-meta {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 100%;
}

ul.variation li,
ul.wc-item-meta li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	line-height: 1.5;
	padding: 0;
	max-width: 100%;
}

/* Label: small, muted, uppercase — reads like a product spec sheet */
ul.variation li .item-variation-name,
ul.wc-item-meta li .wc-item-meta-label {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #8a8fa3;
}

ul.variation li .item-variation-value p {
	margin: 0;
	display: inline;
}

/* Value: a light pill so option choices read as distinct chips, not raw text */
ul.variation li .item-variation-value,
ul.wc-item-meta li .wc-item-meta-value {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	background: #f4f2f5;
	border-radius: 20px;
	font-size: 12.5px;
	font-weight: 500;
	color: #4a2f42;
}

/* Uploaded-logo rows carry an image, not short option text — present as a self-contained
   card (label above, framed thumbnail + filename below) instead of an inline chip, so it
   can never crowd or overflow past the neighbouring quantity/price columns. Matched by the
   presence of the thumbnail itself, not the row label, since that label is renamed to
   "Embroidered Logo" (see workstyle-cart-item-display.php). */
ul.variation li:has(img.wau-upload-img),
ul.wc-item-meta li:has(img.wau-upload-img) {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

ul.variation li:has(img.wau-upload-img) .item-variation-value,
ul.wc-item-meta li .wc-item-meta-value:has(img.wau-upload-img) {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	background: #faf9fa;
	border: 1px solid #ececec;
	border-radius: 10px;
	max-width: 100%;
	box-sizing: border-box;
}

ul.variation li .item-variation-value img.wau-upload-img,
ul.wc-item-meta li .wc-item-meta-value img.wau-upload-img {
	flex: 0 0 auto;
}

.wau-upload-filename {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Uploaded artwork thumbnail — frame the existing thumbnail, don't fight its sizing */
.wau-upload-img,
img.wau-upload-img {
	border: 1px solid #e7e4e8;
	border-radius: 8px !important;
	box-shadow: 0 1px 3px rgba(31, 38, 65, 0.08);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	max-width: 100%;
}

.wau-upload-img:hover,
img.wau-upload-img:hover {
	transform: scale(1.03);
	box-shadow: 0 4px 10px rgba(31, 38, 65, 0.14);
}

.wau-upload-filename a {
	color: #6b3f5c;
	text-decoration: none;
}

.wau-upload-filename a:hover {
	text-decoration: underline;
}
