/**
 * Cube Cascade — WooCommerce styles.
 *
 * WooCommerce's own blocks, templates and behaviour are used as they are;
 * this file only dresses them for a dark background. Functional controls
 * (quantity, coupon, checkout fields, place order) stay rectangular and
 * full-size so they remain easy to hit and to read.
 *
 * 1. Shop header and toolbar   5. Mini-cart drawer   9. Order confirmation
 * 2. Product cards             6. Cart               10. Small screens
 * 3. Single product            7. Checkout
 * 4. Notices                   8. My account
 */

/* -------------------------------------------------------------------------- */
/* 1. Shop header and toolbar                                                   */
/* -------------------------------------------------------------------------- */

.woocommerce.wc-block-breadcrumbs,
.wc-block-breadcrumbs,
.woocommerce-breadcrumb {
	color: var(--cc-muted);
	font-family: var(--cc-font-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.woocommerce-breadcrumb a {
	color: var(--cc-muted);
	text-decoration: none;
}

.woocommerce-breadcrumb a:hover,
.woocommerce-breadcrumb a:focus-visible {
	color: var(--cc-cyan);
}

.cc-crumb-sep {
	display: inline-block;
	width: 0.4rem;
	height: 0.5rem;
	margin: 0 0.75rem;
	background: var(--cc-cyan);
	clip-path: var(--cc-tri-right);
}

.cc-shop .wp-block-query-title,
.cc-product .wp-block-post-title {
	margin-top: 0.75rem;
}

/* The block keeps the page's wide alignment, so it lines up with the title;
   only its lines are kept to a readable length. */
.cc-shop .wp-block-term-description {
	color: var(--cc-muted);
}

.cc-shop .wp-block-term-description > * {
	max-width: 46rem;
}

.cc-shop-toolbar {
	gap: 1rem 1.5rem;
	margin-block: var(--wp--preset--spacing--40);
	padding-block: 1rem;
	border-block: 1px solid var(--cc-line);
}

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

.cc-shop-toolbar__tools {
	gap: 0.75rem;
}

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

.cc-shop-toolbar .woocommerce-ordering {
	margin: 0;
}

.cc-shop-toolbar .woocommerce-ordering select {
	min-width: 13rem;
}

.cc-product-search .wp-block-search__input {
	min-width: min(16rem, 60vw);
}

/* Shop search folded into a quiet magnifier: an outlined square that opens
   a short field beside it when clicked. */
.cc-product-search--fold .wp-block-search__inside-wrapper {
	gap: 0.4rem;
}

.cc-product-search--fold .wp-block-search__input {
	min-width: 0;
	width: min(14rem, 50vw);
	transition: width var(--cc-dur-2) var(--cc-ease), padding var(--cc-dur-2) var(--cc-ease), border-color var(--cc-dur-1) ease;
}

.cc-product-search--fold.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper {
	gap: 0;
}

.cc-product-search--fold.wp-block-search__searchfield-hidden .wp-block-search__input {
	width: 0;
	min-width: 0;
	padding-inline: 0;
	border-width: 0;
}

.cc-product-search--fold .wp-block-search__button.has-icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--cc-line-strong);
	background: transparent;
	color: var(--cc-cyan);
	clip-path: none;
	box-shadow: none;
}

.cc-product-search--fold .wp-block-search__button.has-icon:hover,
.cc-product-search--fold .wp-block-search__button.has-icon:focus-visible {
	border-color: var(--cc-cyan);
	background: transparent;
	color: var(--cc-cyan);
	box-shadow: 0 0 22px -8px var(--cc-cyan);
}

.cc-product-search--fold .wp-block-search__button svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
	.cc-product-search--fold .wp-block-search__input {
		transition: none;
	}
}

.cc-empty {
	padding: var(--wp--preset--spacing--50) 0;
}

/* -------------------------------------------------------------------------- */
/* 2. Product cards                                                             */
/* -------------------------------------------------------------------------- */

/* Keep WooCommerce's own column maths: its grid assumes a gap of 1.25em or less. */
.wc-block-product-template {
	gap: 1.25rem;
}

li.wc-block-product {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	border: 1px solid var(--cc-line);
	background: var(--cc-surface);
	transition: border-color var(--cc-dur-2) ease, box-shadow var(--cc-dur-2) ease, opacity var(--cc-dur-4) ease, transform var(--cc-dur-4) var(--cc-ease);
}

/* Each card takes the accent of the game it belongs to; its game tag names
   the game in words and with a die face. Products outside a game stay cyan. */
li.wc-block-product {
	--cc-card-accent: var(--cc-cyan);
	--cc-card-glow: var(--cc-glow-cyan);
}

li.wc-block-product:has(.cc-game-tag.cc-accent--orange) {
	--cc-card-accent: var(--cc-orange);
	--cc-card-glow: var(--cc-glow-orange);
}

li.wc-block-product .cc-game-tag {
	padding: 1rem 1.1rem 0;
}

li.wc-block-product .cc-game-tag + .wp-block-post-title {
	padding-top: 0.55rem;
}

li.wc-block-product:hover,
li.wc-block-product:focus-within {
	border-color: var(--cc-card-accent);
	box-shadow: var(--cc-card-glow);
}

/* With a mouse, the card lifts a little, like one picked up off the table.
   "translate" is separate from "transform", which the scroll reveal uses. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	li.wc-block-product {
		transition-property: border-color, box-shadow, opacity, transform, translate;
	}

	li.wc-block-product:hover {
		translate: 0 -0.25rem;
	}
}

li.wc-block-product > * {
	margin: 0;
}

li.wc-block-product .wc-block-components-product-image {
	margin: 0;
	background: var(--cc-bg);
	overflow: hidden;
}

li.wc-block-product .wc-block-components-product-image a {
	display: block;
}

li.wc-block-product .wc-block-components-product-image img {
	display: block;
	width: 100%;
	transition: transform var(--cc-dur-4) var(--cc-ease);
}

li.wc-block-product:hover .wc-block-components-product-image img,
li.wc-block-product:focus-within .wc-block-components-product-image img {
	transform: scale(1.04);
}

li.wc-block-product .wp-block-post-title {
	padding: 1.1rem 1.1rem 0;
	font-size: 1.5rem;
	letter-spacing: 0.12em;
	line-height: 1.15;
	-webkit-text-stroke: var(--cc-display-bold) currentColor;
}

/* A little vertical padding makes the title an easier touch target (24px+). */
li.wc-block-product .wp-block-post-title a {
	display: inline-block;
	padding-block: 0.2rem;
	color: var(--cc-text);
}

li.wc-block-product .wp-block-post-title a:hover,
li.wc-block-product .wp-block-post-title a:focus-visible {
	color: var(--cc-card-accent);
}

.cc-product__meta {
	gap: 0.4rem 1rem;
	padding: 0.6rem 1.1rem 1.1rem;
}

.cc-product__meta > * {
	margin: 0;
}

.wc-block-components-product-price,
.woocommerce .price,
.wp-block-woocommerce-product-price {
	color: var(--cc-text);
	font-family: var(--cc-font-ui);
	font-weight: 600;
	letter-spacing: 0.04em;
}

.wc-block-components-product-price del,
.woocommerce .price del {
	color: var(--cc-muted);
	font-weight: 400;
	opacity: 1;
}

.wc-block-components-product-price ins,
.woocommerce .price ins {
	color: var(--cc-orange);
	text-decoration: none;
}

/* Availability. */
.wc-block-components-product-stock-indicator,
.woocommerce .stock {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: var(--cc-muted);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.wc-block-components-product-stock-indicator::before,
.woocommerce .stock::before {
	content: "";
	flex: none;
	width: 0.45rem;
	height: 0.45rem;
	background: var(--cc-cyan);
	transform: rotate(45deg);
}

.wc-block-components-product-stock-indicator--low-stock,
.wc-block-components-product-stock-indicator--available-on-backorder {
	color: var(--cc-orange);
}

.wc-block-components-product-stock-indicator--low-stock::before,
.wc-block-components-product-stock-indicator--available-on-backorder::before {
	background: var(--cc-orange);
}

.wc-block-components-product-stock-indicator--out-of-stock::before,
.woocommerce .stock.out-of-stock::before {
	border: 1px solid var(--cc-muted);
	background: none;
}

.woocommerce .stock.out-of-stock,
.woocommerce .stock.in-stock {
	color: var(--cc-muted);
}

/* Sale badge: a corner triangle with its right angle top-left. */
.wc-block-components-product-sale-badge,
.woocommerce span.onsale {
	position: absolute;
	top: 0;
	right: auto;
	left: 0;
	z-index: 2;
	display: block;
	width: 5rem;
	height: 5rem;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0.6rem 0 0 0.55rem;
	border: 0;
	border-radius: 0;
	background: var(--cc-orange);
	color: var(--cc-bg);
	font-family: var(--cc-font-ui);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1;
	text-align: left;
	text-transform: uppercase;
	clip-path: var(--cc-tri-corner);
}

.wc-block-components-product-sale-badge span {
	color: inherit;
}

/* Add to cart on a card: an outlined button that fills on hover, so a grid
   of products does not become a wall of solid colour. */
li.wc-block-product .wc-block-components-product-button {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
	margin-top: auto;
	padding: 0 1.1rem 1.1rem;
}

li.wc-block-product .wc-block-components-product-button .wp-block-button__link {
	width: 100%;
	background: color-mix(in srgb, var(--cc-card-accent) 10%, var(--cc-bg));
	color: var(--cc-text);
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cc-card-accent) 70%, transparent);
	clip-path: none;
}

li.wc-block-product .wc-block-components-product-button .wp-block-button__link:hover,
li.wc-block-product .wc-block-components-product-button .wp-block-button__link:focus-visible {
	background: var(--cc-card-accent);
	color: var(--cc-bg);
}

li.wc-block-product .wc-block-components-product-button .wp-block-button__link:focus-visible {
	outline: 2px solid var(--cc-text);
	outline-offset: 2px;
}

li.wc-block-product .wc-block-components-product-button .added_to_cart {
	align-self: flex-start;
	margin: 0;
	color: var(--cc-cyan);
	font-size: 0.875rem;
}

.wc-block-components-product-button .wp-block-button__link.loading {
	opacity: 0.7;
}

/* -------------------------------------------------------------------------- */
/* 3. Single product                                                            */
/* -------------------------------------------------------------------------- */

.cc-product__layout {
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	margin-top: var(--wp--preset--spacing--40);
}

.cc-product__summary > * {
	margin-block: 0 1.25rem;
}

.cc-product__cats,
.cc-product__cats a {
	color: var(--cc-muted);
	font-family: var(--cc-font-ui);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
}

.cc-product__cats a:hover,
.cc-product__cats a:focus-visible {
	color: var(--cc-cyan);
}

/* The game tag leads the line; the product's other categories follow. */
.cc-product__cats:has(.cc-game-tag) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 1.1rem;
}

.cc-product__cats .cc-game-tag {
	color: var(--cc-text);
	font-size: inherit;
}

.cc-product__cats .cc-game-tag + a::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 0.9em;
	margin-right: 1.1rem;
	background: var(--cc-line-strong);
	vertical-align: -0.1em;
}

.cc-product__summary .wp-block-post-excerpt,
.cc-product__summary .wp-block-post-excerpt__excerpt {
	color: var(--cc-muted);
}

/* Gallery. */
.woocommerce div.product div.images,
.wp-block-woocommerce-product-image-gallery {
	position: relative;
	width: 100%;
	max-width: none;
}

.cc-product .wp-block-woocommerce-product-image-gallery {
	width: 100%;
	max-width: none;
}

.wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0;
	border: 1px solid var(--cc-line);
	background: var(--cc-surface);
	box-sizing: border-box;
}

.wp-block-woocommerce-product-image-gallery span.onsale {
	top: 0;
	left: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image--placeholder {
	border: 0;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
}

.woocommerce div.product div.images .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0;
	padding: 0.5rem;
	border-top: 1px solid var(--cc-line);
}

.woocommerce div.product div.images .flex-control-thumbs li {
	width: auto;
	float: none;
	margin: 0;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
	border: 1px solid transparent;
	opacity: 0.55;
	transition: opacity var(--cc-dur-1) ease, border-color var(--cc-dur-1) ease;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
	border-color: var(--cc-cyan);
	opacity: 1;
}

/* "Zoom" trigger as a diamond. */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	top: 0.75rem;
	right: 0.75rem;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0;
	background: none;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before {
	top: 0.45rem;
	left: 0.45rem;
	width: 1.85rem;
	height: 1.85rem;
	border: 1.5px solid var(--cc-cyan);
	border-radius: 0;
	background: color-mix(in srgb, var(--cc-bg) 80%, transparent);
	box-sizing: border-box;
	transform: rotate(45deg);
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger::after {
	top: 50%;
	left: 50%;
	width: 0.7rem;
	height: 0.7rem;
	margin: -0.35rem 0 0 -0.35rem;
	border-radius: 0;
	background:
		linear-gradient(var(--cc-text), var(--cc-text)) center / 100% 1.5px no-repeat,
		linear-gradient(var(--cc-text), var(--cc-text)) center / 1.5px 100% no-repeat;
	transform: none;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger span[aria-hidden="true"] {
	border: 0;
	clip-path: inset(50%);
}

/* Add to cart form. */
.woocommerce div.product form.cart,
.wp-block-woocommerce-add-to-cart-form form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.75rem;
	margin: 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--cc-line);
}

.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after {
	display: none;
}

.woocommerce div.product form.cart div.quantity {
	float: none;
	margin: 0;
}

.woocommerce .quantity .qty {
	width: 5rem;
	height: 100%;
	min-height: 3.25rem;
	padding-inline: 0.5rem;
	text-align: center;
	font-family: var(--cc-font-ui);
	font-weight: 600;
}

.woocommerce div.product form.cart .button,
.woocommerce .single_add_to_cart_button {
	float: none;
	flex: 1 1 12rem;
	min-height: 3.25rem;
	padding-inline: 2rem;
}

/* Variations. */
.woocommerce div.product form.cart.variations_form {
	display: block;
}

.woocommerce div.product form.cart table.variations {
	width: 100%;
	margin: 0 0 1.25rem;
	border: 0;
}

.woocommerce div.product form.cart table.variations :is(th, td) {
	display: block;
	padding: 0;
	border: 0;
	text-align: left;
}

.woocommerce div.product form.cart table.variations th.label {
	padding-bottom: 0.4rem;
}

.woocommerce div.product form.cart table.variations label {
	color: var(--cc-muted);
	font-family: var(--cc-font-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.woocommerce div.product form.cart table.variations tr + tr th.label {
	padding-top: 1rem;
}

.woocommerce div.product form.cart table.variations select {
	width: 100%;
	max-width: 24rem;
	margin: 0;
	background-color: color-mix(in srgb, var(--cc-surface) 92%, transparent);
	background-image:
		linear-gradient(45deg, transparent 50%, var(--cc-cyan) 50%),
		linear-gradient(135deg, var(--cc-cyan) 50%, transparent 50%);
	background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.9rem) 50%;
	background-size: 0.35rem 0.35rem;
	background-repeat: no-repeat;
}

.woocommerce div.product form.cart .reset_variations {
	display: inline-block;
	margin-top: 0.6rem;
	color: var(--cc-muted);
	font-size: 0.875rem;
}

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

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.woocommerce div.product .woocommerce-variation-price .price {
	font-size: var(--wp--preset--font-size--large);
}

.wp-block-woocommerce-product-meta {
	padding-top: 1.25rem;
	border-top: 1px solid var(--cc-line);
	color: var(--cc-muted);
	font-size: 0.875rem;
}

.wp-block-woocommerce-product-meta a {
	color: var(--cc-muted);
}

.wp-block-woocommerce-product-meta a:hover {
	color: var(--cc-cyan);
}

/* Description, additional information and reviews. */
.wp-block-woocommerce-product-details {
	margin-top: var(--wp--preset--spacing--60);
}

.woocommerce div.product .woocommerce-tabs ul.tabs,
.wp-block-woocommerce-product-details ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 2rem;
	margin: 0 0 2rem;
	padding: 0;
	border-bottom: 1px solid var(--cc-line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

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

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	padding: 0;
	border-bottom: 2px solid transparent;
	color: var(--cc-muted);
	font-family: var(--cc-font-ui);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	border-bottom-color: var(--cc-cyan);
	color: var(--cc-text);
}

.woocommerce div.product .woocommerce-tabs .panel {
	max-width: 52rem;
	margin: 0;
	color: var(--cc-muted);
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--large);
}

.woocommerce table.shop_attributes,
.woocommerce table.shop_table {
	border: 1px solid var(--cc-line);
	border-radius: 0;
	border-collapse: collapse;
}

.woocommerce table.shop_attributes :is(th, td),
.woocommerce table.shop_table :is(th, td) {
	padding: 0.85rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--cc-line);
	background: none !important;
	color: var(--cc-text);
	font-style: normal;
	text-align: left;
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_table thead th {
	color: var(--cc-muted);
	font-family: var(--cc-font-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Stars. */
.woocommerce .star-rating,
.wc-block-components-product-rating__stars,
.wc-block-components-product-rating-stars__stars {
	color: var(--cc-orange);
}

.woocommerce .star-rating::before,
.wc-block-components-product-rating__stars::before {
	color: var(--cc-line-strong);
	opacity: 1;
}

.woocommerce p.stars a {
	color: var(--cc-orange);
}

.woocommerce #reviews #comments ol.commentlist {
	padding: 0;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
	margin-left: 4rem;
	border: 1px solid var(--cc-line);
	border-radius: 0;
}

.woocommerce #review_form #respond textarea {
	width: 100%;
}

.woocommerce #review_form #respond .form-submit input {
	min-height: 3rem;
	padding: 0 1.75rem;
	border: 0;
	background: var(--cc-cyan);
	color: var(--cc-bg);
	font-family: var(--cc-font-ui);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}

/* Related products. */
.cc-product .wp-block-woocommerce-related-products,
.cc-product .related.products {
	margin-top: var(--wp--preset--spacing--60);
}

/* -------------------------------------------------------------------------- */
/* 4. Notices                                                                   */
/* -------------------------------------------------------------------------- */

.wc-block-components-notice-banner,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
	position: relative;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--cc-line-strong);
	border-left: 3px solid var(--cc-cyan);
	border-radius: 0;
	background: var(--cc-surface);
	color: var(--cc-text);
	font-size: 0.9375rem;
	list-style: none;
}

.wc-block-components-notice-banner.is-success,
.woocommerce-message {
	border-color: var(--cc-line-strong);
	border-left-color: var(--cc-cyan);
	background: var(--cc-surface);
	color: var(--cc-text);
}

.wc-block-components-notice-banner.is-error,
.woocommerce-error {
	border-color: var(--cc-line-strong);
	border-left-color: var(--cc-orange);
	background: var(--cc-surface);
	color: var(--cc-text);
}

.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-warning,
.woocommerce-info {
	border-color: var(--cc-line-strong);
	border-left-color: var(--cc-muted);
	background: var(--cc-surface);
	color: var(--cc-text);
}

.wc-block-components-notice-banner > svg {
	border-radius: 0;
	background-color: transparent !important;
	fill: var(--cc-cyan);
}

.wc-block-components-notice-banner.is-error > svg {
	fill: var(--cc-orange);
}

.wc-block-components-notice-banner a,
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
	color: var(--cc-cyan);
}

.wc-block-components-notice-banner .wc-block-components-notice-banner__dismiss,
.wc-block-components-notice-banner .wc-block-components-button.wc-block-components-notice-banner__dismiss {
	min-height: 2.75rem;
	min-width: 2.75rem;
	background: none;
	color: var(--cc-text);
	clip-path: none;
}

.wc-block-components-notice-banner__dismiss svg {
	fill: currentColor;
}

/* "View cart" inside a notice reads as a link, not a second button. */
.wc-block-components-notice-banner .wc-block-components-notice-banner__content .wc-forward,
.woocommerce-message .button.wc-forward {
	min-height: 0;
	padding: 0;
	background: none !important;
	color: var(--cc-cyan) !important;
	font-family: var(--cc-font-ui);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-decoration: underline;
	text-transform: uppercase;
	opacity: 1;
	clip-path: none;
}

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

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	float: right;
	margin-left: 1rem;
}

/* Classic buttons (account, notices, reviews). */
.woocommerce :is(a.button, button.button, input.button, #respond input#submit),
.woocommerce-page :is(a.button, button.button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 1.75rem;
	border: 0;
	border-radius: 0;
	background: var(--cc-cyan);
	color: var(--cc-bg);
	font-family: var(--cc-font-ui);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.75rem), calc(100% - 0.75rem) 100%, 0 100%);
	transition: background-color var(--cc-dur-1) ease;
}

.woocommerce :is(a.button, button.button, input.button, #respond input#submit):hover,
.woocommerce :is(a.button, button.button, input.button, #respond input#submit):focus-visible {
	background: var(--cc-orange);
	color: var(--cc-bg);
}

.woocommerce :is(a.button, button.button, input.button):focus-visible {
	outline: 2px solid var(--cc-bg);
	outline-offset: -6px;
}

.woocommerce :is(a.button, button.button, input.button):is(.disabled, :disabled, :disabled[disabled]) {
	background: var(--cc-line-strong);
	color: var(--cc-muted);
	opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* 5. Mini-cart                                                                 */
/* -------------------------------------------------------------------------- */

.wc-block-mini-cart__button {
	gap: 0.5rem;
	border-radius: 0;
}

.wc-block-mini-cart__amount {
	color: inherit;
	font-family: var(--cc-font-ui);
	font-weight: 600;
	letter-spacing: 0.08em;
}

.wc-block-mini-cart__button .wc-block-mini-cart__badge {
	background: var(--cc-orange) !important;
	color: var(--cc-bg) !important;
	font-family: var(--cc-font-ui);
	font-weight: 700;
}

.wc-block-mini-cart__drawer.wc-block-components-drawer,
.wc-block-components-drawer {
	border-left: 1px solid color-mix(in srgb, var(--cc-cyan) 45%, transparent);
	background: var(--cc-surface);
	color: var(--cc-text);
	box-shadow: 0 0 80px -20px var(--cc-cyan);
}

.wc-block-components-drawer__screen-overlay {
	background: color-mix(in srgb, var(--cc-bg) 78%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* WooCommerce only fades the closed drawer out, so its links and buttons
   stay in the keyboard order while it is invisible. Hide it properly once
   the fade has finished; it reappears at once when opened. */
.wc-block-components-drawer__screen-overlay--is-hidden {
	visibility: hidden;
	transition: opacity 0.3s, visibility 0s linear 0.3s;
}

.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents {
	background: var(--cc-surface) !important;
	color: var(--cc-text) !important;
}

.wc-block-mini-cart__title,
h2.wc-block-mini-cart__title {
	font-size: var(--wp--preset--font-size--large);
}

.wc-block-components-drawer .wc-block-components-drawer__close,
.wc-block-components-drawer .wc-block-components-button.wc-block-components-drawer__close {
	min-width: 2.75rem;
	min-height: 2.75rem;
	background: none;
	color: var(--cc-text);
	opacity: 1;
	clip-path: none;
}

.wc-block-components-drawer .wc-block-components-drawer__close:hover {
	color: var(--cc-cyan);
}

.wc-block-mini-cart__footer {
	border-top: 1px solid var(--cc-line);
}

/* Primary WooCommerce buttons. */
.wc-block-components-button:not(.is-link):not(.outlined):not(.is-style-outline):not(.wc-block-components-notice-banner__dismiss):not(.wc-block-components-drawer__close) {
	box-sizing: border-box;
	min-height: 3.25rem;
	border-radius: 0;
	background: var(--cc-cyan);
	color: var(--cc-bg);
	font-family: var(--cc-font-ui);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.wc-block-components-button:not(.is-link):not(.outlined):not(.is-style-outline):not(.wc-block-components-notice-banner__dismiss):not(.wc-block-components-drawer__close):hover,
.wc-block-components-button:not(.is-link):not(.outlined):not(.is-style-outline):not(.wc-block-components-notice-banner__dismiss):not(.wc-block-components-drawer__close):focus-visible {
	background: var(--cc-orange);
	color: var(--cc-bg);
}

/* Secondary (outlined) WooCommerce buttons. */
.wc-block-components-button:not(.is-link).outlined,
.wc-block-components-button:not(.is-link).is-style-outline {
	box-sizing: border-box;
	min-height: 3.25rem;
	border: 0;
	border-radius: 0;
	background: color-mix(in srgb, var(--cc-text) 8%, var(--cc-surface));
	color: var(--cc-text);
	box-shadow: inset 0 0 0 1.5px var(--cc-line-strong);
	font-family: var(--cc-font-ui);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	clip-path: none;
}

.wc-block-components-button:not(.is-link).outlined:not(:disabled):hover,
.wc-block-components-button:not(.is-link).outlined:not(:disabled):focus-visible,
.wc-block-components-button:not(.is-link).is-style-outline:not(:disabled):hover,
.wc-block-components-button:not(.is-link).is-style-outline:not(:disabled):focus-visible {
	background: var(--cc-text);
	color: var(--cc-bg);
	box-shadow: none;
}

.wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions {
	gap: 0.75rem;
}

.wc-block-components-button:not(.is-link):disabled,
.wc-block-components-button:not(.is-link)[aria-disabled="true"] {
	background: var(--cc-line-strong) !important;
	color: var(--cc-muted) !important;
	opacity: 1;
}

.wc-block-components-button.is-link,
.wc-block-cart-item__remove-link,
.wc-block-components-product-name {
	color: var(--cc-text);
}

.wc-block-components-product-name {
	font-family: var(--cc-font-ui);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.wc-block-components-product-name:hover,
.wc-block-cart-item__remove-link:hover {
	color: var(--cc-cyan);
}

.wc-block-components-product-metadata,
.wc-block-components-product-details {
	color: var(--cc-muted);
}

/* -------------------------------------------------------------------------- */
/* 6. Cart                                                                      */
/* -------------------------------------------------------------------------- */

.wc-block-cart,
.wc-block-checkout {
	color: var(--cc-text);
}

.wc-block-cart table.wc-block-cart-items,
.wc-block-cart table.wc-block-cart-items :is(th, td) {
	border-color: var(--cc-line);
}

.wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header th {
	color: var(--cc-muted);
	font-family: var(--cc-font-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
}

.wc-block-cart-item__image img {
	border: 1px solid var(--cc-line);
}

.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-components-totals-item,
.wc-block-components-totals-wrapper,
.wc-block-components-totals-coupon,
.wc-block-components-totals-footer-item {
	border-color: var(--cc-line) !important;
}

.wc-block-cart .wc-block-cart__totals-title,
.wc-block-components-title,
.wc-block-components-checkout-step__title,
.wc-block-components-order-summary__button-text,
.wc-block-components-checkout-order-summary__title-text {
	color: var(--cc-text);
	font-family: var(--cc-font-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wc-block-cart .wp-block-woocommerce-cart-order-summary-block,
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block {
	border: 1px solid var(--cc-line);
	border-radius: 0;
	background: var(--cc-panel);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.wc-block-cart .wp-block-woocommerce-cart-order-summary-block {
	padding: 0.5rem 1.25rem;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--cc-font-ui);
	font-weight: 700;
	letter-spacing: 0.04em;
}

.wc-block-components-totals-item__description,
.wc-block-components-totals-shipping__via,
.wc-block-components-shipping-address,
.wc-block-components-checkout-step__description,
.wc-block-checkout__terms,
.wc-block-components-product-price__regular {
	color: var(--cc-muted);
}

/* Quantity stepper: square, clear and large enough to tap. */
.wc-block-components-quantity-selector {
	min-height: 2.75rem;
	border-radius: 0;
	background: var(--cc-bg);
	color: var(--cc-text);
}

.wc-block-components-quantity-selector::after {
	border: 1px solid var(--cc-line-strong);
	border-radius: 0;
	opacity: 1;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	min-height: 0;
	border: 0;
	background: none;
	color: var(--cc-text);
	font-family: var(--cc-font-ui);
	font-weight: 600;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	min-width: 2.5rem;
	color: var(--cc-text);
	opacity: 1;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover:not(:disabled) {
	color: var(--cc-cyan);
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled {
	color: var(--cc-muted);
	opacity: 0.5;
}

.wc-block-components-sale-badge,
.wc-block-components-product-badge {
	border: 1px solid var(--cc-orange);
	border-radius: 0;
	background: none;
	color: var(--cc-orange);
}

.wc-block-components-chip {
	border-radius: 0;
	background: color-mix(in srgb, var(--cc-text) 12%, transparent);
	color: var(--cc-text);
}

.wc-block-components-chip__remove {
	fill: var(--cc-text);
}

.wc-block-components-panel__button,
.wc-block-components-totals-coupon-link,
.wc-block-components-totals-coupon__button {
	color: var(--cc-text);
}

.wc-block-components-panel__button:hover {
	color: var(--cc-cyan);
}

/* -------------------------------------------------------------------------- */
/* 7. Checkout                                                                  */
/* -------------------------------------------------------------------------- */

/* Text fields with WooCommerce's floating labels. */
.wc-block-components-text-input input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"], [type="password"]),
.wc-block-components-form .wc-block-components-text-input input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"], [type="password"]),
.wc-block-components-textarea,
.wc-blocks-components-select .wc-blocks-components-select__container,
.wc-block-components-address-form__address_2-toggle {
	border-radius: 0;
}

.wc-block-components-text-input input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"], [type="password"]),
.wc-block-components-form .wc-block-components-text-input input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"], [type="password"]),
.wc-block-components-textarea {
	border: 1px solid var(--cc-line-strong);
	background-color: var(--cc-bg);
	color: var(--cc-text);
}

.wc-block-components-text-input input:focus,
.wc-block-components-form .wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus {
	border-color: var(--cc-cyan);
	box-shadow: 0 0 0 1px var(--cc-cyan);
	outline: 0;
}

.wc-block-components-text-input label,
.wc-block-components-form .wc-block-components-text-input label,
.wc-blocks-components-select .wc-blocks-components-select__label {
	color: var(--cc-muted);
}

.wc-block-components-text-input input:-webkit-autofill,
.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill {
	-webkit-text-fill-color: var(--cc-text);
	box-shadow: 0 0 0 100px var(--cc-bg) inset;
	caret-color: var(--cc-text);
}

.wc-blocks-components-select .wc-blocks-components-select__container {
	border: 0;
	background: var(--cc-bg);
	color: var(--cc-text);
}

.wc-blocks-components-select .wc-blocks-components-select__select {
	border: 1px solid var(--cc-line-strong);
	border-radius: 0;
	background-color: var(--cc-bg);
	background-image: none;
	color: var(--cc-text);
}

.wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--cc-cyan);
	box-shadow: 0 0 0 1px var(--cc-cyan);
	outline: 0;
}

.wc-blocks-components-select .wc-blocks-components-select__expand {
	fill: var(--cc-cyan);
}

.wc-block-components-text-input.has-error input,
.wc-block-components-form .wc-block-components-text-input.has-error input {
	border-color: var(--cc-orange);
}

.wc-block-components-validation-error,
.wc-block-components-text-input.has-error label,
.wc-block-components-form .wc-block-components-text-input.has-error label {
	color: var(--cc-orange);
}

/* Checkboxes and radios. */
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	border: 1px solid var(--cc-line-strong);
	border-radius: 0;
	background-color: var(--cc-bg);
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	border-color: var(--cc-cyan);
	background-color: var(--cc-cyan);
}

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

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus {
	outline: 2px solid var(--cc-cyan);
	outline-offset: 2px;
}

.wc-block-components-radio-control .wc-block-components-radio-control__input {
	border: 1px solid var(--cc-line-strong);
	background: var(--cc-bg);
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
	border-color: var(--cc-cyan);
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
	background: var(--cc-cyan);
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:focus {
	outline: 2px solid var(--cc-cyan);
	outline-offset: 2px;
}

.wc-block-components-radio-control--highlight-checked,
.wc-block-components-radio-control--highlight-checked::after,
.wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control__option {
	border-color: var(--cc-line) !important;
	border-radius: 0 !important;
}

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	border-radius: 0;
	box-shadow: inset 0 0 0 1.5px var(--cc-cyan);
}

.wc-block-components-radio-control__description,
.wc-block-components-radio-control__secondary-description,
.wc-block-components-radio-control__secondary-label {
	color: var(--cc-muted);
}

.wc-block-checkout__sidebar .wc-block-components-order-summary,
.wc-block-components-order-summary-item {
	border-color: var(--cc-line);
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
	border: 1px solid var(--cc-line-strong);
	border-radius: 0;
	background: var(--cc-bg);
	color: var(--cc-text);
	box-shadow: none;
	font-family: var(--cc-font-ui);
	font-weight: 600;
}

.wc-block-components-order-summary-item__image img {
	border: 1px solid var(--cc-line);
}

.wc-block-checkout__actions {
	border-color: var(--cc-line);
}

.wc-block-components-checkout-return-to-cart-button {
	color: var(--cc-text);
}

.wc-block-components-checkout-return-to-cart-button:hover {
	color: var(--cc-cyan);
}

.wc-block-components-checkout-step {
	border-color: var(--cc-line);
}

.wc-block-checkout__login-prompt,
.wc-block-checkout a,
.wc-block-cart a:not(.wc-block-components-button):not(.wc-block-components-product-name) {
	color: var(--cc-cyan);
}

.wc-block-components-spinner::after {
	border-color: var(--cc-cyan) transparent transparent;
}

.wc-block-components-loading-mask__children {
	opacity: 0.4;
}

.wc-block-components-express-payment,
.wc-block-components-express-payment-continue-rule,
.wc-block-components-express-payment-continue-rule::before,
.wc-block-components-express-payment-continue-rule::after {
	border-color: var(--cc-line) !important;
}

/* Slim, distraction-free header that WooCommerce uses on the checkout page. */
.woocommerce-checkout header.wp-block-template-part > .wp-block-group > .wp-block-group {
	padding-block: 1.5rem !important;
}

.woocommerce-checkout header.wp-block-template-part .wp-block-site-title a {
	color: var(--cc-text);
}

.woocommerce-checkout header.wp-block-template-part .wc-block-cart-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	color: var(--cc-text);
}

.woocommerce-checkout header.wp-block-template-part .wc-block-cart-link:hover {
	color: var(--cc-cyan);
}

.woocommerce-checkout .wp-site-blocks > main {
	padding-bottom: var(--wp--preset--spacing--70);
}

/* -------------------------------------------------------------------------- */
/* 8. My account                                                                */
/* -------------------------------------------------------------------------- */

.woocommerce-account .wp-block-post-content > .woocommerce,
.woocommerce-account .entry-content > .woocommerce {
	max-width: var(--wp--style--global--wide-size);
}

.woocommerce-account .woocommerce::after {
	content: "";
	display: table;
	clear: both;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	width: 24%;
}

.woocommerce-account .woocommerce-MyAccount-content {
	width: 71%;
}

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	border: 1px solid var(--cc-line);
	background: var(--cc-panel);
	list-style: none;
}

.woocommerce-MyAccount-navigation li {
	margin: 0;
	border-bottom: 1px solid var(--cc-line);
}

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

.woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	min-height: 3rem;
	padding: 0.5rem 1.1rem;
	border-left: 2px solid transparent;
	color: var(--cc-text);
	font-family: var(--cc-font-ui);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation a:focus-visible {
	border-left-color: var(--cc-cyan);
	color: var(--cc-cyan);
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon,
.woocommerce form.woocommerce-ResetPassword,
.woocommerce-MyAccount-content fieldset {
	margin: 1.5rem 0;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--cc-line);
	border-radius: 0;
	background: var(--cc-panel);
}

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

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--cc-muted);
	font-size: 0.875rem;
	line-height: 1.4;
}

.woocommerce form .form-row :is(input.input-text, textarea, select),
.woocommerce #review_form #respond :is(input[type="text"], input[type="email"], textarea) {
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--cc-line-strong);
	border-radius: 0;
	background-color: var(--cc-bg);
	color: var(--cc-text);
	font-size: 1rem;
}

.woocommerce form .form-row :is(input.input-text, textarea, select):focus,
.woocommerce #review_form #respond :is(input[type="text"], input[type="email"], textarea):focus {
	border-color: var(--cc-cyan);
	outline: 2px solid var(--cc-cyan);
	outline-offset: 1px;
}

.woocommerce form .form-row.woocommerce-invalid :is(input.input-text, select) {
	border-color: var(--cc-orange);
}

.woocommerce form .form-row.woocommerce-validated :is(input.input-text, select) {
	border-color: var(--cc-cyan);
}

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

.woocommerce form .show-password-input,
.woocommerce form .password-input .show-password-input {
	color: var(--cc-text);
}

.woocommerce form .show-password-input::before,
.woocommerce form .show-password-input::after {
	filter: invert(1);
}

.woocommerce-form__label-for-checkbox {
	display: inline-flex !important;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
}

.woocommerce .woocommerce-LostPassword a,
.woocommerce-MyAccount-content a {
	color: var(--cc-cyan);
}

.woocommerce-MyAccount-content address,
.woocommerce .woocommerce-customer-details address {
	padding: 1.25rem;
	border: 1px solid var(--cc-line);
	border-radius: 0;
	font-style: normal;
}

.woocommerce .col2-set {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.woocommerce .col2-set::before,
.woocommerce .col2-set::after {
	display: none;
}

.woocommerce .col2-set :is(.col-1, .col-2) {
	width: auto;
	float: none;
}

/* -------------------------------------------------------------------------- */
/* 9. Order confirmation                                                        */
/* -------------------------------------------------------------------------- */

.wc-block-order-confirmation-summary-list,
.wc-block-order-confirmation-totals table,
.wc-block-order-confirmation-totals table :is(th, td),
.wc-block-order-confirmation-billing-address,
.wc-block-order-confirmation-shipping-address,
.woocommerce ul.order_details,
.woocommerce ul.order_details li {
	border-color: var(--cc-line) !important;
	border-radius: 0 !important;
}

.wc-block-order-confirmation-summary-list-item__key,
.woocommerce ul.order_details li {
	color: var(--cc-muted);
}

.wc-block-order-confirmation-summary-list-item__value,
.woocommerce ul.order_details li strong {
	color: var(--cc-text);
}

/* -------------------------------------------------------------------------- */
/* 10. Small screens                                                            */
/* -------------------------------------------------------------------------- */

@media (max-width: 781.98px) {
	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content {
		width: 100%;
		float: none;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 1.5rem;
	}

	.woocommerce .col2-set {
		grid-template-columns: minmax(0, 1fr);
	}

	.cc-shop-toolbar__tools,
	.cc-shop-toolbar__tools > *,
	.cc-shop-toolbar .woocommerce-ordering select,
	.cc-product-search .wp-block-search__input {
		width: 100%;
		min-width: 0;
	}

	.cc-shop-toolbar__tools {
		flex-direction: column;
		align-items: stretch;
	}

	/* The folded search sits beside the sorting as a single square; once
	   opened it takes the whole row and the sorting moves underneath. */
	.cc-shop-toolbar__tools:has(.cc-product-search--fold) {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.cc-shop-toolbar__tools > .cc-product-search--fold {
		width: auto;
	}

	.cc-shop-toolbar__tools:has(.cc-product-search--fold) > :not(.cc-product-search--fold) {
		flex: 1 1 0;
		width: auto;
	}

	.cc-shop-toolbar__tools > .cc-product-search--fold:not(.wp-block-search__searchfield-hidden) {
		flex: 1 1 100%;
	}

	.cc-product-search--fold:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
		flex: 1;
		width: auto;
	}

	.cc-product-search--fold.wp-block-search__searchfield-hidden .wp-block-search__input {
		width: 0;
	}
}

@media (max-width: 599.98px) {
	/* Keep the cart amount on larger screens only; the count badge remains. */
	.cc-header__tools .wc-block-mini-cart__amount {
		display: none;
	}

	li.wc-block-product .wp-block-post-title {
		padding: 0.8rem 0.8rem 0;
		font-size: 0.875rem;
	}

	.cc-product__meta {
		padding: 0.4rem 0.8rem 0.8rem;
	}

	li.wc-block-product .wc-block-components-product-button {
		padding: 0 0.8rem 0.8rem;
	}

	li.wc-block-product .wc-block-components-product-button .wp-block-button__link {
		padding-inline: 0.5rem;
		font-size: 0.75rem;
		letter-spacing: 0.1em;
	}
}

/* -------------------------------------------------------------------------- */
/* Homepage: featured products either side of the central channel               */
/* -------------------------------------------------------------------------- */

.cc-featured .wp-block-woocommerce-product-collection {
	margin-top: var(--wp--preset--spacing--50);
}

@media (min-width: 48rem) {
	.cc-featured ul.wc-block-product-template:not(#cc) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) var(--cc-channel) minmax(0, 1fr);
		gap: 1.25rem 0;
	}

	.cc-featured ul.wc-block-product-template > li:nth-child(odd) {
		grid-column: 1;
	}

	.cc-featured ul.wc-block-product-template > li:nth-child(even) {
		grid-column: 3;
	}
}

@media (min-width: 64rem) {
	.cc-featured ul.wc-block-product-template:not(#cc) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) calc(var(--cc-channel) - 2.5rem) repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}

	.cc-featured ul.wc-block-product-template > li:nth-child(4n + 1) {
		grid-column: 1;
	}

	.cc-featured ul.wc-block-product-template > li:nth-child(4n + 2) {
		grid-column: 2;
	}

	.cc-featured ul.wc-block-product-template > li:nth-child(4n + 3) {
		grid-column: 4;
	}

	.cc-featured ul.wc-block-product-template > li:nth-child(4n + 4) {
		grid-column: 5;
	}
}

/* Cart and account: the page title lines up with the wide content beneath it. */
:is(.woocommerce-cart, .woocommerce-account) main .wp-block-post-title {
	max-width: var(--wp--style--global--wide-size);
}

/* -------------------------------------------------------------------------- */
/* 11. Free-shipping progress (cart drawer and cart page, shop pages only)     */
/* -------------------------------------------------------------------------- */

.cc-freeship {
	margin: 0 0 1rem;
	padding: 0.85rem 0 0.25rem;
	font-family: var(--cc-font-ui);
}

.cc-freeship[hidden] {
	display: none;
}

.cc-freeship__text {
	margin: 0 0 0.55rem;
	color: var(--cc-text);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.cc-freeship__bar {
	display: block;
	height: 3px;
	background: var(--cc-line);
	overflow: hidden;
}

.cc-freeship__fill {
	display: block;
	height: 100%;
	background: var(--cc-cyan);
	box-shadow: 0 0 10px var(--cc-cyan);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--cc-dur-3) var(--cc-ease);
}

.cc-freeship.is-reached .cc-freeship__text {
	color: var(--cc-cyan);
}

.wc-block-cart__sidebar .cc-freeship {
	padding-top: 0;
}

/* -------------------------------------------------------------------------- */
/* 12. "Notify me" for games coming soon                                       */
/* -------------------------------------------------------------------------- */

.cc-waitlist {
	max-width: 34rem;
	margin: var(--wp--preset--spacing--40) 0;
	padding: 1.5rem 1.6rem;
	border: 1px solid var(--cc-line-strong);
	background: var(--cc-panel);
}

.cc-waitlist > :last-child,
.cc-waitlist__form > :last-child {
	margin-bottom: 0;
}

.cc-waitlist__title {
	margin-top: 0;
}

.cc-waitlist__intro {
	margin: 0 0 1rem;
	color: var(--cc-muted);
}

.cc-waitlist__field {
	margin: 0 0 0.9rem;
}

.cc-waitlist__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.cc-waitlist__field input {
	width: 100%;
}

.cc-waitlist__consent {
	margin: 0 0 1.1rem;
	color: var(--cc-muted);
	font-size: 0.8125rem;
}

.cc-waitlist__consent label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.cc-waitlist__consent input {
	flex: none;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.1rem;
}

.cc-waitlist__consent a {
	color: var(--cc-text);
}

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

.cc-waitlist__message {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--cc-orange);
	background: color-mix(in srgb, var(--cc-orange) 10%, transparent);
}

.cc-waitlist__message--ok {
	border-color: var(--cc-cyan);
	background: color-mix(in srgb, var(--cc-cyan) 10%, transparent);
}

.cc-legal-draft-note {
	padding: 0.75rem 1rem;
	border: 1px dashed var(--cc-orange);
	color: var(--cc-orange);
}

/* Phones in the shop: no "Enter the shop" button in the footer; you are
   already there. */
@media (max-width: 599.98px) {
	body.woocommerce .cc-footer__actions .wp-block-buttons {
		display: none;
	}
}
