/**
 * Etchwell WooCommerce styles.
 *
 * Shop, product, cart and checkout, brought in line with the brand: warm
 * off-white ground, thin stone rules, 4px radius, copper used sparingly.
 *
 * The product grid is 3 across on desktop and 2 across on mobile.
 */

/* -------------------------------------------------------------------------- */
/* Shop and category archives                                                  */
/* -------------------------------------------------------------------------- */

.woocommerce-products-header {
	margin-bottom: var(--ew-gap);
}

.woocommerce-products-header__title {
	margin-bottom: 0.5rem;
}

.term-description {
	max-width: 62ch;
	color: var(--global-palette5, #5e6067);
}

/* Result count and ordering sit on one quiet line above the grid. */
.woocommerce-result-count,
.woocommerce-ordering select {
	font-size: 14px;
	color: var(--global-palette5, #5e6067);
}

.woocommerce-ordering select {
	padding: 10px 12px;
}

/* Grid: two columns from the smallest screen, three from tablet up. */
.woocommerce ul.products,
.wc-block-grid__products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.woocommerce ul.products,
	.wc-block-grid__products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 32px 28px;
	}
}

/* Kadence and WooCommerce both ship float and percentage widths. Neutralise them
   so the grid above is the single source of truth at every breakpoint. */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product-category,
.wc-block-grid__products .wc-block-grid__product {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	display: flex;
	flex-direction: column;
}

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

/* Product card. The photograph carries the card, so the details sit straight on
   the page background rather than inside a second white box. */
.woocommerce ul.products li.product .product-details,
.woocommerce ul.products li.product .woocommerce-loop-product__link {
	background: transparent;
}

.woocommerce ul.products li.product .product-details.content-bg {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 14px 0 0;
}

.woocommerce ul.products li.product a img,
.wc-block-grid__product-image img {
	width: 100%;
	height: auto;
	margin-bottom: 0; /* The details block below carries the gap. */
	background: var(--ew-stone);
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	transition: opacity 0.25s var(--ew-ease);
}

.woocommerce ul.products li.product a:hover img {
	opacity: 0.88;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.wc-block-grid__product-title {
	font-family: var(--global-heading-font-family, "DM Serif Display", Georgia, serif);
	font-size: 19px;
	line-height: 1.3;
	font-weight: 400;
	color: var(--ew-graphite);
	margin: 0 0 0.35rem;
	padding: 0;
}

@media (min-width: 768px) {
	.woocommerce ul.products li.product .woocommerce-loop-product__title,
	.woocommerce ul.products li.product h2,
	.wc-block-grid__product-title {
		font-size: 22px;
	}
}

.woocommerce ul.products li.product .price,
.wc-block-grid__product-price {
	font-family: var(--global-body-font-family);
	font-size: 15px;
	font-weight: 400;
	color: var(--global-palette5, #5e6067);
	margin: 0;
}

.woocommerce ul.products li.product .price del {
	opacity: 0.6;
	margin-right: 0.4em;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
	color: var(--ew-copper);
}

/* Category tiles on the shop landing. */
.woocommerce ul.products li.product-category h2 {
	display: flex;
	align-items: baseline;
	gap: 0.5em;
}

.woocommerce ul.products li.product-category mark,
.woocommerce ul.products li.product-category .count {
	background: none;
	color: var(--global-palette6, #8b8d94);
	font-size: 13px;
}

/* Sale flash: a quiet copper tag, not a red circle. */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	min-height: 0;
	min-width: 0;
	padding: 5px 10px;
	margin: 0;
	line-height: 1;
	font-family: var(--global-body-font-family);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: var(--ew-copper);
	color: var(--ew-white);
	border-radius: var(--ew-radius);
}

.woocommerce ul.products li.product {
	position: relative;
}

/* Add to cart in the grid: a quiet underlined link, not a filled block. */
.woocommerce ul.products li.product .button {
	margin-top: 0.75rem;
	align-self: flex-start;
}

.woocommerce ul.products li.product .kadence-product-button-link .button {
	background: none;
	border: 0;
	border-bottom: 1px solid var(--ew-copper);
	border-radius: 0;
	padding: 0 0 3px;
	color: var(--ew-graphite);
}

.woocommerce ul.products li.product .kadence-product-button-link .button:hover {
	color: var(--ew-copper);
	background: none;
}

/* Star ratings. */
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before {
	color: var(--ew-copper);
}

/* Pagination. */
.woocommerce nav.woocommerce-pagination ul {
	border: 0;
	gap: 6px;
	display: flex;
	justify-content: center;
}

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

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 40px;
	padding: 10px 12px;
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	background: var(--ew-white);
	color: var(--ew-graphite);
	font-size: 14px;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
	background: var(--ew-graphite);
	border-color: var(--ew-graphite);
	color: var(--ew-white);
}

/* -------------------------------------------------------------------------- */
/* Single product                                                              */
/* -------------------------------------------------------------------------- */

/* WooCommerce lays this out with two 48% floats, which cannot hold a sticky
   column or a full width tab row. Grid instead, and neutralise the floats. */
@media (min-width: 900px) {
	.single-product div.product {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 56px;
		align-items: start;
	}

	.single-product div.product > * {
		grid-column: 1 / -1;
		float: none !important;
		width: auto !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.single-product div.product > .etchwell-media-col,
	.single-product div.product > .woocommerce-product-gallery {
		grid-column: 1;
		grid-row: 1;
	}

	.single-product div.product > .summary {
		grid-column: 2;
		grid-row: 1;
	}

	/* The preview follows the customer down the form. The column stretches to
	   the height of the form row, so the pinned block stops before the tabs. */
	.single-product div.product > .etchwell-media-col {
		align-self: stretch;
	}

	.etchwell-media-sticky {
		position: sticky;
		top: 96px;
	}

	/* Keep the preview short enough to stay fully on screen. */
	.etchwell-media-col .etchwell-stage__frame {
		max-width: max(260px, calc(100vh - 390px));
		margin-inline: auto;
	}
}

/* In the designer column the product photos become a strip of thumbnails that
   open full size, so the live preview stays the main picture. */
.etchwell-media-col .woocommerce-product-gallery .flex-viewport,
.etchwell-media-col .woocommerce-product-gallery__trigger {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.etchwell-media-col .woocommerce-product-gallery {
	margin-top: 16px !important;
}

.etchwell-media-col .woocommerce-product-gallery::before {
	content: "More photos";
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(35, 36, 40, 0.6);
}

.etchwell-media-col .woocommerce-product-gallery .flex-control-thumbs {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	width: auto !important;
	margin: 0 !important;
	transform: none !important;
	justify-content: flex-start !important;
}

.etchwell-media-col .woocommerce-product-gallery .flex-control-thumbs li {
	width: 72px !important;
	margin: 0 !important;
	float: none !important;
}

.etchwell-media-col .woocommerce-product-gallery .flex-control-thumbs img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid var(--ew-stone);
	opacity: 1 !important;
	cursor: zoom-in;
}

.etchwell-media-col .woocommerce-product-gallery .flex-control-thumbs img:hover {
	border-color: var(--ew-copper);
}

@media (min-width: 900px) {
}

/* Woo sizes the gallery at 48% of its parent, which is now the media column
   rather than the whole product. Let it fill the column. */
.etchwell-media-col .woocommerce-product-gallery {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

.single-product div.product .product_title {
	margin-bottom: 0.5rem;
}

.single-product div.product .woocommerce-product-rating {
	margin-bottom: 1rem;
}

.single-product div.product p.price,
.single-product div.product span.price {
	font-family: var(--global-body-font-family);
	font-size: 24px;
	font-weight: 400;
	color: var(--ew-graphite);
	margin-bottom: 1.25rem;
}

.single-product div.product .woocommerce-product-details__short-description {
	color: var(--global-palette5, #5e6067);
	max-width: 56ch;
}

.single-product div.product .images img,
.single-product .woocommerce-product-gallery__image img {
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	background: var(--ew-stone);
}

.woocommerce-product-gallery__trigger {
	border-radius: var(--ew-radius);
}

/* Variation selects. */
.woocommerce div.product form.cart .variations {
	margin-bottom: 1.25rem;
	border-collapse: separate;
	border-spacing: 0 12px;
}

.woocommerce div.product form.cart .variations th.label,
.woocommerce div.product form.cart .variations label {
	font-family: var(--global-body-font-family);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--global-palette5, #5e6067);
	padding-right: 16px;
	vertical-align: middle;
}

.woocommerce div.product form.cart .variations select {
	width: 100%;
	min-width: 200px;
}

.woocommerce div.product form.cart .reset_variations {
	font-size: 13px;
	color: var(--ew-copper);
}

.woocommerce div.product .woocommerce-variation-price {
	margin-bottom: 1rem;
}

/* Quantity box. */
.woocommerce .quantity .qty {
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	background: var(--ew-white);
	padding: 12px 8px;
	text-align: center;
}

/* Tabs. Centred under the two columns above, and held to a reading measure.
   The sticky media column can overrun the bottom of its grid row, so anything
   below it is given the page background and lifted a layer, and the preview
   slides under it rather than through it. */
.woocommerce div.product .woocommerce-tabs,
.single-product div.product > .related,
.single-product div.product > .up-sells {
	position: relative;
	z-index: 1;
	background: var(--ew-offwhite);
}

.woocommerce div.product .woocommerce-tabs {
	margin-top: var(--ew-section-y);
	padding-top: var(--ew-gap);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
	margin: 0 0 2rem;
	border-bottom: var(--ew-rule);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
}

.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 {
	content: none;
	border: 0;
	box-shadow: none;
}

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

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 12px 18px;
	font-family: var(--global-body-font-family);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--global-palette5, #5e6067);
	border-bottom: 2px solid transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--ew-graphite);
	border-bottom-color: var(--ew-copper);
}

.woocommerce div.product .woocommerce-tabs .panel {
	max-width: 70ch;
	margin-inline: auto;
}

.woocommerce div.product .woocommerce-tabs .panel > h2:first-child {
	/* The panel title repeats the tab that is already selected. */
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

/* Related and upsell headings. */
.related.products > h2,
.up-sells > h2,
.cross-sells > h2 {
	margin-bottom: var(--ew-gap);
}

/* -------------------------------------------------------------------------- */
/* Cart                                                                        */
/* -------------------------------------------------------------------------- */

.woocommerce table.shop_table {
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	border-collapse: separate;
	border-spacing: 0;
	background: var(--ew-white);
}

.woocommerce table.shop_table th {
	font-family: var(--global-body-font-family);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--global-palette5, #5e6067);
	border-bottom: var(--ew-rule);
	padding: 16px;
}

.woocommerce table.shop_table td {
	border-top: var(--ew-rule);
	padding: 18px 16px;
	vertical-align: middle;
}

.woocommerce table.shop_table tbody tr:first-child td {
	border-top: 0;
}

.woocommerce table.cart img {
	width: 72px;
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	background: var(--ew-stone);
}

.woocommerce a.remove {
	color: var(--global-palette6, #8b8d94) !important;
	font-weight: 400;
	line-height: 1.1;
}

.woocommerce a.remove:hover {
	background: transparent !important;
	color: var(--global-palette13, #a33224) !important;
}

.woocommerce .cart-collaterals .cart_totals > h2,
.woocommerce-checkout #order_review_heading {
	font-size: 22px;
	margin-bottom: 1rem;
}

.woocommerce .cart_totals table.shop_table td,
.woocommerce .cart_totals table.shop_table th {
	padding: 14px 16px;
}

.woocommerce .cart-collaterals .cross-sells ul.products {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* WooCommerce floats the coupon field, its button and Update basket, which
   collide once the cart column is narrower than the three of them together. */
.woocommerce .cart .actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	float: none;
	margin-bottom: 14px;
	padding: 0;
}

.woocommerce .cart .actions .coupon .input-text {
	flex: 1 1 150px;
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
}

/* Kadence gives these buttons a fixed height and line-height, so a wrapped
   label spills out of the box. Keep the label on one line. */
.woocommerce .cart .actions .coupon .button,
.woocommerce .cart .actions > .button {
	float: none;
	margin: 0;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.woocommerce .cart .actions .coupon .input-text,
	.woocommerce .cart .actions .coupon .button {
		flex: 1 1 100%;
	}
}

.woocommerce .cart .actions > .button {
	width: 100%;
}

@media (min-width: 600px) {
	.woocommerce .cart .actions > .button {
		width: auto;
	}
}

.woocommerce-cart .wc-proceed-to-checkout .button {
	width: 100%;
	text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Checkout                                                                    */
/* -------------------------------------------------------------------------- */

/* The two toggles that open the login and coupon forms sit above everything
   else on the page, so they set the tone. Both are centred. */
.woocommerce-form-login-toggle,
.woocommerce-form-coupon-toggle {
	max-width: 620px;
	margin-inline: auto;
}

.woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-form-coupon-toggle .woocommerce-info {
	text-align: center;
	padding: 14px 20px;
	font-size: 14px;
}

/* Returning customer is a quiet prompt, not a panel. Scoped past the shared
   notice rule above, which is itself scoped past Kadence. */
.woocommerce .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	color: var(--global-palette5, #5e6067);
}

.woocommerce > .woocommerce-form-login-toggle {
	margin-bottom: 18px;
}

/* Kadence opens the content area with a 96px top margin and another 32px of
   wrapper padding. On checkout and cart the first thing on the page is a one
   line prompt, so that much air just pushes the form below the fold. */
.woocommerce-checkout .content-area,
.woocommerce-cart .content-area {
	margin-top: 32px;
}

.woocommerce-checkout .entry-content-wrap,
.woocommerce-cart .entry-content-wrap {
	padding-top: 16px;
}

/* Woo sets its own margin on both of these forms, so the auto margins need the
   extra weight to centre them under the toggle that opened them. */
.woocommerce .woocommerce-checkout .checkout_coupon,
.woocommerce-checkout form.checkout_coupon,
.woocommerce-checkout form.woocommerce-form-login {
	max-width: 620px;
	margin: 0 auto var(--ew-gap);
	background: var(--ew-white);
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	padding: 24px;
}

.woocommerce-checkout form.checkout_coupon .form-row {
	margin-bottom: 0;
}

.woocommerce-checkout form.checkout_coupon p:first-child {
	margin-bottom: 14px;
	font-size: 14px;
	color: var(--global-palette5, #5e6067);
}

.woocommerce-checkout .woocommerce > .woocommerce-form-coupon-toggle {
	margin-bottom: var(--ew-gap);
}

.woocommerce-checkout h3,
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3 {
	font-size: 22px;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: var(--ew-rule);
}

.woocommerce form .form-row {
	margin-bottom: 1.1rem;
	padding: 0;
}

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 13px;
	letter-spacing: 0.02em;
}

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

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row .select2-container .select2-selection--single {
	width: 100%;
	height: auto;
	padding: 12px 14px;
	background: var(--ew-white);
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 1.5;
	padding-left: 0;
	color: var(--global-palette4, #33353a);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
	right: 8px;
}

.select2-dropdown {
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background: var(--ew-stone);
	color: var(--ew-graphite);
}

#order_review,
.woocommerce-checkout-review-order {
	background: var(--ew-white);
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	padding: 24px;
}

#order_review table.shop_table {
	border: 0;
	background: transparent;
}

.woocommerce-checkout #payment {
	background: transparent;
	border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
	border-bottom: var(--ew-rule);
	padding: 0 0 1rem;
	margin: 0 0 1rem;
}

/* Kadence fills each gateway row stone. The method is a choice, not a banner,
   so it reads as a plain labelled row. */
.woocommerce-checkout #payment ul.payment_methods li,
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
	list-style: none;
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0 0 4px;
}

/* Kadence fills the selected gateway's label stone and hangs a 5px accent bar
   off its left edge. Both need matching specificity to undo, hence the long
   selector: it mirrors the theme's own and adds one class. */
.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > label,
.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method input[type="radio"]:first-child:checked + label {
	display: inline-block;
	background: none;
	border-left: 0;
	padding: 0;
	margin: 0;
	font-weight: 500;
	color: var(--ew-graphite);
}

/* The gateway description reads as body copy under the radio, not as a filled
   panel. Woo draws a little arrow with ::before, which has nothing to point at
   once the fill is gone. */
.woocommerce-checkout #payment div.payment_box {
	background: none;
	border-radius: 0;
	color: var(--global-palette5, #5e6067);
	font-size: 14px;
	line-height: 1.6;
	margin: 6px 0 0;
	padding: 0 0 4px;
}

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

.woocommerce-checkout #payment div.payment_box p {
	margin: 0;
}

.woocommerce-checkout #payment div.payment_box p + p {
	margin-top: 0.5rem;
}

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

.woocommerce #payment #place_order,
.woocommerce-checkout .button.alt {
	width: 100%;
}

/* -------------------------------------------------------------------------- */
/* Messages                                                                    */
/* -------------------------------------------------------------------------- */

/* Scoped to .woocommerce because Kadence paints these stone with a selector
   that beats a bare class. */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-noreviews,
.woocommerce .woocommerce-notice,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
.woocommerce-notice {
	background: var(--ew-white);
	border: 1px solid var(--ew-copper);
	border-radius: var(--ew-radius);
	color: var(--global-palette4, #33353a);
	padding: 18px 20px;
	font-size: 15px;
}

/* Notices sit directly under the header, so the theme's content padding leaves
   them stranded. Pull them up and let the notice itself carry the gap. */
.woocommerce-notices-wrapper {
	margin-bottom: var(--ew-gap);
}

.woocommerce-notices-wrapper:first-child {
	margin-top: -36px;
}

@media (min-width: 768px) {
	.woocommerce-notices-wrapper:first-child {
		margin-top: -70px;
	}
}

.woocommerce-notices-wrapper > :last-child {
	margin-bottom: 0;
}

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

.woocommerce-error {
	border-color: var(--global-palette13, #a33224);
}

.woocommerce-message .button,
.woocommerce-info .button {
	font-size: 13px;
}

/* -------------------------------------------------------------------------- */
/* My account                                                                  */
/* -------------------------------------------------------------------------- */

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	overflow: hidden;
	background: var(--ew-white);
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	border-bottom: var(--ew-rule);
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
	border-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 14px 18px;
	font-size: 15px;
	color: var(--global-palette4, #33353a);
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--ew-stone);
	color: var(--ew-graphite);
}

/* -------------------------------------------------------------------------- */
/* Mobile refinements                                                          */
/* -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	/* Stack the cart table into readable rows rather than a squeezed grid. */
	.woocommerce table.shop_table_responsive tr td {
		padding: 12px 14px;
	}

	.woocommerce table.cart img {
		width: 56px;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs li a {
		padding: 10px 12px;
		font-size: 12px;
	}

	#order_review,
	.woocommerce-checkout-review-order {
		padding: 18px;
	}

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

/* Woo right-aligns every cell in the totals table, which leaves the shipping
   radios ragged on the left where the eye actually scans them. */
.woocommerce .cart_totals #shipping_method,
.woocommerce-checkout-review-order #shipping_method {
	text-align: left;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce .cart_totals #shipping_method li,
.woocommerce-checkout-review-order #shipping_method li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 8px;
	padding: 0;
}

.woocommerce .cart_totals #shipping_method li:last-child,
.woocommerce-checkout-review-order #shipping_method li:last-child {
	margin-bottom: 0;
}

.woocommerce .cart_totals #shipping_method li input,
.woocommerce-checkout-review-order #shipping_method li input {
	margin: 4px 0 0;
	flex: none;
}

.woocommerce .cart_totals #shipping_method li label,
.woocommerce-checkout-review-order #shipping_method li label {
	margin: 0;
	line-height: 1.5;
}

/* Kadence pulls the thumbnail strip up over the main photo. Sit it below. */
.single-product .woocommerce-product-gallery .flex-control-thumbs {
	margin-top: 12px !important;
}

.single-product .woocommerce-product-gallery.gallery-has-thumbnails {
	padding-bottom: 0;
}

/* A product with a single photo has nothing extra to show beside the preview. */
.etchwell-media-col .woocommerce-product-gallery:not(:has(.flex-control-thumbs)) {
	display: none !important;
}

.etchwell-media-col .woocommerce-product-gallery .flex-control-thumbs {
	position: static !important;
	left: auto !important;
	padding: 0 !important;
}
