/*
 * WooCommerce floor.
 *
 * Loaded only while WooCommerce is active, after its own sheets and before
 * the authored main.css (inc/woocommerce.php). Everything here is painted
 * from the design tokens, so the shop takes the site's palette, type and
 * radius without a line of per-site CSS. The authored sheet styles the
 * product cards on top of this through the .s-storefront__* hooks; the cart,
 * the checkout and the account page are never authored and live on this
 * floor alone.
 *
 * Mostly :where(), so it adds no specificity and the design replaces any
 * rule whole. The exceptions are the rules that have to beat WooCommerce's
 * own sheet, whose selectors carry .woocommerce and element names; those are
 * written at the same weight and win on load order.
 */

/* ── Page frame ────────────────────────────────────────────────────────────
   Sections bring their own centre column; everything else WooCommerce
   prints on a shop page is brought into the column the header and the
   breadcrumbs sit in: --atb-width-max plus the gutter, as .atb-breadcrumbs. */

.atb-shop > :not(.s):not(.atb-breadcrumbs):not(.atb-product__layout),
.atb-shop:is(.atb-shop--cart, .atb-shop--checkout, .atb-shop--account) > :is(.page-header, .atb-shop__body) {
	padding-inline: calc(max(0px, (100% - var(--atb-width-max, 1280px)) / 2) + var(--atb-gutter, 1.5rem));
}

/* A Bootstrap row reaches half a gutter past its box on each side, which at
   the page edge is a horizontal scrollbar. The row keeps its box and takes
   the half gutter out of its padding instead, so the cards still line up
   with the result count above them. */
.atb-shop > .s-storefront__list.row {
	margin-inline: 0;
	padding-inline: calc(calc(max(0px, (100% - var(--atb-width-max, 1280px)) / 2) + var(--atb-gutter, 1.5rem)) - var(--bs-gutter-x, 1.5rem) * 0.5);
}

:where(.atb-shop) {
	padding-block-end: clamp(2.5rem, 5vw, 4.5rem);
}

:where(.atb-shop--catalog, .atb-shop--category, .atb-shop--search, .atb-shop--product) > :where(.woocommerce-products-header, .woocommerce-notices-wrapper, .product) {
	margin-block-start: clamp(1.5rem, 3vw, 2.5rem);
}

:where(.atb-shop--cart, .atb-shop--checkout, .atb-shop--account) > :where(.page-header) {
	padding-block: clamp(2rem, 4vw, 3rem) 1rem;
}

/* The hero is the catalogue's heading; WooCommerce's own header is empty. */
.atb-shop-has-hero .woocommerce-products-header {
	display: none;
}

:where(.woocommerce-products-header__title, .atb-shop .page-header__title) {
	font-family: var(--atb-font-heading, inherit);
}

:where(.term-description) {
	max-inline-size: var(--atb-measure, 72ch);
	color: var(--atb-color-text-muted, var(--atb-color-text));
}

/* Result count and sort order on one line above the grid. */
.woocommerce :where(.woocommerce-result-count, .woocommerce-ordering) {
	float: none;
	margin: 0;
}

:where(.atb-shop) > :where(.woocommerce-result-count) {
	display: inline-block;
	margin-block: 1.5rem 1rem;
	color: var(--atb-color-text-muted, var(--atb-color-text));
	font-size: 0.875rem;
}

:where(.atb-shop) > :where(.woocommerce-ordering) {
	display: inline-block;
	float: right;
	margin-block: 1.25rem 1rem;
	padding-inline-start: 0;
}

:where(.woocommerce-ordering) select {
	padding: 0.45rem 2rem 0.45rem 0.75rem;
	color: var(--atb-color-text);
	background-color: var(--atb-color-background);
	border: 1px solid var(--atb-color-border);
	border-radius: var(--atb-radius-sm, 0.25rem);
}

/* ── Product cards ─────────────────────────────────────────────────────────
   The list is a Bootstrap row on the Bootstrap path (its columns come from
   inc/grid.php) and a CSS grid everywhere else. */

.s-storefront__list {
	list-style: none;
	margin-block-end: 0;
	padding: 0;
	clear: both;
}

/* Without Bootstrap: the same plan as inc/grid.php — two to a row on a
   phone, three from md, four from lg; the feature variant one size larger. */
.s-storefront__list:not(.row) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 1rem;
}

@media (min-width: 768px) {
	.s-storefront__list:not(.row) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

@media (min-width: 992px) {
	.s-storefront__list:not(.row) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.s-storefront--feature .s-storefront__list:not(.row) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.s-storefront--feature .s-storefront__list:not(.row) {
		grid-template-columns: minmax(0, 1fr);
	}
}

.s-storefront__list > li {
	float: none;
	margin-inline: 0;
	list-style: none;
}

.s-storefront__list:not(.row) > li {
	width: auto;
	margin: 0;
	padding: 0;
}

.s-storefront__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	height: 100%;
}

/* WooCommerce's link wraps the picture, the name and the price. */
.s-storefront__item > :is(a.woocommerce-LoopProduct-link, a.woocommerce-loop-category__link),
a.s-storefront__item {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.5rem;
	color: inherit;
	text-decoration: none;
}

.s-storefront__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1;
	background: var(--atb-color-surface, transparent);
	border-radius: var(--atb-radius-md, 0.5rem);
}

.s-storefront__media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.s-storefront__item:hover .s-storefront__media img {
	transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
	.s-storefront__media img {
		transition: none;
	}
}

.s-storefront__name {
	margin: 0;
	padding: 0;
	font-family: var(--atb-font-heading, inherit);
	font-size: 1rem;
	line-height: 1.35;
}

/* WooCommerce sizes the loop title from its own sheet. */
.woocommerce .s-storefront__item .woocommerce-loop-product__title,
.woocommerce .s-storefront__item .woocommerce-loop-category__title {
	padding: 0;
	font-size: 1rem;
}

.s-storefront__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
}

.s-storefront__meta :where(.price),
.woocommerce .s-storefront__meta .price {
	margin: 0;
	color: var(--atb-color-text);
	font-size: 1rem;
	font-weight: 600;
}

:where(.price) :where(del) {
	color: var(--atb-color-text-muted, var(--atb-color-text));
	font-weight: 400;
	opacity: 0.8;
}

:where(.price) :where(ins) {
	text-decoration: none;
}

/* The add-to-cart button sits at the foot of the card, whatever the name's
   length, so a row of cards keeps its buttons on one line. */
.s-storefront__item > :where(.s-storefront__action, .added_to_cart) {
	align-self: flex-start;
	margin-block-start: auto;
}

.s-storefront__item > :where(.added_to_cart) {
	margin-block-start: 0;
	font-size: 0.875rem;
	color: inherit;
	text-decoration: underline;
}

.s-storefront__count {
	color: var(--atb-color-text-muted, var(--atb-color-text));
	font-size: 0.875rem;
}

/* Category tiles WooCommerce prints in its own loop. */
.s-storefront__item .woocommerce-loop-category__title mark.count {
	background: none;
	color: var(--atb-color-text-muted, var(--atb-color-text));
	font-weight: 400;
}

.s-storefront__more {
	display: inline-flex;
	margin-block-start: 2rem;
}

/* ── Rail ──────────────────────────────────────────────────────────────────
   One row that scrolls sideways, the next card peeking in at the edge so
   the row says it scrolls. No column plan stamps it (inc/grid.php), and it
   is written one class heavier than the authored sheet's list rules: a grid
   template on the list would fold the rail back into rows. */

.s.s-storefront--rail .s-storefront__list {
	display: flex;
	flex-wrap: nowrap;
	gap: 1rem;
	margin-inline: 0;
	padding: 0 0 0.75rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--atb-color-border, currentColor) transparent;
	-webkit-overflow-scrolling: touch;
}

.s.s-storefront--rail .s-storefront__list > li {
	flex: 0 0 min(72%, 17rem);
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
}

@media (min-width: 768px) {
	.s.s-storefront--rail .s-storefront__list {
		gap: 1.5rem;
	}

	.s.s-storefront--rail .s-storefront__list > li {
		flex-basis: calc((100% - 2 * 1.5rem) / 3.35);
	}
}

@media (min-width: 1200px) {
	.s.s-storefront--rail .s-storefront__list > li {
		flex-basis: calc((100% - 3 * 1.5rem) / 4.3);
	}
}

/* The arrows: a pair at the right end of the line above the row. Shown by
   assets/js/storefront.js only when the row overflows, and only where a
   mouse is likely — a phone swipes. */
.s-storefront__nav:not([hidden]) {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-block-end: 0.75rem;
}

.s .s-storefront__nav[hidden] {
	display: none;
}

@media (max-width: 767.98px), (hover: none) {
	.s .s-storefront__nav:not([hidden]) {
		display: none;
	}
}

.s-storefront__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	padding: 0;
	color: var(--atb-color-text);
	background: var(--atb-color-background, transparent);
	border: 1px solid var(--atb-color-border, currentColor);
	border-radius: var(--atb-radius-full, 999px);
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.s-storefront__arrow:hover:not(:disabled) {
	background: var(--atb-color-surface, transparent);
}

.s-storefront__arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.s-storefront__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

[dir="rtl"] .s-storefront__arrow svg {
	transform: scaleX(-1);
}

/* ── Showcase ──────────────────────────────────────────────────────────────
   One product: the picture in one half, its name, text, price and buttons
   in the other. Stacked on a phone. */

.s.s-storefront--showcase .s-storefront__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	height: auto;
}

@media (min-width: 768px) {
	.s.s-storefront--showcase .s-storefront__item {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.s-storefront--showcase .s-storefront__media {
	grid-column: 1;
}

.s-storefront--showcase .s-storefront__body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 0.75rem;
	min-width: 0;
}

@media (min-width: 768px) {
	.s-storefront--showcase .s-storefront__body {
		grid-column: 2;
	}
}

/* The name, the text and the price each take a line; the buttons share one. */
.s-storefront--showcase .s-storefront__body > :not(.s-storefront__action, .s-storefront__more, .added_to_cart) {
	flex: 1 0 100%;
}

.s-storefront--showcase .s-storefront__name {
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
	line-height: 1.2;
}

.s-storefront--showcase .s-storefront__name a {
	color: inherit;
	text-decoration: none;
}

.s-storefront--showcase .s-storefront__text {
	max-inline-size: 48ch;
	margin: 0;
	color: var(--atb-color-text-muted, var(--atb-color-text));
}

.s-storefront--showcase .s-storefront__meta :where(.price),
.woocommerce .s-storefront--showcase .s-storefront__meta .price {
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
}

.s-storefront--showcase .s-storefront__body > :where(.s-storefront__action, .s-storefront__more) {
	margin-block-start: 0;
}

.s-storefront--showcase .s-storefront__item:hover .s-storefront__media img {
	transform: none;
}

/* ── Category banners ──────────────────────────────────────────────────────
   Two or three tall tiles, the name and a line of text laid over the lower
   part of the picture on a dark scrim. The text is light whatever the
   palette: the scrim is dark on every one of them. */

/* Without Bootstrap: inc/grid.php's banner plan — one to a row on a phone,
   then as many as there are, three at most. */
.s-storefront--banners .s-storefront__list:not(.row) {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
	.s-storefront--banners .s-storefront__list:not(.row) {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
	}
}

.s-storefront--banners .s-storefront__item {
	position: relative;
	overflow: hidden;
	border-radius: var(--atb-radius-md, 0.5rem);
}

.s-storefront--banners .s-storefront__media {
	aspect-ratio: 3 / 2;
	border-radius: 0;
}

@media (min-width: 768px) {
	.s-storefront--banners .s-storefront__media {
		aspect-ratio: 4 / 5;
	}
}

.s.s-storefront--banners .s-storefront__body {
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	padding-block-start: 4rem;
	color: #fff;
	background: linear-gradient(to top, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.38) 60%, rgb(0 0 0 / 0));
}

.s.s-storefront--banners .s-storefront__body :is(.s-storefront__name, .s-storefront__text) {
	color: #fff;
}

.s-storefront--banners .s-storefront__name {
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	line-height: 1.2;
}

.s-storefront--banners .s-storefront__text {
	font-size: 0.9375rem;
	line-height: 1.45;
	opacity: 0.9;
}

/* ── The sale badge ────────────────────────────────────────────────────── */

.woocommerce span.onsale,
.s-storefront__media span.onsale {
	position: absolute;
	top: 0.75rem;
	right: auto;
	left: 0.75rem;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0.25rem 0.6rem;
	color: var(--atb-color-background);
	background: var(--atb-color-text);
	border-radius: var(--atb-radius-full, 999px);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
}

/* ── Buttons ───────────────────────────────────────────────────────────────
   WooCommerce paints its buttons grey and its primary ones purple. Here
   the plain one is outlined and the main one filled — filled in the TEXT
   colour on the ground colour, not in the brand colour. The cart and the
   checkout are never authored, and on a dark palette the brand colour is as
   dark as the ground: a "Place order" button in it is unreadable. Text on
   ground is the one pair every palette keeps readable; the design restyles
   the cards' buttons on top of this wherever it wants the brand. */

.woocommerce :is(a, button, input).button,
.woocommerce #respond input#submit {
	padding: 0.65rem 1.25rem;
	color: var(--atb-color-text);
	background: transparent;
	border: 1px solid var(--atb-color-border);
	border-radius: var(--atb-radius-md, 0.375rem);
	font-family: inherit;
	font-weight: 600;
	line-height: 1.2;
}

.woocommerce :is(a, button, input).button:hover {
	color: var(--atb-color-text);
	background: transparent;
	border-color: var(--atb-color-text);
}

.woocommerce :is(a, button, input).button.alt,
.woocommerce :is(a, button).button.s-storefront__action,
.s-storefront__action {
	display: inline-flex;
	align-items: center;
	padding: 0.6rem 1.1rem;
	border: 1px solid;
	border-radius: var(--atb-radius-md, 0.375rem);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: var(--atb-color-background);
	background: var(--atb-color-text);
	border-color: var(--atb-color-text);
}

.woocommerce :is(a, button, input).button.alt:hover,
.woocommerce :is(a, button).button.s-storefront__action:hover,
.s-storefront__action:hover {
	color: var(--atb-color-text);
	background: transparent;
	border-color: var(--atb-color-text);
}

.woocommerce :is(a, button).button.loading {
	opacity: 0.6;
}

/* The blocks' buttons: the cart's "Proceed to checkout", "Place order". */
.wc-block-components-button:not(.is-link) {
	min-height: 3rem;
	padding: 0.75rem 1.5rem;
	color: var(--atb-color-background);
	background-color: var(--atb-color-text);
	border: 1px solid var(--atb-color-text);
	border-radius: var(--atb-radius-md, 0.375rem);
}

.wc-block-components-button:not(.is-link):hover {
	color: var(--atb-color-text);
	background-color: transparent;
}

/* ── Forms ─────────────────────────────────────────────────────────────── */

.woocommerce :is(form .input-text, .quantity .qty, select),
.woocommerce form .form-row :is(input.input-text, textarea) {
	padding: 0.55rem 0.75rem;
	color: var(--atb-color-text);
	background: var(--atb-color-background);
	border: 1px solid var(--atb-color-border);
	border-radius: var(--atb-radius-sm, 0.25rem);
	font: inherit;
}

.woocommerce .quantity .qty {
	width: 4.5rem;
	text-align: center;
}

.woocommerce :is(form .input-text, .quantity .qty, select):focus {
	outline: 2px solid var(--atb-color-text);
	outline-offset: 1px;
}

/* ── Notices ───────────────────────────────────────────────────────────── */

.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	color: var(--atb-color-text);
	background: var(--atb-color-surface, var(--atb-color-background));
	border-top-color: var(--atb-color-text);
	border-radius: var(--atb-radius-sm, 0.25rem);
}

.woocommerce :is(.woocommerce-message, .woocommerce-info)::before {
	color: inherit;
}

.woocommerce .woocommerce-error {
	border-top-color: #b32d2e;
}

/* ── Pagination ────────────────────────────────────────────────────────── */

.woocommerce nav.woocommerce-pagination {
	margin-block-start: 2.5rem;
}

.woocommerce nav.woocommerce-pagination ul {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	margin: 0 0.25rem;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li :is(a, span) {
	min-width: 2.5rem;
	padding: 0.55rem 0.75rem;
	color: var(--atb-color-text);
	border: 1px solid var(--atb-color-border);
	border-radius: var(--atb-radius-sm, 0.25rem);
}

.woocommerce nav.woocommerce-pagination ul li :is(a:hover, a:focus, span.current) {
	color: var(--atb-color-background);
	background: var(--atb-color-text);
	border-color: var(--atb-color-text);
}

/* ── Product page ──────────────────────────────────────────────────────── */

.atb-product__layout {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}

@media (min-width: 768px) {
	.atb-product__layout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

/* Inside the grid the two halves are cells, not floats at 48%. */
.woocommerce div.product .atb-product__layout div.images,
.woocommerce div.product .atb-product__layout div.summary {
	float: none;
	width: auto;
	margin: 0;
}

.atb-product__gallery {
	position: relative;
}

.woocommerce div.product div.images img,
.woocommerce div.product div.images .flex-control-thumbs li img {
	border-radius: var(--atb-radius-md, 0.5rem);
}

.woocommerce div.product .product_title {
	font-family: var(--atb-font-heading, inherit);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.15;
}

.woocommerce div.product .summary :is(p.price, span.price) {
	margin-block: 1rem;
	color: var(--atb-color-text);
	font-size: 1.5rem;
	font-weight: 600;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	max-inline-size: var(--atb-measure, 72ch);
	margin-block-end: 1.5rem;
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.75rem;
}

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

.woocommerce div.product form.cart :is(div.quantity, .button) {
	float: none;
	margin: 0;
}

.woocommerce div.product .product_meta {
	margin-block-start: 1.5rem;
	color: var(--atb-color-text-muted, var(--atb-color-text));
	font-size: 0.875rem;
}

.woocommerce div.product .woocommerce-tabs {
	grid-column: 1 / -1;
	margin-block-start: clamp(2rem, 5vw, 3.5rem);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
	border-bottom: 1px solid var(--atb-color-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
	content: none;
}

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

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

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: 0.75rem 0;
	color: var(--atb-color-text-muted, var(--atb-color-text));
	font-weight: 600;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: none;
	box-shadow: inset 0 -2px 0 var(--atb-color-text);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--atb-color-text);
}

.woocommerce div.product .woocommerce-tabs .panel {
	max-inline-size: var(--atb-measure, 72ch);
	margin-block-start: 1.5rem;
}

.woocommerce div.product .woocommerce-tabs .panel > h2:first-child {
	display: none;
}

.woocommerce table.shop_attributes {
	border-top-color: var(--atb-color-border);
}

.woocommerce table.shop_attributes :is(th, td) {
	padding: 0.6rem 0.75rem;
	border-bottom-color: var(--atb-color-border);
	font-style: normal;
}

.woocommerce table.shop_attributes tr:nth-child(even) :is(th, td) {
	background: var(--atb-color-surface, transparent);
}

.woocommerce .related.products,
.woocommerce .upsells.products {
	margin-block-start: clamp(2.5rem, 6vw, 4rem);
}

.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
	margin-block-end: 1.5rem;
	font-family: var(--atb-font-heading, inherit);
}

/* ── Cart, checkout, account ───────────────────────────────────────────── */

:where(.atb-shop__body) {
	color: var(--atb-color-text);
}

:where(.atb-shop__body) :where(.wc-block-components-totals-wrapper, .wc-block-components-panel, .wc-block-checkout__actions) {
	border-color: var(--atb-color-border);
}

:where(.atb-shop__body) :where(.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control input, .wc-block-components-select select) {
	color: var(--atb-color-text);
	background-color: var(--atb-color-background);
	border-color: var(--atb-color-border);
}

:where(.atb-shop__body) a {
	color: inherit;
	text-decoration: underline;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	padding: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--atb-color-border);
}

/* ── Header cart ───────────────────────────────────────────────────────── */

.site-header__cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-inline: 0.25rem;
	/* The header's own ink: a design that inverts the bar inverts this too. */
	color: inherit;
	text-decoration: none;
	flex: none;
}

.site-header__cart:hover,
.site-header__cart:focus-visible {
	opacity: 0.75;
}

.site-header__cart-icon {
	display: block;
	width: 1.375rem;
	height: 1.375rem;
}

.site-header__cart-count {
	position: absolute;
	top: 0.1rem;
	right: 0;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.3rem;
	color: var(--atb-color-background);
	background: var(--atb-color-text);
	box-shadow: 0 0 0 2px var(--atb-color-background);
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.15rem;
	text-align: center;
}

.site-header__cart-count.is-empty {
	display: none;
}

/* Without Bootstrap the order utilities do not exist: the cart closes the
   bar on a wide screen and sits beside the burger on a narrow one. */
.atb-no-bootstrap .site-header__cart {
	order: 3;
	margin-inline-start: 0.75rem;
}
