/**
 * NOVA ROSE — the shop.
 *
 * WooCommerce's own three stylesheets are dequeued, so everything a shopper
 * sees between the catalogue and the order confirmation is styled here. That
 * is a larger commitment than overriding Woo's defaults and it is the only way
 * to get one spacing scale and one radius across a whole storefront.
 *
 * Rose is used for exactly three things in this file: the price, the primary
 * action, and the saving. Everything else is the neutral ramp — which is what
 * lets those three read as emphasis rather than as wallpaper.
 */

/* ==========================================================================
   Shop layout
   ========================================================================== */

.nr-shop-layout {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	gap: var( --nr-s-10 );
}

.nr-shop-layout--sidebar {
	grid-template-columns: 16rem minmax( 0, 1fr );
	align-items: start;
}

@media ( max-width: 63.99em ) {
	.nr-shop-layout--sidebar {
		grid-template-columns: minmax( 0, 1fr );
	}
}

.nr-catalogue-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var( --nr-s-4 );
	padding-bottom: var( --nr-s-5 );
	margin-bottom: var( --nr-s-8 );
	border-bottom: 1px solid var( --nr-n-200 );
}

.nr-catalogue-bar > * {
	min-width: 0;
	margin: 0;
}

.woocommerce-result-count {
	font-size: var( --nr-t-sm );
	color: var( --nr-ink-muted );
}

.woocommerce-ordering select {
	font: inherit;
	font-size: var( --nr-t-sm );
	padding: var( --nr-s-2 ) var( --nr-s-8 ) var( --nr-s-2 ) var( --nr-s-3 );
	border: 1px solid var( --nr-n-300 );
	border-radius: var( --nr-r-pill );
	background: var( --nr-surface );
	color: var( --nr-ink );
}

/* ==========================================================================
   The product grid
   ========================================================================== */

ul.products,
.nr-product-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( min( 17rem, 100% ), 1fr ) );
	gap: var( --nr-s-8 ) var( --nr-s-6 );
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.products > li,
.nr-product-grid > * {
	min-width: 0;
	margin: 0;
}

/* ==========================================================================
   The card
   ========================================================================== */

.nr-pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	background: var( --nr-surface );
	border: 1px solid var( --nr-n-200 );
	border-radius: var( --nr-r-lg );
	overflow: hidden;
	transition: border-color var( --nr-d-ui ) var( --nr-ease ),
		box-shadow var( --nr-d-ui ) var( --nr-ease ),
		transform var( --nr-d-ui ) var( --nr-ease );
}

.nr-pcard:hover,
.nr-pcard:focus-within {
	border-color: rgba( var( --nr-rose-rgb ), 0.35 );
	box-shadow: 0 1.25rem 2.5rem -1.5rem rgba( var( --nr-rose-rgb ), 0.45 );
	transform: translateY( -2px );
}

@media ( prefers-reduced-motion: reduce ) {
	.nr-pcard,
	.nr-pcard:hover,
	.nr-pcard:focus-within {
		transition: none;
		transform: none;
	}
}

.nr-pcard-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var( --nr-surface-sunk );
	overflow: hidden;
}

.nr-pcard-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/*
 * A product with no photograph gets a monogram rather than a grey rectangle
 * with a broken-image glyph. A shop mid-setup should still look composed.
 */
.nr-pcard-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient( circle at 30% 25%, rgba( var( --nr-rose-rgb ), 0.16 ), transparent 60% ),
		var( --nr-surface-sunk );
	font-family: var( --nr-font-display );
	font-size: var( --nr-t-3xl );
	color: rgba( var( --nr-rose-rgb ), 0.4 );
	letter-spacing: 0.04em;
}

.nr-pcard-flags {
	position: absolute;
	inset: var( --nr-s-3 ) auto auto var( --nr-s-3 );
	display: flex;
	flex-wrap: wrap;
	gap: var( --nr-s-2 );
	max-width: calc( 100% - var( --nr-s-6 ) );
}

.nr-pcard-tools {
	position: absolute;
	inset: var( --nr-s-3 ) var( --nr-s-3 ) auto auto;
	display: flex;
	flex-direction: column;
	gap: var( --nr-s-2 );
}

.nr-pcard-tool {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 1px solid var( --nr-n-200 );
	border-radius: var( --nr-r-pill );
	background: rgba( 255, 255, 255, 0.92 );
	color: var( --nr-ink-muted );
	cursor: pointer;
	transition: color var( --nr-d-micro ) var( --nr-ease ),
		border-color var( --nr-d-micro ) var( --nr-ease ),
		background-color var( --nr-d-micro ) var( --nr-ease );
}

.nr-pcard-tool .nr-icon {
	width: 1.0625rem;
	height: 1.0625rem;
}

.nr-pcard-tool:hover,
.nr-pcard-tool:focus-visible {
	color: var( --nr-rose );
	border-color: rgba( var( --nr-rose-rgb ), 0.4 );
}

.nr-pcard-tool.is-on {
	color: #fff;
	background: var( --nr-rose );
	border-color: var( --nr-rose );
}

.nr-pcard-body {
	display: flex;
	flex-direction: column;
	gap: var( --nr-s-3 );
	flex: 1 1 auto;
	min-width: 0;
	padding: var( --nr-s-5 );
}

.nr-pcard-cat {
	font-family: var( --nr-font-mono );
	font-size: var( --nr-t-xs );
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var( --nr-ink-faint );
}

.nr-pcard-title {
	margin: 0;
	font-family: var( --nr-font-display );
	font-size: var( --nr-t-md );
	line-height: var( --nr-lh-snug );
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.nr-pcard-title a {
	color: inherit;
	text-decoration: none;
}

.nr-pcard-title a::after {
	/* The whole card is the hit area, but only the title is the link — so
	   the accessible name stays the product name rather than becoming every
	   word inside the card. */
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

.nr-pcard-tools,
.nr-pcard-foot {
	position: relative;
	z-index: 2;
}

.nr-pcard-excerpt {
	margin: 0;
	font-size: var( --nr-t-sm );
	line-height: var( --nr-lh-body );
	color: var( --nr-ink-muted );
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nr-pcard-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var( --nr-s-3 );
	margin-top: auto;
	padding-top: var( --nr-s-2 );
}

.nr-pcard-foot > * {
	min-width: 0;
}

/* ==========================================================================
   Price
   ========================================================================== */

.price,
.nr-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: var( --nr-s-2 );
	margin: 0;
	font-family: var( --nr-font-display );
	font-size: var( --nr-t-lg );
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	color: var( --nr-rose-deep );
}

.price del,
.nr-price del {
	font-size: var( --nr-t-sm );
	font-weight: 500;
	color: var( --nr-ink-faint );
	text-decoration-thickness: 1px;
}

.price ins,
.nr-price ins {
	text-decoration: none;
	background: none;
	color: inherit;
}

.nr-save-badge {
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Buttons Woo renders
   ========================================================================== */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
a.button,
button.button,
.nr-add-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var( --nr-s-2 );
	padding: 0.7rem var( --nr-s-5 );
	border: 1px solid transparent;
	border-radius: var( --nr-r-pill );
	background: var( --nr-rose );
	color: #fff;
	font: inherit;
	font-size: var( --nr-t-sm );
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var( --nr-d-micro ) var( --nr-ease ),
		transform var( --nr-d-micro ) var( --nr-ease );
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
a.button:hover,
button.button:hover,
.nr-add-btn:hover {
	background: var( --nr-rose-deep );
	color: #fff;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var( --nr-ink );
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var( --nr-n-800 );
}

.woocommerce button.button:disabled,
.woocommerce button.button[disabled],
.nr-add-btn[disabled] {
	background: var( --nr-n-300 );
	color: var( --nr-n-600 );
	cursor: not-allowed;
}

.added_to_cart {
	display: inline-flex;
	align-items: center;
	font-size: var( --nr-t-sm );
	font-weight: 600;
	color: var( --nr-rose-deep );
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ==========================================================================
   Single product
   ========================================================================== */

.nr-product {
	display: grid;
	grid-template-columns: minmax( 0, 1.05fr ) minmax( 0, 1fr );
	gap: var( --nr-s-12 );
	align-items: start;
}

@media ( max-width: 55.99em ) {
	.nr-product {
		grid-template-columns: minmax( 0, 1fr );
		gap: var( --nr-s-8 );
	}
}

.nr-product-gallery {
	position: relative;
	border-radius: var( --nr-r-xl );
	overflow: hidden;
	background: var( --nr-surface-sunk );
	border: 1px solid var( --nr-n-200 );
}

.nr-product-gallery img {
	display: block;
	width: 100%;
	height: auto;
}

.nr-product-thumbs {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 5rem, 1fr ) );
	gap: var( --nr-s-3 );
	margin-top: var( --nr-s-4 );
	list-style: none;
	padding: 0;
}

.nr-product-thumbs a {
	display: block;
	aspect-ratio: 1;
	border-radius: var( --nr-r-md );
	overflow: hidden;
	border: 1px solid var( --nr-n-200 );
}

.nr-product-thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nr-product-summary {
	display: flex;
	flex-direction: column;
	gap: var( --nr-s-5 );
	min-width: 0;
}

.nr-product-summary .nr-h2 {
	margin: 0;
}

.nr-product-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var( --nr-s-3 ) var( --nr-s-5 );
	font-size: var( --nr-t-sm );
	color: var( --nr-ink-muted );
}

.nr-product-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var( --nr-s-3 );
}

.nr-product-actions > * {
	min-width: 0;
}

.nr-product-actions form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var( --nr-s-3 );
	margin: 0;
}

.quantity input[type="number"] {
	width: 4.5rem;
	padding: 0.65rem var( --nr-s-3 );
	border: 1px solid var( --nr-n-300 );
	border-radius: var( --nr-r-pill );
	background: var( --nr-surface );
	font: inherit;
	font-variant-numeric: tabular-nums;
	text-align: center;
	color: var( --nr-ink );
}

.nr-product-specs {
	width: 100%;
	border-collapse: collapse;
	font-size: var( --nr-t-sm );
}

.nr-product-specs th,
.nr-product-specs td {
	padding: var( --nr-s-3 ) 0;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var( --nr-n-200 );
}

.nr-product-specs th {
	width: 40%;
	font-weight: 600;
	color: var( --nr-ink-muted );
}

/* Woo's tabs, flattened into stacked sections — a shopper on a phone should
   not have to find a tab strip to read a description. */
.woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var( --nr-s-2 );
	list-style: none;
	margin: 0 0 var( --nr-s-6 );
	padding: 0;
	border-bottom: 1px solid var( --nr-n-200 );
}

.woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: var( --nr-s-3 ) var( --nr-s-4 );
	font-size: var( --nr-t-sm );
	font-weight: 600;
	color: var( --nr-ink-muted );
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.woocommerce-tabs ul.tabs li.active a {
	color: var( --nr-rose-deep );
	border-bottom-color: var( --nr-rose );
}

/* ==========================================================================
   Bundles
   ========================================================================== */

.nr-bundle {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) 18rem;
	gap: var( --nr-s-10 );
	align-items: start;
}

@media ( max-width: 55.99em ) {
	.nr-bundle {
		grid-template-columns: minmax( 0, 1fr );
		gap: var( --nr-s-6 );
	}
}

.nr-bundle-members {
	display: grid;
	gap: var( --nr-s-3 );
	list-style: none;
	margin: 0;
	padding: 0;
}

.nr-bundle-member {
	display: grid;
	grid-template-columns: 3.5rem minmax( 0, 1fr ) auto;
	align-items: center;
	gap: var( --nr-s-4 );
	padding: var( --nr-s-3 );
	border: 1px solid var( --nr-n-200 );
	border-radius: var( --nr-r-md );
	background: var( --nr-surface );
}

.nr-bundle-member img {
	width: 3.5rem;
	height: 3.5rem;
	object-fit: cover;
	border-radius: var( --nr-r-sm );
}

.nr-bundle-member-name {
	min-width: 0;
	font-size: var( --nr-t-sm );
	font-weight: 600;
}

.nr-bundle-member-name a {
	color: inherit;
	text-decoration: none;
}

.nr-bundle-member-price {
	font-variant-numeric: tabular-nums;
	font-size: var( --nr-t-sm );
	color: var( --nr-ink-muted );
	white-space: nowrap;
}

/*
 * The sum. Every figure in this panel is computed from the members above it
 * when the page is drawn, which is why it can be printed with this much
 * confidence.
 */
.nr-bundle-sum {
	position: sticky;
	top: calc( var( --nr-header-h ) + var( --nr-s-4 ) );
	display: grid;
	gap: var( --nr-s-4 );
	padding: var( --nr-s-6 );
	border: 1px solid rgba( var( --nr-rose-rgb ), 0.25 );
	border-radius: var( --nr-r-lg );
	background: var( --nr-rose-wash );
}

@media ( max-width: 55.99em ) {
	.nr-bundle-sum {
		position: static;
	}
}

.nr-bundle-line {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var( --nr-s-4 );
	font-size: var( --nr-t-sm );
	color: var( --nr-ink-muted );
	font-variant-numeric: tabular-nums;
}

.nr-bundle-line--total {
	padding-top: var( --nr-s-4 );
	border-top: 1px solid rgba( var( --nr-rose-rgb ), 0.25 );
	font-size: var( --nr-t-lg );
	font-family: var( --nr-font-display );
	font-weight: 600;
	color: var( --nr-rose-deep );
}

.nr-bundle-line--save {
	font-weight: 600;
	color: var( --nr-teal );
}

.nr-bundle-note {
	margin: 0;
	font-size: var( --nr-t-xs );
	line-height: var( --nr-lh-body );
	color: var( --nr-ink-muted );
}

/* ==========================================================================
   The comparison tray
   ========================================================================== */

.nr-tray {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 60;
	background: rgba( 255, 255, 255, 0.94 );
	backdrop-filter: blur( 14px ) saturate( 1.3 );
	border-top: 1px solid var( --nr-n-200 );
	box-shadow: 0 -1rem 3rem -1.5rem rgba( 31, 26, 36, 0.3 );
	animation: nr-tray-in var( --nr-d-ui ) var( --nr-ease ) both;
}

@keyframes nr-tray-in {
	from { transform: translateY( 100% ); }
	to   { transform: none; }
}

@media ( prefers-reduced-motion: reduce ) {
	.nr-tray { animation: none; }
}

.nr-tray[hidden] {
	display: none;
}

.nr-tray-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var( --nr-s-4 );
	padding-top: var( --nr-s-4 );
	padding-bottom: var( --nr-s-4 );
}

.nr-tray-items {
	display: flex;
	flex-wrap: wrap;
	gap: var( --nr-s-3 );
	min-width: 0;
	flex: 1 1 20rem;
}

.nr-tray-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: var( --nr-s-3 );
	padding: var( --nr-s-2 ) var( --nr-s-3 );
	border: 1px solid var( --nr-n-200 );
	border-radius: var( --nr-r-pill );
	background: var( --nr-surface );
	font-size: var( --nr-t-sm );
	max-width: 15rem;
	min-width: 0;
}

.nr-tray-item img {
	width: 1.75rem;
	height: 1.75rem;
	border-radius: var( --nr-r-pill );
	object-fit: cover;
	flex: none;
}

.nr-tray-item-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nr-tray-remove {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.25rem;
	height: 1.25rem;
	padding: 0;
	border: 0;
	border-radius: var( --nr-r-pill );
	background: var( --nr-n-100 );
	color: var( --nr-ink-muted );
	cursor: pointer;
	line-height: 1;
}

.nr-tray-remove:hover {
	background: var( --nr-rose );
	color: #fff;
}

.nr-tray-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var( --nr-s-3 );
	min-width: 0;
}

.nr-tray-hint {
	margin: 0;
	font-size: var( --nr-t-xs );
	color: var( --nr-ink-muted );
	max-width: 16rem;
}

.nr-btn.is-disabled,
a.nr-btn[aria-disabled="true"] {
	opacity: 0.5;
	pointer-events: none;
}

body.has-nr-tray {
	padding-bottom: 6rem;
}

/* ==========================================================================
   The comparison table
   ========================================================================== */

.nr-compare-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.nr-compare {
	width: 100%;
	min-width: 42rem;
	border-collapse: collapse;
	font-size: var( --nr-t-sm );
}

.nr-compare th,
.nr-compare td {
	padding: var( --nr-s-4 );
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var( --nr-n-200 );
}

.nr-compare thead th {
	border-bottom: 2px solid var( --nr-n-300 );
	vertical-align: bottom;
}

.nr-compare tbody th {
	width: 10rem;
	font-weight: 600;
	color: var( --nr-ink-muted );
	background: var( --nr-surface-sunk );
	position: sticky;
	left: 0;
}

.nr-compare-head {
	display: grid;
	gap: var( --nr-s-2 );
	min-width: 9rem;
}

.nr-compare-head img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var( --nr-r-md );
}

.nr-compare-head-name {
	font-family: var( --nr-font-display );
	font-size: var( --nr-t-base );
	line-height: var( --nr-lh-snug );
}

.nr-compare-head-name a {
	color: inherit;
	text-decoration: none;
}

/* ==========================================================================
   Cart, checkout and account
   ========================================================================== */

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-size: var( --nr-t-sm );
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: var( --nr-s-4 );
	text-align: left;
	border-bottom: 1px solid var( --nr-n-200 );
	vertical-align: middle;
}

.woocommerce table.shop_table th {
	font-weight: 600;
	color: var( --nr-ink-muted );
}

.woocommerce table.cart img {
	width: 3.5rem;
	height: 3.5rem;
	object-fit: cover;
	border-radius: var( --nr-r-sm );
}

.woocommerce .cart-collaterals,
.woocommerce-checkout .woocommerce {
	display: grid;
	gap: var( --nr-s-8 );
}

.cart_totals,
.woocommerce-checkout-review-order {
	padding: var( --nr-s-6 );
	border: 1px solid var( --nr-n-200 );
	border-radius: var( --nr-r-lg );
	background: var( --nr-surface );
}

.woocommerce-checkout #payment {
	margin-top: var( --nr-s-6 );
	padding: var( --nr-s-6 );
	border: 1px solid var( --nr-n-200 );
	border-radius: var( --nr-r-lg );
	background: var( --nr-surface-sunk );
}

.woocommerce-checkout #payment ul.payment_methods {
	list-style: none;
	margin: 0 0 var( --nr-s-5 );
	padding: 0;
	display: grid;
	gap: var( --nr-s-3 );
}

.woocommerce form .form-row {
	display: grid;
	gap: var( --nr-s-2 );
	margin-bottom: var( --nr-s-4 );
	min-width: 0;
}

.woocommerce form .form-row label {
	font-size: var( --nr-t-sm );
	font-weight: 600;
	color: var( --nr-ink-soft );
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection--single {
	width: 100%;
	padding: 0.7rem var( --nr-s-4 );
	border: 1px solid var( --nr-n-300 );
	border-radius: var( --nr-r-md );
	background: var( --nr-surface );
	font: inherit;
	color: var( --nr-ink );
}

.woocommerce form .form-row input.input-text:focus-visible,
.woocommerce form .form-row textarea:focus-visible {
	outline: 2px solid var( --nr-rose );
	outline-offset: 2px;
}

.woocommerce-form-coupon-toggle,
.woocommerce form.checkout_coupon {
	margin-bottom: var( --nr-s-6 );
}

/* ==========================================================================
   Notices
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.nr-notice-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var( --nr-s-3 ) var( --nr-s-4 );
	margin: 0 0 var( --nr-s-6 );
	padding: var( --nr-s-4 ) var( --nr-s-5 );
	border: 1px solid var( --nr-n-200 );
	border-left: 3px solid var( --nr-teal );
	border-radius: var( --nr-r-md );
	background: var( --nr-teal-wash );
	font-size: var( --nr-t-sm );
	list-style: none;
}

.woocommerce-info {
	border-left-color: var( --nr-rose );
	background: var( --nr-rose-wash );
}

.woocommerce-error {
	border-left-color: #b42318;
	background: #fef3f2;
	color: #7a271a;
}

.woocommerce-message .button,
.woocommerce-info .button {
	margin-left: auto;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.nr-toast {
	position: fixed;
	inset: auto var( --nr-s-6 ) var( --nr-s-6 ) auto;
	z-index: 90;
	max-width: min( 22rem, calc( 100vw - var( --nr-s-8 ) ) );
	padding: var( --nr-s-4 ) var( --nr-s-5 );
	border-radius: var( --nr-r-md );
	background: var( --nr-ink );
	color: #fff;
	font-size: var( --nr-t-sm );
	line-height: var( --nr-lh-snug );
	box-shadow: 0 1.5rem 3rem -1.5rem rgba( 31, 26, 36, 0.6 );
	opacity: 0;
	transform: translateY( 0.75rem );
	transition: opacity var( --nr-d-ui ) var( --nr-ease ),
		transform var( --nr-d-ui ) var( --nr-ease );
}

.nr-toast.is-in {
	opacity: 1;
	transform: none;
}

body.has-nr-tray .nr-toast {
	bottom: 6.5rem;
}

@media ( prefers-reduced-motion: reduce ) {
	.nr-toast {
		transition: none;
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   Cart and wishlist counts in the header
   ========================================================================== */

.nr-count {
	position: absolute;
	top: -0.25rem;
	right: -0.25rem;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.28rem;
	display: grid;
	place-items: center;
	border-radius: var( --nr-r-pill );
	background: var( --nr-rose );
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.nr-cart-btn,
.nr-wishlist-btn {
	position: relative;
}

/* ==========================================================================
   Card flags: legibility over artwork
   ========================================================================== */

/*
 * The stock chip is a bare coloured word everywhere else in the theme, which
 * is right on a white panel and wrong on top of a product plate — over the
 * lamp's lit bar it disappeared entirely. Inside the card's flag row it gets
 * the same pill treatment as the saving badge, so both read at a glance
 * whatever is behind them, and the row stops looking like two unrelated things
 * that happen to be adjacent.
 */
.nr-pcard-flags .nr-stock {
	padding: var( --nr-s-1 ) var( --nr-s-3 );
	border-radius: var( --nr-r-pill );
	border: 1px solid var( --nr-n-200 );
	background: rgba( 255, 255, 255, 0.92 );
	backdrop-filter: blur( 6px );
	-webkit-backdrop-filter: blur( 6px );
	font-size: var( --nr-t-xs );
	line-height: 1.4;
	box-shadow: 0 1px 2px rgba( 31, 26, 36, 0.06 );
}

.nr-pcard-flags .nr-chip {
	font-size: var( --nr-t-xs );
	line-height: 1.4;
	box-shadow: 0 1px 2px rgba( 31, 26, 36, 0.06 );
}

/* Sold-out plates are dimmed so the card reads as unavailable before the
   shopper has read anything. */
.nr-pcard:has( .nr-stock--out ) .nr-pcard-media img,
.nr-pcard:has( .nr-stock--out ) .nr-pcard-placeholder {
	filter: saturate( 0.45 ) opacity( 0.75 );
}

/* ==========================================================================
   The Cart and Checkout blocks
   ========================================================================== */

/*
 * WooCommerce's Cart and Checkout blocks render through their own React tree
 * with their own stylesheet, which the theme's `.button` selectors never
 * reach — so the single most important button in the shop, Proceed to
 * Checkout, arrived as a dark underlined slab in the middle of a rose page.
 * These few rules bring the blocks onto the theme's buttons, type and radius
 * without touching any of their behaviour.
 */

.wc-block-components-button:not( .is-link ) {
	border-radius: var( --nr-r-pill );
	background-color: var( --nr-rose );
	color: #fff;
	font-family: var( --nr-font-text );
	font-weight: 600;
	font-size: var( --nr-t-base );
	padding: 0.85rem var( --nr-s-6 );
	min-height: 0;
	transition: background-color var( --nr-d-micro ) var( --nr-ease );
}

.wc-block-components-button:not( .is-link ):hover {
	background-color: var( --nr-rose-deep );
	color: #fff;
}

.wc-block-components-button__text {
	text-decoration: none;
}

.wc-block-components-product-price__value,
.wc-block-components-totals-item__value,
.wc-block-formatted-money-amount {
	font-family: var( --nr-font-display );
	font-variant-numeric: tabular-nums;
	color: var( --nr-rose-deep );
}

.wc-block-components-totals-item__label,
.wc-block-cart-items__header,
.wc-block-components-title {
	font-family: var( --nr-font-display );
	letter-spacing: -0.01em;
	color: var( --nr-ink );
}

.wc-block-cart,
.wc-block-checkout {
	--wp--preset--color--contrast: var( --nr-ink );
}

.wc-block-cart__sidebar .wc-block-components-sidebar,
.wc-block-checkout__sidebar {
	padding: var( --nr-s-6 );
	border: 1px solid var( --nr-n-200 );
	border-radius: var( --nr-r-lg );
	background: var( --nr-surface );
}

.wc-block-components-product-name {
	font-family: var( --nr-font-display );
	font-weight: 600;
	color: var( --nr-ink );
	text-decoration: none;
}

.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-block-components-combobox-control input {
	border-radius: var( --nr-r-md );
	border-color: var( --nr-n-300 );
	font-family: var( --nr-font-text );
}

.wc-block-cart-item__image img {
	border-radius: var( --nr-r-md );
	background: var( --nr-surface-sunk );
}

.wc-block-components-quantity-selector {
	border-radius: var( --nr-r-pill );
	border-color: var( --nr-n-300 );
}
