/* Side cart (Shopify style). Brand colours: the --vx-* tokens below. */

.cart-widget-side {
	--vx-ink: #3b2482;
	--vx-text: #241b3d;
	--vx-line: #e4e0ee;
	--vx-field: #d3cde3;
	--vx-muted: #6e6884;
	--vx-red: #b4332a;
	--wd-side-hidden-w: 440px;
	max-width: 100%;
}

.vx-sc-list { padding: 0 !important; }
.vx-sc-item.woocommerce-mini-cart-item {
	position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: start;
	padding: 20px 44px 20px 20px; margin: 0; border-bottom: 1px solid var(--vx-line);
}
.vx-sc-item:hover { background: none; }
.vx-sc-item .vx-sc-item__img { width: 80px; margin: 0; }
.vx-sc-item .vx-sc-item__img img {
	width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--vx-line); margin: 0;
}
.vx-sc-item__info { padding: 0; }
.vx-sc-item .vx-sc-item__name { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--vx-text); margin: 0 0 2px; }
.vx-sc-item .variation { margin: 0 0 8px; font-size: 13px; color: var(--vx-muted); }
.vx-sc-item .variation dt, .vx-sc-item .variation dd { display: inline; margin: 0; }
.vx-sc-item .variation dd p { display: inline; margin: 0; }
.vx-sc-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.vx-sc-item__price { white-space: nowrap; font-size: 15px; }
.vx-sc-item__price del { color: var(--vx-red); margin-right: 6px; font-size: 14px; }
.vx-sc-item__price span { font-weight: 700; color: var(--vx-text); }

/* Woodmart draws the cross via ::before, so the link text is hidden. */
.vx-sc-item .vx-sc-item__remove.remove {
	position: absolute; top: 18px; right: 14px; left: auto; width: 24px; height: 24px; line-height: 24px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: #efecf6; color: var(--vx-text); font-size: 0; opacity: 1;
}
.vx-sc-item .vx-sc-item__remove.remove::before { font-size: 10px; }
.vx-sc-item .vx-sc-item__remove.remove:hover { background: var(--vx-ink); color: #fff; }

.widget_shopping_cart .vx-qty {
	display: inline-flex; align-items: center; height: 34px;
	border: 1px solid var(--vx-field); border-radius: 8px; background: #fff;
}
.widget_shopping_cart .vx-qty__btn {
	width: 34px; height: 32px; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none;
	color: var(--vx-text); font-size: 16px; line-height: 1; cursor: pointer;
}
.widget_shopping_cart .vx-qty__val { min-width: 24px; text-align: center; font-size: 14px; }
.widget_shopping_cart .vx-qty.is-loading { opacity: .5; pointer-events: none; }

.vx-sc-footer.shopping-cart-widget-footer { padding: 18px 20px 20px; border-top: 1px solid var(--vx-line); }
.vx-sc-totals__row { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; }
.vx-sc-totals__row--disc { color: var(--vx-red); font-weight: 600; font-size: 15px; }
.vx-sc-totals__row--total { font-size: 20px; font-weight: 700; color: var(--vx-text); margin-bottom: 14px; }

.widget_shopping_cart .vx-sc-cta.button {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px;
	border-radius: 10px; background: var(--vx-ink); color: #fff; font-size: 15px; font-weight: 700;
	letter-spacing: .04em; text-transform: uppercase; margin: 0;
}
.widget_shopping_cart .vx-sc-cta.button:hover { background: #2c1a66; color: #fff; }

.vx-sc-trust { list-style: none; margin: 14px 0 0; padding: 0; }
.vx-sc-trust li {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	margin: 0 0 6px; font-size: 13px; color: var(--vx-text); list-style: none;
}

/* Narrow side cart (Woodmart makes it 300px on phones). Woodmart's own
 * .woocommerce-mini-cart-item rules are more specific, hence the long selectors. */
.cart-widget-side .widget_shopping_cart .vx-sc-item.woocommerce-mini-cart-item {
	grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 16px 44px 16px 16px;
}
.cart-widget-side .widget_shopping_cart .vx-sc-item .vx-sc-item__img,
.cart-widget-side .widget_shopping_cart .vx-sc-item .vx-sc-item__img img { width: 64px; height: 64px; }
.cart-widget-side .widget_shopping_cart .vx-sc-item__info { min-width: 0; }
.cart-widget-side .widget_shopping_cart .vx-sc-item .vx-sc-item__name { overflow-wrap: anywhere; }
.cart-widget-side .widget_shopping_cart .vx-sc-item__row { flex-wrap: wrap; row-gap: 6px; }
