/* ==========================================================================
   ZoolPlay Astra Child — WooCommerce visitor pages: product cards, shop,
   single product, cart, checkout (classic + blocks) and order received.
   Never loaded on the account area (ZoolPlay Auth owns it).
   ========================================================================== */

/* Prices: keep the amount and currency in one left-to-right run (carried over from the previous child theme). */
body.zt-store .woocommerce-Price-amount bdi { direction: ltr; display: inline-block; unicode-bidi: isolate; white-space: nowrap; }
body.zt-store :is(.zt-from, .zpp-from) { color: var(--zt-muted); font-size: .75em; font-weight: 500; }

/* Plain content links (no class) in brand color instead of Astra's default. */
body.zt-store .site-content a:not([class]) { color: var(--zt-primary); }
body.zt-store .site-content a:not([class]):hover { color: var(--zt-primary-hover); }

/* WooCommerce "show password" toggle (login forms on checkout / order pages). */
body.zt-store .woocommerce .password-input .show-password-input,
body.zt-store .woocommerce button.show-password-input {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--zt-muted);
	padding: 0;
}

/* -------------------------------------------------------------------------
   Notices
   ------------------------------------------------------------------------- */

body.zt-store :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice) {
	align-items: center;
	background: var(--zt-info-bg);
	border: 0;
	border-radius: var(--zt-radius);
	box-shadow: none;
	color: var(--zt-info);
	display: flex;
	flex-wrap: wrap;
	font: 500 14px/1.8 var(--zt-font);
	gap: 8px 16px;
	justify-content: space-between;
	list-style: none;
	margin: 0 0 18px;
	padding: 14px 18px;
}
body.zt-store .woocommerce-message { background: var(--zt-success-bg); color: var(--zt-success); }
body.zt-store .woocommerce-error { background: var(--zt-danger-bg); color: var(--zt-danger); display: block; }
body.zt-store .woocommerce-error li { margin: 0; }
body.zt-store :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { display: none; }
body.zt-store :is(.woocommerce-message, .woocommerce-info) a.button,
body.zt-store :is(.woocommerce-message, .woocommerce-info) .wc-forward {
	background: #fff;
	border: 0;
	border-radius: 10px;
	color: var(--zt-ink);
	float: none;
	font: 600 13px/1.4 var(--zt-font);
	margin: 0;
	order: 2;
	padding: 8px 14px;
}
body.zt-store :is(.woocommerce-message, .woocommerce-info) a:not(.button) { color: inherit; font-weight: 600; }

body.zt-store .wc-block-components-notice-banner {
	border: 0;
	border-radius: var(--zt-radius);
	font-family: var(--zt-font);
	font-size: 14px;
}

/* -------------------------------------------------------------------------
   Product cards (shop, categories, home grids, related products)
   ------------------------------------------------------------------------- */

body.zt-store ul.products,
body.zt-store .woocommerce ul.products,
body.zt-store.woocommerce ul.products {
	display: grid !important;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0 0 28px !important;
	padding: 0 !important;
}
body.zt-store ul.products::before,
body.zt-store ul.products::after { display: none !important; }

@media (min-width: 640px) {
	body.zt-store ul.products,
	body.zt-store .woocommerce ul.products,
	body.zt-store.woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	body.zt-store ul.products,
	body.zt-store .woocommerce ul.products,
	body.zt-store.woocommerce ul.products { gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
	body.zt-store ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	body.zt-store ul.products.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	body.zt-store ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

body.zt-store ul.products li.product,
body.zt-store .woocommerce ul.products li.product,
body.zt-store.woocommerce ul.products li.product {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: 18px;
	box-sizing: border-box;
	clear: none !important;
	display: flex;
	flex-direction: column;
	float: none !important;
	margin: 0 !important;
	min-width: 0;
	overflow: hidden;
	padding: 0 !important;
	position: relative;
	text-align: start;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	width: auto !important;
}
body.zt-store ul.products li.product:hover {
	border-color: rgba(var(--zt-primary-rgb), .35);
	box-shadow: var(--zt-shadow-raised);
	transform: translateY(-3px);
}

body.zt-store ul.products li.product .astra-shop-thumbnail-wrap {
	margin: 0;
	padding: 8px 8px 0;
	position: relative;
}
body.zt-store ul.products li.product :is(.astra-shop-thumbnail-wrap, .woocommerce-LoopProduct-link) img,
body.zt-store ul.products li.product a img {
	aspect-ratio: 1;
	border-radius: 12px;
	display: block;
	height: auto;
	margin: 0 !important;
	object-fit: cover;
	width: 100%;
}

body.zt-store ul.products li.product .astra-shop-summary-wrap {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px 14px;
}
/* Card order whatever Astra's "shop structure" setting is: category, name, rating, price, button. */
body.zt-store ul.products li.product .astra-shop-summary-wrap > * { order: 3; }
body.zt-store ul.products li.product .astra-shop-summary-wrap > .ast-woo-product-category { order: 0; }
body.zt-store ul.products li.product .astra-shop-summary-wrap > .ast-loop-product__link { order: 1; }
body.zt-store ul.products li.product .astra-shop-summary-wrap > :is(.review-rating, .star-rating) { margin: 2px 0 0; order: 2; }
body.zt-store ul.products li.product .astra-shop-summary-wrap > .price { order: 4; }
body.zt-store ul.products li.product .astra-shop-summary-wrap > :is(.button, .added_to_cart) { order: 5; }
body.zt-store ul.products li.product .star-rating { font-size: 12px; margin: 0; }

body.zt-store ul.products li.product .ast-woo-product-category {
	color: var(--zt-muted);
	display: block;
	font-size: 12px;
	line-height: 1.5;
	margin: 0;
	opacity: 1;
	text-transform: none;
}
body.zt-store ul.products li.product .woocommerce-loop-product__title,
body.zt-store.woocommerce ul.products li.product .woocommerce-loop-product__title {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--zt-ink);
	display: -webkit-box;
	font: 600 15px/1.55 var(--zt-font);
	margin: 0;
	min-height: 3.1em;
	overflow: hidden;
	padding: 0;
}
body.zt-store ul.products li.product .ast-loop-product__link { color: inherit; text-decoration: none; }

body.zt-store ul.products li.product .price,
body.zt-store.woocommerce ul.products li.product .price {
	align-items: baseline;
	color: var(--zt-primary);
	display: flex;
	flex-wrap: wrap;
	font: 700 16px/1.5 var(--zt-font);
	gap: 0 6px;
	margin: 4px 0 12px;
}
body.zt-store ul.products li.product .price del { color: var(--zt-faint); font-size: 13px; font-weight: 500; opacity: 1; }
body.zt-store ul.products li.product .price ins { background: none; text-decoration: none; }
body.zt-store ul.products li.product .price :is(.zpp-from, .zt-from) { color: var(--zt-muted); font-size: 12px; font-weight: 500; }

body.zt-store ul.products li.product .button,
body.zt-store.woocommerce ul.products li.product .button,
body.zt-store .woocommerce ul.products li.product .button {
	align-items: center;
	background: var(--zt-primary-soft);
	border: 0;
	border-radius: 12px;
	box-shadow: none;
	color: var(--zt-primary-press);
	display: flex;
	font: 600 14px/1.3 var(--zt-font);
	justify-content: center;
	margin: auto 0 0;
	min-height: 42px;
	padding: 10px 14px;
	text-align: center;
	transition: background-color .15s ease, color .15s ease;
	width: 100%;
}
body.zt-store ul.products li.product .button:hover,
body.zt-store ul.products li.product:hover .button {
	background: var(--zt-primary);
	color: #fff;
}
body.zt-store ul.products li.product .added_to_cart {
	color: var(--zt-primary);
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-top: 8px;
	padding: 0;
	text-align: center;
}

/* Astra's on-image sale label and hover cart icon: the card already has both. */
body.zt-store ul.products li.product .ast-on-card-button { display: none !important; }

/* Out of stock label from Astra */
body.zt-store ul.products li.product .ast-shop-product-out-of-stock {
	background: rgba(26, 23, 44, .72);
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	inset-block-start: 16px;
	inset-inline-end: 16px;
	padding: 4px 10px;
	position: absolute;
}

/* Sale badge (shop & product) */
body.zt-store :is(ul.products li.product, div.product) .onsale,
body.zt-store.woocommerce :is(ul.products li.product, div.product) span.onsale {
	background: #e5484d;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 4px 10px rgba(229, 72, 77, .3);
	color: #fff;
	font: 700 12px/1.4 var(--zt-font);
	height: auto;
	inset-block-start: 16px;
	inset-inline-start: 16px;
	inset-inline-end: auto;
	left: auto;
	line-height: 1.4;
	margin: 0;
	min-height: 0;
	min-width: 0;
	padding: 4px 10px;
	position: absolute;
	right: auto;
	top: 16px;
	width: auto;
	z-index: 3;
}
html:not([dir="rtl"]) body.zt-store :is(ul.products li.product, div.product) .onsale { left: 16px; }
html[dir="rtl"] body.zt-store :is(ul.products li.product, div.product) .onsale { right: 16px; }

@media (max-width: 480px) {
	body.zt-store ul.products li.product .astra-shop-summary-wrap { padding: 10px 10px 12px; }
	body.zt-store ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
	body.zt-store ul.products li.product .price { font-size: 15px; }
	body.zt-store ul.products li.product .button { font-size: 13px; min-height: 40px; }
}

/* -------------------------------------------------------------------------
   Catalog toolbar & pagination
   ------------------------------------------------------------------------- */

body.zt-store .ast-shop-toolbar-container,
body.zt-store.woocommerce-shop .woocommerce-result-count,
body.zt-store.tax-product_cat .woocommerce-result-count {
	align-items: center;
	margin-bottom: 18px;
}
body.zt-store .woocommerce-result-count {
	color: var(--zt-muted);
	font-size: 14px;
	line-height: 42px;
	margin: 0 0 18px;
}
body.zt-store .woocommerce-ordering { margin: 0 0 18px; }
body.zt-store .woocommerce-ordering select,
body.zt-store .woocommerce-ordering select.orderby {
	background-color: #fff;
	border: 1px solid var(--zt-line);
	border-radius: 12px;
	box-shadow: var(--zt-shadow-field);
	color: var(--zt-ink);
	font: 500 14px/1.4 var(--zt-font);
	min-height: 42px;
	padding-block: 8px;
	padding-inline: 14px 34px;
}

body.zt-store nav.woocommerce-pagination { margin: 8px 0 0; text-align: center; }
body.zt-store nav.woocommerce-pagination ul,
body.zt-store.woocommerce nav.woocommerce-pagination ul {
	border: 0;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 0;
}
body.zt-store nav.woocommerce-pagination ul li { border: 0; float: none; overflow: visible; }
body.zt-store nav.woocommerce-pagination ul li :is(a, span) {
	align-items: center;
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: 12px;
	color: var(--zt-ink);
	display: inline-flex;
	font: 600 14px/1 var(--zt-font);
	height: 42px;
	justify-content: center;
	min-width: 42px;
	padding: 0 12px;
}
body.zt-store nav.woocommerce-pagination ul li a:hover { background: var(--zt-subtle); color: var(--zt-ink); }
body.zt-store nav.woocommerce-pagination ul li span.current { background: var(--zt-primary); border-color: var(--zt-primary); color: #fff; }

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

body.zt-store.single-product .zt-breadcrumb { margin-bottom: 16px; }

@media (min-width: 922px) {
	body.zt-store.single-product div.product {
		align-items: start;
		column-gap: 32px;
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
	body.zt-store.single-product div.product > * { grid-column: 1 / -1; }
	body.zt-store.single-product div.product > .woocommerce-product-gallery,
	body.zt-store.single-product div.product > .images { grid-column: 1; }
	body.zt-store.single-product div.product > .summary { grid-column: 2; }
	body.zt-store.single-product div.product > .onsale { grid-column: 1; }
}

body.zt-store.single-product div.product div.images,
body.zt-store.single-product div.product .woocommerce-product-gallery,
body.zt-store.woocommerce div.product div.images {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: var(--zt-radius-xl);
	box-shadow: var(--zt-shadow-card);
	box-sizing: border-box;
	float: none !important;
	margin: 0 0 20px !important;
	padding: 12px;
	width: auto !important;
}
body.zt-store.single-product div.product div.images img { border-radius: 16px; }
/* Phones: a compact cover so the packages are reached sooner. */
@media (max-width: 921px) {
	body.zt-store.single-product div.product div.images { padding: 10px; }
	body.zt-store.single-product div.product div.images .woocommerce-product-gallery__image img {
		margin-inline: auto;
		max-height: 220px;
		object-fit: contain;
		width: auto;
	}
	body.zt-store.single-product div.product div.images .woocommerce-product-gallery__image > a { display: flex; justify-content: center; }
}
body.zt-store.single-product div.product div.images .flex-control-thumbs { display: flex; gap: 8px; margin: 10px 0 0; padding: 0; }
body.zt-store.single-product div.product div.images .flex-control-thumbs li { float: none; margin: 0; width: 64px; }
body.zt-store.single-product div.product div.images .flex-control-thumbs img { border-radius: 10px; opacity: .6; }
body.zt-store.single-product div.product div.images .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--zt-primary); }
body.zt-store.single-product div.product .woocommerce-product-gallery__trigger {
	background: #fff;
	border-radius: 12px;
	box-shadow: var(--zt-shadow-field);
}

body.zt-store.single-product div.product .summary,
body.zt-store.woocommerce div.product div.summary {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: var(--zt-radius-xl);
	box-shadow: var(--zt-shadow-card);
	box-sizing: border-box;
	float: none !important;
	margin: 0 0 20px !important;
	padding: 22px;
	width: auto !important;
}
@media (min-width: 768px) {
	body.zt-store.single-product div.product .summary { padding: 28px; }
}

body.zt-store.single-product div.product .single-product-category { display: block; margin-bottom: 4px; }
body.zt-store.single-product div.product .single-product-category a {
	background: var(--zt-primary-soft);
	border-radius: 999px;
	color: var(--zt-primary-press);
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	padding: 3px 10px;
	text-decoration: none;
}
body.zt-store.single-product div.product .single-product-category a:hover { background: var(--zt-primary-tint); }

body.zt-store.single-product div.product .product_title,
body.zt-store.woocommerce div.product .product_title {
	color: var(--zt-ink);
	font: 700 26px/1.35 var(--zt-font);
	margin: 0 0 8px;
}
@media (min-width: 768px) {
	body.zt-store.single-product div.product .product_title { font-size: 30px; }
}
body.zt-store.single-product div.product .woocommerce-product-details__short-description {
	color: var(--zt-text);
	font-size: 15px;
	line-height: 1.9;
	margin-bottom: 8px;
}
body.zt-store.single-product div.product .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* SKU / category line: the category already shows as a chip above the title. */
body.zt-store.single-product div.product .summary .product_meta { display: none; }

/* Price without the product page plugin (it styles its own). */
body.zt-store.single-product:not(.zpp-page) div.product p.price {
	color: var(--zt-primary);
	font: 700 24px/1.4 var(--zt-font);
}

/* Plain WooCommerce form (the product page plugin inactive, or its design off for a product). */
body.zt-store.single-product:not(.zpp-page) div.product form.cart { margin: 18px 0 8px; }
body.zt-store.single-product:not(.zpp-page) div.product form.cart table.variations {
	background: none;
	border: 0;
	margin: 0 0 14px;
	width: 100%;
}
/* Blocks, not a table: a table cell would grow with the package tabs and widen the page on phones. */
body.zt-store.single-product:not(.zpp-page) div.product form.cart table.variations,
body.zt-store.single-product:not(.zpp-page) div.product form.cart table.variations :is(tbody, tr, th, td) {
	background: none;
	border: 0;
	display: block;
	max-width: 100%;
	min-width: 0;
	padding: 0;
	text-align: start;
}
body.zt-store.single-product:not(.zpp-page) div.product form.cart table.variations tr + tr { margin-top: 12px; }
body.zt-store.single-product:not(.zpp-page) div.product form.cart table.variations th.label label {
	color: var(--zt-ink);
	display: block;
	font: 600 15px/1.5 var(--zt-font);
	margin: 0 0 8px;
}
body.zt-store.single-product:not(.zpp-page) div.product form.cart table.variations select {
	background-color: #fff;
	border: 1.5px solid var(--zt-line);
	border-radius: var(--zt-radius);
	box-shadow: var(--zt-shadow-field);
	color: var(--zt-ink);
	cursor: pointer;
	font: 500 16px/1.4 var(--zt-font);
	margin: 0;
	max-width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	width: 100%;
}
body.zt-store.single-product:not(.zpp-page) div.product form.cart table.variations select:focus {
	border-color: var(--zt-primary);
	box-shadow: 0 0 0 4px var(--zt-primary-ring);
	outline: 0;
}
body.zt-store.single-product:not(.zpp-page) div.product form.cart .reset_variations {
	color: var(--zt-muted);
	display: inline-block;
	font-size: 13px;
	margin-top: 8px;
}
body.zt-store.single-product div.product form.cart .zp-selected-package {
	background: var(--zt-primary-soft);
	border-radius: 12px;
	color: var(--zt-primary-press);
	display: block;
	font: 600 14px/1.6 var(--zt-font);
	margin-top: 10px;
	overflow-wrap: anywhere;
	padding: 10px 12px;
	unicode-bidi: plaintext;
}
body.zt-store.single-product div.product form.cart .zp-selected-package[hidden] { display: none; }
body.zt-store.single-product:not(.zpp-page) div.product .single_variation .price {
	color: var(--zt-primary);
	font: 700 22px/1.4 var(--zt-font);
	margin: 0 0 12px;
}
body.zt-store.single-product:not(.zpp-page) div.product .woocommerce-variation-add-to-cart,
body.zt-store.single-product:not(.zpp-page) div.product form.cart:not(.variations_form) {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
body.zt-store.single-product:not(.zpp-page) div.product form.cart div.quantity { float: none; margin: 0; }
body.zt-store.single-product:not(.zpp-page) div.product form.cart div.quantity .qty { height: 52px; min-height: 52px; }
body.zt-store.single-product:not(.zpp-page) div.product form.cart .single_add_to_cart_button {
	background: var(--zt-primary);
	border: 0;
	border-radius: var(--zt-radius);
	box-shadow: 0 8px 20px rgba(var(--zt-primary-rgb), .28);
	color: #fff;
	flex: 1 1 200px;
	float: none;
	font: 700 16px/1.4 var(--zt-font);
	margin: 0;
	min-height: 52px;
	padding: 12px 26px;
}
body.zt-store.single-product:not(.zpp-page) div.product form.cart .single_add_to_cart_button:hover { background: var(--zt-primary-hover); }
body.zt-store.single-product:not(.zpp-page) div.product form.cart .single_add_to_cart_button.disabled { opacity: .5; }

/* -------------------------------------------------------------------------
   Package cards (inc/packages.php): the dropdown stays in the form, hidden.
   ------------------------------------------------------------------------- */

body.zt-has-packages div.product form.cart table.variations th.label,
body.zt-has-packages div.product form.cart .zt-select-wrap,
body.zt-has-packages div.product form.cart .zp-selected-package,
body.zt-has-packages div.product .single_variation .woocommerce-variation-price { display: none !important; }
body.zt-has-packages div.product form.cart table.variations { margin-bottom: 8px; }
body.zt-has-packages div.product form.cart .reset_variations { font-size: 12.5px; margin-top: 10px; }

.zt-packages { font-family: var(--zt-font); max-width: 100%; min-width: 0; }
.zt-packages__head {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-bottom: 12px;
}
.zt-packages__title { align-items: center; color: var(--zt-ink); display: inline-flex; font-size: 17px; font-weight: 700; gap: 8px; line-height: 1.4; }
.zt-packages__title .zt-icon { color: var(--zt-primary); height: 20px; width: 20px; }
.zt-packages__count { background: var(--zt-subtle); border-radius: 999px; color: var(--zt-muted); font-size: 12.5px; font-weight: 500; padding: 3px 10px; }

.zt-pkg-tabs {
	display: flex;
	gap: 8px;
	margin: 0 0 12px;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: none;
}
.zt-pkg-tabs::-webkit-scrollbar { display: none; }
body.zt-store .zt-pkg-tabs .zt-pkg-tab {
	align-items: center;
	appearance: none;
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: 999px;
	box-shadow: none;
	color: var(--zt-text);
	cursor: pointer;
	display: inline-flex;
	flex: none;
	font: 600 13.5px/1.3 var(--zt-font);
	gap: 6px;
	margin: 0;
	min-height: 38px;
	padding: 6px 14px;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
body.zt-store .zt-pkg-tabs .zt-pkg-tab:hover { border-color: rgba(var(--zt-primary-rgb), .45); color: var(--zt-ink); }
.zt-pkg-tab > span { background: var(--zt-subtle); border-radius: 999px; color: var(--zt-muted); font-size: 11px; font-weight: 600; line-height: 1.5; padding: 1px 7px; }
body.zt-store .zt-pkg-tabs .zt-pkg-tab.is-active { background: var(--zt-primary); border-color: var(--zt-primary); color: #fff; }
.zt-pkg-tab.is-active > span { background: rgba(255, 255, 255, .22); color: #fff; }

.zt-pkg-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .zt-pkg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.zt-pkg {
	align-items: center;
	background: #fff;
	border: 1.5px solid var(--zt-line);
	border-radius: 16px;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 5px;
	justify-content: center;
	margin: 0;
	min-height: 112px;
	min-width: 0;
	padding: 22px 10px 12px;
	position: relative;
	text-align: center;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .1s ease;
	-webkit-user-select: none;
	user-select: none;
}
.zt-pkg[hidden] { display: none !important; }
.zt-pkg:hover { border-color: rgba(var(--zt-primary-rgb), .45); box-shadow: var(--zt-shadow-card); }
.zt-pkg:active { transform: scale(.985); }
.zt-pkg.is-selected { background: var(--zt-primary-soft); border-color: var(--zt-primary); box-shadow: 0 0 0 3px var(--zt-primary-ring); }
.zt-pkg:has(.zt-pkg__input:focus-visible) { outline: 3px solid var(--zt-primary-ring); outline-offset: 2px; }
.zt-pkg__input { height: 1px; opacity: 0; pointer-events: none; position: absolute; width: 1px; }

.zt-pkg__check {
	align-items: center;
	background: #fff;
	border: 1.5px solid var(--zt-line-strong);
	border-radius: 50%;
	box-sizing: border-box;
	color: transparent;
	display: flex;
	height: 20px;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	justify-content: center;
	position: absolute;
	width: 20px;
}
.zt-pkg__check .zt-icon { height: 12px; stroke-width: 3; width: 12px; }
.zt-pkg.is-selected .zt-pkg__check { background: var(--zt-primary); border-color: var(--zt-primary); color: #fff; }

.zt-pkg__off {
	background: #e5484d;
	border-radius: 999px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	inset-block-start: 8px;
	inset-inline-end: 8px;
	line-height: 1.5;
	padding: 1px 7px;
	position: absolute;
}

.zt-pkg__title { align-items: baseline; color: var(--zt-ink); display: flex; flex-wrap: wrap; gap: 2px 5px; justify-content: center; line-height: 1.2; }
.zt-pkg__amount { direction: ltr; font-size: 22px; font-weight: 700; unicode-bidi: isolate; }
.zt-pkg__unit { color: var(--zt-muted); font-size: 13px; font-weight: 600; }
.zt-pkg__title--text {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	display: -webkit-box;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.5;
	overflow: hidden;
	unicode-bidi: plaintext;
}
.zt-pkg__bonus {
	align-items: center;
	background: #fff4e5;
	border-radius: 999px;
	color: #b45309;
	display: inline-flex;
	font-size: 11.5px;
	font-weight: 700;
	gap: 4px;
	line-height: 1.5;
	padding: 2px 8px;
}
.zt-pkg__bonus .zt-icon { height: 13px; width: 13px; }
.zt-pkg__price { align-items: center; display: flex; flex-direction: column; margin-top: auto; padding-top: 4px; }
.zt-pkg__now { color: var(--zt-primary); font-size: 14px; font-weight: 700; line-height: 1.4; }
.zt-pkg__price del { color: var(--zt-faint); font-size: 11.5px; line-height: 1.3; }
.zt-pkg.is-selected .zt-pkg__now { color: var(--zt-primary-press); }
.zt-pkg.is-oos { cursor: not-allowed; opacity: .5; }
.zt-pkg.is-oos:hover { border-color: var(--zt-line); box-shadow: none; }
.zt-pkg__oos { color: var(--zt-danger); font-size: 11px; font-weight: 600; }

body.zt-store .zt-packages .zt-pkg-more {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 1px dashed var(--zt-line-strong);
	border-radius: 14px;
	box-shadow: none;
	color: var(--zt-primary);
	cursor: pointer;
	display: flex;
	font: 600 14px/1.3 var(--zt-font);
	gap: 6px;
	justify-content: center;
	margin: 10px 0 0;
	min-height: 44px;
	padding: 8px 14px;
	width: 100%;
}
body.zt-store .zt-packages .zt-pkg-more:hover { background: var(--zt-primary-soft); border-color: rgba(var(--zt-primary-rgb), .4); }
.zt-pkg-more[hidden] { display: none !important; }
.zt-pkg-more .zt-icon { height: 18px; transition: transform .2s ease; width: 18px; }
.zt-pkg-more.is-expanded .zt-icon { transform: rotate(180deg); }

.zt-pkg-summary {
	align-items: center;
	background: var(--zt-subtle);
	border: 1px solid var(--zt-line);
	border-radius: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-top: 14px;
	padding: 12px 14px;
}
.zt-pkg-summary__label { color: var(--zt-muted); font-size: 13px; }
.zt-pkg-summary__name { color: var(--zt-ink); font-size: 14.5px; font-weight: 700; unicode-bidi: plaintext; }
.zt-pkg-summary__name.is-empty { color: var(--zt-faint); font-weight: 500; }
.zt-pkg-summary__price { color: var(--zt-primary); font-size: 18px; font-weight: 700; margin-inline-start: auto; }
.zt-pkg-summary__price:empty { display: none; }

@media (max-width: 400px) {
	.zt-pkg { min-height: 104px; padding-inline: 6px; }
	.zt-pkg__amount { font-size: 20px; }
}

/* Phone buy bar */
.zt-buybar {
	-webkit-backdrop-filter: blur(10px);
	align-items: center;
	backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, .96);
	border-top: 1px solid var(--zt-line);
	bottom: 0;
	box-shadow: 0 -8px 24px rgba(26, 23, 44, .08);
	display: flex;
	font-family: var(--zt-font);
	gap: 12px;
	inset-inline: 0;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	position: fixed;
	z-index: 95;
}
.zt-buybar[hidden] { display: none; }
.zt-buybar__info { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.zt-buybar__name { color: var(--zt-ink); font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; white-space: nowrap; }
.zt-buybar__price { color: var(--zt-primary); font-size: 14px; font-weight: 700; }
body.zt-store .zt-buybar .zt-buybar__btn { flex: none; min-height: 46px; padding: 10px 18px; }
@media (min-width: 769px) {
	.zt-buybar { display: none !important; }
}
@media (max-width: 768px) {
	body.zt-has-packages .zt-footer__bottom { padding-bottom: 96px; }
	body.zt-has-packages #ast-scroll-top { bottom: 84px; }
}

/* Ratings */
body.zt-store .star-rating,
body.zt-store .star-rating span::before { color: #f5a524; }
body.zt-store.single-product div.product .woocommerce-product-rating { align-items: center; display: flex; gap: 8px; margin: 0 0 8px; }
body.zt-store.single-product div.product .woocommerce-product-rating .star-rating { float: none; margin: 0; }
body.zt-store.single-product div.product .woocommerce-review-link { color: var(--zt-muted); font-size: 13px; }

/* Tabs (the product page plugin restyles them when its tab option is on). */
body.zt-store.single-product:not(.zpp-style-tabs) .woocommerce-tabs ul.tabs { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
body.zt-store.single-product:not(.zpp-style-tabs) .woocommerce-tabs ul.tabs::before,
body.zt-store.single-product:not(.zpp-style-tabs) .woocommerce-tabs ul.tabs li::before,
body.zt-store.single-product:not(.zpp-style-tabs) .woocommerce-tabs ul.tabs li::after { display: none; }
body.zt-store.single-product:not(.zpp-style-tabs) .woocommerce-tabs ul.tabs li { background: #fff; border: 1px solid var(--zt-line); border-radius: 999px; margin: 0; padding: 0; }
body.zt-store.single-product:not(.zpp-style-tabs) .woocommerce-tabs ul.tabs li a { color: var(--zt-muted); display: block; font-weight: 600; padding: 9px 20px; }
body.zt-store.single-product:not(.zpp-style-tabs) .woocommerce-tabs ul.tabs li.active { background: var(--zt-primary); border-color: var(--zt-primary); }
body.zt-store.single-product:not(.zpp-style-tabs) .woocommerce-tabs ul.tabs li.active a { color: #fff; }
body.zt-store.single-product:not(.zpp-style-tabs) .woocommerce-tabs .panel { background: #fff; border: 1px solid var(--zt-line); border-radius: var(--zt-radius-lg); padding: 22px; }

body.zt-store.single-product .woocommerce-tabs .panel { color: var(--zt-text); font-size: 15px; line-height: 1.9; }

body.zt-store.single-product :is(.related, .upsells) > h2,
body.zt-store.single-product .related.products > h2 {
	color: var(--zt-ink);
	font: 700 22px/1.35 var(--zt-font);
	margin: 12px 0 16px;
}

/* -------------------------------------------------------------------------
   Shared form fields (cart, checkout)
   ------------------------------------------------------------------------- */

body.zt-store .woocommerce form .form-row label,
body.zt-store .woocommerce-checkout .form-row label {
	color: var(--zt-ink);
	font: 500 14px/1.6 var(--zt-font);
	margin-bottom: 6px;
}
body.zt-store .woocommerce form .form-row .required { color: var(--zt-danger); text-decoration: none; }
body.zt-store .woocommerce :is(input.input-text, textarea.input-text, select, .select2-container .select2-selection--single),
body.zt-store .woocommerce form .form-row :is(input.input-text, textarea, select),
body.zt-store .woocommerce-cart table.cart td.actions .coupon .input-text {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: 12px;
	box-shadow: var(--zt-shadow-field);
	box-sizing: border-box;
	color: var(--zt-ink);
	font: 400 15px/1.4 var(--zt-font);
	min-height: 48px;
	outline: 0;
	padding: 12px 14px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
body.zt-store .woocommerce .select2-container .select2-selection--single { height: 48px; padding: 0; }
body.zt-store .woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-inline: 14px 30px; }
body.zt-store .woocommerce .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }
body.zt-store .woocommerce :is(input.input-text, textarea.input-text, select):focus,
body.zt-store .woocommerce form .form-row :is(input.input-text, textarea, select):focus {
	border-color: var(--zt-primary);
	box-shadow: 0 0 0 4px var(--zt-primary-ring);
}
body.zt-store .woocommerce form .form-row.woocommerce-invalid :is(input.input-text, select) { border-color: var(--zt-danger); }
/* Email and phone read left to right (carried over from the previous child theme). */
body.zt-store .woocommerce form .form-row :is(input[type="email"], input[type="tel"]) { direction: ltr; text-align: left; }
body.zt-store .woocommerce form .form-row.woocommerce-validated :is(input.input-text, select) { border-color: var(--zt-line); }
body.zt-store .woocommerce :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--zt-primary); }

/* Secondary buttons (update cart, apply coupon, login on checkout…) */
body.zt-store :is(.woocommerce-cart-form, form.checkout_coupon, form.woocommerce-form-login, .shipping-calculator-form) :is(button.button, a.button, input.button):not(.alt) {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: 12px;
	box-shadow: var(--zt-shadow-field);
	color: var(--zt-ink);
	font: 600 14px/1.3 var(--zt-font);
	min-height: 46px;
	padding: 12px 18px;
}
body.zt-store :is(.woocommerce-cart-form, form.checkout_coupon, form.woocommerce-form-login, .shipping-calculator-form) :is(button.button, a.button, input.button):not(.alt):hover {
	background: var(--zt-subtle);
	border-color: var(--zt-line-strong);
	color: var(--zt-ink);
}
body.zt-store .woocommerce :is(button.button, input.button):disabled,
body.zt-store .woocommerce :is(button.button, input.button)[disabled] { opacity: .5; }

/* Primary actions */
body.zt-store .woocommerce :is(a.checkout-button, button#place_order, .button.alt, button.button.alt),
body.zt-store.woocommerce-checkout #payment #place_order {
	align-items: center;
	background: var(--zt-primary);
	border: 0;
	border-radius: var(--zt-radius);
	box-shadow: 0 8px 20px rgba(var(--zt-primary-rgb), .28);
	color: #fff;
	display: flex;
	font: 700 16px/1.4 var(--zt-font);
	justify-content: center;
	min-height: 54px;
	padding: 14px 24px;
	text-align: center;
	transition: background-color .15s ease, transform .1s ease;
	width: 100%;
}
body.zt-store .woocommerce :is(a.checkout-button, button#place_order, .button.alt):hover { background: var(--zt-primary-hover); color: #fff; }
body.zt-store .woocommerce :is(a.checkout-button, button#place_order):active { transform: scale(.99); }

/* -------------------------------------------------------------------------
   Cart (classic)
   ------------------------------------------------------------------------- */

/* The store's cart/checkout pages wrap the shortcode in a ".zp-commerce" group block: no extra frame. */
body.zt-store .entry-content > .wp-block-group.zp-commerce,
body.zt-store .zp-commerce {
	margin: 0;
	max-width: none;
	min-width: 0;
	padding: 0;
}

@media (min-width: 1024px) {
	body.zt-store.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) {
		align-items: start;
		column-gap: 28px;
		display: grid;
		grid-template-columns: minmax(0, 1fr) 380px;
	}
	body.zt-store.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > * { grid-column: 1 / -1; }
	body.zt-store.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-cart-form { grid-column: 1; }
	body.zt-store.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > .cart-collaterals { grid-column: 2; position: sticky; top: 100px; }
}

body.zt-store.woocommerce-cart table.shop_table.cart,
body.zt-store .woocommerce table.shop_table {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-collapse: separate;
	border-radius: var(--zt-radius-lg);
	border-spacing: 0;
	box-shadow: var(--zt-shadow-card);
	font-family: var(--zt-font);
	margin: 0 0 20px;
	overflow: hidden;
	width: 100%;
}
body.zt-store .woocommerce table.shop_table :is(th, td) {
	border-color: var(--zt-line);
	border-width: 1px 0 0;
	color: var(--zt-ink);
	padding: 14px 16px;
	vertical-align: middle;
}
body.zt-store .woocommerce table.shop_table thead th {
	background: var(--zt-subtle);
	border-top: 0;
	color: var(--zt-muted);
	font-size: 13px;
	font-weight: 600;
}
body.zt-store .woocommerce table.shop_table tbody tr:first-child :is(th, td) { border-top-width: 0; }
body.zt-store .woocommerce table.shop_table thead + tbody tr:first-child :is(th, td) { border-top-width: 1px; }
body.zt-store .woocommerce table.cart td.product-thumbnail img { border-radius: 12px; height: 64px; object-fit: cover; width: 64px; }
body.zt-store .woocommerce table.cart td.product-name a { color: var(--zt-ink); font-weight: 600; text-decoration: none; }
body.zt-store .woocommerce table.cart td.product-name a:hover { color: var(--zt-primary); }
body.zt-store .woocommerce table.shop_table dl.variation,
body.zt-store .woocommerce .wc-item-meta {
	color: var(--zt-muted);
	font-size: 13px;
	line-height: 1.7;
	margin: 6px 0 0;
}
body.zt-store .woocommerce table.shop_table dl.variation :is(dt, dd) { margin: 0; }
body.zt-store .woocommerce table.shop_table dl.variation dd p { margin: 0; }
body.zt-store .woocommerce table.cart td.product-subtotal,
body.zt-store .woocommerce table.cart td.product-price { font-weight: 600; }
body.zt-store .woocommerce table.cart td.product-subtotal { color: var(--zt-primary); }

body.zt-store .woocommerce table.cart a.remove {
	align-items: center;
	background: var(--zt-subtle);
	border-radius: 10px;
	color: var(--zt-muted) !important;
	display: inline-flex;
	font-size: 20px;
	font-weight: 400;
	height: 34px;
	justify-content: center;
	line-height: 1;
	width: 34px;
}
body.zt-store .woocommerce table.cart a.remove:hover { background: var(--zt-danger-bg); color: var(--zt-danger) !important; }

body.zt-store .woocommerce .quantity .qty {
	border: 1px solid var(--zt-line);
	border-radius: 12px;
	color: var(--zt-ink);
	font: 600 15px/1 var(--zt-font);
	min-height: 44px;
	width: 72px;
}

body.zt-store .woocommerce table.cart td.actions { background: var(--zt-page); padding: 14px 16px; }
body.zt-store .woocommerce table.cart td.actions .coupon { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
body.zt-store .woocommerce table.cart td.actions .coupon .input-text { margin: 0; min-width: 170px; width: auto; }

body.zt-store .woocommerce .cart-collaterals .cart_totals,
body.zt-store.woocommerce-cart .cart-collaterals .cart_totals {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: var(--zt-radius-lg);
	box-shadow: var(--zt-shadow-card);
	box-sizing: border-box;
	float: none;
	padding: 20px;
	width: 100%;
}
body.zt-store .cart-collaterals .cart_totals > h2,
body.zt-store.woocommerce-cart .cart-collaterals .cart_totals h2 {
	background: none;
	border: 0;
	color: var(--zt-ink);
	font: 700 18px/1.4 var(--zt-font);
	margin: 0 0 6px;
	padding: 0;
}
body.zt-store .cart-collaterals .cart_totals .zt-trust-list { border-top: 1px dashed var(--zt-line-strong); }
body.zt-store .cart-collaterals .cart_totals table.shop_table { border: 0; border-radius: 0; box-shadow: none; margin: 0; }
body.zt-store .cart-collaterals .cart_totals table.shop_table :is(th, td) { padding: 12px 0; }
body.zt-store .cart-collaterals .cart_totals table.shop_table th { color: var(--zt-muted); font-weight: 500; }
body.zt-store .cart-collaterals .cart_totals .order-total :is(th, td) { color: var(--zt-ink); font-size: 16px; font-weight: 700; }
body.zt-store .cart-collaterals .cart_totals .order-total td strong { color: var(--zt-primary); font-size: 20px; }
body.zt-store .cart-collaterals .wc-proceed-to-checkout { padding: 14px 0 0; }
body.zt-store .cart-collaterals .wc-proceed-to-checkout a.checkout-button { margin: 0; }
body.zt-store .cart-collaterals .cross-sells { float: none; margin-top: 20px; width: 100%; }

.zt-trust-list {
	border-top: 1px dashed var(--zt-line-strong);
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 16px 0 0;
	padding: 16px 0 0;
}
.zt-trust-list li { align-items: center; color: var(--zt-text); display: flex; font-size: 13px; gap: 10px; line-height: 1.6; margin: 0; }
.zt-trust-list .zt-icon {
	background: var(--zt-primary-soft);
	border-radius: 10px;
	box-sizing: content-box;
	color: var(--zt-primary-press);
	height: 16px;
	padding: 7px;
	width: 16px;
}

/* Empty cart */
body.zt-store.woocommerce-cart .cart-empty.woocommerce-info,
body.zt-store.woocommerce-cart .wc-empty-cart-message .cart-empty {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: var(--zt-radius-lg);
	box-shadow: var(--zt-shadow-card);
	color: var(--zt-ink);
	display: block;
	font-size: 17px;
	font-weight: 600;
	padding: 40px 20px 22px;
	text-align: center;
}
body.zt-store.woocommerce-cart .return-to-shop { margin-top: -6px; text-align: center; }
body.zt-store.woocommerce-cart .return-to-shop .button,
body.zt-store.woocommerce-cart .woocommerce .return-to-shop a.button {
	background: var(--zt-primary);
	border: 0;
	color: #fff;
	display: inline-flex;
	min-height: 48px;
	padding: 12px 26px;
}
body.zt-store.woocommerce-cart .woocommerce .return-to-shop a.button:hover { background: var(--zt-primary-hover); color: #fff; }

@media (max-width: 767px) {
	body.zt-store .woocommerce table.shop_table_responsive.cart tr { border-top: 1px solid var(--zt-line); display: block; }
	body.zt-store .woocommerce table.shop_table_responsive.cart tbody tr:first-child { border-top: 0; }
	body.zt-store .woocommerce table.shop_table_responsive.cart td { border-top: 0; padding: 8px 16px; }
	body.zt-store .woocommerce table.shop_table_responsive.cart td.product-remove { padding-top: 14px; }
	body.zt-store .woocommerce table.shop_table_responsive.cart td.actions .coupon .input-text { flex: 1 1 auto; min-width: 0; }
	body.zt-store .woocommerce table.shop_table_responsive.cart td.actions :is(.button, button) { width: 100%; }
}

/* -------------------------------------------------------------------------
   Checkout (classic)
   ------------------------------------------------------------------------- */

body.zt-store.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
body.zt-store.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info { background: #fff; border: 1px dashed var(--zt-line-strong); color: var(--zt-text); }
body.zt-store.woocommerce-checkout form.checkout_coupon,
body.zt-store.woocommerce-checkout form.woocommerce-form-login {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: var(--zt-radius-lg);
	margin: 0 0 18px;
	padding: 18px;
}

@media (min-width: 1024px) {
	body.zt-store form.woocommerce-checkout {
		align-items: start;
		column-gap: 28px;
		display: grid;
		grid-auto-flow: row dense;
		/* The order column is the wider one: payment gateways (e.g. the Bankak transfer box) render their own panels there. */
		grid-template-columns: minmax(0, 1fr) minmax(380px, 1.15fr);
		/* The tall billing column spans three rows: its extra height goes to the flexible last row, so the order heading and summary stay joined. */
		grid-template-rows: auto auto 1fr;
	}
	body.zt-store form.woocommerce-checkout > * { grid-column: 1 / -1; }
	body.zt-store form.woocommerce-checkout > #customer_details { grid-column: 1; grid-row: span 3; }
	body.zt-store form.woocommerce-checkout > #order_review_heading,
	body.zt-store form.woocommerce-checkout > #order_review { grid-column: 2; }
}

body.zt-store.woocommerce-checkout form.woocommerce-checkout > :is(#customer_details, #order_review_heading, #order_review),
body.zt-store.woocommerce-page.woocommerce-checkout form #customer_details.col2-set,
body.zt-store.woocommerce-page.woocommerce-checkout form :is(#order_review, #order_review_heading) {
	clear: none;
	float: none;
	margin: 0;
	width: auto;
}

body.zt-store.woocommerce-checkout #customer_details {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: var(--zt-radius-lg);
	box-shadow: var(--zt-shadow-card);
	margin-bottom: 20px;
	padding: 22px;
}
body.zt-store.woocommerce-checkout #customer_details :is(.col-1, .col-2) { float: none; margin: 0; max-width: none; padding: 0; width: 100%; }
body.zt-store.woocommerce-checkout #customer_details h3,
body.zt-store.woocommerce-checkout #order_review_heading {
	border: 0;
	color: var(--zt-ink);
	font: 700 18px/1.4 var(--zt-font);
	margin: 0 0 16px;
	padding: 0;
}
body.zt-store.woocommerce-checkout #customer_details .woocommerce-additional-fields > h3 { margin-top: 10px; }

body.zt-store.woocommerce-checkout #order_review_heading {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-bottom: 0;
	border-radius: var(--zt-radius-lg) var(--zt-radius-lg) 0 0;
	margin: 0;
	padding: 20px 20px 6px;
}
body.zt-store.woocommerce-checkout #order_review {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: 0 0 var(--zt-radius-lg) var(--zt-radius-lg);
	border-top: 0;
	box-shadow: var(--zt-shadow-card);
	margin-bottom: 20px;
	padding: 4px 20px 20px;
}
body.zt-store.woocommerce-checkout #order_review table.shop_table { border: 0; border-radius: 0; box-shadow: none; margin: 0 0 16px; }
body.zt-store.woocommerce-checkout #order_review table.shop_table :is(th, td) { padding: 12px 0; }
body.zt-store.woocommerce-checkout #order_review table.shop_table thead th { background: none; border-bottom: 1px solid var(--zt-line); padding-top: 4px; }
body.zt-store.woocommerce-checkout #order_review table.shop_table .product-name { color: var(--zt-ink); font-weight: 500; }
body.zt-store.woocommerce-checkout #order_review table.shop_table .product-quantity { color: var(--zt-muted); font-weight: 500; }
body.zt-store.woocommerce-checkout #order_review table.shop_table tfoot th { color: var(--zt-muted); font-weight: 500; }
body.zt-store.woocommerce-checkout #order_review .order-total :is(th, td) { color: var(--zt-ink); font-size: 16px; font-weight: 700; }
body.zt-store.woocommerce-checkout #order_review .order-total td strong .amount { color: var(--zt-primary); font-size: 20px; }

/* Payment methods as selectable cards */
body.zt-store.woocommerce-checkout #payment,
body.zt-store.woocommerce-checkout .woocommerce-checkout-payment {
	background: transparent;
	border-radius: 0;
}
body.zt-store.woocommerce-checkout #payment ul.payment_methods {
	border: 0;
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
body.zt-store.woocommerce-checkout #payment ul.payment_methods > li {
	background: #fff;
	border: 1.5px solid var(--zt-line);
	border-radius: var(--zt-radius);
	line-height: 1.5;
	margin: 0;
	padding: 14px 16px;
	transition: border-color .15s ease, background-color .15s ease;
}
body.zt-store.woocommerce-checkout #payment ul.payment_methods > li:has(> input:checked) {
	background: var(--zt-primary-soft);
	border-color: var(--zt-primary);
}
body.zt-store.woocommerce-checkout #payment ul.payment_methods > li > input[type="radio"] { height: 18px; margin-block: 0; margin-inline: 0 8px; vertical-align: middle; width: 18px; }
body.zt-store.woocommerce-checkout #payment ul.payment_methods > li > label { color: var(--zt-ink); cursor: pointer; display: inline; font-size: 15px; font-weight: 600; }
body.zt-store.woocommerce-checkout #payment ul.payment_methods > li > label img { margin-inline-start: 8px; max-height: 24px; vertical-align: middle; }
body.zt-store.woocommerce-checkout #payment div.payment_box {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: 12px;
	color: var(--zt-text);
	font-size: 14px;
	line-height: 1.8;
	margin: 12px 0 0;
	padding: 12px 14px;
}
body.zt-store.woocommerce-checkout #payment div.payment_box::before { display: none; }
body.zt-store.woocommerce-checkout #payment div.payment_box p:last-child { margin-bottom: 0; }
body.zt-store.woocommerce-checkout #payment div.form-row.place-order { margin: 0; padding: 0; }
body.zt-store.woocommerce-checkout #payment #place_order { float: none; }
body.zt-store.woocommerce-checkout :is(.woocommerce-privacy-policy-link, .woocommerce-terms-and-conditions-link) { color: var(--zt-primary); }
body.zt-store.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { color: var(--zt-muted); font-size: 13px; line-height: 1.8; margin-bottom: 14px; }
body.zt-store.woocommerce-checkout .woocommerce-privacy-policy-text p { margin: 0 0 10px; }

.zt-secure-note {
	align-items: center;
	clear: both;
	color: var(--zt-muted);
	display: flex;
	font-size: 12.5px;
	gap: 8px;
	justify-content: center;
	line-height: 1.6;
	margin: 12px 0 0;
	text-align: center;
}
.zt-secure-note .zt-icon { color: var(--zt-success); height: 15px; width: 15px; }

/* -------------------------------------------------------------------------
   Cart & checkout blocks
   ------------------------------------------------------------------------- */

body.zt-store :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) {
	font-family: var(--zt-font);
	margin-top: 0;
}
body.zt-store :is(.wc-block-cart, .wc-block-checkout).wc-block-components-sidebar-layout { gap: 0; margin-bottom: 0; }

body.zt-store :is(.wc-block-cart__main, .wc-block-checkout__main) {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: var(--zt-radius-lg);
	box-shadow: var(--zt-shadow-card);
	box-sizing: border-box;
	padding: 20px;
}
body.zt-store :is(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: var(--zt-radius-lg);
	box-shadow: var(--zt-shadow-card);
	box-sizing: border-box;
	padding: 16px 20px 20px;
}
body.zt-store .wc-block-components-sidebar-layout :is(.wc-block-cart__main, .wc-block-checkout__main) { padding: 20px; }
/* The sidebar is already our card: drop the block's own frame inside it. */
body.zt-store :is(.wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-cart-order-summary-block) { border: 0; border-radius: 0; }
@media (min-width: 700px) {
	body.zt-store .wc-block-components-sidebar-layout :is(.wc-block-cart__main, .wc-block-checkout__main) { padding: 24px; }
	body.zt-store .wc-block-components-sidebar-layout .wc-block-components-sidebar { margin-inline-start: 28px; }
	body.zt-store .wc-block-checkout__sidebar.is-sticky { top: 100px; }
}
@media (max-width: 699px) {
	body.zt-store :is(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) { margin-top: 16px; }
}

body.zt-store .wc-block-cart-items { border: 0; margin: 0; }
body.zt-store .wc-block-cart-items th { color: var(--zt-muted); font-size: 13px; font-weight: 600; text-transform: none; }
body.zt-store .wc-block-cart-items td { border-color: var(--zt-line); }
body.zt-store .wc-block-cart-item__image img { border-radius: 12px; }
body.zt-store .wc-block-components-product-name { color: var(--zt-ink); font-weight: 600; text-decoration: none; }
body.zt-store .wc-block-components-product-metadata { color: var(--zt-muted); font-size: 13px; }
body.zt-store .wc-block-components-product-price__value,
body.zt-store .wc-block-cart-item__total .wc-block-components-product-price { color: var(--zt-ink); font-weight: 600; }
body.zt-store .wc-block-components-sale-badge {
	background: #fdecec;
	border: 0;
	border-radius: 999px;
	color: #c42d32;
	font-weight: 700;
}
body.zt-store .wc-block-components-quantity-selector {
	border: 1px solid var(--zt-line);
	border-radius: 12px;
	overflow: hidden;
}
body.zt-store .wc-block-components-quantity-selector::after { display: none; }
body.zt-store .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { color: var(--zt-ink); }
body.zt-store .wc-block-cart-item__remove-link { color: var(--zt-muted); font-size: 13px; }

body.zt-store .wc-block-components-totals-wrapper { border-color: var(--zt-line); }
body.zt-store .wc-block-cart__totals-title,
body.zt-store .wc-block-components-checkout-order-summary__title-text {
	color: var(--zt-ink);
	font: 700 18px/1.4 var(--zt-font);
	text-transform: none;
}
body.zt-store .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.zt-store .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
	color: var(--zt-primary);
	font-size: 20px;
	font-weight: 700;
}

body.zt-store .wc-block-components-button:not(.is-link),
body.zt-store .wp-block-woocommerce-cart .wc-block-cart__submit-button,
body.zt-store .wc-block-components-checkout-place-order-button {
	background: var(--zt-primary);
	border: 0;
	border-radius: var(--zt-radius);
	box-shadow: 0 8px 20px rgba(var(--zt-primary-rgb), .28);
	color: #fff;
	font: 700 16px/1.4 var(--zt-font);
	min-height: 54px;
}
body.zt-store .wc-block-components-button:not(.is-link):hover { background: var(--zt-primary-hover); color: #fff; }
body.zt-store .wc-block-components-button.outlined,
body.zt-store .wc-block-components-totals-coupon__button {
	background: #fff;
	border: 1px solid var(--zt-line);
	box-shadow: none;
	color: var(--zt-ink);
	font-size: 14px;
	min-height: 46px;
}
body.zt-store .wc-block-components-panel__button,
body.zt-store .wc-block-components-totals-coupon-link { color: var(--zt-primary); font-weight: 600; }

body.zt-store .wc-block-components-checkout-step__title,
body.zt-store .wc-block-components-title.wc-block-components-title {
	color: var(--zt-ink);
	font: 700 18px/1.4 var(--zt-font);
}
body.zt-store .wc-block-components-checkout-step__description { color: var(--zt-muted); }
body.zt-store .wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__title::before { color: var(--zt-primary); }

body.zt-store :is(.wc-block-components-text-input, .wc-block-components-combobox .wc-block-components-combobox-control) input,
body.zt-store .wc-block-components-text-input input[type],
body.zt-store .wc-blocks-components-select .wc-blocks-components-select__select,
body.zt-store .wc-block-components-textarea {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: 12px;
	box-shadow: var(--zt-shadow-field);
	color: var(--zt-ink);
	font-family: var(--zt-font);
}
body.zt-store .wc-block-components-text-input input:focus,
body.zt-store .wc-blocks-components-select .wc-blocks-components-select__select:focus,
body.zt-store .wc-block-components-textarea:focus {
	border-color: var(--zt-primary);
	box-shadow: 0 0 0 4px var(--zt-primary-ring);
	outline: 0;
}
body.zt-store .wc-block-components-text-input label,
body.zt-store .wc-blocks-components-select__label { color: var(--zt-muted); }

body.zt-store .wc-block-components-radio-control--highlight-checked { gap: 10px; }
body.zt-store .wc-block-components-radio-control--highlight-checked::after,
body.zt-store .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option::after { display: none; }
body.zt-store .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option,
body.zt-store .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option {
	border: 1.5px solid var(--zt-line);
	border-radius: var(--zt-radius);
	box-shadow: none;
	margin: 0;
}
body.zt-store .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.zt-store .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option-checked {
	background: var(--zt-primary-soft);
	border-color: var(--zt-primary);
	box-shadow: none;
}
body.zt-store .wc-block-components-radio-control__input:checked { border-color: var(--zt-primary); }
body.zt-store .wc-block-components-radio-control__input:checked::before { background: var(--zt-primary); }
body.zt-store .wc-block-components-radio-control__label { color: var(--zt-ink); font-weight: 600; }
body.zt-store .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--zt-primary); border-color: var(--zt-primary); }
body.zt-store .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff; }
body.zt-store .wc-block-checkout__terms { color: var(--zt-muted); font-size: 13px; }

/* Empty block cart */
body.zt-store .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
	color: var(--zt-ink);
	font: 700 22px/1.4 var(--zt-font);
}
body.zt-store .wp-block-woocommerce-empty-cart-block .wp-block-separator { border-color: var(--zt-line); }
body.zt-store .wp-block-woocommerce-empty-cart-block > h2:not(.wc-block-cart__empty-cart__title) { font: 700 20px/1.4 var(--zt-font); }

/* -------------------------------------------------------------------------
   Order received
   ------------------------------------------------------------------------- */

.zt-thanks { font-family: var(--zt-font); }

.zt-thanks__hero {
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: var(--zt-radius-xl);
	box-shadow: var(--zt-shadow-card);
	display: flex;
	gap: 18px;
	margin-bottom: 16px;
	overflow: hidden;
	padding: 24px;
	position: relative;
}
.zt-thanks__hero::before {
	background: var(--zt-tone, var(--zt-primary));
	content: '';
	height: 4px;
	inset-block-start: 0;
	inset-inline: 0;
	position: absolute;
}
.zt-thanks__hero--success { --zt-tone: #12a46c; --zt-tone-bg: var(--zt-success-bg); --zt-tone-ink: var(--zt-success); }
.zt-thanks__hero--warning { --zt-tone: #f0a020; --zt-tone-bg: var(--zt-warning-bg); --zt-tone-ink: var(--zt-warning); }
.zt-thanks__hero--danger { --zt-tone: #e5484d; --zt-tone-bg: var(--zt-danger-bg); --zt-tone-ink: var(--zt-danger); }
.zt-thanks__hero--info { --zt-tone: var(--zt-primary); --zt-tone-bg: var(--zt-primary-soft); --zt-tone-ink: var(--zt-primary-press); }

.zt-thanks__icon {
	align-items: center;
	background: var(--zt-tone-bg, var(--zt-primary-soft));
	border-radius: 18px;
	color: var(--zt-tone-ink, var(--zt-primary-press));
	display: inline-flex;
	flex: none;
	height: 60px;
	justify-content: center;
	width: 60px;
}
.zt-thanks__icon .zt-icon { height: 30px; width: 30px; }
.zt-thanks__head { flex: 1 1 auto; min-width: 0; }
.zt-thanks .zt-thanks__title { color: var(--zt-ink); font: 700 22px/1.4 var(--zt-font); margin: 2px 0 6px; }
.zt-thanks__text { color: var(--zt-text); font-size: 15px; line-height: 1.85; margin: 0; }
.zt-thanks__received p { margin: 8px 0 0; }
body.zt-store .zt-thanks__hero .woocommerce-notice {
	background: none;
	color: var(--zt-text);
	display: block;
	margin: 6px 0 0;
	padding: 0;
}
.zt-thanks__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
body.zt-store .zt-thanks__actions .zt-btn { min-height: 46px; padding: 10px 18px; }
body.zt-store .zt-thanks__hero--danger .woocommerce-thankyou-order-failed-actions .button.zt-btn:not(.zt-btn--ghost) { background: var(--zt-primary); border-color: var(--zt-primary); color: #fff; }

@media (max-width: 560px) {
	.zt-thanks__hero { flex-direction: column; gap: 14px; padding: 20px; }
	.zt-thanks .zt-thanks__title { font-size: 20px; }
	.zt-thanks__actions .zt-btn { flex: 1 1 100%; }
}

body.zt-store ul.zt-thanks__overview,
body.zt-store .woocommerce ul.order_details.zt-thanks__overview {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: var(--zt-radius-lg);
	display: grid;
	gap: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0 0 16px;
	overflow: hidden;
	padding: 0;
}
body.zt-store ul.zt-thanks__overview::before,
body.zt-store ul.zt-thanks__overview::after { display: none; }
body.zt-store ul.zt-thanks__overview li,
body.zt-store .woocommerce ul.order_details.zt-thanks__overview li {
	border: 0;
	border-bottom: 1px solid var(--zt-line);
	border-inline-end: 1px solid var(--zt-line);
	color: var(--zt-muted);
	float: none;
	font-size: 12.5px;
	line-height: 1.5;
	margin: 0;
	min-width: 0;
	padding: 14px 16px;
	text-transform: none;
}
body.zt-store ul.zt-thanks__overview li strong {
	color: var(--zt-ink);
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	margin-top: 2px;
	overflow-wrap: anywhere;
}
body.zt-store ul.zt-thanks__overview li.total strong { color: var(--zt-primary); }
@media (min-width: 768px) {
	body.zt-store ul.zt-thanks__overview,
	body.zt-store .woocommerce ul.order_details.zt-thanks__overview { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; }
	body.zt-store ul.zt-thanks__overview li { border-bottom: 0; }
	body.zt-store ul.zt-thanks__overview li:last-child { border-inline-end: 0; }
}

.zt-timeline {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: var(--zt-radius-lg);
	display: flex;
	justify-content: space-between;
	list-style: none;
	margin: 0 0 20px;
	padding: 18px 20px;
}
.zt-timeline__item {
	align-items: center;
	color: var(--zt-muted);
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	font-size: 13px;
	font-weight: 500;
	gap: 8px;
	margin: 0;
	position: relative;
	text-align: center;
}
.zt-timeline__item + .zt-timeline__item::before {
	background: var(--zt-line-strong);
	content: '';
	height: 2px;
	inset-block-start: 20px;
	inset-inline-end: calc(50% + 26px);
	position: absolute;
	width: calc(100% - 52px);
}
.zt-timeline__item.is-done + .zt-timeline__item::before { background: var(--zt-primary); }
.zt-timeline__dot {
	align-items: center;
	background: var(--zt-subtle);
	border-radius: 50%;
	color: var(--zt-faint);
	display: inline-flex;
	height: 42px;
	justify-content: center;
	position: relative;
	width: 42px;
	z-index: 1;
}
.zt-timeline__dot .zt-icon { height: 20px; width: 20px; }
.zt-timeline__item.is-done { color: var(--zt-ink); }
.zt-timeline__item.is-done .zt-timeline__dot { background: var(--zt-primary); color: #fff; }
.zt-timeline__item.is-current { color: var(--zt-ink); font-weight: 600; }
.zt-timeline__item.is-current .zt-timeline__dot { background: var(--zt-primary-soft); box-shadow: 0 0 0 4px var(--zt-primary-ring); color: var(--zt-primary-press); }

/* Gateway instructions printed straight into the order block (e.g. bank transfer) */
body.zt-store .zt-thanks > p:not([class]),
body.zt-store .zt-thanks > .woocommerce-bacs-bank-details,
body.zt-store .zt-thanks > section.woocommerce-bacs-bank-details {
	background: var(--zt-info-bg);
	border-radius: var(--zt-radius);
	color: var(--zt-info);
	font-size: 14.5px;
	line-height: 1.9;
	margin: 0 0 16px;
	padding: 14px 18px;
}
body.zt-store .zt-thanks .woocommerce-bacs-bank-details h2 { color: var(--zt-ink); font: 700 17px/1.4 var(--zt-font); margin: 0 0 8px; }
body.zt-store .zt-thanks .wc-bacs-bank-details { list-style: none; margin: 0; padding: 0; }

body.zt-store .zt-thanks :is(.woocommerce-order-details, .woocommerce-customer-details) {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: var(--zt-radius-lg);
	box-shadow: var(--zt-shadow-card);
	margin: 0 0 16px;
	padding: 20px;
}
body.zt-store .zt-thanks :is(.woocommerce-order-details__title, .woocommerce-column__title, .woocommerce-customer-details h2),
body.zt-store.woocommerce-order-received .zt-thanks :is(.woocommerce-order-details, .woocommerce-customer-details) h2 {
	background: none;
	border: 0;
	color: var(--zt-ink);
	font: 700 18px/1.4 var(--zt-font);
	margin: 0 0 12px;
	padding: 0;
}
body.zt-store .zt-thanks .woocommerce-order-details table.shop_table { border: 0; border-radius: 0; box-shadow: none; margin: 0; }
body.zt-store .zt-thanks .woocommerce-order-details table.shop_table :is(th, td) { padding: 12px 0; }
body.zt-store .zt-thanks .woocommerce-order-details table.shop_table thead th { background: none; padding-top: 0; }
body.zt-store .zt-thanks .woocommerce-order-details table.shop_table tfoot tr:last-child :is(th, td) { color: var(--zt-ink); font-size: 16px; font-weight: 700; }
body.zt-store .zt-thanks .woocommerce-order-details table.shop_table tfoot tr:last-child td .amount { color: var(--zt-primary); }
body.zt-store .zt-thanks .wc-item-meta { list-style: none; padding: 0; }
body.zt-store .zt-thanks .wc-item-meta li { margin: 0; }
body.zt-store .zt-thanks .wc-item-meta strong { font-weight: 500; }
body.zt-store .zt-thanks .woocommerce-customer-details address {
	border: 0;
	border-radius: 0;
	color: var(--zt-text);
	font-style: normal;
	line-height: 1.9;
	padding: 0;
}
body.zt-store .zt-thanks .woocommerce-customer-details .woocommerce-columns { display: grid; gap: 16px; }
body.zt-store .zt-thanks .woocommerce-customer-details .woocommerce-column { float: none; width: auto; }
