/*
 * Vinolibano — WooCommerce pages: notices, breadcrumb, product cards, the wine page, basket,
 * checkout and account. Loaded after WooCommerce's own styles, which it adjusts.
 */

/* ---------------------------------------------------------------- general */

/* No white boxes on the cream page: warm panels, see-through fields with a soft line. */
:root {
	--vl-panel: #ebe3d7;
	--vl-field-line: rgba(51, 51, 51, .22);
}

/* Prices and quantities in even-height figures (Raleway's text figures rise and fall). */
.woocommerce-Price-amount,
.woocommerce .quantity .qty,
.woocommerce table.shop_table td,
.woocommerce ul.order_details li strong {
	font-variant-numeric: lining-nums;
}

/* WooCommerce's own fields read these. */
.woocommerce,
.woocommerce-page {
	--wc-form-border-color: var(--vl-field-line);
	--wc-form-border-radius: 0;
	--wc-form-color-background: transparent;
	--wc-form-color-text: var(--vl-ink);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 13px 24px;
	border: 1px solid var(--vl-wine);
	border-radius: 0;
	background: var(--vl-wine);
	color: #fff;
	font: 700 12px/1.4 var(--vl-sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	transition: background-color .2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.wc-block-components-button:not(.is-link):hover {
	border-color: var(--vl-wine-dark);
	background: var(--vl-wine-dark);
	color: #fff;
}

.woocommerce a.button.disabled,
.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt:disabled {
	border-color: var(--vl-wine);
	background: var(--vl-wine);
	color: #fff;
	opacity: .5;
}

.woocommerce .quantity .qty {
	width: 4.6em;
	min-height: 46px;
	text-align: center;
}

.woocommerce-noreviews,
p.no-comments {
	border-top-color: var(--vl-wine);
	background: #fff;
	color: var(--vl-ink);
}

/* Notices: a white bar with a coloured edge and its own small icon (not WooCommerce's icon font). */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.vl-entry .woocommerce-error {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	margin: 0 0 16px;
	padding: 14px 20px 14px 52px;
	border: 0;
	border-left: 3px solid var(--vl-wine);
	background: rgba(90, 14, 20, .05);
	color: var(--vl-ink);
	font-size: 15px;
	line-height: 1.5;
}

.woocommerce-message {
	border-left-color: #4f7a45;
	background: rgba(79, 122, 69, .09);
}

.woocommerce-info {
	border-left-color: var(--vl-gold);
	background: rgba(198, 165, 113, .16);
}

.woocommerce-error,
.vl-entry .woocommerce-error {
	flex-direction: column;
	align-items: stretch;
	border-left-color: #b3261e;
	background: rgba(179, 38, 30, .07);
}

.woocommerce-error li {
	margin: 0;
	padding: 0;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	content: "";
	position: absolute;
	top: 16px;
	left: 20px;
	width: 20px;
	height: 20px;
	background: #4f7a45;
	-webkit-mask: var(--vl-notice-icon) center / contain no-repeat;
	mask: var(--vl-notice-icon) center / contain no-repeat;
	--vl-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.2L4.5 10l1.4-1.4 2.9 2.8 5.3-5.3 1.4 1.4-6.7 6.7z'/%3E%3C/svg%3E");
}

.woocommerce-info::before {
	background: var(--vl-gold-text);
	--vl-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15H9V9h2v6zm0-8H9V5h2v2z'/%3E%3C/svg%3E");
}

.woocommerce-error::before {
	background: #b3261e;
	--vl-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15H9v-2h2v2zm0-4H9V5h2v6z'/%3E%3C/svg%3E");
}

.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after {
	display: none;
}

.woocommerce-message:focus,
.woocommerce-info:focus,
.woocommerce-error:focus {
	outline: none;
}

.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button {
	order: 2;
	min-height: 0;
	margin-left: auto;
	padding: 8px 16px;
	border-color: var(--vl-wine);
	background: transparent;
	color: var(--vl-wine);
	font-size: 11px;
}

.woocommerce .woocommerce-message .button:hover,
.woocommerce .woocommerce-info .button:hover {
	background: var(--vl-wine);
	color: #fff;
}

.woocommerce .star-rating span::before,
.woocommerce p.stars a,
.woocommerce .star-rating::before {
	color: var(--vl-gold);
}

.woocommerce span.onsale {
	top: 12px;
	right: auto;
	left: 12px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 4px 10px;
	border-radius: 0;
	background: var(--vl-wine);
	color: #fff;
	font: 700 11px/1.4 var(--vl-sans);
	letter-spacing: .08em;
	text-transform: uppercase;
}

.woocommerce .woocommerce-breadcrumb {
	margin: 0;
	color: var(--vl-wine-text);
	font-size: 15px;
}

.woocommerce .woocommerce-breadcrumb a {
	color: var(--vl-ink);
	text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
	color: var(--vl-wine);
	text-decoration: underline;
}

/*
 * Old CSS snippets on the site (Code Snippets plugin, from the page-builder days) make every
 * price 12px and the basket buttons in product lists tiny (some with !important): undone here,
 * as long as they are switched on.
 */
.woocommerce-Price-amount.amount,
.woocommerce-Price-amount .woocommerce-Price-currencySymbol {
	font-size: inherit;
	font-weight: inherit;
}

.woocommerce ul.products li.product a.button {
	display: inline-flex !important;
	width: auto;
	margin-top: 0;
	padding: 9px 16px !important;
	border: 1px solid var(--vl-wine) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: .14em !important;
	text-align: center;
}

/* ------------------------------------------------------------ shop lists */

.woocommerce-products-header__title,
.woocommerce .page-title {
	margin-bottom: .3em;
}

.term-description {
	max-width: var(--vl-narrow);
	font-size: 17px;
}

.woocommerce .woocommerce-result-count {
	margin: 8px 0 24px;
	font-size: 14px;
}

.woocommerce .woocommerce-ordering {
	margin-bottom: 24px;
}

.woocommerce ul.products {
	--vl-cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--vl-cols), minmax(0, 1fr));
	gap: 44px 26px;
	clear: both;
	margin: 0 0 40px;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
	display: flex;
	flex-direction: column;
	width: auto;
	margin: 0;
	float: none;
	clear: none;
	text-align: left;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex: 1;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.woocommerce ul.products li.product a img {
	width: 100%;
	margin: 0 0 16px;
	padding: 12px;
	background: #fff;
	aspect-ratio: 1;
	object-fit: contain;
	transition: box-shadow .3s ease;
}

.woocommerce ul.products li.product:hover a img {
	box-shadow: 0 18px 36px -22px rgba(63, 9, 14, .45);
}

.vl-loop-winery {
	margin: 0 0 6px;
	color: var(--vl-gold-text);
	font: 700 11px/1.3 var(--vl-label);
	letter-spacing: .14em;
	text-transform: uppercase;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 10px;
	padding: 0 0 10px;
	border-bottom: 1px solid var(--vl-line);
	color: var(--vl-wine-text);
	font: italic 500 23px/1.2 var(--vl-serif);
}

.vl-loop-specs {
	margin: 0 0 8px;
	color: var(--vl-text);
	font-size: 13px;
	line-height: 1.5;
}

.woocommerce ul.products li.product .price {
	margin: auto 0 12px;
	color: var(--vl-wine);
	font-size: 15px;
}

.woocommerce ul.products li.product .price del {
	opacity: .6;
}

.woocommerce ul.products li.product .price ins {
	font-weight: 700;
	text-decoration: none;
}

.woocommerce ul.products li.product .button {
	align-self: flex-start;
	margin-top: 0;
	min-height: 40px;
	padding: 9px 16px;
	font-size: 11px;
}

.woocommerce ul.products li.product .onsale {
	top: 10px;
	right: auto;
	left: 10px;
	margin: 0;
}

.woocommerce ul.products li.product a.added_to_cart {
	padding-top: 8px;
	font-size: 13px;
	font-weight: 700;
}

.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 44px;
	padding: 12px;
	color: var(--vl-wine-text);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--vl-wine);
	color: #fff;
}

@media (max-width: 1024px) {
	.woocommerce ul.products {
		--vl-cols: 3;
	}
}

@media (max-width: 768px) {
	.woocommerce ul.products {
		--vl-cols: 2;
		gap: 32px 16px;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 20px;
	}

	.woocommerce ul.products li.product a.button {
		align-self: stretch;
		padding: 9px 8px !important;
		letter-spacing: .08em !important;
	}
}

/* --------------------------------------------------------- product pages */

.vl-product-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
}

.woocommerce div.product {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 60px;
	align-items: start;
}

.woocommerce div.product > * {
	grid-column: 1 / -1;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	width: auto;
	margin: 0 0 40px;
	float: none;
}

.woocommerce div.product div.images {
	grid-column: 1;
}

.woocommerce div.product div.summary {
	grid-column: 2;
}

/* WooCommerce hides the photo until its script runs, which the cache plugin delays until the first
   touch or scroll: a blank square on phones. Shown at once. */
.woocommerce div.product div.images.woocommerce-product-gallery {
	opacity: 1 !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .flex-viewport {
	background: #fff;
}

.woocommerce div.product div.images img {
	padding: 24px;
	background: #fff;
}

.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	width: 80px;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
	padding: 6px;
}

.woocommerce div.product .product_title {
	margin: 0;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--vl-line);
	font-size: clamp(36px, 4vw, 48px);
}

.vl-product-terms {
	margin: 16px 0 22px;
	color: var(--vl-ink);
	font-size: 15px;
}

.vl-product-term-label {
	color: var(--vl-wine-text);
}

.vl-product-terms a {
	color: var(--vl-ink);
	text-decoration: none;
}

.vl-product-terms a:hover {
	color: var(--vl-wine);
	text-decoration: underline;
}

.vl-product-specs {
	margin: 0 0 20px;
	color: var(--vl-text);
	font-size: 17px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	margin-bottom: 24px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	margin: 0 0 18px;
	color: var(--vl-wine);
	font-size: 24px;
}

.woocommerce div.product p.price del {
	font-size: .75em;
	opacity: .6;
}

.woocommerce div.product p.price ins {
	font-weight: 600;
	text-decoration: none;
}

.woocommerce div.product .stock {
	color: var(--vl-gold-text);
}

.woocommerce div.product .stock.out-of-stock {
	color: var(--vl-wine);
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	margin-bottom: 0;
}

/* WooCommerce's float clearing would add empty items to this row. */
.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after {
	display: none;
}

.woocommerce div.product form.cart div.quantity {
	margin: 0;
}

.woocommerce div.product form.cart .qty {
	min-height: 54px;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
	min-height: 54px;
	padding: 0 34px;
	font-size: 14px;
	letter-spacing: .2em;
}

/* Serving boxes: temperature, decanting, cellaring, glass. */
.vl-serving {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 20px;
	margin: 10px 0 50px;
}

.vl-serving-item {
	padding: 22px 18px;
	background: var(--vl-sand);
	text-align: center;
}

.vl-serving-label {
	margin: 0 0 10px;
	color: var(--vl-ink);
	font-weight: 700;
	line-height: 1.4;
}

.vl-serving-value {
	margin: 0;
}

/*
 * The wine's texts beside the photo, after the description (food pairing, vineyard and terroir,
 * winemaking, technical sheet): two to a row, a small gold title in capitals over a small text.
 */
.woocommerce div.product .vl-wine-texts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px 28px;
	margin: 6px 0 30px;
}

.woocommerce div.product .vl-wine-text h2.vl-wine-text-label {
	margin: 0 0 10px;
	color: var(--vl-gold);
	font-family: var(--vl-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.woocommerce div.product .vl-wine-text p {
	margin: 0;
	color: var(--vl-ink);
	font-size: 14px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

/* The winery under the wine. */
.vl-winery {
	display: flex;
	gap: 28px;
	align-items: center;
	margin: 0 0 50px;
	padding: 28px 30px;
	border-left: 3px solid var(--vl-wine);
	background: #fff;
}

.vl-winery-media {
	flex: 0 0 auto;
}

.vl-winery-media img {
	display: block;
	width: 120px;
	height: 120px;
	object-fit: contain;
}

.vl-winery-name {
	margin-bottom: 8px;
	font-size: 30px;
	font-style: italic;
}

.vl-winery-name a {
	color: var(--vl-ink);
	text-decoration: none;
}

.vl-winery-name a:hover {
	color: var(--vl-wine);
}

.vl-winery-desc {
	font-size: 15px;
	line-height: 1.7;
}

.vl-winery-desc p:last-child {
	margin-bottom: 0;
}

/* Description / reviews tabs. */
.woocommerce div.product .woocommerce-tabs {
	margin-bottom: 40px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	margin: 0 0 28px;
	padding: 0;
	border-bottom: 1px solid var(--vl-line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0 28px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: 12px 0;
	color: var(--vl-text);
	font: 700 12px/1.4 var(--vl-sans);
	letter-spacing: .14em;
	text-transform: uppercase;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--vl-wine);
	box-shadow: inset 0 -2px var(--vl-wine);
}

.woocommerce div.product .woocommerce-tabs .panel {
	max-width: var(--vl-narrow);
}

.woocommerce div.product .woocommerce-tabs .panel > h2:first-child {
	display: none;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
	border-color: var(--vl-line);
	border-radius: 0;
}

.woocommerce .related > h2,
.woocommerce .upsells > h2 {
	margin-bottom: 28px;
}

/* Events use the Events plugin's own detail layout; just space the breadcrumb. */
.vl-event-page .woocommerce-breadcrumb {
	margin-bottom: 28px;
}

@media (max-width: 900px) {
	.woocommerce div.product {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce div.product div.images,
	.woocommerce div.product div.summary {
		grid-column: 1;
	}

	.vl-winery {
		flex-direction: column;
		align-items: flex-start;
		padding: 22px 20px;
	}
}

@media (max-width: 600px) {
	.vl-product-top {
		margin-bottom: 20px;
	}

	.woocommerce div.product div.images {
		margin-bottom: 28px;
	}

	.woocommerce div.product div.images img {
		padding: 16px;
	}

	.woocommerce div.product .product_title {
		font-size: 34px;
	}

	/* Quantity and a wide basket button on one row. */
	.woocommerce div.product form.cart .single_add_to_cart_button {
		flex: 1 1 auto;
		padding: 0 18px;
		letter-spacing: .14em;
	}

	/* Serving boxes two by two. */
	.vl-serving {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin: 28px 0 40px;
	}

	.vl-serving-item {
		padding: 16px 12px;
		font-size: 15px;
	}

	.vl-serving-label {
		margin-bottom: 4px;
		font-size: 14px;
	}

	.woocommerce div.product .vl-wine-texts {
		gap: 22px 20px;
	}

	.vl-winery {
		margin-bottom: 40px;
	}

	.vl-winery-media img {
		width: 88px;
		height: 88px;
	}

	.vl-winery-name {
		font-size: 26px;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs li {
		margin-right: 20px;
	}
}

/* ------------------------------------------------- basket, checkout, account */

.woocommerce table.shop_table {
	border: 0;
	border-radius: 0;
	background: transparent;
}

.woocommerce table.shop_table th {
	color: var(--vl-ink);
	font: 700 12px/1.4 var(--vl-sans);
	letter-spacing: .1em;
	text-transform: uppercase;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
	border-top-color: var(--vl-line);
}

.woocommerce table.shop_table img {
	width: 64px;
	background: #fff;
}

.woocommerce table.shop_table .product-name a {
	color: var(--vl-ink);
	font: italic 500 20px/1.3 var(--vl-serif);
	text-decoration: none;
}

.woocommerce a.remove {
	color: var(--vl-wine) !important;
}

.woocommerce a.remove:hover {
	background: var(--vl-wine);
	color: #fff !important;
}

/* ----------------------------------------------------------------- basket */

/*
 * The basket: the wines on the left, one clean row each (photo, name and price, quantity with − / +,
 * total, remove); on the right a summary card that stays in view, with the checkout button and
 * "Continue shopping". The quantity updates the basket by itself (assets/js/cart.js), so the
 * "Update basket" button is hidden while JavaScript runs. On phones everything is one column.
 */
.woocommerce-cart .vl-page-content > .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
	gap: 0 clamp(32px, 4vw, 56px);
	align-items: start;
}

.woocommerce-cart .vl-page-content > .woocommerce > * {
	grid-column: 1 / -1;
}

.woocommerce-cart .vl-page-content > .woocommerce > .woocommerce-cart-form {
	grid-column: 1;
}

.woocommerce-cart .vl-page-content > .woocommerce > .cart-collaterals {
	position: sticky;
	top: 24px;
	grid-column: 2;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.woocommerce-cart .woocommerce-notices-wrapper:empty {
	display: none;
}

/* The wines */
.woocommerce-cart table.shop_table.cart {
	display: block;
	margin: 0;
	border: 0;
	border-top: 1px solid var(--vl-line);
	background: none;
}

.woocommerce-cart table.shop_table.cart thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.woocommerce-cart table.shop_table.cart tbody {
	display: block;
}

.woocommerce-cart table.shop_table.cart tr.cart_item {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto minmax(96px, auto) 36px;
	grid-template-areas:
		"thumb name  qty total remove"
		"thumb price qty total remove";
	gap: 4px 24px;
	align-items: center;
	padding: 22px 0;
	border-bottom: 1px solid var(--vl-line);
}

.woocommerce-cart table.shop_table.cart tr.cart_item td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	text-align: left !important; /* WooCommerce's phone styles right-align with !important */
}

.woocommerce-cart table.shop_table.cart tr.cart_item td::before {
	display: none;
}

.woocommerce-cart table.shop_table.cart td.product-thumbnail {
	display: block;
	grid-area: thumb;
}

.woocommerce-cart table.shop_table.cart td.product-thumbnail a {
	display: block;
	width: 96px;
	height: 120px;
	padding: 8px;
	background: var(--vl-panel);
}

/* The photo's white background melts into the tile. */
.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.woocommerce-cart table.shop_table.cart td.product-name {
	grid-area: name;
	align-self: end;
}

.woocommerce-cart table.shop_table.cart td.product-name a {
	color: var(--vl-ink);
	font: 500 22px/1.25 var(--vl-serif);
	font-style: normal;
	text-decoration: none;
}

.woocommerce-cart table.shop_table.cart td.product-name a:hover {
	color: var(--vl-wine);
}

/*
 * Wine groups: the group's bottles sit under it, indented with a gold line, folded away until
 * "Flaschen anzeigen" is pressed (cart.js). Without JavaScript they simply show.
 */
.vl-group-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--vl-wine);
	font: 500 13px/1.4 var(--vl-label);
	letter-spacing: .04em;
	text-decoration: underline;
	text-decoration-color: var(--vl-gold);
	text-align: left;
	text-underline-offset: 4px;
	white-space: nowrap;
	cursor: pointer;
}

.vl-group-toggle::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .2s ease;
}

.vl-group-toggle[aria-expanded="true"]::after {
	transform: translateY(2px) rotate(-135deg);
}

.vl-js .woocommerce-cart table.shop_table.cart tr.vl-group-bottle {
	display: none;
}

.vl-js .woocommerce-cart table.shop_table.cart tr.vl-group-bottle.is-open {
	display: grid;
}

.woocommerce-cart table.shop_table.cart tr.vl-group-bottle {
	grid-template-columns: 56px minmax(0, 1fr) auto minmax(96px, auto) 36px;
	margin-left: 24px;
	padding: 12px 0 12px 16px;
	border-left: 2px solid var(--vl-gold);
}

.woocommerce-cart table.shop_table.cart tr.vl-group-bottle td.product-thumbnail a {
	width: 56px;
	height: 70px;
	padding: 5px;
}

.woocommerce-cart table.shop_table.cart tr.vl-group-bottle td.product-name a {
	font-size: 18px;
}

.woocommerce-cart table.shop_table.cart tr.vl-group-bottle td.product-quantity {
	color: var(--vl-text);
	font-size: 14px;
}

.woocommerce-cart table.shop_table.cart tr.vl-group-bottle td.product-quantity::before {
	content: "×\00a0";
	display: inline;
}

.woocommerce-cart table.shop_table.cart tr.vl-group-bottle td.product-subtotal {
	color: var(--vl-text);
	font-size: 15px;
	font-weight: 600;
}

/* The winery beside the wine's name (basket, checkout, mini basket). */
.vl-cart-winery {
	display: inline-block;
	margin-left: 8px;
	color: var(--vl-gold-text);
	font: 500 12px/1.4 var(--vl-label);
	letter-spacing: .12em;
	text-transform: uppercase;
	vertical-align: middle;
}

.woocommerce-checkout .vl-checkout-summary .vl-cart-winery {
	margin-left: 6px;
	font-size: 11px;
}

.woocommerce-cart table.shop_table.cart td.product-name dl.variation,
.woocommerce-cart table.shop_table.cart td.product-name .backorder_notification {
	margin: 4px 0 0;
	font-size: 13px;
}

.woocommerce-cart table.shop_table.cart td.product-price {
	grid-area: price;
	align-self: start;
	color: var(--vl-text);
	font-size: 14px;
}

.woocommerce-cart table.shop_table.cart td.product-quantity {
	grid-area: qty;
}

.woocommerce-cart table.shop_table.cart td.product-subtotal {
	grid-area: total;
	color: var(--vl-ink);
	font-size: 17px;
	font-weight: 700;
	text-align: right !important;
}

.woocommerce-cart table.shop_table.cart td.product-remove {
	grid-area: remove;
	justify-self: end;
}

.woocommerce-cart table.shop_table.cart a.remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: var(--vl-text) !important;
	font: 400 22px/1 var(--vl-sans);
	transition: background-color .2s ease, color .2s ease;
}

.woocommerce-cart table.shop_table.cart a.remove:hover {
	background: var(--vl-wine);
	color: #fff !important;
}

/* Quantity: − field + */
.woocommerce-cart .woocommerce-cart-form .quantity {
	display: inline-flex;
	align-items: stretch;
}

.woocommerce-cart .woocommerce-cart-form .quantity.vl-qty {
	border: 1px solid var(--vl-field-line);
	background: transparent;
}

.woocommerce-cart .woocommerce-cart-form .quantity .qty {
	width: 3.2em;
	min-height: 44px;
	padding: 0;
	border: 1px solid var(--vl-field-line);
	background: transparent;
	color: var(--vl-ink);
	font-size: 16px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.woocommerce-cart .woocommerce-cart-form .quantity.vl-qty .qty {
	border-width: 0 1px;
	outline: 0;
}

.woocommerce-cart .woocommerce-cart-form .quantity .qty::-webkit-outer-spin-button,
.woocommerce-cart .woocommerce-cart-form .quantity .qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.vl-qty-btn {
	width: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--vl-wine);
	font: 400 20px/1 var(--vl-sans);
	cursor: pointer;
	transition: background-color .2s ease;
}

.vl-qty-btn:hover:not(:disabled) {
	background: var(--vl-panel);
}

.vl-qty-btn:disabled {
	color: rgba(90, 14, 20, .25);
	cursor: default;
}

/* Coupon and "Update basket" under the wines */
.woocommerce-cart table.shop_table.cart tr:last-child {
	display: block;
}

.woocommerce-cart table.shop_table.cart td.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 24px 0 0;
	border: 0;
	background: none;
}

.woocommerce-cart table.shop_table.cart td.actions::before {
	display: none;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon {
	display: flex;
	flex: 0 1 420px;
	flex-wrap: wrap;
	gap: 0;
	min-width: 0;
	float: none;
	padding: 0;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text {
	flex: 1 1 0;
	width: 0;
	min-width: 0;
	min-height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--vl-field-line);
	border-right: 0;
	background: transparent;
	font-size: 15px;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon .button {
	flex: 0 0 auto;
	width: auto;
	border-color: var(--vl-wine);
	background: transparent;
	color: var(--vl-wine);
}

.woocommerce-cart table.shop_table.cart td.actions .coupon .button:hover {
	background: var(--vl-wine);
	color: #fff;
}

/* WooCommerce's message under a refused coupon */
.woocommerce-cart table.shop_table.cart td.actions .coupon .coupon-error-notice {
	flex: 1 1 100%;
	order: 3;
	margin: 8px 0 0;
	color: #b3261e;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text.has-error {
	border-color: #b3261e;
	border-right: 1px solid #b3261e;
}

.woocommerce-cart table.shop_table.cart td.actions > .button {
	width: auto;
	margin: 0;
}

.vl-js .woocommerce-cart table.shop_table.cart td.actions > button[name="update_cart"] {
	display: none;
}

/* The summary card */
.woocommerce-cart .cart-collaterals .cart_totals {
	float: none;
	order: -1;
	width: 100%;
	padding: 28px;
	border: 0;
	background: var(--vl-panel);
}

.woocommerce-cart .cart-collaterals .cross-sells {
	float: none;
	width: 100%;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
	margin: 0 0 16px;
	font-size: 28px;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
	display: block;
	margin: 0 0 24px;
	border: 0;
	background: none;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tbody {
	display: block;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 12px 0;
	border-top: 1px solid rgba(90, 14, 20, .12);
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr:first-child {
	border-top: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	color: var(--vl-text);
	font: 400 15px/1.5 var(--vl-sans);
	letter-spacing: 0;
	text-align: right;
	text-transform: none;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th {
	text-align: left;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td::before {
	display: none;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
	flex: 1 1 auto;
	color: var(--vl-ink);
}

/* Shipping: the methods and the notes under them, smaller */
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.woocommerce-shipping-totals td {
	flex-basis: 60%;
}

.woocommerce-cart .cart_totals ul#shipping_method {
	margin: 0;
	padding: 0;
}

.woocommerce-cart .cart_totals ul#shipping_method li {
	margin: 0 0 4px;
	padding: 0;
	text-indent: 0;
}

.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
.woocommerce-cart .cart_totals .woocommerce-shipping-calculator {
	margin: 6px 0 0;
	color: var(--vl-text);
	font-size: 13px;
	line-height: 1.5;
}

.woocommerce-cart .cart_totals .shipping-calculator-button {
	color: var(--vl-wine);
	font-size: 13px;
}

.woocommerce-cart .cart_totals .shipping-calculator-button::after {
	display: none;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.order-total {
	align-items: center;
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px solid var(--vl-ink);
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.order-total th {
	color: var(--vl-ink);
	font-weight: 700;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.order-total td,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.order-total td strong {
	color: var(--vl-ink);
	font-size: 22px;
	font-weight: 700;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.order-total small,
.woocommerce-cart .cart_totals .includes_tax {
	display: block;
	color: var(--vl-text);
	font-size: 12px;
	font-weight: 400;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 0;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 16px 24px;
	font-size: 13px;
}

.vl-continue-shopping {
	align-self: center;
	color: var(--vl-wine);
	font: 500 14px/1.4 var(--vl-sans);
	text-decoration: underline;
	text-decoration-color: var(--vl-gold);
	text-underline-offset: 4px;
}

.vl-continue-shopping::before {
	content: "← ";
}

/* The empty basket */
.woocommerce-cart .return-to-shop {
	display: none;
}

.vl-cart-empty {
	max-width: 560px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 48px) 24px clamp(40px, 6vw, 72px);
	text-align: center;
}

.vl-cart-empty-icon {
	display: block;
	box-sizing: content-box;
	margin: 0 auto 20px;
	padding: 22px;
	border-radius: 50%;
	background: var(--vl-panel);
	color: var(--vl-wine);
}

.vl-cart-empty .vl-cart-empty-title {
	margin: 0 0 10px;
	font-size: clamp(28px, 3vw, 34px);
}

.vl-cart-empty p {
	margin: 0 auto 28px;
	color: var(--vl-text);
}

/* A notice that something was added: no "View basket" button on the basket itself. */
.woocommerce-cart .woocommerce-message .button.wc-forward {
	display: none;
}

/* Very small phones: the coupon field and its button one under the other. */
@media (max-width: 400px) {
	.woocommerce-cart table.shop_table.cart tr.cart_item:not(.vl-group-bottle) {
		grid-template-columns: 64px minmax(0, 1fr) auto;
	}

	.woocommerce-cart table.shop_table.cart tr.cart_item:not(.vl-group-bottle) td.product-thumbnail a {
		width: 64px;
		height: 80px;
		padding: 5px;
	}

	.woocommerce-cart table.shop_table.cart td.actions .coupon {
		flex-direction: column;
		gap: 8px;
	}

	.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text {
		flex: 0 0 auto;
		width: 100%;
		border-right: 1px solid var(--vl-field-line);
	}

	.woocommerce-cart table.shop_table.cart td.actions .coupon .button {
		width: 100%;
	}
}

@media (max-width: 900px) {
	.woocommerce-cart .vl-page-content > .woocommerce {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-cart .vl-page-content > .woocommerce > .cart-collaterals {
		position: static;
		grid-column: 1;
		margin-top: 32px;
	}
}

@media (max-width: 640px) {
	/* Photo, name, winery and price on top; quantity and the line's total on a row of their own. */
	.woocommerce-cart table.shop_table.cart tr.cart_item {
		grid-template-columns: 76px minmax(0, 1fr) auto;
		grid-template-areas:
			"thumb name  remove"
			"thumb price price"
			"qty   qty   total";
		gap: 4px 14px;
		padding: 18px 0;
	}

	.woocommerce-cart table.shop_table.cart td.product-thumbnail a {
		width: 76px;
		height: 96px;
		padding: 6px;
	}

	.woocommerce-cart table.shop_table.cart td.product-name {
		align-self: start;
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.woocommerce-cart table.shop_table.cart td.product-name a {
		font-size: 19px;
	}

	.woocommerce-cart table.shop_table.cart td.product-name .vl-cart-winery {
		display: block;
		margin: 2px 0 0;
		font-size: 11px;
	}

	.woocommerce-cart table.shop_table.cart td.product-price {
		align-self: start;
	}

	.woocommerce-cart table.shop_table.cart td.product-quantity {
		margin-top: 12px;
	}

	.woocommerce-cart table.shop_table.cart td.product-subtotal {
		align-self: center;
		margin-top: 12px;
		white-space: nowrap;
	}

	.woocommerce-cart table.shop_table.cart td.product-remove {
		margin-right: -6px;
	}

	.woocommerce-cart table.shop_table.cart td.product-remove {
		align-self: start;
	}

	/* Smaller − / + so the quantity and the total fit on one row on any phone. */
	.woocommerce-cart .woocommerce-cart-form .vl-qty-btn {
		width: 36px;
	}

	.woocommerce-cart .woocommerce-cart-form .quantity .qty {
		width: 2.8em;
		min-height: 40px;
	}

	.woocommerce-cart table.shop_table.cart tr.vl-group-bottle {
		grid-template-columns: 48px minmax(0, 1fr) auto;
		grid-template-areas:
			"thumb name  remove"
			"thumb price price"
			"qty   qty   total";
		margin-left: 8px;
		padding: 12px 0 12px 12px;
	}

	.woocommerce-cart table.shop_table.cart tr.vl-group-bottle td.product-thumbnail a {
		width: 48px;
		height: 60px;
		padding: 4px;
	}

	.woocommerce-cart table.shop_table.cart tr.vl-group-bottle td.product-name a {
		font-size: 17px;
	}

	.woocommerce-cart table.shop_table.cart tr.vl-group-bottle td.product-quantity,
	.woocommerce-cart table.shop_table.cart tr.vl-group-bottle td.product-subtotal {
		margin-top: 4px;
	}

	.woocommerce-cart table.shop_table.cart td.actions .coupon {
		flex-basis: 100%;
	}

	.woocommerce-cart table.shop_table.cart td.actions .coupon .button {
		padding-inline: 16px;
	}

	.woocommerce-cart .cart-collaterals .cart_totals {
		padding: 22px 18px;
	}

	.woocommerce-message,
	.woocommerce-info,
	.woocommerce-error,
	.vl-entry .woocommerce-error {
		padding: 12px 16px 12px 46px;
		font-size: 14px;
	}

	.woocommerce-message::before,
	.woocommerce-info::before,
	.woocommerce-error::before {
		top: 14px;
		left: 16px;
	}
}

/* --------------------------------------------------------------- checkout */

/*
 * Checkout, like the basket: the customer's details on the left (billing, then delivery and notes),
 * "Your order" on the right in a sand card (heading, the order, payment and the order button,
 * wrapped by vinolibano_checkout_summary_open/close). Fields are see-through with a soft line.
 * On narrower screens the card goes under the details.
 */
.woocommerce-checkout h3,
#order_review_heading {
	font-size: 28px;
}

.woocommerce-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
	gap: 0 clamp(32px, 4vw, 56px);
	align-items: start;
}

.woocommerce-checkout form.checkout > * {
	grid-column: 1 / -1;
}

.woocommerce-checkout form.checkout > #customer_details {
	grid-column: 1;
}

.woocommerce-checkout form.checkout > .vl-checkout-summary {
	grid-column: 2;
	padding: 28px;
	background: var(--vl-panel);
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
	float: none;
	width: 100%;
}

.woocommerce-checkout #customer_details .col-2 {
	margin-top: 24px;
	padding-top: 28px;
	border-top: 1px solid var(--vl-line);
}

.woocommerce-checkout #customer_details h3 {
	margin: 0 0 18px;
}

.woocommerce-checkout #ship-to-different-address {
	font-size: 22px;
}

.woocommerce-checkout #ship-to-different-address label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

/* Fields in every shop form (checkout, account, coupon) */
.woocommerce form .form-row {
	margin: 0 0 14px;
	padding: 0;
}

.woocommerce form .form-row label {
	margin-bottom: 4px;
	color: var(--vl-ink);
	font-size: 14px;
	line-height: 1.5;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row textarea.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row .select2-container .select2-selection--single,
.woocommerce form.checkout_coupon input.input-text {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--vl-field-line);
	border-radius: 0;
	background: transparent;
	color: var(--vl-ink);
	font-size: 16px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea.input-text,
.woocommerce form .form-row select {
	padding: 11px 14px;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row .select2-container--focus .select2-selection--single,
.woocommerce form .form-row .select2-container--open .select2-selection--single,
.woocommerce form.checkout_coupon input.input-text:focus {
	border-color: var(--vl-wine);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(90, 14, 20, .1);
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid .select2-container .select2-selection--single {
	border-color: #b3261e;
}

.woocommerce form .form-row textarea.input-text {
	min-height: 110px;
}

.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 40px 0 14px;
	color: var(--vl-ink);
	line-height: 46px;
}

.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__arrow {
	top: 0;
	right: 8px;
	height: 46px;
}

.select2-dropdown {
	border-color: var(--vl-field-line);
	border-radius: 0;
	background: var(--vl-cream);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--vl-wine);
}

.woocommerce form .form-row .required {
	color: var(--vl-wine);
	text-decoration: none;
}

.woocommerce form input[type="checkbox"],
.woocommerce form input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--vl-wine);
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon,
.woocommerce form.lost_reset_password {
	padding: 28px;
	border: 0;
	border-radius: 0;
	background: var(--vl-panel);
}

/* "Your order" */
.woocommerce-checkout .vl-checkout-summary #order_review_heading {
	margin: 0 0 16px;
}

.woocommerce-checkout .vl-checkout-summary table.shop_table {
	margin: 0 0 24px;
	border: 0;
	border-collapse: collapse;
	background: none;
}

.woocommerce-checkout .vl-checkout-summary table.shop_table th,
.woocommerce-checkout .vl-checkout-summary table.shop_table td {
	padding: 12px 0;
	border: 0;
	border-top: 1px solid rgba(90, 14, 20, .12);
	background: none;
	color: var(--vl-ink);
	font: 400 15px/1.5 var(--vl-sans);
	letter-spacing: 0;
	text-transform: none;
	vertical-align: top;
}

.woocommerce-checkout .vl-checkout-summary table.shop_table thead th {
	padding-top: 0;
	border-top: 0;
	color: var(--vl-text);
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.woocommerce-checkout .vl-checkout-summary table.shop_table th:last-child,
.woocommerce-checkout .vl-checkout-summary table.shop_table td:last-child {
	padding-left: 16px;
	text-align: right;
}

.woocommerce-checkout .vl-checkout-summary table.shop_table tfoot th {
	color: var(--vl-text);
	font-weight: 400;
}

.woocommerce-checkout .vl-checkout-summary .product-name {
	font-family: var(--vl-serif);
	font-size: 19px;
	line-height: 1.3;
}

.woocommerce-checkout .vl-checkout-summary .product-quantity {
	color: var(--vl-text);
	font: 400 14px/1.3 var(--vl-sans);
}

.woocommerce-checkout .vl-checkout-summary ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-checkout .vl-checkout-summary ul#shipping_method li {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0 0 4px;
	text-indent: 0;
}

.woocommerce-checkout .vl-checkout-summary tr.order-total th,
.woocommerce-checkout .vl-checkout-summary tr.order-total td {
	padding-top: 16px;
	border-top: 1px solid var(--vl-ink);
	color: var(--vl-ink);
	font-weight: 700;
	vertical-align: middle;
}

.woocommerce-checkout .vl-checkout-summary tr.order-total td,
.woocommerce-checkout .vl-checkout-summary tr.order-total td strong {
	font-size: 22px;
}

.woocommerce-checkout .vl-checkout-summary tr.order-total small,
.woocommerce-checkout .vl-checkout-summary .includes_tax {
	display: block;
	color: var(--vl-text);
	font-size: 12px;
	font-weight: 400;
}

/* Payment */
.woocommerce-checkout #payment {
	border-radius: 0;
	background: none;
}

.woocommerce-checkout #payment ul.payment_methods {
	margin: 0;
	padding: 0 0 8px;
	border-bottom: 1px solid rgba(90, 14, 20, .12);
}

.woocommerce-checkout #payment ul.payment_methods li {
	margin: 0;
	padding: 10px 0;
	line-height: 1.5;
}

.woocommerce-checkout #payment ul.payment_methods li > label {
	display: inline;
	margin-left: 8px;
	color: var(--vl-ink);
	font-weight: 600;
	cursor: pointer;
}

.woocommerce-checkout #payment ul.payment_methods li > input {
	vertical-align: -3px;
}

.woocommerce-checkout #payment ul.payment_methods li img {
	max-height: 22px;
	margin: 0 0 0 6px;
	vertical-align: middle;
}

.woocommerce-checkout #payment div.payment_box {
	margin: 10px 0 4px;
	padding: 12px 14px;
	border-radius: 0;
	background: rgba(90, 14, 20, .05);
	color: var(--vl-text);
	font-size: 14px;
}

.woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

.woocommerce-checkout #payment div.form-row.place-order {
	margin: 0;
	padding: 18px 0 0;
}

.woocommerce-checkout .woocommerce-privacy-policy-text p,
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text {
	color: var(--vl-text);
	font-size: 13px;
	line-height: 1.55;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
	margin-bottom: 16px;
}

.woocommerce form label.woocommerce-form__label-for-checkbox,
.woocommerce form .form-row label.woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	vertical-align: middle;
	cursor: pointer;
}

.woocommerce form .form-row label.woocommerce-form__label-for-checkbox input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 0;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row label.woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: flex-start;
}

.woocommerce-checkout #payment #place_order {
	float: none;
	width: 100%;
	min-height: 56px;
	margin: 0;
	font-size: 13px;
}

@media (max-width: 900px) {
	.woocommerce-checkout form.checkout {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-checkout form.checkout > .vl-checkout-summary {
		grid-column: 1;
		margin-top: 32px;
	}
}

@media (max-width: 640px) {
	.woocommerce-checkout form.checkout > .vl-checkout-summary {
		margin-inline: calc(-1 * var(--vl-gutter));
		padding: 24px var(--vl-gutter);
	}

	.woocommerce form .form-row-first,
	.woocommerce form .form-row-last {
		float: none;
		width: 100%;
	}
}

/* ------------------------------------------------------- order received */

/* After ordering: the thank-you line, the order at a glance in a sand band, then the order and the addresses. */
.woocommerce-order .woocommerce-thankyou-order-received {
	position: relative;
	margin: 0 0 28px;
	padding: 6px 0 6px 56px;
	color: var(--vl-ink);
	font: 400 clamp(24px, 3vw, 32px)/1.3 var(--vl-serif);
}

.woocommerce-order .woocommerce-thankyou-order-received::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 40px;
	height: 40px;
	background: #4f7a45;
	transform: translateY(-50%);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.2L4.5 10l1.4-1.4 2.9 2.8 5.3-5.3 1.4 1.4-6.7 6.7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.2L4.5 10l1.4-1.4 2.9 2.8 5.3-5.3 1.4 1.4-6.7 6.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce ul.order_details.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 18px 24px;
	margin: 0 0 32px;
	padding: 24px 28px;
	background: var(--vl-panel);
	list-style: none;
}

.woocommerce ul.order_details.woocommerce-order-overview::before,
.woocommerce ul.order_details.woocommerce-order-overview::after {
	display: none;
}

.woocommerce ul.order_details.woocommerce-order-overview li {
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--vl-text);
	font: 500 11px/1.5 var(--vl-sans);
	letter-spacing: .12em;
	text-transform: uppercase;
}

.woocommerce ul.order_details.woocommerce-order-overview li strong {
	display: block;
	margin-top: 4px;
	color: var(--vl-ink);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.4;
	text-transform: none;
	overflow-wrap: anywhere;
}

.woocommerce-order-details,
.woocommerce-customer-details {
	margin-bottom: 32px;
}

.woocommerce-order-details h2,
.woocommerce-customer-details h2,
.woocommerce-column__title {
	margin: 0 0 14px;
	font-size: 28px;
}

.woocommerce table.shop_table.order_details th,
.woocommerce table.shop_table.order_details td {
	padding: 12px 0;
	border: 0;
	border-top: 1px solid var(--vl-line);
	background: none;
	color: var(--vl-ink);
	font: 400 15px/1.5 var(--vl-sans);
	letter-spacing: 0;
	text-transform: none;
}

.woocommerce table.shop_table.order_details thead th {
	padding-top: 0;
	border-top: 0;
	color: var(--vl-text);
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.woocommerce table.shop_table.order_details th:last-child,
.woocommerce table.shop_table.order_details td:last-child {
	text-align: right;
}

.woocommerce table.shop_table.order_details tfoot th {
	color: var(--vl-text);
}

.woocommerce table.shop_table.order_details tfoot tr:has(.vl-order-total) th,
.woocommerce table.shop_table.order_details tfoot tr:has(.vl-order-total) td {
	border-top-color: var(--vl-ink);
	color: var(--vl-ink);
	font-weight: 700;
}

.vl-order-total {
	font-size: 20px;
	font-weight: 700;
}

.woocommerce table.shop_table.order_details .product-quantity {
	color: var(--vl-text);
	font: 400 14px/1.3 var(--vl-sans);
}

.woocommerce table.shop_table.order_details .product-name a {
	font: 400 19px/1.3 var(--vl-serif);
}

.woocommerce .woocommerce-customer-details address {
	padding: 20px 24px;
	border: 0;
	border-radius: 0;
	background: var(--vl-panel);
	color: var(--vl-ink);
	font-style: normal;
	line-height: 1.7;
}

.woocommerce .woocommerce-customer-details .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

.woocommerce .woocommerce-customer-details .woocommerce-columns--addresses::before,
.woocommerce .woocommerce-customer-details .woocommerce-columns--addresses::after {
	display: none;
}

.woocommerce .woocommerce-customer-details .woocommerce-column {
	float: none;
	width: auto;
}

.woocommerce-MyAccount-navigation ul {
	margin: 0 0 32px;
	padding: 0;
	border-top: 1px solid var(--vl-line);
	list-style: none;
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid var(--vl-line);
	color: var(--vl-ink);
	text-decoration: none;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
	color: var(--vl-wine);
	font-weight: 700;
}

/* ------------------------------------------------ a wine group's page */

/*
 * The wine group's own block (Product Bundle Builder): the plugin's white cards, blue note, green
 * "Save" and pink "% OFF" become the site's sand, wine and gold; the bottles sit in an even grid
 * (two to a row on a phone) instead of rows of fixed-width cards with "+" signs between them.
 */
.vl-woo .asnp-mainPrice {
	flex-wrap: wrap;
	gap: 8px;
}

.vl-woo .asnp-totalPrice-section {
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-variant-numeric: lining-nums;
}

.vl-woo .asnp-totalPrice-section s {
	color: var(--vl-text);
	opacity: .7;
}

.vl-woo .asnp-mainPrice .asnp-totalPrice-section .asnp-savedPrice,
.vl-woo .asnp-totalPrice-wrapper .asnp-totalPrice-section .asnp-savedPrice {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: 0;
	background-color: var(--vl-gold);
	color: var(--vl-wine);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	line-height: 1.4;
}

.vl-woo .asnp-mainPrice .asnp-totalPrice-section .asnp-savedPrice .woocommerce-Price-amount.amount,
.vl-woo .asnp-totalPrice-wrapper .asnp-totalPrice-section .asnp-savedPrice .woocommerce-Price-amount.amount {
	padding: 0;
	color: inherit;
}

.vl-woo .asnp_easy_product_bundle .bundle-description {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 0;
	border-left: 2px solid var(--vl-gold);
	border-radius: 0;
	background: var(--vl-panel);
	box-shadow: none;
	color: var(--vl-ink);
}

.vl-woo .asnp_easy_product_bundle .bundle-description .icon {
	order: -1;
	position: static;
	flex: 0 0 auto;
	color: var(--vl-gold-text);
}

.vl-woo .asnp_easy_product_bundle .bundle-description .icon svg {
	fill: currentColor;
}

.vl-woo .asnp_easy_product_bundle .bundle-description .text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.vl-woo .asnp_easy_product_bundle .asnp-App-GridItem-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	gap: 14px;
	margin: 0 0 24px;
	padding: 0;
}

.vl-woo .asnp_easy_product_bundle .asnp-plus-icon {
	display: none;
}

.vl-woo .asnp_easy_product_bundle .asnp-bundle-item {
	width: auto;
	min-width: 0;
	max-width: none;
	margin: 0;
	padding: 0;
}

.vl-woo .asnp_easy_product_bundle .asnp-BundleGridItem-ProductBox {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 1px solid var(--vl-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transform: none;
}

.vl-woo .asnp_easy_product_bundle .asnp-image-field-wrapper {
	width: 100%;
	margin: 0;
	padding: 0;
}

.vl-woo .asnp_easy_product_bundle .asnp-BundleGridItem-imageBox {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	margin: 0;
	border-radius: 0;
	background: var(--vl-panel);
}

.vl-woo .asnp_easy_product_bundle .asnp-BundleGridItem-imageBox img {
	width: 100%;
	height: 100%;
	padding: 10px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.vl-woo .asnp_easy_product_bundle .asnp-onHover {
	border-radius: 0;
	background: rgba(90, 14, 20, .72);
}

.vl-woo .asnp_easy_product_bundle .asnp-onHover p {
	color: #fff;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.vl-woo .asnp_easy_product_bundle .asnp-BundleGridItem-product-info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: auto;
	margin: 0;
	padding: 10px 8px 12px;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
}

/* The plugin sets these with !important. */
.vl-woo .asnp_easy_product_bundle .asnp-product-name {
	margin: 0;
	color: var(--vl-ink);
	font-family: var(--vl-serif);
	font-size: 18px !important;
	font-weight: 500 !important;
	line-height: 1.15 !important;
	overflow-wrap: anywhere;
}

.vl-woo .asnp_easy_product_bundle .asnp-product-Price,
.vl-woo .asnp_easy_product_bundle .asnp-product-Price ins {
	margin: 0;
	color: var(--vl-text);
	font-size: 13px !important;
	font-variant-numeric: lining-nums;
	line-height: 1.5;
}

.vl-woo .asnp_easy_product_bundle .asnp-product-Price del {
	display: block;
	opacity: .6;
}

.vl-woo .asnp_easy_product_bundle .asnp-product-Price ins {
	color: var(--vl-wine);
	font-weight: 600;
	text-decoration: none;
}

.vl-woo .asnp_easy_product_bundle .asnp-product-quantity-field {
	margin: auto 0 0 !important;
}

/* The bottles' numbers are fixed by the group: shown as "× 2", not as a field. */
.vl-woo .asnp_easy_product_bundle .asnp-product-quantity-field > input[disabled] {
	width: 3.2em !important;
	height: auto;
	margin: 2px 0 0;
	padding: 3px 6px;
	border: 0;
	border-radius: 0;
	background-color: var(--vl-panel) !important;
	line-height: 1.4 !important;
	color: var(--vl-wine);
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: lining-nums;
	text-align: center;
	opacity: 1;
	-webkit-text-fill-color: var(--vl-wine);
	-moz-appearance: textfield;
	appearance: textfield;
}

.vl-woo .asnp_easy_product_bundle .asnp-product-quantity-field input[disabled]::-webkit-inner-spin-button,
.vl-woo .asnp_easy_product_bundle .asnp-product-quantity-field input[disabled]::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.vl-woo .asnp_easy_product_bundle .asnp-totalPrice-wrapper {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 14px;
	margin: 0 0 24px;
	padding: 18px 16px 16px;
	border: 1px solid rgba(198, 165, 113, .55);
	border-radius: 0;
	background: var(--vl-panel);
	box-shadow: none;
}

.vl-woo .asnp_easy_product_bundle .asnp-totalPrice-title {
	color: var(--vl-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.vl-woo .asnp_easy_product_bundle .asnp-off-badge {
	position: absolute;
	top: -11px;
	right: 14px;
	padding: 2px 10px;
	border-radius: 0;
	background: var(--vl-wine);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	line-height: 1.6;
}

.vl-woo .asnp_easy_product_bundle .asnp-off-badge::before,
.vl-woo .asnp_easy_product_bundle .asnp-off-badge::after {
	display: none;
}

.vl-woo .asnp_easy_product_bundle .asnp-totalPrice-section {
	color: var(--vl-wine);
	font-size: 17px;
}

@media (max-width: 640px) {
	.vl-woo .asnp_easy_product_bundle .asnp-App-GridItem-wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.vl-woo .asnp_easy_product_bundle .asnp-product-name {
		font-size: 17px;
	}
}

/* ------------------------------------------------ the shop page on phones */

/*
 * The shop ([vl_shop], from the Wines plugin) on phones: two wines per row — photo, winery, name,
 * details, price and a full-width basket button — and no second side margin inside the page's.
 */
@media (max-width: 640px) {
	.vl-shop-page .vl-shop {
		padding: 0;
	}

	.vl-shop-page .vl-shop .vl-shop-filters {
		margin-bottom: 28px;
		padding: 16px;
	}

	.vl-shop-page .vl-shop .vl-shop-winery {
		margin-bottom: 28px;
	}

	.vl-shop-page .vl-shop .vl-shop-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 14px;
	}

	.vl-shop-page .vl-shop .vl-shop-card {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.vl-shop-page .vl-shop a.vl-shop-media {
		aspect-ratio: 4 / 5;
	}

	.vl-shop-page .vl-shop a.vl-shop-media img {
		padding: 14px;
	}

	.vl-shop-page .vl-shop .vl-shop-body {
		gap: 10px;
		padding: 12px 0 0;
	}

	.vl-shop-page .vl-shop .vl-shop-info {
		gap: 4px;
	}

	.vl-shop-page .vl-shop a.vl-shop-brand {
		font-size: 10px;
		letter-spacing: .12em;
		line-height: 1.4;
	}

	.vl-shop-page .vl-shop .vl-shop-title {
		font-size: 20px;
	}

	.vl-shop-page .vl-shop .vl-shop-specs {
		margin: 0;
		font-size: 13px;
		line-height: 1.45;
		text-wrap: pretty;
	}

	/* The grapes are on the wine's page. */
	.vl-shop-page .vl-shop .vl-shop-tech {
		display: none;
	}

	.vl-shop-page .vl-shop .vl-shop-foot {
		gap: 8px;
		padding-top: 10px;
	}

	.vl-shop-page .vl-shop .vl-shop-price {
		font-size: 16px;
	}

	.vl-shop-page .vl-shop .vl-shop-card a.vl-shop-cart-btn {
		flex: 1 1 100%;
		min-height: 42px;
		padding: 10px 8px;
		font-size: 11px;
		letter-spacing: .06em;
		text-align: center;
		white-space: normal;
	}
}

/* Very narrow phones: the wine's texts one under the other. */
@media (max-width: 420px) {
	.woocommerce div.product .vl-wine-texts {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------- kept from the old site's snippets */

/*
 * The old (Divi) site added these in code snippets (WordPress admin). They are kept here so those
 * snippets can be switched off; the rest of them only served the Divi layout, which is gone.
 */

/* A wine group's page: the bundle plugin's extra list of the bottles (the grid shows them). */
.asnp-productList-wrapper {
	display: none;
}

/* My account: no "Addresses" and "Downloads" entries. */
.woocommerce-MyAccount-navigation-link--edit-address,
.woocommerce-MyAccount-navigation-link--downloads {
	display: none;
}

/* A price before a discount (also a role's price) is struck through. */
del .woocommerce-Price-amount,
del.maxtdesign-rbp-original span {
	text-decoration: line-through;
}

/* The product photo shows at once, without waiting for WooCommerce's gallery script. */
.woocommerce-product-gallery {
	opacity: 1 !important;
}

/* No SKU in product lists. */
.woocommerce ul.products li.product .sku {
	display: none;
}

/* The log-in button of My account: wine red, in capitals. */
.woocommerce-account .woocommerce-form-login .woocommerce-form-login__submit {
	min-width: 130px;
	height: auto;
	padding: 14px 32px;
	border: 0;
	border-radius: 0;
	background: #7b151b;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .5px;
	line-height: 1.4;
	text-transform: uppercase;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .3s ease;
}

.woocommerce-account .woocommerce-form-login .woocommerce-form-login__submit:hover {
	background: #5f0f14;
	color: #fff;
}
