/*
 * Comm Centre theme: shop styles (archive, category, product, cart, checkout, order received, account).
 *
 * Loaded only on shop pages (inc/shop.php). Reads only the variables in tokens.css. Same rules as base.css:
 * no text gradients, glow or drop shadows on UI chrome, 2px focus outlines from base.css, 44px touch targets,
 * and one-shot 120ms transitions only (none under prefers-reduced-motion).
 */

/* ------------------------------------------------------------------ shared */

.cc-shop .cc-container {
	box-sizing: border-box;
}

.cc-shop-head > * + * {
	margin-top: var(--cc-space-m);
}

.cc-shop-listing,
.cc-shop-content {
	padding-block: var(--cc-space-l) var(--cc-space-section);
}

/* WooCommerce breadcrumb, in the same voice as the theme breadcrumb. */
.cc-shop .woocommerce-breadcrumb {
	font-size: var(--cc-font-size-s);
	color: var(--cc-color-secondary);
}

.cc-shop .woocommerce-breadcrumb a {
	display: inline-block;
	padding-block: var(--cc-space-xxs);
	color: var(--cc-color-secondary);
}

.cc-shop .wc-block-breadcrumbs {
	margin: 0;
}

/* Notices (store-notices block and the classic wrapper). */
.cc-shop .woocommerce-notices-wrapper:empty {
	display: none;
}

.cc-shop .woocommerce-message,
.cc-shop .woocommerce-info,
.cc-shop .woocommerce-error,
.cc-shop .wc-block-components-notice-banner {
	box-sizing: border-box;
	margin: 0 0 var(--cc-space-m);
	padding: var(--cc-space-m);
	list-style: none;
	background: var(--cc-color-raised);
	border: 1px solid var(--cc-color-line-strong);
	border-radius: var(--cc-radius-m);
	color: var(--cc-color-secondary);
}

.cc-shop .woocommerce-error,
.cc-shop .wc-block-components-notice-banner.is-error {
	border: 2px solid var(--cc-color-error);
	color: var(--cc-color-white);
}

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

.cc-shop .woocommerce-message .button,
.cc-shop .woocommerce-info .button {
	float: right;
}

/* ------------------------------------------------------------------ price */

.cc-price {
	display: inline-flex;
	flex-direction: column;
	gap: var(--cc-space-xxs);
}

.cc-price__main {
	color: var(--cc-color-white);
	font-weight: 600;
}

.cc-price__tax,
.cc-price__from {
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-s);
	font-weight: 400;
}

.cc-price__ex {
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-s);
}

.cc-price--discuss {
	color: var(--cc-color-white);
	font-weight: 600;
}

.cc-shop .wc-block-components-product-price {
	margin: 0;
}

/* ------------------------------------------------------------------ catalogue */

.cc-shop-toolbar {
	margin-bottom: var(--cc-space-l);
	gap: var(--cc-space-m);
}

.cc-shop-toolbar .woocommerce-result-count {
	margin: 0;
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-s);
}

.cc-shop select,
.cc-shop .orderby,
.cc-shop .woocommerce-ordering select {
	box-sizing: border-box;
	min-height: var(--cc-target-min);
	padding: 0.5rem 2.25rem 0.5rem 0.9rem;
	background-color: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-line-strong);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-white);
	font-family: var(--cc-font-body);
	font-size: var(--cc-font-size-s);
	max-width: 100%;
}

.cc-shop .wc-block-product-template.wc-block-product-template__responsive,
.cc-shop .wc-block-product-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
	gap: var(--cc-space-l);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-shop .wc-block-product-template > li.wc-block-product {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

.cc-shop-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	background: var(--cc-color-raised);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-m);
	overflow: hidden;
}

.cc-shop-card > * {
	margin: 0;
}

.cc-shop-card > *:not(.cc-shop-card__media) {
	padding-inline: var(--cc-space-l);
}

.cc-shop-card .wc-block-components-product-image,
.cc-shop-card .wp-block-woocommerce-product-image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0;
	background: var(--cc-color-canvas);
}

.cc-shop-card .wc-block-components-product-image a,
.cc-shop-card .wp-block-woocommerce-product-image a {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	position: relative;
}

.cc-shop-card .wc-block-components-product-image img,
.cc-shop-card .wp-block-woocommerce-product-image img {
	display: block;
	width: 72%;
	height: auto;
	max-height: 90%;
	object-fit: contain;
}

.cc-placeholder {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

.cc-placeholder__label {
	position: absolute;
	left: var(--cc-space-s);
	bottom: var(--cc-space-s);
	padding: var(--cc-space-xxs) var(--cc-space-xs);
	background: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-line-strong);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-xs);
	line-height: 1.3;
}

/* Product names read as names: normal case, the body face, a calm size. The uppercase display type is for
   headings, and a long product name in it reads as shouting (owner feedback, 2026-11-11). */
.cc-shop .cc-shop-card__title,
.cc-shop h2.cc-shop-card__title {
	margin-top: var(--cc-space-m);
	font-family: var(--cc-font-body);
	font-size: var(--cc-font-size-m);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.35;
	text-transform: none;
}

.cc-shop-card__title a {
	display: inline-block;
	min-height: 1.5rem;
	color: var(--cc-color-white);
	text-decoration: none;
}

.cc-shop-card__title a:hover {
	text-decoration: underline;
}

.cc-shop-card__price {
	margin-top: var(--cc-space-s);
	font-size: var(--cc-font-size-m);
}

.cc-shop-card__button {
	margin-top: auto;
	padding-block: var(--cc-space-m) var(--cc-space-l);
}

.cc-shop-card__button .wc-block-components-product-button,
.cc-shop-card__button .wp-block-button {
	margin: 0;
}

.cc-shop-card__button .wp-block-button__link,
.cc-shop-card__button .wc-block-components-product-button__button {
	width: 100%;
	margin: 0;
	background-color: var(--cc-color-action);
	border-color: var(--cc-color-action);
	color: var(--cc-color-action-ink);
	font-size: var(--cc-font-size-m);
	font-weight: 600;
}

.cc-shop-card__button .wp-block-button__link:hover {
	background-color: var(--cc-color-action-hover);
	border-color: var(--cc-color-action-hover);
}

.cc-shop .wp-block-query-pagination {
	justify-content: center;
}

/* ------------------------------------------------------------------ product page */

.cc-pdp-shop {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cc-space-xl);
	padding-block: var(--cc-space-s) var(--cc-space-xl);
}

@media (min-width: 48em) {
	.cc-pdp-shop {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}
}

@media (min-width: 70em) {
	.cc-pdp-shop {
		grid-template-columns: 7fr 5fr;
		gap: var(--cc-space-xxl);
	}
}

.cc-pdp-shop__media,
.cc-pdp-shop__info {
	min-width: 0;
}

.cc-pdp-shop__media > * {
	margin: 0;
}

.cc-pdp-shop .woocommerce-product-gallery {
	opacity: 1 !important; /* WooCommerce's script fades the gallery in; without it the gallery would stay invisible. */
	float: none;
	width: 100%;
	margin: 0;
	position: relative;
}

.cc-pdp-shop .woocommerce-product-gallery__wrapper {
	margin: 0;
}

.cc-pdp-shop .woocommerce-product-gallery__image {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	aspect-ratio: 1 / 1;
	background: var(--cc-color-raised);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-m);
	overflow: hidden;
	position: relative;
}

.cc-pdp-shop .woocommerce-product-gallery__image img {
	display: block;
	width: 72%;
	height: auto;
	max-height: 92%;
	object-fit: contain;
}

.cc-pdp-shop .woocommerce-product-gallery__image--placeholder::after {
	content: "Placeholder illustration" / "";
	position: absolute;
	left: var(--cc-space-s);
	bottom: var(--cc-space-s);
	padding: var(--cc-space-xxs) var(--cc-space-xs);
	background: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-line-strong);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-xs);
	line-height: 1.3;
}

.cc-pdp-shop .woocommerce-product-gallery__trigger {
	display: none;
}

.cc-pdp-shop__info > * {
	margin-block: 0;
}

.cc-pdp-shop__info > * + * {
	margin-top: var(--cc-space-l);
}

.cc-pdp-shop__title {
	font-size: var(--cc-font-size-xxl);
	line-height: 1.12;
	overflow-wrap: anywhere;
}

@media (min-width: 70em) {
	.cc-pdp-shop__title {
		font-size: var(--cc-font-size-xl);
	}
}

/* Exact identity: model, edition, MPN, GTIN. */
.cc-spec {
	display: grid;
	gap: var(--cc-space-xs);
	padding: 0;
}

.cc-spec__row {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: var(--cc-space-s);
	align-items: baseline;
}

.cc-spec dt {
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-s);
}

.cc-spec dd {
	margin: 0;
	color: var(--cc-color-white);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.cc-pdp-shop__price .cc-price__main {
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-xl);
	font-weight: 700;
}

.cc-pdp-shop__delivery {
	color: var(--cc-color-secondary);
}

/* Purchase form: variations, selected price, stock, quantity and the button. */
.cc-pdp-shop form.cart,
.cc-pdp-shop form.variations_form {
	margin: 0;
}

.cc-pdp-shop table.variations {
	width: 100%;
	margin: 0 0 var(--cc-space-s);
	border: 0;
	border-collapse: collapse;
}

.cc-pdp-shop table.variations tr,
.cc-pdp-shop table.variations th,
.cc-pdp-shop table.variations td {
	display: block;
	padding: 0;
	border: 0;
	text-align: left;
}

.cc-pdp-shop table.variations th.label,
.cc-pdp-shop table.variations label {
	margin-bottom: var(--cc-space-xs);
	color: var(--cc-color-white);
	font-weight: 600;
}

.cc-pdp-shop table.variations select {
	width: 100%;
}

.cc-pdp-shop .reset_variations {
	display: inline-block;
	margin-top: var(--cc-space-xs);
	padding-block: var(--cc-space-xs);
	min-height: 1.5rem;
}

.cc-pdp-shop .single_variation:empty,
.cc-pdp-shop .woocommerce-variation-description:empty,
.cc-pdp-shop .woocommerce-variation-availability:empty {
	display: none;
}

.cc-pdp-shop .woocommerce-variation-description {
	margin: 0;
}

.cc-pdp-shop .single_variation_wrap > * + *,
.cc-pdp-shop .woocommerce-variation > * + * {
	margin-top: var(--cc-space-s);
}

.cc-pdp-shop .woocommerce-variation-price .price,
.cc-pdp-shop .woocommerce-variation-price {
	margin: 0 0 var(--cc-space-s);
	color: var(--cc-color-white);
}

.cc-pdp-shop .woocommerce-variation-price .cc-price__main {
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-xl);
}

.cc-pdp-shop .stock,
.cc-pdp-shop .woocommerce-variation-availability p {
	margin: 0 0 var(--cc-space-s);
	color: var(--cc-color-secondary);
	font-weight: 600;
}

.cc-pdp-shop .stock.out-of-stock {
	color: var(--cc-color-error);
}

.cc-pdp-shop .woocommerce-variation-add-to-cart,
.cc-pdp-shop form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cc-space-s) var(--cc-space-m);
	align-items: center;
}

.cc-pdp-shop .quantity {
	margin: 0;
}

.cc-pdp-shop .quantity .qty {
	box-sizing: border-box;
	width: 5rem;
	min-height: var(--cc-target-min);
	padding: 0.5rem 0.6rem;
	background: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-line-strong);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-white);
	font-family: var(--cc-font-body);
	font-size: var(--cc-font-size-m);
	text-align: center;
}

.cc-pdp-shop .single_add_to_cart_button,
.cc-shop .button.alt,
.cc-shop button.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--cc-target-min);
	padding: 0.65rem 1.4rem;
	background-color: var(--cc-color-action);
	border: 2px solid var(--cc-color-action);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-action-ink);
	font-family: var(--cc-font-body);
	font-size: var(--cc-font-size-m);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.cc-pdp-shop .single_add_to_cart_button:hover,
.cc-shop .button.alt:hover {
	background-color: var(--cc-color-action-hover);
	border-color: var(--cc-color-action-hover);
	color: var(--cc-color-action-ink);
}

.cc-pdp-shop .single_add_to_cart_button.disabled,
.cc-pdp-shop .single_add_to_cart_button.wc-variation-selection-needed,
.cc-pdp-shop .single_add_to_cart_button:disabled {
	background-color: var(--cc-color-raised);
	border-color: var(--cc-color-line-strong);
	color: var(--cc-color-secondary);
	cursor: not-allowed;
	opacity: 1 !important; /* WooCommerce fades a disabled button to 20 percent, which fails contrast. */
}

/* The honest message that stands in for the purchase form while the gate is closed. */
.cc-purchase-status {
	padding: var(--cc-space-l);
	background: var(--cc-color-raised);
	border: 1px solid var(--cc-color-line-strong);
	border-radius: var(--cc-radius-m);
}

.cc-purchase-status > * {
	margin: 0;
}

.cc-purchase-status > * + * {
	margin-top: var(--cc-space-s);
}

.cc-purchase-status__title {
	color: var(--cc-color-white);
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-l);
	font-weight: 700;
}

/* Policies and the optional setup link. */
.cc-product-policies--inline {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cc-space-xs) var(--cc-space-m);
	align-items: baseline;
	font-size: var(--cc-font-size-s);
}

.cc-product-policies--inline > * {
	margin: 0;
}

.cc-product-policies__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cc-space-xs) var(--cc-space-m);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-product-policies__links a,
.cc-product-policies--section .cc-product-list a {
	display: inline-block;
	padding-block: var(--cc-space-xs);
	min-height: 1.5rem;
}

.cc-check-setup {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cc-space-s) var(--cc-space-m);
	align-items: center;
}

.cc-check-setup__hint {
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-s);
}

/* Below the fold: in the box, required parts, extras, specifications, policies. */
.cc-pdp-shop__sections {
	display: grid;
	gap: var(--cc-space-xl);
	padding-block: var(--cc-space-l) var(--cc-space-section);
	border-top: 1px solid var(--cc-color-line);
}

@media (min-width: 70em) {
	.cc-pdp-shop__sections {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--cc-space-xxl);
		align-items: start;
	}

	.cc-pdp-shop__sections > .cc-product-extras,
	.cc-pdp-shop__sections > .cc-product-specs {
		grid-column: 1 / -1;
	}
}

.cc-pdp-shop__sections > * {
	margin: 0;
	min-width: 0;
}

.cc-product-section__title {
	margin: 0 0 var(--cc-space-s);
	font-size: var(--cc-font-size-xl);
	line-height: 1.2;
}

.cc-product-section__intro {
	margin: 0 0 var(--cc-space-s);
	color: var(--cc-color-secondary);
}

.cc-product-list {
	margin: 0;
	padding-left: var(--cc-space-l);
}

.cc-product-list li + li {
	margin-top: var(--cc-space-xs);
}

.cc-product-list a {
	color: var(--cc-color-action);
}

.cc-product-list__qty {
	color: var(--cc-color-white);
	font-weight: 600;
}

.cc-product-list__note {
	display: block;
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-s);
}

.cc-product-policies__note {
	margin: var(--cc-space-s) 0 0;
	color: var(--cc-color-secondary);
}

/* Extras and spares: a plain form, every box unchecked. */
.cc-extras-form fieldset {
	margin: 0 0 var(--cc-space-m);
	padding: 0;
	border: 0;
	min-width: 0;
}

.cc-extras-form legend {
	padding: 0;
	margin-bottom: var(--cc-space-xs);
	color: var(--cc-color-white);
	font-weight: 600;
}

.cc-extras-form__help {
	margin: 0 0 var(--cc-space-s);
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-s);
}

.cc-extras-form p {
	margin: 0;
}

.cc-extras-form label {
	display: flex;
	align-items: flex-start;
	gap: var(--cc-space-s);
	min-height: var(--cc-target-min);
	padding-block: var(--cc-space-xs);
	cursor: pointer;
}

.cc-extras-form input[type="checkbox"] {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	margin: 0.15rem 0 0;
	accent-color: var(--cc-color-action);
}

.cc-extras-form__ack {
	margin-left: var(--cc-space-xl);
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-s);
}

.cc-extras-form__price {
	color: var(--cc-color-white);
	font-weight: 600;
}

.cc-extras-form__price .cc-price {
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--cc-space-xs);
}

/* Specifications and setup. */
.cc-product-specs .cc-product-specs__body > * + * {
	margin-top: var(--cc-space-m);
}

.cc-product-specs table,
.cc-product-specs table.shop_attributes {
	width: 100%;
	border: 0;
	border-collapse: collapse;
}

.cc-product-specs table.shop_attributes tr,
.cc-product-specs table.shop_attributes th,
.cc-product-specs table.shop_attributes td {
	border: 0;
	background: transparent;
}

.cc-product-specs th,
.cc-product-specs td,
.cc-product-specs table.shop_attributes th,
.cc-product-specs table.shop_attributes td {
	padding: var(--cc-space-s);
	border-bottom: 1px solid var(--cc-color-line);
	text-align: left;
	vertical-align: top;
	font-style: normal;
}

.cc-product-specs th {
	width: 11rem;
	color: var(--cc-color-white);
	font-weight: 600;
}

.cc-product-specs td p {
	margin: 0;
}

/* ------------------------------------------------------------------ cart and checkout (WooCommerce blocks) */

.cc-shop .wc-block-cart,
.cc-shop .wc-block-checkout {
	color: var(--cc-color-secondary);
	font-family: var(--cc-font-body);
}

.cc-shop .wc-block-components-title,
.cc-shop .wc-block-cart__totals-title,
.cc-shop .wc-block-components-checkout-step__title,
.cc-shop .wc-block-components-checkout-order-summary__title-text {
	color: var(--cc-color-white);
	font-family: var(--cc-font-heading);
	font-weight: 700;
}

.cc-shop .wc-block-components-product-name,
.cc-shop .wc-block-components-product-metadata,
.cc-shop .wc-block-components-totals-item,
.cc-shop .wc-block-components-order-summary-item__description {
	color: var(--cc-color-secondary);
}

.cc-shop .wc-block-components-product-name {
	display: inline-block;
	min-height: 1.5rem; /* WCAG 2.5.8: measured at 18 px high in the cart */
	padding-block: var(--cc-space-xxs);
	color: var(--cc-color-white);
	font-weight: 600;
}

.cc-shop .wc-block-cart-items,
.cc-shop .wc-block-cart-items th,
.cc-shop .wc-block-cart-items td,
.cc-shop .wc-block-components-totals-wrapper,
.cc-shop .wc-block-components-checkout-step,
.cc-shop .wc-block-components-order-summary,
.cc-shop .wp-block-woocommerce-checkout-order-summary-block {
	border-color: var(--cc-color-line);
}

.cc-shop .wc-block-components-sidebar,
.cc-shop .wc-block-components-main {
	min-width: 0;
}

.cc-shop .wc-block-components-text-input input,
.cc-shop .wc-block-components-text-input textarea,
.cc-shop .wc-block-components-textarea,
.cc-shop .wc-blocks-components-select .wc-blocks-components-select__select,
.cc-shop .wc-block-components-combobox .components-combobox-control input,
.cc-shop .wc-block-components-address-form input,
.cc-shop .wc-block-components-form input[type="text"],
.cc-shop .wc-block-components-form input[type="email"],
.cc-shop .wc-block-components-form input[type="tel"],
.cc-shop .wc-block-components-form input[type="number"],
.cc-shop .wc-block-components-form select,
.cc-shop .wc-block-components-quantity-selector input {
	box-sizing: border-box;
	min-height: var(--cc-target-min);
	background-color: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-line-strong);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-white);
	font-family: var(--cc-font-body);
}

.cc-shop .wc-block-components-text-input label,
.cc-shop .wc-blocks-components-select__label,
.cc-shop .wc-block-components-combobox label,
.cc-shop .wc-block-components-textarea + label {
	color: var(--cc-color-secondary);
}

.cc-shop .wc-block-components-text-input.is-active label {
	color: var(--cc-color-secondary);
}

.cc-shop .wc-block-components-text-input.has-error input {
	border: 2px solid var(--cc-color-error);
}

.cc-shop .wc-block-components-validation-error,
.cc-shop .wc-block-components-validation-error p {
	color: var(--cc-color-error);
}

.cc-shop .wc-block-components-button:not(.is-link),
.cc-shop .wc-block-cart__submit-button,
.cc-shop .wc-block-components-checkout-place-order-button {
	box-sizing: border-box;
	min-height: var(--cc-target-min);
	background-color: var(--cc-color-action);
	border: 2px solid var(--cc-color-action);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-action-ink);
	font-family: var(--cc-font-body);
	font-size: var(--cc-font-size-m);
	font-weight: 600;
}

.cc-shop .wc-block-components-button:not(.is-link):hover {
	background-color: var(--cc-color-action-hover);
	border-color: var(--cc-color-action-hover);
	color: var(--cc-color-action-ink);
}

.cc-shop .wc-block-components-button.outlined,
.cc-shop .wc-block-components-notice-banner__dismiss {
	background: transparent;
	color: var(--cc-color-white);
	border-color: var(--cc-color-secondary);
}

.cc-shop .wc-block-components-button.is-link,
.cc-shop .wc-block-cart-item__remove-link {
	color: var(--cc-color-action);
	min-height: var(--cc-target-min);
	padding-inline: var(--cc-space-xs);
	text-decoration: underline;
}

.cc-shop .wc-block-components-radio-control__option,
.cc-shop .wc-block-components-radio-control-accordion-option,
.cc-shop .wc-block-components-checkbox {
	color: var(--cc-color-secondary);
}

.cc-shop .wc-block-components-radio-control__option {
	min-height: var(--cc-target-min);
}

.cc-shop .wc-block-components-radio-control__input,
.cc-shop .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	background-color: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-line-strong);
}

.cc-shop .wc-block-components-radio-control__input:checked::before {
	background: var(--cc-color-action);
}

.cc-shop .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: var(--cc-color-action);
}

.cc-shop .wc-block-components-order-summary-item__image img,
.cc-shop .wc-block-cart-item__image img {
	background: var(--cc-color-raised);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-s);
}

.cc-shop .wc-block-components-totals-footer-item,
.cc-shop .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--cc-color-white);
	font-weight: 700;
}

.cc-shop .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	background: var(--cc-color-raised);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-m);
}

.cc-shop .wc-block-cart__sidebar,
.cc-shop .wc-block-checkout__sidebar {
	box-sizing: border-box;
}

.cc-shop .wc-block-cart__sidebar {
	padding: var(--cc-space-m);
}

.cc-shop .wc-block-components-panel__button,
.cc-shop .wc-block-components-totals-coupon__button {
	color: var(--cc-color-white);
}

.cc-shop .wc-block-cart__empty-cart__title,
.cc-shop .wp-block-woocommerce-empty-cart-block h2 {
	color: var(--cc-color-white);
	font-family: var(--cc-font-heading);
}

/* The cart button is not sticky: a bar fixed to the bottom of a phone screen covered the totals (and uses a gradient fade). */
.cc-shop .wc-block-cart__submit-container--sticky,
.cc-shop .wc-block-cart__submit-container {
	position: static;
	background: none;
	padding-bottom: 0;
}

.cc-shop .wc-block-cart__submit-container::before {
	display: none;
}

/* Focus and autofill must not turn a field white (WooCommerce sets a light background on focus). */
.cc-shop .wc-block-components-text-input input:focus,
.cc-shop .wc-block-components-text-input input:-webkit-autofill,
.cc-shop .wc-block-components-text-input textarea:focus,
.cc-shop .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	background-color: var(--cc-color-canvas) !important;
	color: var(--cc-color-white) !important;
	-webkit-text-fill-color: var(--cc-color-white);
}

.cc-shop .wc-blocks-components-select__container,
.cc-shop .wc-blocks-components-select .wc-blocks-components-select__container {
	background: var(--cc-color-canvas);
	border-radius: var(--cc-radius-s);
}

.cc-shop .wc-block-components-checkbox label,
.cc-shop .wc-block-components-checkbox {
	min-height: var(--cc-target-min);
}

.cc-shop .wc-block-components-checkbox label {
	display: flex;
	align-items: center;
	gap: var(--cc-space-s);
}

.cc-shop .wc-block-components-order-summary-item__quantity {
	min-width: 1.5rem;
	min-height: 1.5rem;
	background: var(--cc-color-action);
	border: 2px solid var(--cc-color-canvas);
	color: var(--cc-color-action-ink);
	font-weight: 700;
}

.cc-shop .wc-block-components-order-summary-item__quantity span {
	color: var(--cc-color-action-ink);
}

.cc-shop .wc-block-components-quantity-selector {
	border-color: var(--cc-color-line-strong);
	background: var(--cc-color-canvas);
}

.cc-shop .wc-block-components-quantity-selector__button {
	min-width: var(--cc-target-min);
	min-height: var(--cc-target-min);
	color: var(--cc-color-white);
}

.cc-shop .wc-block-components-quantity-selector__input {
	min-height: var(--cc-target-min);
	color: var(--cc-color-white);
}

/* ------------------------------------------------------------------ order received */

.cc-order-content > * + * {
	margin-top: var(--cc-space-l);
}

.cc-order-content .wc-block-order-confirmation-status,
.cc-order-content .woocommerce-order-overview,
.cc-order-content .wc-block-order-confirmation-summary {
	color: var(--cc-color-secondary);
}

.cc-order-content .wc-block-order-confirmation-summary {
	padding: var(--cc-space-l);
	background: var(--cc-color-raised);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-m);
}

.cc-order-content .wc-block-order-confirmation-summary-list {
	display: grid;
	gap: var(--cc-space-s);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-order-content table,
.cc-order-content th,
.cc-order-content td,
.cc-order-content .wc-block-order-confirmation-totals table,
.cc-order-content .wc-block-order-confirmation-totals th,
.cc-order-content .wc-block-order-confirmation-totals td,
.cc-order-content .wc-block-order-confirmation-shipping-address,
.cc-order-content .wc-block-order-confirmation-billing-address,
.cc-order-content .wc-block-order-confirmation-address-wrapper address {
	border-color: var(--cc-color-line);
	color: var(--cc-color-secondary);
}

.cc-order-content .wc-block-order-confirmation-totals table {
	border: 1px solid var(--cc-color-line);
}

.cc-order-content .wc-block-order-confirmation-totals table {
	width: 100%;
	border-collapse: collapse;
}

.cc-order-content .wc-block-order-confirmation-totals th,
.cc-order-content .wc-block-order-confirmation-totals td {
	padding: var(--cc-space-s);
	border-bottom: 1px solid var(--cc-color-line);
	text-align: left;
}

.cc-order-content address {
	font-style: normal;
}

/* ------------------------------------------------------------------ my account (classic shortcode) */

.cc-account-content .woocommerce {
	color: var(--cc-color-secondary);
}

.cc-account-content .u-columns,
.cc-account-content .col2-set {
	display: grid;
	gap: var(--cc-space-xl);
}

@media (min-width: 48em) {
	.cc-account-content .u-columns,
	.cc-account-content .col2-set {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.cc-account-content .u-column1,
.cc-account-content .u-column2,
.cc-account-content .col-1,
.cc-account-content .col-2 {
	float: none;
	width: auto;
	max-width: none;
}

.cc-account-content h2 {
	font-size: var(--cc-font-size-xl);
}

.cc-account-content form.woocommerce-form,
.cc-account-content form.login,
.cc-account-content form.register,
.cc-account-content .woocommerce-ResetPassword {
	box-sizing: border-box;
	margin: 0;
	padding: var(--cc-space-l);
	background: var(--cc-color-raised);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-m);
}

.cc-account-content .form-row {
	display: flex;
	flex-direction: column;
	gap: var(--cc-space-xs);
	margin: 0 0 var(--cc-space-m);
	padding: 0;
}

.cc-account-content label {
	color: var(--cc-color-white);
	font-weight: 600;
}

.cc-account-content .required,
.cc-account-content .woocommerce form .form-row .required {
	color: var(--cc-color-secondary);
	text-decoration: none;
}

.cc-account-content .woocommerce form .form-row input.input-text,
.cc-account-content .woocommerce form .form-row textarea,
.cc-account-content input[type="text"],
.cc-account-content input[type="email"],
.cc-account-content input[type="password"],
.cc-account-content input[type="tel"] {
	box-sizing: border-box;
	width: 100%;
	min-height: var(--cc-target-min);
	padding: 0.6rem 0.9rem;
	background: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-line-strong);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-white);
	font-family: var(--cc-font-body);
	font-size: var(--cc-font-size-m);
}

.cc-account-content .show-password-input {
	filter: invert(1);
	min-width: var(--cc-target-min);
	min-height: var(--cc-target-min);
}

.cc-account-content .woocommerce-form-login__rememberme {
	flex-direction: row;
	align-items: center;
	gap: var(--cc-space-s);
	min-height: var(--cc-target-min);
	font-weight: 400;
	cursor: pointer;
}

.cc-account-content .woocommerce-form-login__rememberme input {
	width: 1.5rem;
	height: 1.5rem;
	accent-color: var(--cc-color-action);
}

.cc-account-content .woocommerce-Button,
.cc-account-content button.button,
.cc-account-content a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--cc-target-min);
	padding: 0.65rem 1.4rem;
	background-color: var(--cc-color-action);
	border: 2px solid var(--cc-color-action);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-action-ink);
	font-family: var(--cc-font-body);
	font-size: var(--cc-font-size-m);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.cc-account-content .lost_password {
	margin: 0;
}

.cc-account-content .lost_password a {
	display: inline-block;
	padding-block: var(--cc-space-s);
}

.cc-account-content .woocommerce-MyAccount-navigation ul {
	margin: 0 0 var(--cc-space-l);
	padding: 0;
	list-style: none;
}

.cc-account-content .woocommerce-MyAccount-navigation a {
	display: block;
	padding: var(--cc-space-s) 0;
	min-height: 1.5rem;
}

/* ------------------------------------------------------------------ small screens and motion */

@media (max-width: 47.99em) {
	.cc-shop-card .wc-block-components-product-image,
	.cc-shop-card .wp-block-woocommerce-product-image {
		aspect-ratio: 16 / 10;
	}

	.cc-shop .woocommerce-message .button,
	.cc-shop .woocommerce-info .button {
		float: none;
		display: inline-flex;
		margin-top: var(--cc-space-s);
	}

	.cc-spec__row {
		grid-template-columns: 5.5rem minmax(0, 1fr);
	}

	.cc-product-specs th {
		width: 7.5rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.cc-pdp-shop .single_add_to_cart_button,
	.cc-shop .wc-block-components-button,
	.cc-account-content .woocommerce-Button {
		transition: background-color var(--cc-transition-fast) ease, border-color var(--cc-transition-fast) ease, color var(--cc-transition-fast) ease;
	}
}

/* Account page: login and register sit in two equal columns. The earlier floats from the old WooCommerce rules lose to
   the generic selectors, so these carry more weight. */
.cc-account-content .u-columns > .u-column1,
.cc-account-content .u-columns > .u-column2,
.cc-account-content .col2-set > .col-1,
.cc-account-content .col2-set > .col-2 {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}
