/* Storefront cart and checkout retain their native WooCommerce inputs and monetary data. */
body.esp-redesign #main :is(.woocommerce-form-coupon-toggle,.checkout_coupon,.wc-block-components-totals-coupon,.wp-block-woocommerce-cart-order-summary-coupon-form-block,.wp-block-woocommerce-checkout-order-summary-coupon-form-block) { display: none !important; }
body:is(.esp-page-cart-v51,.esp-page-checkout-v51) #main.esp-section:has(.esp-purchase-heading) {
	padding-top: 2px;
}
body:is(.esp-page-cart-v51,.esp-page-checkout-v51) #main .esp-purchase-crumb {
	padding-block: 10px; margin-bottom: 4px; line-height: 1.3;
}
body:is(.esp-page-cart-v51,.esp-page-checkout-v51) #main .esp-purchase-heading { margin-bottom: 20px; }
body.esp-page-cart-v51 #main .wp-block-group.container:has(.woocommerce-cart-form),
body.esp-page-checkout-v51 #main .wp-block-group.container:has(.wp-block-woocommerce-checkout) {
	width: 100%; max-width: none; margin-inline: 0; margin-block-start: 0 !important; padding-inline: 0;
}

body.esp-page-cart-v51 #main .woocommerce .row:has(form.woocommerce-cart-form) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 33.4%);
	align-items: start;
	gap: 32px;
	margin-inline: 0;
}
body.esp-page-cart-v51 #main .woocommerce-cart-form {
	display: flex; flex-direction: column; gap: 16px;
	margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent;
}
body.esp-page-cart-v51 #main .woocommerce-cart-form :is(table.cart,table.cart tbody) {
	display: block; width: 100%; margin: 0; border: none; border-spacing: 0;
}
body.esp-page-cart-v51 #main .woocommerce-cart-form table.cart { overflow: visible; border-radius: 16px; background: #fff; }
body.esp-page-cart-v51 #main .woocommerce-cart-form thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body.esp-page-cart-v51 #main .woocommerce .woocommerce-cart-form .cart_item {
	display: grid;
	grid-template-columns: clamp(76px, 7.3vw, 112px) minmax(0, 1fr) 96px minmax(5.5rem, 12%);
	grid-template-areas: "thumb name qty total" "thumb unit qty total" "thumb remove qty total";
	align-items: center; gap: 2px clamp(14px, 1.65vw, 24px);
	margin: 0 24px; padding: 24px 0;
	border: 0; border-radius: 0; background: #fff;
}
/* Share the width of the longest line total across every row. */
@media (min-width: 640px) {
	@supports (grid-template-columns: subgrid) {
		body.esp-page-cart-v51 #main .woocommerce-cart-form table.cart tbody {
			display: grid;
			grid-template-columns: clamp(76px, 7.3vw, 112px) minmax(0, 1fr) max-content max-content;
			column-gap: clamp(14px, 1.65vw, 24px);
			padding-inline: 24px;
			box-sizing: border-box;
		}
		body.esp-page-cart-v51 #main .woocommerce-cart-form table.cart tbody > tr { grid-column: 1 / -1; }
		body.esp-page-cart-v51 #main .woocommerce .woocommerce-cart-form .cart_item {
			grid-template-columns: subgrid;
			margin-inline: 0;
		}
	}
}
body.esp-page-cart-v51 #main .woocommerce .woocommerce-cart-form .cart_item + .cart_item { border-top: 1px solid #e8e2da; }
body.esp-page-cart-v51 #main .woocommerce .woocommerce-cart-form .cart_item > td {
	display: block; position: static; float: none; width: auto; min-width: 0;
	margin: 0; padding: 0; border: 0; background: transparent; text-align: start !important;
}
body.esp-page-cart-v51 #main .woocommerce .woocommerce-cart-form .cart_item > td::before { display: none; }
body.esp-page-cart-v51 #main .woocommerce .cart_item .product-overview,
body.esp-page-cart-v51 #main .woocommerce .cart_item .product-overview > .d-flex { display: contents !important; }
body.esp-page-cart-v51 #main .cart_item .product-thumb { grid-area: thumb; }
body.esp-page-cart-v51 #main .cart_item .product-thumb .product-cart-thumb {
	display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 1;
	margin: 0; padding: 0; overflow: hidden; border-radius: 9px; background: #f3ebde;
}
body.esp-page-cart-v51 #main .cart_item .product-thumb img { width: 100%; height: 100%; object-fit: contain; }
body.esp-page-cart-v51 #main .cart_item .product-overview .product-name { grid-area: name; display: block !important; align-self: end; min-width: 0; margin: 0 !important; }
body.esp-page-cart-v51 #main .cart_item .product-name a { color: #1e1813; font: 500 17px/1.35 var(--esp-font-body,sans-serif); text-decoration: none; overflow-wrap: anywhere; }
body.esp-page-cart-v51 #main .cart_item .product-price { grid-area: unit; font: 400 14px/1.3 var(--esp-font-body,sans-serif); }
body.esp-page-cart-v51 #main .cart_item .product-price,
body.esp-page-cart-v51 #main .cart_item .product-price .amount { color: #6e6357 !important; }
body.esp-page-cart-v51 #main .cart_item .product-subtotal { grid-area: total; justify-self: end; white-space: normal; font: 600 18px/1.3 var(--esp-font-body,sans-serif); }
body.esp-page-cart-v51 #main :is(.product-subtotal,.cart_totals) .amount { color: #1e1813 !important; }
body.esp-page-cart-v51 #main .cart_item .product-quantity { grid-area: qty; }
body.esp-page-cart-v51 #main .cart_item .product-quantity .quantity {
	display: inline-grid; grid-template-columns: 32px 30px 32px; align-items: stretch;
	width: max-content; min-width: 0; height: 42px; padding: 0; margin: 0;
	border: 1px solid #cbbfad; border-radius: 8px; background: #fff; overflow: hidden;
}
body.esp-page-cart-v51 #main .cart_item .product-quantity .quantity :is(.btn-qty,.qty) {
	display: block; width: 100%; min-width: 0; height: 100%; min-height: 0; margin: 0; padding: 0;
	border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #1e1813;
	text-align: center; font: 500 16px/1.3 var(--esp-font-body,sans-serif);
}
body.esp-page-cart-v51 #main .cart_item .product-quantity .quantity :is(button,input):focus-visible { outline: 2px solid #8b692e; outline-offset: -3px; }
body.esp-page-cart-v51 #main .cart_item .product-remove { grid-area: remove; align-self: start; justify-self: start; }
body.esp-page-cart-v51 #main .cart_item .product-remove a {
	display: inline-flex; align-items: center; justify-content: start; width: auto; height: auto; min-height: 24px;
	padding: 0 4px 0 0; margin: 0; background: transparent; border: 0; color: #99351d !important;
	font: 600 11px/1.3 var(--esp-font-body,sans-serif); text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
}
body.esp-page-cart-v51 #main .cart-collaterals.cross-sells:empty,
body.esp-page-cart-v51 #main .cart-collaterals.cross-sells:not(:has(*)) { display: none; }
body.esp-page-cart-v51 #main table.cart tr:not(.cart_item):has(td.actions):not(:has(td.actions button[name=update_cart]:enabled,td.actions a,td.actions input:not([type=hidden]),td.actions button:not([name=update_cart]))) { display: none; }

body.esp-page-cart-v51 #main .woocommerce .cart-collaterals:has(.cart_totals) { margin: 0; padding: 24px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 12px 48px rgb(79 71 62 / 8%); }
body.esp-page-cart-v51 #main .woocommerce .cart_totals { display: flex; flex-direction: column; min-width: 0; }
body.esp-page-cart-v51 #main .woocommerce .cart_totals > :is(h2,.m-0) { order: 0; margin: 0 0 16px !important; padding: 0 !important; color: #1e1813; font: 400 30px/1.1 var(--esp-font-display,Georgia) !important; text-transform: uppercase; }
body.esp-page-cart-v51 #main .esp-basket-subtotal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 16px 0; border-block: 1px solid #e8e2da; }
body.esp-page-cart-v51 #main .esp-basket-subtotal :is(dt,dd) { margin: 0; color: #1e1813; font: 500 16px/1.4 var(--esp-font-body,sans-serif); }
body.esp-page-cart-v51 #main .esp-basket-subtotal dd { text-align: end; font-weight: 600; }
body.esp-page-cart-v51 #main .esp-cart-adjustments { margin: 0; width: 100%; color: #51453a; font-size: 14px; }
body.esp-page-cart-v51 #main .woocommerce .wc-proceed-to-checkout { order: 4; padding: 0; margin: 18px 0 0; }
body.esp-page-cart-v51 #main .woocommerce .wc-proceed-to-checkout .esp-basket-checkout {
	display: block; width: 100%; padding: 12px 16px; margin: 0; border: 0; border-radius: 8px;
	background: #8b692e; color: #fff; text-align: center; text-decoration: none; font: 500 16px/1.4 var(--esp-font-body,sans-serif);
}
body.esp-page-cart-v51 #main .esp-basket-continue { display: block; width: 100%; margin-top: 20px; padding: 8px; color: #1e1813; text-align: center; text-decoration: none; font: 500 15px/1.4 var(--esp-font-body,sans-serif); }
body.esp-page-cart-v51 #main .esp-basket-continue:hover { text-decoration: underline; }
body.esp-page-cart-v51 #main #pwgc-redeem-gift-card-container { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; margin-block: 16px; }
body.esp-page-cart-v51 #main #pwgc-redeem-gift-card-container > br,
body.esp-page-cart-v51 #main #pwgc-redeem-error:empty { display: none; }
body.esp-page-cart-v51 #main #pwgc-redeem-gift-card-container > label,
body.esp-page-cart-v51 #main #pwgc-redeem-error { grid-column: 1 / -1; margin: 0; }
body.esp-page-cart-v51 #main #pwgc-redeem-gift-card-number { min-width: 0; width: 100%; min-height: 44px; margin: 0; padding: 8px 10px; border: 1px solid #d9cfbf; border-radius: 8px; }
body.esp-page-cart-v51 #main #pwgc-redeem-button { min-height: 44px; margin: 0; padding: 8px 12px; border: 1px solid #8b692e; border-radius: 8px; color: #805f25; background: #fff; font: 500 14px/1.4 var(--esp-font-body,sans-serif); }
body.esp-redesign #main :is(.gtw-add-order-gift-wrapper-content,.gtw-order-gift-wrapper-modal,.wp-block-woocommerce-gtw-wc-checkout-gift-wrapper-block,.wp-block-woocommerce-gtw-wc-cart-gift-wrapper-block) { display: none !important; }
body.esp-page-checkout-v51 #main .wc-block-checkout__shipping-method-container {
	display: inline-grid; grid-auto-columns: minmax(0,1fr); grid-auto-flow: column;
	max-width: 100%; gap: 8px; margin: 0 0 8px; padding: 0; background: transparent; border: 0;
}
body.esp-page-checkout-v51 #main .wc-block-checkout__shipping-method-option {
	display: flex; align-items: center; justify-content: center; box-sizing: border-box;
	min-width: 112px; min-height: 48px; width: auto; height: auto; margin: 0; padding: 10px 16px;
	border: 1px solid #d8cebf; border-radius: 8px; background: #fff; color: #453a2f; box-shadow: none;
	cursor: pointer; font: 500 14px/1.4 var(--esp-font-body,sans-serif);
}
body.esp-page-checkout-v51 #main .wc-block-checkout__shipping-method-option[aria-checked=true] {
	border-color: #916d32; background: #f4ecdf; color: #33271a; box-shadow: inset 0 0 0 1px #916d32;
}
body.esp-page-checkout-v51 #main .wc-block-checkout__shipping-method-option:focus-visible {
	outline: 2px solid #735525; outline-offset: 2px;
}
body.esp-page-checkout-v51 #main .wc-block-checkout__shipping-method-option-title-wrapper {
	display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; margin: 0;
}
body.esp-page-checkout-v51 #main svg.wc-block-checkout__shipping-method-option-icon {
	display: block; flex: 0 0 20px; width: 20px !important; height: 20px !important;
	max-width: 20px; max-height: 20px; margin: 0; fill: currentColor;
}
body.esp-page-checkout-v51 #main .wc-block-checkout__shipping-method-option-title {
	min-width: 0; padding: 0; margin: 0; color: inherit; font: inherit; text-align: start;
}
body.esp-page-checkout-v51 #main :is(.wc-block-checkout__shipping-option,.wc-block-checkout__pickup-options) .wc-block-components-radio-control {
	display: grid; gap: 8px; border: 0; border-radius: 0; box-shadow: none; background: transparent;
}
body.esp-page-checkout-v51 #main :is(.wc-block-checkout__shipping-option,.wc-block-checkout__pickup-options) .wc-block-components-radio-control__option {
	display: grid; grid-template-columns: 16px minmax(0,1fr); align-items: center; gap: 10px;
	min-height: 44px; padding: 10px 12px; margin: 0; border: 1px solid #ded5c7;
	border-radius: 8px; background: white; color: #30271d; box-shadow: none;
}
body.esp-page-checkout-v51 #main :is(.wc-block-checkout__shipping-option,.wc-block-checkout__pickup-options) .wc-block-components-radio-control__option:has(:checked) {
	background: #fbf7ef; border-color: #916d32;
}
body.esp-page-checkout-v51 #main :is(.wc-block-checkout__shipping-option,.wc-block-checkout__pickup-options) .wc-block-components-radio-control__input {
	position: static; appearance: auto; transform: none; width: 16px; height: 16px; min-width: 16px; min-height: 16px;
	margin: 0; border: 0; box-shadow: none; accent-color: #8b682f;
}
body.esp-page-checkout-v51 #main :is(.wc-block-checkout__shipping-option,.wc-block-checkout__pickup-options) .wc-block-components-radio-control__input::before { content: none; }
body.esp-page-checkout-v51 #main :is(.wc-block-checkout__shipping-option,.wc-block-checkout__pickup-options) .wc-block-components-radio-control__option-layout { min-width: 0; width: 100%; }
body.esp-page-checkout-v51 #main :is(.wc-block-checkout__shipping-option,.wc-block-checkout__pickup-options) .wc-block-components-radio-control__description { color: #6a5c4d; font-size: 13px; line-height: 1.5; }
body.esp-page-checkout-v51 #main #pwgc-redeem-gift-card-container { margin: 12px 0; }
body.esp-page-checkout-v51 #main #pwgc-redeem-gift-card-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
body.esp-page-checkout-v51 #main #pwgc-redeem-gift-card-form label { grid-column: 1 / -1; margin: 0; font-weight: 500; color: #1e1813; }
body.esp-page-checkout-v51 #main #pwgc-redeem-gift-card-number { min-width: 0; width: 100%; min-height: 44px; margin: 0; padding: 8px 10px; border: 1px solid #d9cfbf; border-radius: 8px; }
body.esp-page-checkout-v51 #main #pwgc-redeem-gift-card-form button { min-height: 44px; margin: 0; padding: 8px 12px; border: 1px solid #8b692e; border-radius: 8px; color: #805f25; background: #fff; font: 500 14px/1.4 var(--esp-font-body,sans-serif); }
body.esp-page-checkout-v51 #main .esp-native-checkout-ready .wc-block-components-order-summary-item__image img { aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #f3ebde; }
body.esp-page-checkout-v51 #main .esp-native-checkout-ready .wc-block-components-panel__button,
body.esp-page-checkout-v51 #main .esp-native-checkout-ready .wc-block-components-order-summary-item { overflow-wrap: anywhere; }
@media (max-width: 1023.98px), (pointer: coarse) {
	body:is(.esp-page-cart-v51,.esp-page-checkout-v51) #main.esp-section:has(.esp-purchase-heading) { padding-top: 8px; }
	body:is(.esp-page-cart-v51,.esp-page-checkout-v51) #main .esp-purchase-crumb { padding-block: 0; }
	body.esp-page-cart-v51 #main :is(.esp-purchase-crumb,.esp-purchase-heading) { margin-bottom: 24px; }
	body.esp-page-checkout-v51 #main :is(.esp-purchase-crumb,.esp-purchase-heading) { margin-bottom: 16px; }
	body.esp-page-cart-v51 #main .woocommerce .row:has(form.woocommerce-cart-form) { grid-template-columns: minmax(0,1fr); gap: 16px; }
	body.esp-page-cart-v51 #main .woocommerce .row:has(form.woocommerce-cart-form) > div:has(> form) { display: contents; }
	body.esp-page-cart-v51 #main .woocommerce .row:has(form.woocommerce-cart-form) > div:has(.cart_totals) { grid-row: 2; }
	body.esp-page-cart-v51 #main .woocommerce .esp-basket-continue { grid-row: 3; margin: 0; }
	body.esp-page-cart-v51 #main .woocommerce .cart-collaterals:has(.cart_totals) { padding: 20px; }
}
@media (max-width: 639.98px) {
	body.esp-page-cart-v51 #main :is(.esp-purchase-crumb,.esp-purchase-heading) { margin-bottom: 16px; }
	body.esp-page-checkout-v51 #main :is(.esp-purchase-crumb,.esp-purchase-heading) { margin-bottom: 12px; }
	body:is(.esp-page-cart-v51,.esp-page-checkout-v51) #main .esp-purchase-heading h1 { font-size: 30px; }
	body.esp-page-checkout-v51 #main .esp-block-step-link:not([data-esp-checkout-heading=contact]) { margin-top: 12px; }
	body.esp-page-checkout-v51 #main .wc-block-checkout__shipping-method-container { display: grid; width: 100%; }
	body.esp-page-checkout-v51 #main .wc-block-checkout__shipping-method-option { min-width: 0; min-height: 44px; padding: 8px; font-size: 13px; }
	body.esp-page-checkout-v51 #main .wc-block-checkout__shipping-method-option-title-wrapper { gap: 5px; }
	body.esp-page-cart-v51 #main .woocommerce .woocommerce-cart-form table.cart { border-radius: 0; background: transparent; }
	body.esp-page-cart-v51 #main .woocommerce .woocommerce-cart-form .cart_item {
		grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "thumb name" "thumb unit" "thumb total" "qty remove";
		column-gap: 12px; row-gap: 3px; margin: 0 0 12px; padding: 16px;
		border: 0; border-radius: 12px;
	}
	body.esp-page-cart-v51 #main .woocommerce .woocommerce-cart-form .cart_item + .cart_item { border: 0; }
	body.esp-page-cart-v51 #main .cart_item .product-subtotal { align-self: start; justify-self: start; font-size: 16px; }
	body.esp-page-cart-v51 #main .cart_item .product-quantity { margin-top: 7px; }
	body.esp-page-cart-v51 #main .cart_item .product-remove { align-self: end; justify-self: end; }
	body.esp-page-cart-v51 #main .cart_item .product-remove a { min-height: 40px; padding: 6px; }
	body.esp-page-checkout-v51 #main #pwgc-redeem-gift-card-form { grid-template-columns: minmax(0,1fr); }
}

body.esp-page-checkout-v51 #main .esp-email-review { display: grid; gap: 5px; margin-top: 8px; }
body.esp-page-checkout-v51 #main .esp-email-review label { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; color: #29211b; font-size: 14px; line-height: 1.45; cursor: pointer; }
body.esp-page-checkout-v51 #main .esp-email-review label input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: #805c24; }
body.esp-page-checkout-v51 #main .esp-email-review [role=status] { margin: 0; color: #372d22; font-size: 14px; }
body.esp-page-checkout-v51 #main .esp-email-review [role=status]:empty { display: none; }

body.esp-page-cart-v51 #main .woocommerce-cart-form .cart_item[data-esp-removing] { display: none !important; }
body.esp-page-cart-v51 .esp-cart-removal-error { margin-block: 12px; color: #713b2a; font-size: .94rem; }
