/*
 * ZestCart storefront. Loaded only on pages with a ZestCart block.
 * Colours, fonts and spacing come from the theme (theme.json presets), with fallbacks,
 * so the shop looks like the rest of the site.
 */
.zc-grid-block,
.zc-category,
.zc-reviews,
.zc-product,
.zc-cart,
.zc-checkout,
.zc-received,
.zc-account,
.zc-mini-cart,
.zc-currency {
	--zc-fg: var(--wp--preset--color--contrast, #111);
	--zc-bg: var(--wp--preset--color--base, #fff);
	--zc-muted: color-mix(in srgb, var(--zc-fg) 60%, transparent);
	--zc-line: color-mix(in srgb, var(--zc-fg) 14%, transparent);
	--zc-soft: color-mix(in srgb, var(--zc-fg) 5%, transparent);
	--zc-accent: var(--wp--preset--color--accent-1, var(--wp--preset--color--primary, var(--zc-fg)));
	--zc-danger: #b42318;
	--zc-ok: #157f3c;
	--zc-radius: 10px;
	--zc-gap: var(--wp--preset--spacing--40, 1.5rem);
	box-sizing: border-box;
}

/* Layout follows the width each block is given (a sidebar, a narrow column, a wide page), not the screen. */
.zc-grid-block,
.zc-product,
.zc-cart,
.zc-checkout,
.zc-received,
.zc-account {
	container-type: inline-size;
}


.zc-grid-block *,
.zc-product *,
.zc-cart *,
.zc-checkout *,
.zc-received *,
.zc-account * {
	box-sizing: border-box;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Product grid ---------- */
.zc-grid {
	display: grid;
	grid-template-columns: repeat(var(--zc-cols, 3), minmax(0, 1fr));
	gap: var(--zc-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@container (max-width: 640px) {
	.zc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}

.zc-card {
	margin: 0;
}

.zc-card__link {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	color: inherit;
	text-decoration: none;
}

.zc-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1;
	margin-bottom: 0.4rem;
	border-radius: var(--zc-radius);
	background: var(--zc-soft);
}

.zc-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.zc-card__link:hover .zc-card__img {
	transform: scale(1.03);
}

.zc-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	background: var(--zc-soft);
}

.zc-card__name {
	font-weight: 600;
	line-height: 1.3;
}

.zc-card__link:hover .zc-card__name {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.zc-card__price {
	color: var(--zc-muted);
	font-variant-numeric: tabular-nums;
}

.zc-card__price del,
.zc-price__was {
	margin-left: 0.4em;
	color: var(--zc-muted);
	font-weight: 400;
}

.zc-badge {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: var(--zc-fg);
	color: var(--zc-bg);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.zc-badge--muted {
	background: var(--zc-bg);
	color: var(--zc-fg);
	box-shadow: 0 0 0 1px var(--zc-line);
}

.zc-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-top: var(--zc-gap);
	color: var(--zc-muted);
}

.zc-empty {
	padding: 2rem 0;
	color: var(--zc-muted);
	text-align: center;
}

/* ---------- Categories: links, breadcrumbs, category page ---------- */
.zc-chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 var(--zc-gap);
	padding: 0;
	list-style: none;
}

.zc-chip {
	display: inline-block;
	padding: 0.4em 0.95em;
	border: 1px solid var(--zc-line);
	border-radius: 999px;
	color: inherit;
	font-size: 0.9em;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s;
}

.zc-chip:hover,
.zc-chip:focus-visible {
	border-color: var(--zc-fg);
	background: var(--zc-soft);
}

.zc-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	color: var(--zc-muted);
	font-size: 0.875em;
}

.zc-crumbs li + li::before {
	content: "/";
	margin-right: 0.4em;
	opacity: 0.6;
}

.zc-crumbs a {
	color: inherit;
	text-decoration: none;
}

.zc-crumbs a:hover {
	color: var(--zc-fg);
	text-decoration: underline;
}

.zc-crumbs [aria-current] {
	color: var(--zc-fg);
}

.zc-category__header {
	margin-bottom: var(--zc-gap);
}

.zc-category__title {
	margin: 0;
}

.zc-brand-logo {
	display: block;
	width: auto;
	max-width: 200px;
	height: auto;
	max-height: 80px;
	margin-bottom: 0.75rem;
	object-fit: contain;
}

.zc-category__description {
	max-width: 65ch;
	margin-top: 0.75rem;
	color: var(--zc-muted);
}

.zc-category__description > :first-child {
	margin-top: 0;
}

.zc-category__description > :last-child {
	margin-bottom: 0;
}

/* ---------- Reviews ---------- */
.zc-stars {
	position: relative;
	display: inline-block;
	color: color-mix(in srgb, var(--zc-fg, #111) 18%, transparent);
	font-size: 1em;
	letter-spacing: 0.1em;
	line-height: 1;
	white-space: nowrap;
}

.zc-stars__on {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: #d97706;
}

.zc-card__rating {
	display: flex;
	align-items: center;
	gap: 0.35em;
	color: var(--zc-muted);
	font-size: 0.85em;
}

.zc-reviews {
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding-top: clamp(1.5rem, 4vw, 2.5rem);
	border-top: 1px solid var(--zc-line);
}

.zc-reviews *,
.zc-reviews *::before,
.zc-reviews *::after {
	box-sizing: border-box;
}

.zc-reviews__title {
	margin: 0 0 1.25rem;
}

.zc-reviews__summary {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 3rem;
	align-items: center;
	margin-bottom: 2rem;
}

.zc-reviews__score {
	display: grid;
	gap: 0.35rem;
	justify-items: start;
}

.zc-reviews__average {
	font-size: 2.75rem;
	font-weight: 600;
	line-height: 1;
}

.zc-reviews__score .zc-stars {
	font-size: 1.25rem;
}

.zc-reviews__count,
.zc-reviews__none,
.zc-review__meta,
.zc-review-form__as {
	color: var(--zc-muted);
	font-size: 0.9em;
}

.zc-reviews__bars {
	display: grid;
	flex: 1;
	gap: 0.35rem;
	min-width: 220px;
	max-width: 360px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.85em;
}

.zc-reviews__bars li {
	display: grid;
	grid-template-columns: 4.5em 1fr 2.5em;
	gap: 0.75rem;
	align-items: center;
}

.zc-reviews__bar {
	height: 8px;
	border-radius: 999px;
	background: var(--zc-soft);
	overflow: hidden;
}

.zc-reviews__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #d97706;
}

.zc-reviews__n {
	color: var(--zc-muted);
	text-align: right;
}

.zc-reviews__list {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.zc-review {
	padding: 1.25rem 0;
	border-top: 1px solid var(--zc-line);
}

.zc-review__top {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	align-items: center;
}

.zc-review__body {
	margin: 0.6rem 0;
	max-width: 70ch;
}

.zc-review__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	margin: 0;
}

.zc-review__verified {
	color: var(--zc-ok);
	font-weight: 500;
}

.zc-review__verified::before {
	content: "✓ ";
}

.zc-review__reply {
	margin-top: 0.85rem;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--zc-line);
	border-radius: 0 var(--zc-radius) var(--zc-radius) 0;
	background: var(--zc-soft);
	font-size: 0.95em;
}

.zc-review__reply p {
	margin: 0.25rem 0 0;
}

.zc-review-form summary {
	display: inline-block;
	cursor: pointer;
	list-style: none;
}

.zc-review-form summary::-webkit-details-marker {
	display: none;
}

.zc-review-form[open] summary {
	margin-bottom: 1.25rem;
}

.zc-review-form form {
	display: grid;
	gap: 1rem;
	max-width: 640px;
}

.zc-review-form .zc-field {
	display: grid;
	gap: 0.35rem;
	margin: 0;
}

.zc-review-form input[type="text"],
.zc-review-form input[type="email"],
.zc-review-form textarea {
	width: 100%;
	padding: 0.65em 0.8em;
	border: 1px solid var(--zc-line);
	border-radius: var(--zc-radius);
	background: var(--zc-bg);
	color: var(--zc-fg);
	font: inherit;
}

.zc-review-form input:focus-visible,
.zc-review-form textarea:focus-visible {
	outline: 2px solid var(--zc-accent);
	outline-offset: 1px;
}

.zc-review-form__who {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.zc-field__help,
.zc-optional {
	color: var(--zc-muted);
	font-size: 0.85em;
	font-weight: 400;
}

.zc-review-form button[type="submit"] {
	justify-self: start;
}

/* Star picker: radios in reverse order so hovering a star lights it and the ones before it. */
.zc-rate {
	margin: 0;
	padding: 0;
	border: 0;
}

.zc-rate legend {
	margin-bottom: 0.35rem;
	padding: 0;
}

.zc-rate__stars {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 0.15rem;
}

.zc-rate__stars input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.zc-rate__stars label {
	color: color-mix(in srgb, var(--zc-fg) 22%, transparent);
	font-size: 1.9rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.12s, transform 0.12s;
}

.zc-rate__stars label:hover,
.zc-rate__stars label:hover ~ label,
.zc-rate__stars input:checked ~ label {
	color: #d97706;
}

.zc-rate__stars input:focus-visible + label {
	outline: 2px solid var(--zc-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.zc-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.zc-rate__stars label {
		transition: none;
	}
}

/* ---------- Product ---------- */
.zc-product__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
}

@container (max-width: 700px) {
	.zc-product__layout {
		grid-template-columns: 1fr;
	}
}

.zc-product__gallery {
	position: sticky;
	top: var(--zc-sticky-top, calc(var(--wp-admin--admin-bar--height, 0px) + 1.5rem));
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

@container (max-width: 700px) {
	.zc-product__gallery {
		position: static;
	}
}

.zc-product__main {
	overflow: hidden;
	border-radius: var(--zc-radius);
	background: var(--zc-soft);
}

.zc-product__main img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.zc-product__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zc-thumb {
	display: block;
	width: 64px;
	height: 64px;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--zc-line);
	border-radius: 8px;
	background: none;
	cursor: pointer;
	opacity: 0.7;
}

.zc-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zc-thumb.is-active,
.zc-thumb:hover {
	border-color: var(--zc-fg);
	opacity: 1;
}

.zc-product__summary {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.zc-product__brand {
	display: inline-block;
	margin-bottom: 0.35rem;
	color: var(--zc-muted);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.zc-product__brand:hover,
.zc-product__brand:focus-visible {
	color: var(--zc-fg);
	text-decoration: underline;
}

.zc-product__title {
	margin: 0;
	line-height: 1.15;
}

.zc-price {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.zc-price__was {
	font-size: 1rem;
}

.zc-product__lead p {
	margin: 0;
	color: var(--zc-muted);
}

.zc-option {
	margin: 0;
	padding: 0;
	border: 0;
}

.zc-option legend {
	margin-bottom: 0.5rem;
	padding: 0;
	font-size: 0.9rem;
	color: var(--zc-muted);
}

.zc-option legend strong {
	color: var(--zc-fg);
}

.zc-option__values {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.zc-chip {
	min-width: 3rem;
	padding: 0.55rem 0.95rem;
	border: 1px solid var(--zc-line);
	border-radius: 999px;
	background: var(--zc-bg);
	color: var(--zc-fg);
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
	transition: border-color 120ms ease, background 120ms ease;
}

.zc-chip:hover {
	border-color: var(--zc-fg);
}

.zc-chip.is-selected {
	border-color: var(--zc-fg);
	background: var(--zc-fg);
	color: var(--zc-bg);
}

.zc-chip.is-unavailable:not(.is-selected) {
	color: var(--zc-muted);
	text-decoration: line-through;
}

.zc-stock {
	margin: 0;
	font-size: 0.9rem;
	color: var(--zc-ok);
}

.zc-stock::before {
	content: "";
	display: inline-block;
	width: 0.5em;
	height: 0.5em;
	margin-right: 0.5em;
	border-radius: 50%;
	background: currentColor;
	vertical-align: 0.1em;
}

.zc-stock:empty {
	display: none;
}

.zc-stock.is-low {
	color: #a15c07;
}

.zc-stock.is-out {
	color: var(--zc-danger);
}

.zc-buy-row {
	display: flex;
	gap: 0.75rem;
	align-items: stretch;
}

.zc-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--zc-line);
	border-radius: 999px;
	overflow: hidden;
}

.zc-qty button {
	width: 2.5rem;
	border: 0;
	background: none;
	color: inherit;
	font-size: 1.1rem;
	cursor: pointer;
}

.zc-qty button:hover {
	background: var(--zc-soft);
}

.zc-qty input {
	width: 3rem;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.zc-qty input::-webkit-outer-spin-button,
.zc-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.zc-buy.wp-element-button {
	flex: 1;
	min-height: 3rem;
	text-align: center;
	cursor: pointer;
}

.zc-buy[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.zc-buy[aria-busy="true"] {
	opacity: 0.7;
	cursor: progress;
}

.zc-notice {
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: var(--zc-radius);
	background: color-mix(in srgb, var(--zc-ok) 10%, var(--zc-bg));
	color: var(--zc-fg);
}

.zc-notice.is-error {
	background: color-mix(in srgb, var(--zc-danger) 10%, var(--zc-bg));
}

.zc-notice a {
	margin-left: 0.5rem;
	font-weight: 600;
}

.zc-notice[hidden],
[hidden].zc-notice {
	display: none;
}

.zc-product__description {
	padding-top: 1rem;
	border-top: 1px solid var(--zc-line);
}

/* A row of add-on links under Add to cart (wishlist, compare, size guide…). */
.zc-product__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 1.25rem 0 0;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--zc-line);
}

.zc-product__action {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.25rem 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 0.95rem;
	text-decoration: none;
	cursor: pointer;
}

.zc-product__action:hover,
.zc-product__action:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.zc-product__action svg {
	flex: none;
	width: 1.2em;
	height: 1.2em;
}

/* SKU, brand and categories. */
.zc-product__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.6rem;
	margin: 1.25rem 0 0;
	font-size: 0.9rem;
}

.zc-product__meta-label {
	color: var(--zc-muted);
}

.zc-product__meta-sep {
	color: var(--zc-line);
}

/* Share links. */
.zc-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-top: 1rem;
	font-size: 0.9rem;
}

.zc-share__label {
	color: var(--zc-muted);
}

.zc-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Size (sm / md / lg), shape (circle / square) and style (outline / brand / plain) come from
   Settings → General → Product page. Outline and plain use the theme's colours. */
.zc-share {
	--zc-share-size: 2.25rem;
	--zc-share-icon: 18px;
	--zc-share-radius: 999px;
}

.zc-share.is-sm {
	--zc-share-size: 1.9rem;
	--zc-share-icon: 15px;
}

.zc-share.is-lg {
	--zc-share-size: 2.75rem;
	--zc-share-icon: 22px;
}

.zc-share.is-square {
	--zc-share-radius: calc(var(--zc-share-size) * 0.25);
}

.zc-share__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--zc-share-size);
	height: var(--zc-share-size);
	padding: 0;
	border: 1px solid var(--zc-line);
	border-radius: var(--zc-share-radius);
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.zc-share__link svg {
	width: var(--zc-share-icon);
	height: var(--zc-share-icon);
}

.zc-share.is-outline .zc-share__link:hover,
.zc-share.is-outline .zc-share__link:focus-visible {
	border-color: var(--zc-fg);
	background: var(--zc-soft);
}

/* Brand: each network's own colour (shades dark enough for a white icon). */
.zc-share__link--facebook { --zc-net: #1877f2; }
.zc-share__link--x { --zc-net: #000; }
.zc-share__link--pinterest { --zc-net: #e60023; }
.zc-share__link--whatsapp { --zc-net: #128c7e; }
.zc-share__link--telegram { --zc-net: #0088cc; }
.zc-share__link--linkedin { --zc-net: #0a66c2; }

.zc-share.is-brand .zc-share__link {
	border-color: transparent;
	background: var(--zc-net, var(--zc-fg));
	color: #fff;
}

.zc-share.is-brand .zc-share__link--email,
.zc-share.is-brand .zc-share__link--copy {
	color: var(--zc-bg);
}

.zc-share.is-brand .zc-share__link:hover,
.zc-share.is-brand .zc-share__link:focus-visible {
	filter: brightness(0.88);
}

/* Plain: just the icons. */
.zc-share.is-plain .zc-share__list {
	gap: 0.15rem;
}

.zc-share.is-plain .zc-share__link {
	border-color: transparent;
	color: var(--zc-muted);
}

.zc-share.is-plain .zc-share__link:hover,
.zc-share.is-plain .zc-share__link:focus-visible {
	background: var(--zc-soft);
	color: var(--zc-fg);
}

.zc-share__link:focus-visible {
	outline: 2px solid var(--zc-fg);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.zc-share__link {
		transition: none;
	}
}

.zc-share__done:not(:empty) {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	padding: 0.2rem 0.5rem;
	border-radius: 6px;
	background: var(--zc-fg);
	color: var(--zc-bg);
	font-size: 0.75rem;
	white-space: nowrap;
	transform: translateX(-50%);
}

/* Tabs below the product: Description, Additional information, custom tabs, Reviews. */
.zc-ptabs {
	margin-top: clamp(2.5rem, 6vw, 4rem);
}

.zc-ptabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 clamp(1rem, 3vw, 2.25rem);
	border-bottom: 1px solid var(--zc-line);
}

.zc-ptabs__tab {
	position: relative;
	display: inline-flex;
	flex: none;
	margin-bottom: -1px;
	align-items: center;
	gap: 0.4rem;
	padding: 0.9rem 0;
	border: 0;
	background: none;
	color: var(--zc-muted);
	font: inherit;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.zc-ptabs__tab:hover {
	color: var(--zc-fg);
}

.zc-ptabs__tab[aria-selected="true"] {
	color: var(--zc-fg);
}

.zc-ptabs__tab[aria-selected="true"]::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: var(--zc-fg);
}

.zc-ptabs__tab:focus-visible {
	outline: 2px solid var(--zc-fg);
	outline-offset: -2px;
}

.zc-ptabs .zc-tabs__count {
	min-width: 1.4rem;
	padding: 0 0.4rem;
	border-radius: 999px;
	background: var(--zc-soft);
	font-size: 0.75rem;
	line-height: 1.4rem;
	text-align: center;
}

.zc-ptabs__panel {
	padding-top: clamp(1.25rem, 3vw, 2rem);
	line-height: 1.65;
}

.zc-ptabs__panel[hidden] {
	display: none;
}

.zc-ptabs__panel:focus-visible {
	outline: 2px solid var(--zc-fg);
	outline-offset: 4px;
}

.zc-ptabs__panel > :first-child,
.zc-ptabs__panel > .zc-ptabs__heading + * {
	margin-top: 0;
}

/* The tab names the panel; one tab alone shows its heading. */
.zc-ptabs:not(.is-single) .zc-ptabs__heading,
.zc-ptabs:not(.is-single) .zc-reviews__title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.zc-ptabs .zc-ptabs__heading {
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

.zc-ptabs .zc-reviews {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.zc-ptabs.is-single .zc-reviews__title {
	display: none;
}

.zc-details {
	width: 100%;
	max-width: 40rem;
	border-collapse: collapse;
}

.zc-details th,
.zc-details td {
	padding: 0.7rem 1rem 0.7rem 0;
	border-bottom: 1px solid var(--zc-line);
	text-align: start;
	vertical-align: top;
}

.zc-details th {
	width: 35%;
	font-weight: 600;
}

/* Related products. */
.zc-related {
	margin-top: clamp(2.5rem, 6vw, 4rem);
}

.zc-related .zc-related__title {
	margin: 0 0 1.25rem;
	font-size: 1.4rem;
}

/* Add-on buttons over a product card's image (wishlist, compare…). */
.zc-card {
	position: relative;
}

.zc-card__actions {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	opacity: 0;
	transform: translateX(4px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.zc-card:hover .zc-card__actions,
.zc-card:focus-within .zc-card__actions,
.zc-card__actions:has(.is-active) {
	opacity: 1;
	transform: none;
}

@media (hover: none) {
	.zc-card__actions {
		opacity: 1;
		transform: none;
	}
}

.zc-card__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--zc-bg);
	color: var(--zc-fg);
	box-shadow: 0 1px 3px color-mix(in srgb, var(--zc-fg) 18%, transparent);
	cursor: pointer;
}

.zc-card__action:hover,
.zc-card__action:focus-visible {
	background: var(--zc-fg);
	color: var(--zc-bg);
}

.zc-card__action svg {
	width: 1.1rem;
	height: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
	.zc-card__actions {
		transition: none;
	}
}

/* Tags under the description, linking to each tag's page. */
.zc-product__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	font-size: 0.9rem;
}

.zc-product__tags ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zc-product__tags-label {
	color: var(--zc-muted);
}

.zc-tag {
	display: inline-block;
	padding: 0.2em 0.7em;
	border: 1px solid var(--zc-line);
	border-radius: 999px;
	color: inherit;
	line-height: 1.4;
	text-decoration: none;
}

.zc-tag:hover,
.zc-tag:focus-visible {
	border-color: var(--zc-fg);
	background: var(--zc-soft);
}

/* ---------- Cart ---------- */
.zc-cart__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: var(--zc-gap);
	align-items: start;
}

.zc-cart__body > .zc-notice {
	grid-column: 1 / -1;
}

@container (max-width: 760px) {
	.zc-cart__body {
		grid-template-columns: 1fr;
	}
}

.zc-cart__empty {
	padding: 3rem 0;
	text-align: center;
}

.zc-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.zc-line {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) auto auto;
	grid-template-areas: "media info qty total" "media info remove remove";
	gap: 0.25rem 1rem;
	align-items: center;
	padding: 1rem 0;
	border-bottom: 1px solid var(--zc-line);
	transition: opacity 150ms ease;
}

.zc-line.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

.zc-line__media {
	grid-area: media;
	overflow: hidden;
	width: 80px;
	height: 80px;
	border-radius: 8px;
	background: var(--zc-soft);
}

.zc-line__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zc-line__info {
	grid-area: info;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.zc-line__name {
	font-weight: 600;
	color: inherit;
	text-decoration: none;
}

.zc-line__meta {
	font-size: 0.875rem;
	color: var(--zc-muted);
}

.zc-line__meta:empty {
	display: none;
}

.zc-line .zc-qty {
	grid-area: qty;
}

.zc-line__total {
	grid-area: total;
	min-width: 5rem;
	text-align: right;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.zc-line__remove {
	grid-area: remove;
	justify-self: end;
	padding: 0;
	border: 0;
	background: none;
	color: var(--zc-muted);
	font: inherit;
	font-size: 0.85rem;
	text-decoration: underline;
	cursor: pointer;
}

@container (max-width: 560px) {
	.zc-line {
		grid-template-columns: 64px minmax(0, 1fr) auto;
		grid-template-areas: "media info total" "media qty remove";
	}

	.zc-line__media {
		width: 64px;
		height: 64px;
	}
}

.zc-summary {
	padding: 1.25rem;
	border-radius: var(--zc-radius);
	background: var(--zc-soft);
}

.zc-summary h2,
.zc-summary h3 {
	margin: 0 0 1rem;
	font-size: 1.1rem;
}

.zc-totals {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0 0 1rem;
	font-variant-numeric: tabular-nums;
}

.zc-totals > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.zc-totals dt {
	color: var(--zc-muted);
}

.zc-totals dd {
	margin: 0;
}

.zc-totals__grand {
	margin-top: 0.25rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--zc-line);
	font-size: 1.15rem;
	font-weight: 700;
}

.zc-totals__grand dt {
	color: var(--zc-fg);
}

.zc-summary .zc-buy {
	display: block;
	width: 100%;
}

/* ---------- Checkout ---------- */
.zc-checkout__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}

@container (max-width: 860px) {
	.zc-checkout__layout {
		grid-template-columns: 1fr;
	}

	.zc-checkout__summary {
		order: -1;
	}
}

/* Beside the form, the summary stays in view while the shopper scrolls. In one column it
   scrolls with the page, so it never covers the form. Below the admin bar; a theme with a
   sticky header sets --zc-sticky-top to clear it. */
@container (min-width: 861px) {
	.zc-checkout__summary {
		position: sticky;
		top: var(--zc-sticky-top, calc(var(--wp-admin--admin-bar--height, 0px) + 1.5rem));
	}
}

.zc-section {
	margin: 0 0 1.75rem;
}

.zc-section h2 {
	margin: 0 0 0.9rem;
	font-size: 1.15rem;
}

.zc-row2,
.zc-row3 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 0.9rem;
}

.zc-row3 {
	grid-template-columns: 2fr 1.5fr 1fr;
}

@container (max-width: 520px) {
	.zc-row2,
	.zc-row3 {
		grid-template-columns: 1fr;
	}
}

.zc-field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin: 0 0 0.9rem;
}

.zc-label {
	font-size: 0.875rem;
	font-weight: 600;
}

.zc-optional {
	font-weight: 400;
	color: var(--zc-muted);
}

.zc-input {
	width: 100%;
	min-height: 2.9rem;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--zc-line);
	border-radius: 8px;
	background: var(--zc-bg);
	color: var(--zc-fg);
	font: inherit;
}

.zc-input:focus {
	outline: 2px solid var(--zc-fg);
	outline-offset: 1px;
	border-color: transparent;
}

.zc-field.has-error .zc-input {
	border-color: var(--zc-danger);
}

.zc-field__error {
	min-height: 0;
	font-size: 0.85rem;
	color: var(--zc-danger);
}

.zc-field__error:empty {
	display: none;
}

.zc-check {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	cursor: pointer;
}

.zc-ship {
	margin-top: 1rem;
}

.zc-methods {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--zc-line);
	border-radius: var(--zc-radius);
}

.zc-method {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.15rem 0.75rem;
	padding: 0.9rem 1rem;
	cursor: pointer;
}

.zc-method + .zc-method {
	border-top: 1px solid var(--zc-line);
}

.zc-method.is-selected {
	background: var(--zc-soft);
}

.zc-method input {
	grid-row: span 2;
	margin-top: 0.25rem;
	accent-color: var(--zc-fg);
}

.zc-method__title {
	font-weight: 600;
}

.zc-method__desc {
	display: none;
	font-size: 0.875rem;
	color: var(--zc-muted);
}

.zc-method.is-selected .zc-method__desc {
	display: block;
}

.zc-place {
	display: block;
	width: 100%;
	margin-top: 0.5rem;
}

.zc-fineprint {
	margin: 0.75rem 0 0;
	font-size: 0.8rem;
	color: var(--zc-muted);
	text-align: center;
}

.zc-mini-lines {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.zc-mini-lines li {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: 0.85rem;
	align-items: center;
	font-variant-numeric: tabular-nums;
}

.zc-mini-lines__media {
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	background: var(--zc-bg);
}

.zc-mini-lines__media img {
	width: 100%;
	height: 100%;
	border-radius: 8px;
	object-fit: cover;
}

.zc-mini-lines__qty {
	position: absolute;
	top: -0.4rem;
	right: -0.4rem;
	min-width: 1.3rem;
	height: 1.3rem;
	padding: 0 0.3rem;
	border-radius: 999px;
	background: var(--zc-muted);
	color: var(--zc-bg);
	font-size: 0.75rem;
	line-height: 1.3rem;
	text-align: center;
}

.zc-mini-lines__name {
	display: flex;
	flex-direction: column;
	font-weight: 600;
}

.zc-mini-lines__name small {
	font-weight: 400;
	color: var(--zc-muted);
}

/* ---------- Order received ---------- */
.zc-received__eyebrow {
	margin: 0;
	font-size: 0.875rem;
	color: var(--zc-muted);
}

.zc-received__title {
	margin: 0.25rem 0 0.5rem;
}

.zc-instructions {
	margin: 1.5rem 0;
	padding: 1.25rem;
	border: 1px solid var(--zc-line);
	border-left: 4px solid var(--zc-fg);
	border-radius: var(--zc-radius);
}

.zc-instructions h3 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}

.zc-instructions p {
	margin: 0;
	white-space: pre-line;
}

.zc-received__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: var(--zc-gap);
	margin: 1.5rem 0;
}

@container (max-width: 640px) {
	.zc-received__grid {
		grid-template-columns: 1fr;
	}
}

.zc-received address {
	font-style: normal;
	line-height: 1.6;
}

/* ---------- Mini cart ---------- */
.zc-mini-cart {
	position: relative;
	display: inline-flex;
	margin-inline-start: 0.75rem;
	padding: 0.25rem;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.zc-mini-cart__count {
	position: absolute;
	top: -0.45rem;
	right: -0.6rem;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.3rem;
	border-radius: 999px;
	background: var(--zc-fg);
	color: var(--zc-bg);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.15rem;
	text-align: center;
}

.zc-mini-cart__count[hidden] {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.zc-card__img,
	.zc-line,
	.zc-chip {
		transition: none;
	}
}

/* Delivery options */
.zc-method__title {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.zc-method__price {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.zc-method__desc.zc-pre {
	white-space: pre-line;
}

.zc-method__desc:empty {
	display: none !important;
}

.zc-muted-text {
	margin: 0;
	color: var(--zc-muted);
}

[hidden].zc-muted-text,
[hidden].zc-methods {
	display: none;
}

/* ---- Coupons ---- */
.zc-totals > div[hidden] {
	display: none;
}

.zc-totals__discount {
	color: var(--zc-ok);
}

.zc-coupon {
	margin: 0 0 1rem;
}

.zc-coupon__toggle {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.zc-coupon__toggle[hidden],
.zc-coupon__form[hidden],
.zc-coupon__applied[hidden] {
	display: none;
}

.zc-coupon__row {
	display: flex;
	gap: 0.5rem;
}

.zc-coupon__row input {
	flex: 1;
	min-width: 0;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--zc-line);
	border-radius: var(--zc-radius);
	background: var(--zc-bg);
	color: var(--zc-fg);
	font: inherit;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.zc-coupon__row input[aria-invalid="true"] {
	border-color: var(--zc-danger);
}

.zc-coupon__row .wp-element-button {
	flex: none;
	padding-block: 0.6rem;
}

.zc-coupon__row .wp-element-button:disabled {
	opacity: 0.6;
}

.zc-coupon__applied {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
	padding: 0;
	list-style: none;
}

.zc-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.25rem 0.25rem 0.25rem 0.6rem;
	border-radius: 999px;
	background: var(--zc-soft);
	border: 1px dashed var(--zc-line);
	font-size: 0.875em;
}

.zc-chip__code {
	font-weight: 600;
	letter-spacing: 0.04em;
}

.zc-chip__amount {
	color: var(--zc-ok);
	font-variant-numeric: tabular-nums;
}

.zc-chip button {
	display: inline-grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--zc-muted);
	font-size: 1.1em;
	line-height: 1;
	cursor: pointer;
}

.zc-chip button:hover,
.zc-chip button:focus-visible {
	background: var(--zc-line);
	color: var(--zc-fg);
}

.zc-coupon__row input::placeholder {
	text-transform: none;
	letter-spacing: normal;
}

.zc-coupon__toggle {
	color: var(--zc-muted);
	font-size: 0.9em;
}

/* ---- My account ---- */
/* Signed-out My account: one card, one view at a time. */
.zc-auth {
	max-width: 27rem;
	margin: clamp(0.5rem, 3vw, 2rem) auto;
}

.zc-auth__card {
	padding: clamp(1.5rem, 5vw, 2.25rem);
	border: 1px solid var(--zc-line);
	border-radius: calc(var(--zc-radius) * 1.6);
	background: var(--zc-bg);
	box-shadow: 0 1px 2px color-mix(in srgb, var(--zc-fg) 5%, transparent), 0 16px 40px -20px color-mix(in srgb, var(--zc-fg) 22%, transparent);
}

.zc-auth__panel[hidden] {
	display: none;
}

.zc-auth .zc-auth__title {
	margin: 0 0 0.4rem;
	font-size: 1.6rem;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.zc-auth__lead {
	margin: 0 0 1.5rem;
	color: var(--zc-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.zc-auth__notice {
	margin-bottom: 1.25rem;
}

.zc-auth__form > .zc-notice {
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.zc-auth__label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}

.zc-auth__label-row a {
	font-size: 0.85rem;
	color: var(--zc-muted);
	text-decoration: none;
}

.zc-auth__label-row a:hover,
.zc-auth__label-row a:focus-visible {
	color: var(--zc-fg);
	text-decoration: underline;
}

.zc-auth__remember {
	margin: 0.1rem 0 1.25rem;
	font-size: 0.9rem;
}

.zc-auth .zc-buy.wp-element-button {
	width: 100%;
}

.zc-auth__switch {
	margin: 1.5rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--zc-line);
	text-align: center;
	font-size: 0.9rem;
	color: var(--zc-muted);
}

.zc-auth__switch a {
	font-weight: 600;
	color: var(--zc-fg);
}

.zc-field__hint {
	font-size: 0.82rem;
	color: var(--zc-muted);
}

.zc-password {
	position: relative;
	display: block;
}

.zc-password .zc-input {
	padding-inline-end: 2.9rem;
}

.zc-password__toggle {
	position: absolute;
	top: 50%;
	inset-inline-end: 0.35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--zc-muted);
	cursor: pointer;
	transform: translateY(-50%);
}

.zc-password__toggle:hover {
	background: var(--zc-soft);
	color: var(--zc-fg);
}

.zc-password__toggle:focus-visible {
	outline: 2px solid var(--zc-fg);
	outline-offset: 0;
}

.zc-password__hide,
.zc-password__toggle[aria-pressed="true"] .zc-password__show {
	display: none;
}

.zc-password__toggle[aria-pressed="true"] .zc-password__hide {
	display: block;
}

.zc-account__form {
	padding: 1.5rem;
	border: 1px solid var(--zc-line);
	border-radius: var(--zc-radius);
}

.zc-account__body .zc-account__form {
	padding: 0;
	border: 0;
}

.zc-account__narrow {
	max-width: 32rem;
}

.zc-account__form h3,
.zc-account__body h3 {
	margin: 1.25rem 0 0.75rem;
	font-size: 1rem;
}

.zc-account__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 2.5rem;
}

.zc-account__cols h3 {
	margin-top: 0;
}

.zc-account__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1rem;
	font-size: 0.9em;
}

.zc-account__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin: 0 0 1rem;
}

.zc-account__head h2 {
	margin: 0;
}

.zc-linkish {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.zc-account__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0 0 1.5rem;
	border-bottom: 1px solid var(--zc-line);
}

.zc-account__nav a {
	padding: 0.6rem 0.9rem;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	color: var(--zc-muted);
	text-decoration: none;
}

.zc-account__nav a:hover {
	color: var(--zc-fg);
}

.zc-account__nav a[aria-current="page"] {
	border-bottom-color: currentColor;
	color: var(--zc-fg);
	font-weight: 600;
}

.zc-orders {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.zc-orders th,
.zc-orders td {
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid var(--zc-line);
	text-align: left;
}

.zc-orders th {
	color: var(--zc-muted);
	font-weight: 500;
	font-size: 0.875em;
}

.zc-orders .zc-num {
	text-align: right;
}

.zc-status {
	display: inline-block;
	padding: 0.1rem 0.55rem;
	border-radius: 999px;
	background: var(--zc-soft);
	font-size: 0.85em;
}

.zc-status.is-processing,
.zc-status.is-completed,
.zc-status.is-active {
	color: var(--zc-ok);
}

.zc-status.is-failed,
.zc-status.is-cancelled,
.zc-status.is-on-hold {
	color: var(--zc-danger);
}

.zc-pager {
	display: flex;
	justify-content: space-between;
	margin-top: 1rem;
}

.zc-create-account {
	margin-top: 0.25rem;
}

.zc-create-account [hidden] {
	display: none;
}

@container (max-width: 640px) {
	.zc-account__cols {
		grid-template-columns: 1fr;
	}

	.zc-orders thead {
		display: none;
	}

	.zc-orders tr {
		display: grid;
		grid-template-columns: 1fr auto;
		padding: 0.75rem 0;
		border-bottom: 1px solid var(--zc-line);
	}

	.zc-orders td {
		padding: 0.15rem 0;
		border: 0;
	}
}

.zc-account__form > .zc-muted-text {
	margin: -0.4rem 0 1rem;
	font-size: 0.9rem;
}

/* ---- Downloads ---- */
.zc-downloads {
	margin: 0 0 1.75rem;
}

.zc-downloads h3 {
	margin: 0 0 0.6rem;
	font-size: 1.05rem;
}

.zc-downloads ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.zc-downloads li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--zc-line);
}

.zc-downloads__name small {
	display: block;
	color: var(--zc-muted);
}

.zc-downloads .wp-element-button {
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
}

/* ---- Custom checkout fields ---- */
.zc-help {
	display: block;
	margin-top: 0.25rem;
	color: var(--zc-muted);
	font-size: 0.85em;
}

.zc-details {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem 1.25rem;
	margin: 0 0 1.5rem;
}

.zc-details > div {
	display: contents;
}

.zc-details dt {
	color: var(--zc-muted);
}

.zc-details dd {
	margin: 0;
}

.zc-field + .zc-help {
	margin: -0.6rem 0 0.9rem;
}

.zc-help--tight {
	margin: -0.6rem 0 0.9rem;
}

/* ---- Slide-out cart ---- */
.zc-mini-cart__link {
	position: relative;
	display: inline-flex;
	color: inherit;
}

.zc-drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	visibility: hidden;
	pointer-events: none;
}

.zc-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.zc-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 0.35);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.zc-drawer.is-open .zc-drawer__overlay {
	opacity: 1;
}

.zc-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 100%);
	background: var(--zc-bg);
	color: var(--zc-fg);
	box-shadow: -12px 0 40px rgb(0 0 0 / 0.15);
	transform: translateX(100%);
	transition: transform 0.25s ease;
}

.zc-drawer.is-open .zc-drawer__panel {
	transform: none;
}

.zc-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--zc-line);
}

.zc-drawer__head h2 {
	margin: 0;
	font-size: 1.15rem;
}

.zc-drawer__close {
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.zc-drawer__close:hover,
.zc-drawer__close:focus-visible {
	background: var(--zc-soft);
}

.zc-drawer__freebar {
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid var(--zc-line);
	font-size: 0.9rem;
}

.zc-drawer__freebar p {
	margin: 0 0 0.4rem;
}

.zc-drawer__track {
	height: 6px;
	border-radius: 999px;
	background: var(--zc-soft);
	overflow: hidden;
}

.zc-drawer__track span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--zc-ok);
	transition: width 0.3s ease;
}

.zc-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 0.5rem 1.25rem 1rem;
}

.zc-drawer__empty {
	padding: 2rem 0;
	text-align: center;
}

.zc-drawer__empty[hidden],
.zc-drawer__loading[hidden],
.zc-drawer__freebar[hidden],
.zc-drawer__bump[hidden],
.zc-drawer__foot[hidden] {
	display: none;
}

.zc-drawer__lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.zc-drawer__lines li {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 0.75rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--zc-line);
}

.zc-drawer__lines li.is-busy {
	opacity: 0.55;
}

.zc-drawer__img {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	background: var(--zc-soft);
	overflow: hidden;
}

.zc-drawer__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zc-drawer__info {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.zc-drawer__name {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.zc-drawer__meta {
	color: var(--zc-muted);
	font-size: 0.85rem;
}

.zc-drawer__meta:empty {
	display: none;
}

.zc-qty--sm {
	align-self: flex-start;
	margin-top: 0.25rem;
}

.zc-qty__value {
	min-width: 1.75rem;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.zc-drawer__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
}

.zc-drawer__price {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.zc-drawer__remove {
	padding: 0;
	border: 0;
	background: none;
	color: var(--zc-muted);
	font: inherit;
	font-size: 0.85rem;
	text-decoration: underline;
	cursor: pointer;
}

.zc-drawer__bump {
	margin-top: 1rem;
	padding: 0.85rem;
	border: 1px dashed var(--zc-line);
	border-radius: var(--zc-radius);
}

.zc-drawer__bump-title {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--zc-muted);
}

.zc-drawer__bump-card {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: 0.75rem;
	align-items: center;
}

.zc-drawer__bump-thumb {
	width: 56px;
	height: 56px;
	border-radius: 6px;
	background: var(--zc-soft);
	overflow: hidden;
}

.zc-drawer__bump-thumb img[hidden] {
	display: none;
}

.zc-drawer__bump-card img {
	width: 56px;
	height: 56px;
	border-radius: 6px;
	object-fit: cover;
}

.zc-drawer__bump-card span {
	display: flex;
	flex-direction: column;
}

.zc-drawer__bump-card a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.zc-drawer .zc-drawer__bump-add {
	padding: 0.45rem 1rem;
	font-size: 0.9rem;
	line-height: 1.3;
	white-space: nowrap;
}

.zc-drawer .zc-drawer__foot .zc-buy {
	min-height: 0;
	padding-block: 0.85rem;
}

.zc-drawer__foot {
	padding: 1rem 1.25rem 1.25rem;
	border-top: 1px solid var(--zc-line);
}

.zc-drawer__subtotal {
	display: flex;
	justify-content: space-between;
	font-size: 1.05rem;
}

.zc-drawer__note {
	margin: 0.25rem 0 0.9rem;
	color: var(--zc-muted);
	font-size: 0.85rem;
}

.zc-drawer__foot .zc-buy {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	text-align: center;
}

.zc-drawer__viewcart {
	display: block;
	margin-top: 0.6rem;
	color: inherit;
	font-size: 0.9rem;
	text-align: center;
}

html.zc-drawer-lock {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.zc-drawer__panel,
	.zc-drawer__overlay,
	.zc-drawer__track span {
		transition: none;
	}
}

.zc-qty--sm button {
	width: 2rem;
	height: 2rem;
}

.zc-qty--sm .zc-qty__value {
	line-height: 2rem;
}

/* Currency switcher */
.zc-currency {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
}

.zc-currency .zc-currency__select {
	padding: 0.35rem 1.9rem 0.35rem 0.6rem;
	border: 1px solid var(--zc-line);
	border-radius: 999px;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
	color: inherit;
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
	appearance: none;
}

/* Subscriptions */
.zc-price__per {
	color: var(--zc-muted);
	font-size: 0.85em;
	font-weight: 400;
}

.zc-product__terms {
	margin: -0.25rem 0 0.75rem;
	color: var(--zc-muted);
	font-size: 0.9rem;
}

.zc-sub__head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: center;
	justify-content: space-between;
}

.zc-sub__head h3,
.zc-sub__title {
	margin: 0;
	font-size: 1.15rem;
}

.zc-sub__title {
	margin: 1.5rem 0 0.5rem;
}

.zc-sub__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0.75rem 1.5rem;
	margin: 1rem 0;
}

.zc-sub__facts dt {
	color: var(--zc-muted);
	font-size: 0.85rem;
}

.zc-sub__facts dd {
	margin: 0.15rem 0 0;
}

.zc-sub__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	padding-top: 1rem;
	border-top: 1px solid var(--zc-line);
}

.zc-sub__actions .zc-field__error {
	flex-basis: 100%;
	margin: 0;
}

.zc-button-secondary {
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--zc-line);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.zc-button-secondary:hover {
	border-color: var(--zc-fg);
}

.zc-button-secondary[disabled] {
	opacity: 0.5;
	cursor: progress;
}

/* My account: change a subscription's plan. */
.zc-sub__switch {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-top: 1rem;
}

.zc-sub__switch select {
	max-width: 100%;
}

.zc-sub__switch .zc-field__error {
	flex-basis: 100%;
	margin: 0;
}

/* Subscription saver: the offer shown when a customer goes to cancel. */
.zc-saver {
	flex-basis: 100%;
	padding: 1rem;
	border: 1px solid var(--zc-line);
	border-radius: 8px;
	background: var(--zc-soft);
}

.zc-saver__offer {
	margin: 0 0 0.75rem;
}

.zc-saver__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.zc-saver select {
	max-width: 100%;
}

/* Checkout offer ("order bump") in the order summary. */
.zc-offer {
	margin: 1rem 0;
	padding: 0.85rem;
	border: 1px dashed var(--zc-fg);
	border-radius: 8px;
}

.zc-offer__headline {
	margin: 0 0 0.6rem;
	font-weight: 600;
}

.zc-offer__card {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 0.75rem;
	align-items: center;
}

.zc-offer__thumb img {
	display: block;
	border-radius: 6px;
	object-fit: cover;
}

.zc-offer__name small {
	display: block;
	color: var(--zc-muted);
}

.zc-offer__add {
	grid-column: 1 / -1;
	width: 100%;
}

.zc-offer .zc-field__error {
	margin: 0.5rem 0 0;
}
