/* Target CMS — shop experience
 *
 * Scoped to body.tcw so nothing here can reach the rest of the site.
 *
 * Type is deliberately NOT set: headings keep the theme's serif and body keeps
 * its sans, because the point is for the shop to stop looking like a separate
 * website. Only colour, spacing, structure and states are handled here.
 */

body.tcw {
	--navy:      #12235B;
	--navy-deep: #0B1740;
	--blue:      #1565D8;
	--blue-dark: #0F4EAB;
	--red:       #E1372B;
	--amber:     #F5A623;
	--green:     #0E8A5F;
	--ink:       #14203A;
	--ink-2:     #4A5670;
	--ink-3:     #7C89A3;
	--line:      #E2E7F1;
	--paper:     #F5F7FC;
	--radius:    14px;
	--shadow:    0 2px 4px rgba(18,35,91,.05), 0 12px 28px -18px rgba(18,35,91,.28);
}

/* ============================================================ shared bits */

body.tcw .woocommerce-message,
body.tcw .woocommerce-info,
body.tcw .woocommerce-error {
	border: 1px solid var(--line);
	border-top: 3px solid var(--blue);
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--ink);
	padding: 14px 18px 14px 18px;
	font-size: .95rem;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
body.tcw .woocommerce-message::before,
body.tcw .woocommerce-info::before,
body.tcw .woocommerce-error::before { display: none; }
body.tcw .woocommerce-message { border-top-color: var(--green); }
body.tcw .woocommerce-error   { border-top-color: var(--red); }
body.tcw .woocommerce-message .button,
body.tcw .woocommerce-error .button { margin-left: auto; }

/* buttons ---------------------------------------------------------------- */
body.tcw .woocommerce a.button,
body.tcw .woocommerce button.button,
body.tcw .woocommerce input.button,
body.tcw .woocommerce a.button.alt,
body.tcw .woocommerce button.button.alt,
body.tcw .woocommerce #respond input#submit {
	background: var(--blue);
	color: #fff;
	border: 0;
	border-radius: 10px;
	font-weight: 700;
	letter-spacing: .01em;
	padding: 13px 22px;
	line-height: 1.2;
	box-shadow: 0 1px 2px rgba(15,78,171,.28);
	transition: background .15s ease, transform .08s ease, box-shadow .15s ease;
}
body.tcw .woocommerce a.button:hover,
body.tcw .woocommerce button.button:hover,
body.tcw .woocommerce input.button:hover,
body.tcw .woocommerce button.button.alt:hover,
body.tcw .woocommerce #respond input#submit:hover {
	background: var(--blue-dark);
	color: #fff;
	box-shadow: 0 6px 16px -6px rgba(15,78,171,.55);
}
body.tcw .woocommerce a.button:active,
body.tcw .woocommerce button.button:active { transform: translateY(1px); }

body.tcw .woocommerce a.button:focus-visible,
body.tcw .woocommerce button.button:focus-visible,
body.tcw .woocommerce input:focus-visible,
body.tcw .woocommerce select:focus-visible,
body.tcw .woocommerce textarea:focus-visible {
	outline: 3px solid rgba(21,101,216,.35);
	outline-offset: 2px;
}

/* the quieter second button: keep going, view cart, back to shop */
body.tcw .woocommerce a.button.wc-backward,
body.tcw .woocommerce .cart .button[name="update_cart"],
body.tcw .woocommerce a.added_to_cart {
	background: #fff;
	color: var(--navy);
	box-shadow: inset 0 0 0 1.5px var(--line);
}
body.tcw .woocommerce a.button.wc-backward:hover,
body.tcw .woocommerce a.added_to_cart:hover {
	background: var(--paper);
	color: var(--navy);
	box-shadow: inset 0 0 0 1.5px var(--blue);
}

/* fields ----------------------------------------------------------------- */
body.tcw .woocommerce form .form-row input.input-text,
body.tcw .woocommerce form .form-row textarea,
body.tcw .woocommerce form .form-row .select2-container .select2-selection,
body.tcw .woocommerce form .form-row select,
body.tcw .woocommerce .coupon input.input-text {
	border: 1.5px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: .97rem;
	background: #fff;
	color: var(--ink);
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
body.tcw .woocommerce form .form-row input.input-text:focus,
body.tcw .woocommerce form .form-row textarea:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 4px rgba(21,101,216,.12);
	outline: none;
}
body.tcw .woocommerce form .form-row label {
	font-weight: 600;
	font-size: .88rem;
	color: var(--ink-2);
	margin-bottom: 5px;
}
body.tcw .required { color: var(--red); text-decoration: none; }

/* ===================================================== shop / archive grid */

body.tcw .woocommerce-products-header__title,
body.tcw .woocommerce-loop-category__title { color: var(--ink); }

body.tcw .woocommerce .woocommerce-result-count { color: var(--ink-3); font-size: .9rem; }
body.tcw .woocommerce .woocommerce-ordering select {
	border: 1.5px solid var(--line);
	border-radius: 10px;
	padding: 9px 12px;
	background: #fff;
	color: var(--ink);
	font-size: .92rem;
}

body.tcw .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px 22px;
	margin: 26px 0 0;
}
body.tcw .woocommerce ul.products::before,
body.tcw .woocommerce ul.products::after { content: none; }

body.tcw .woocommerce ul.products li.product {
	width: 100%;
	margin: 0;
	float: none;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 0 0 16px;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .18s ease;
}
body.tcw .woocommerce ul.products li.product:hover {
	border-color: #C9D5EC;
	box-shadow: 0 4px 8px rgba(18,35,91,.06), 0 20px 38px -22px rgba(18,35,91,.42);
}

/* THE SPIRAL EDGE.
 *
 * Every book on this shop is spiral bound and every cover photograph shows the
 * coil. Repeating it as the card's left edge ties the grid to the product
 * itself instead of to a generic card kit, and it is the only decorative thing
 * in this stylesheet. */
body.tcw .woocommerce ul.products li.product::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 9px;
	background:
		linear-gradient(var(--navy), var(--navy)) left / 3px 100% no-repeat,
		repeating-linear-gradient(
			to bottom,
			#C6D2E8 0 6px,
			transparent 6px 15px
		);
	opacity: .55;
	transition: opacity .18s ease;
}
body.tcw .woocommerce ul.products li.product:hover::before { opacity: 1; }

body.tcw .woocommerce ul.products li.product a img {
	margin: 0 0 14px;
	border-radius: 0;
	box-shadow: none;
	background: var(--paper);
	aspect-ratio: 300 / 420;
	object-fit: contain;
	padding: 16px 16px 8px 22px;
	transition: transform .25s ease;
}
body.tcw .woocommerce ul.products li.product:hover a img { transform: translateY(-3px); }

body.tcw .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tcw .woocommerce ul.products li.product h2 {
	font-size: 1rem !important;
	line-height: 1.35;
	font-weight: 700;
	color: var(--ink);
	padding: 0 16px 0 22px;
	margin: 0 0 8px;
}
body.tcw .woocommerce ul.products li.product .woocommerce-loop-product__link:hover h2 { color: var(--blue); }

/* the category name above the title: useful here, because it is the state */
body.tcw .woocommerce ul.products li.product .tcw-cat,
body.tcw .woocommerce ul.products li.product > .posted_in {
	padding: 0 16px 0 22px;
	font-size: .74rem;
	font-weight: 700;
	color: var(--blue);
	letter-spacing: .04em;
	margin: 0 0 6px;
}

body.tcw .woocommerce ul.products li.product .price {
	padding: 0 16px 0 22px;
	color: var(--ink);
	font-size: 1.18rem;
	font-weight: 800;
	margin: auto 0 12px;
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}
body.tcw .woocommerce ul.products li.product .price del {
	color: var(--ink-3);
	font-size: .9rem;
	font-weight: 600;
	opacity: 1;
}
body.tcw .woocommerce ul.products li.product .price ins {
	background: none;
	text-decoration: none;
	font-weight: 800;
	color: var(--ink);
}
body.tcw .woocommerce ul.products li.product .button {
	margin: 0 16px 0 22px;
	text-align: center;
	display: block;
}
body.tcw .woocommerce ul.products li.product .added_to_cart { margin: 8px 16px 0 22px; text-align: center; }

/* the sale badge, saying what was saved */
body.tcw .woocommerce span.onsale {
	position: absolute;
	top: 12px; right: 12px; left: auto;
	min-height: 0; min-width: 0;
	line-height: 1;
	padding: 7px 11px;
	border-radius: 100px;
	background: var(--red);
	color: #fff;
	font-size: .76rem;
	font-weight: 800;
	box-shadow: 0 4px 12px -4px rgba(225,55,43,.7);
	margin: 0;
	z-index: 2;
}
body.tcw span.onsale .amount { color: #fff; font-size: .76rem; }

/* pagination */
body.tcw .woocommerce nav.woocommerce-pagination ul { border: 0; gap: 6px; display: flex; justify-content: center; }
body.tcw .woocommerce nav.woocommerce-pagination ul li { border: 0; }
body.tcw .woocommerce nav.woocommerce-pagination ul li a,
body.tcw .woocommerce nav.woocommerce-pagination ul li span {
	border: 1px solid var(--line);
	border-radius: 10px;
	min-width: 42px;
	padding: 10px 12px;
	color: var(--ink-2);
	font-weight: 700;
	background: #fff;
}
body.tcw .woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

/* ======================================================== single product */

body.tcw .woocommerce div.product { margin-top: 8px; }
body.tcw .woocommerce div.product div.images img {
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--shadow);
}
body.tcw .woocommerce div.product .product_title {
	font-size: clamp(1.5rem, 3.4vw, 2.1rem);
	line-height: 1.25;
	color: var(--ink);
	margin-bottom: 10px;
}
body.tcw .tcw-byline {
	color: var(--ink-2);
	font-size: .95rem;
	margin: 0 0 12px;
}
body.tcw .woocommerce div.product p.price,
body.tcw .woocommerce div.product span.price {
	color: var(--ink);
	font-size: 1.9rem;
	font-weight: 800;
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 4px;
}
body.tcw .woocommerce div.product p.price del { font-size: 1.05rem; color: var(--ink-3); font-weight: 600; opacity: 1; }
body.tcw .woocommerce div.product p.price ins { background: none; color: var(--ink); font-weight: 800; }

body.tcw .woocommerce div.product form.cart { margin: 18px 0 0; }
body.tcw .woocommerce div.product form.cart .button {
	padding: 15px 30px;
	font-size: 1.02rem;
	border-radius: 12px;
}

/* quantity, as a stepper rather than a spin box nobody can hit on a phone */
body.tcw .woocommerce .quantity {
	display: inline-flex;
	align-items: stretch;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}
body.tcw .woocommerce .quantity input.qty {
	width: 52px;
	border: 0;
	text-align: center;
	font-weight: 700;
	color: var(--ink);
	background: #fff;
	-moz-appearance: textfield;
	padding: 12px 0;
}
body.tcw .woocommerce .quantity input.qty::-webkit-outer-spin-button,
body.tcw .woocommerce .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.tcw .tcw-step {
	border: 0;
	background: #fff;
	color: var(--navy);
	width: 42px;
	font-size: 1.15rem;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
}
body.tcw .tcw-step:hover { background: var(--paper); }
body.tcw .tcw-step:disabled { color: #C3CBDB; cursor: not-allowed; }

/* the reassurance row */
body.tcw ul.tcw-trust {
	list-style: none;
	margin: 18px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--line);
	display: grid;
	gap: 10px;
	width: 100%;
	clear: both;
}
body.tcw ul.tcw-trust li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: .9rem;
	color: var(--ink-2);
	margin: 0;
}
body.tcw ul.tcw-trust svg {
	width: 18px; height: 18px; flex: 0 0 18px;
	fill: none; stroke: var(--green); stroke-width: 2;
	stroke-linecap: round; stroke-linejoin: round;
}

/* tabs */
body.tcw .woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 34px 0 0; }
body.tcw .woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom: 1px solid var(--line); }
body.tcw .woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: none;
	border: 0;
	border-radius: 0;
	margin: 0 26px 0 0;
	padding: 0;
}
body.tcw .woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.tcw .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
body.tcw .woocommerce div.product .woocommerce-tabs ul.tabs li a {
	color: var(--ink-3);
	font-weight: 700;
	padding: 12px 0;
	display: block;
	border-bottom: 3px solid transparent;
}
body.tcw .woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
body.tcw .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--navy);
	border-bottom-color: var(--blue);
}
body.tcw .woocommerce div.product .woocommerce-tabs .panel {
	padding-top: 20px;
	color: var(--ink-2);
	line-height: 1.75;
	max-width: 72ch;
}

body.tcw .woocommerce .related > h2,
body.tcw .woocommerce .upsells > h2 {
	font-size: 1.3rem;
	color: var(--ink);
	margin: 46px 0 0;
	padding-top: 26px;
	border-top: 1px solid var(--line);
}

/* the phone buy bar: the price and the button stay reachable while reading */
body.tcw .tcw-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 999;
	background: #fff;
	border-top: 1px solid var(--line);
	box-shadow: 0 -8px 24px -12px rgba(18,35,91,.35);
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	display: none;
	align-items: center;
	gap: 14px;
	transform: translateY(100%);
	transition: transform .22s ease;
}
body.tcw .tcw-bar.on { transform: none; }
body.tcw .tcw-bar .tcw-bar-price { font-weight: 800; color: var(--ink); font-size: 1.05rem; line-height: 1.2; }
body.tcw .tcw-bar .tcw-bar-price small { display: block; font-weight: 600; color: var(--ink-3); font-size: .74rem; }
body.tcw .tcw-bar button {
	margin-left: auto;
	background: var(--blue);
	color: #fff;
	border: 0;
	border-radius: 11px;
	padding: 14px 26px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}

/* =============================================================== the cart */

body.tcw .tcw-steps {
	list-style: none;
	display: flex;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
	flex-wrap: wrap;
}
body.tcw .tcw-steps li {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: .88rem;
	font-weight: 600;
	color: var(--ink-3);
	background: var(--paper);
	border-radius: 100px;
	padding: 8px 16px 8px 8px;
	margin: 0;
}
body.tcw .tcw-steps li span {
	width: 24px; height: 24px;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid var(--line);
	display: grid;
	place-items: center;
	font-size: .78rem;
	font-weight: 800;
}
body.tcw .tcw-steps li.now { color: var(--navy); background: #E7EEFB; }
body.tcw .tcw-steps li.now span { background: var(--blue); border-color: var(--blue); color: #fff; }
body.tcw .tcw-steps li.done { color: var(--green); }
body.tcw .tcw-steps li.done span { background: var(--green); border-color: var(--green); color: #fff; }

body.tcw .tcw-ship {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 18px;
	margin: 0 0 20px;
	box-shadow: var(--shadow);
}
body.tcw .tcw-ship p { margin: 0 0 9px; font-size: .93rem; color: var(--ink-2); }
body.tcw .tcw-ship strong { color: var(--ink); }
body.tcw .tcw-ship .amount { color: var(--ink); }
body.tcw .tcw-ship-track { height: 7px; border-radius: 100px; background: var(--paper); overflow: hidden; }
body.tcw .tcw-ship-track span {
	display: block; height: 100%;
	background: linear-gradient(90deg, var(--blue), #3E8BF0);
	border-radius: 100px;
	transition: width .4s ease;
}
body.tcw .tcw-ship.is-free .tcw-ship-track span { background: linear-gradient(90deg, var(--green), #23B37F); }

body.tcw .woocommerce table.shop_table {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--shadow);
}
body.tcw .woocommerce table.shop_table th {
	background: var(--paper);
	color: var(--ink-2);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 14px 18px;
	border: 0;
}
body.tcw .woocommerce table.shop_table td {
	padding: 18px;
	border-top: 1px solid var(--line);
	color: var(--ink-2);
	vertical-align: middle;
}
body.tcw .woocommerce table.shop_table td.product-name a { color: var(--ink); font-weight: 700; text-decoration: none; }
body.tcw .woocommerce table.shop_table td.product-name a:hover { color: var(--blue); }
body.tcw .woocommerce table.cart img { width: 62px; border-radius: 8px; background: var(--paper); }
body.tcw .woocommerce a.remove {
	color: var(--ink-3) !important;
	font-weight: 500;
	border: 1px solid var(--line);
	width: 26px; height: 26px;
	line-height: 24px;
	border-radius: 50%;
	background: #fff;
}
body.tcw .woocommerce a.remove:hover {
	background: var(--red) !important;
	border-color: var(--red);
	color: #fff !important;
}
body.tcw .woocommerce .cart-collaterals .cart_totals > h2,
body.tcw .woocommerce-checkout #order_review_heading {
	font-size: 1.12rem;
	color: var(--ink);
	margin: 0 0 14px;
}
body.tcw .woocommerce .cart_totals table.shop_table { box-shadow: none; }
body.tcw .woocommerce .cart_totals table.shop_table td,
body.tcw .woocommerce .cart_totals table.shop_table th { padding: 14px 16px; }
body.tcw .woocommerce .cart_totals .order-total td,
body.tcw .woocommerce .cart_totals .order-total th {
	border-top: 2px solid var(--line);
	color: var(--ink);
	font-size: 1.05rem;
}
body.tcw .woocommerce .wc-proceed-to-checkout a.checkout-button {
	display: block;
	text-align: center;
	font-size: 1.05rem;
	padding: 16px 24px;
	border-radius: 12px;
	margin-top: 6px;
}
body.tcw .woocommerce .coupon { display: flex; gap: 10px; flex-wrap: wrap; }

/* the empty cart is an invitation, not a dead end */
body.tcw .woocommerce .cart-empty { font-size: 1.1rem; color: var(--ink); font-weight: 700; }
body.tcw .woocommerce .return-to-shop { margin-top: 14px; }

/* =========================================================== the checkout */

body.tcw .woocommerce-checkout .woocommerce > form.checkout { display: block; }
/* The two-column checkout is applied only where nothing else owns the layout.
 * On a page built with Elementor's Checkout widget, or with the Checkout block,
 * the columns already exist and a second grid on top of them is a fight this
 * stylesheet would lose in an interesting way. Colour and type still apply
 * there; the layout is left to whoever is doing it. */
@media (min-width: 981px) {
	body.tcw:not(.tcw-elementor):not(.tcw-blocks) .woocommerce-checkout form.checkout.woocommerce-checkout {
		display: grid;
		grid-template-columns: minmax(0, 1.35fr) minmax(330px, .85fr);
		gap: 30px;
		align-items: start;
	}
	body.tcw:not(.tcw-elementor):not(.tcw-blocks) .woocommerce-checkout form.checkout #customer_details { grid-column: 1; }
	body.tcw:not(.tcw-elementor):not(.tcw-blocks) .woocommerce-checkout form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
	body.tcw:not(.tcw-elementor):not(.tcw-blocks) .woocommerce-checkout form.checkout #order_review {
		grid-column: 2;
		grid-row: 2;
		position: sticky;
		top: 20px;
	}
	body.tcw:not(.tcw-elementor):not(.tcw-blocks) .woocommerce-checkout form.checkout .tcw-ship { grid-column: 2; grid-row: 1; }
	body.tcw .woocommerce-checkout .col2-set .col-1,
	body.tcw .woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
}

body.tcw .woocommerce-checkout #customer_details .col-1,
body.tcw .woocommerce-checkout #customer_details .col-2,
body.tcw .woocommerce-checkout #order_review {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 22px;
	margin-bottom: 20px;
}
body.tcw .woocommerce-checkout h3 { font-size: 1.08rem; color: var(--ink); margin: 0 0 16px; }
body.tcw .woocommerce-checkout #payment { background: var(--paper); border-radius: 12px; }
body.tcw .woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line); padding: 14px; }
body.tcw .woocommerce-checkout #payment ul.payment_methods li {
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: 11px;
	padding: 13px 15px;
	margin: 0 0 10px;
	transition: border-color .15s ease;
}
body.tcw .woocommerce-checkout #payment ul.payment_methods li:hover { border-color: #C1D0EA; }
body.tcw .woocommerce-checkout #payment div.payment_box {
	background: var(--paper);
	border-radius: 10px;
	color: var(--ink-2);
	font-size: .89rem;
}
body.tcw .woocommerce-checkout #payment div.payment_box::before { display: none; }
body.tcw .woocommerce-checkout #payment #place_order {
	width: 100%;
	font-size: 1.06rem;
	padding: 16px;
	border-radius: 12px;
}

/* ======================================================= order & account */

body.tcw .woocommerce-order .woocommerce-thankyou-order-received {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--green);
	background: #EEFAF4;
	border: 1px solid #C6EBDA;
	border-radius: var(--radius);
	padding: 20px 22px;
}
body.tcw .woocommerce ul.order_details {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	margin: 18px 0 30px;
}
body.tcw .woocommerce ul.order_details li {
	border: 0;
	margin: 0;
	padding: 0;
	font-size: .78rem;
	color: var(--ink-3);
	font-weight: 600;
	text-transform: none;
	float: none;
}
body.tcw .woocommerce ul.order_details li strong {
	display: block;
	font-size: 1rem;
	color: var(--ink);
	margin-top: 3px;
}

body.tcw .woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
body.tcw .woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0 0 6px;
	border-radius: 10px;
	overflow: hidden;
}
body.tcw .woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 12px 15px;
	color: var(--ink-2);
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 10px;
}
body.tcw .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--paper); color: var(--navy); }
body.tcw .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: #E7EEFB;
	color: var(--navy);
	border-color: #C8DAF6;
}
body.tcw .woocommerce-account .woocommerce-MyAccount-content {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
}
body.tcw .woocommerce form.login,
body.tcw .woocommerce form.register {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
}

/* =============================================================== the toast */

body.tcw .tcw-toast {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 100000;
	background: var(--navy);
	color: #fff;
	border-radius: 12px;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	box-shadow: 0 18px 38px -14px rgba(11,23,64,.6);
	font-size: .93rem;
	font-weight: 600;
	transform: translateY(140%);
	transition: transform .28s cubic-bezier(.2,.8,.3,1);
	max-width: min(92vw, 380px);
}
body.tcw .tcw-toast.on { transform: none; }
body.tcw .tcw-toast a {
	color: #fff;
	background: rgba(255,255,255,.16);
	border-radius: 8px;
	padding: 8px 13px;
	text-decoration: none;
	font-weight: 700;
	white-space: nowrap;
}
body.tcw .tcw-toast a:hover { background: rgba(255,255,255,.28); }

/* ============================================================== responsive */

@media (max-width: 1100px) {
	body.tcw .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
	body.tcw .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
	body.tcw .woocommerce ul.products li.product .woocommerce-loop-product__title,
	body.tcw .woocommerce ul.products li.product h2 { font-size: .92rem !important; padding-left: 18px; }
	body.tcw .woocommerce ul.products li.product .price { font-size: 1.05rem; padding-left: 18px; }
	body.tcw .woocommerce ul.products li.product .button { margin-left: 18px; margin-right: 12px; padding: 12px 14px; font-size: .9rem; }
	body.tcw .woocommerce ul.products li.product a img { padding: 12px 12px 6px 18px; }
	body.tcw .tcw-bar { display: flex; }
	body.tcw .woocommerce div.product form.cart .button { width: 100%; }
	body.tcw .tcw-steps li { font-size: .8rem; padding: 6px 12px 6px 6px; }
	body.tcw .tcw-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
	body.tcw .woocommerce table.shop_table_responsive tr td { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
	body.tcw * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* ================================================ the Cart and Checkout blocks
 *
 * A block cart is React with its own class names — none of the selectors above
 * reach it. These are the same decisions expressed in that vocabulary, so a
 * store on the newer blocks looks identical to one on the classic templates.
 */

body.tcw .wc-block-components-button:not(.is-link) {
	background: var(--blue);
	color: #fff;
	border-radius: 10px;
	font-weight: 700;
	padding: 14px 24px;
	min-height: 0;
	box-shadow: 0 1px 2px rgba(15,78,171,.28);
	transition: background .15s ease;
}
body.tcw .wc-block-components-button:not(.is-link):hover { background: var(--blue-dark); }
body.tcw .wc-block-cart__submit-button,
body.tcw .wc-block-components-checkout-place-order-button {
	width: 100%;
	font-size: 1.05rem;
	padding: 16px;
	border-radius: 12px;
}

body.tcw .wc-block-components-text-input input,
body.tcw .wc-block-components-textarea,
body.tcw .wc-block-components-combobox input,
body.tcw .wc-block-components-select__container {
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	padding: 12px 14px;
}
body.tcw .wc-block-components-text-input input:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 4px rgba(21,101,216,.12);
	outline: none;
}
body.tcw .wc-block-components-text-input.is-active label,
body.tcw .wc-block-components-text-input label { color: var(--ink-3); }

body.tcw .wc-block-cart-items__row { border-color: var(--line); }
body.tcw .wc-block-components-product-name { color: var(--ink); font-weight: 700; text-decoration: none; }
body.tcw .wc-block-components-product-name:hover { color: var(--blue); }
body.tcw .wc-block-cart-item__image img { border-radius: 8px; background: var(--paper); }

body.tcw .wc-block-components-sidebar .wc-block-components-totals-wrapper,
body.tcw .wc-block-components-order-summary,
body.tcw .wc-block-checkout__sidebar .wc-block-components-panel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 18px;
	margin-bottom: 16px;
}
body.tcw .wc-block-components-totals-item__value,
body.tcw .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: var(--ink); }
body.tcw .wc-block-components-totals-footer-item { border-top: 2px solid var(--line); }

body.tcw .wc-block-components-radio-control__option {
	border: 1.5px solid var(--line);
	border-radius: 11px;
	padding: 13px 15px;
	margin-bottom: 10px;
	background: #fff;
}
body.tcw .wc-block-components-radio-control__option--checked-option-highlighted,
body.tcw .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(21,101,216,.12);
}
body.tcw .wc-block-components-notice-banner {
	border-radius: var(--radius);
	border-width: 1px;
}
body.tcw .wc-block-components-quantity-selector {
	border: 1.5px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
}
body.tcw .wc-block-components-quantity-selector__button { color: var(--navy); font-weight: 700; }
body.tcw .wc-block-checkout__form,
body.tcw .wc-block-cart__main {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 22px;
}
body.tcw .wc-block-components-title { color: var(--ink); }

/* ============================================ Elementor Pro's Woo widgets
 *
 * Elementor renders WooCommerce's own markup inside its widgets, so almost
 * everything above already applies. These are the few places its wrappers add
 * a background or a border that then sits inside one of ours. */
body.tcw .elementor-widget-woocommerce-cart .e-cart-section,
body.tcw .elementor-widget-woocommerce-checkout-page .e-checkout__container {
	background: transparent;
	border: 0;
	padding: 0;
}
body.tcw .elementor-widget-woocommerce-cart .cart_totals,
body.tcw .elementor-widget-woocommerce-checkout-page #order_review {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* ============================================================ Astra theme
 *
 * Astra wraps the loop's title, category and price in its own summary block and
 * gives the card its own padding, which would double the padding set above. */
body.tcw .woocommerce ul.products li.product .astra-shop-summary-wrap { padding: 0; }
body.tcw .woocommerce ul.products li.product .ast-shop-product-out-of-stock { left: 22px; }
body.tcw .woocommerce ul.products li.product .astra-shop-thumbnail-wrap { margin: 0; }
body.tcw.ast-woocommerce-cart-form .woocommerce table.shop_table { background: #fff; }
