/* ==========================================================================
   Red Crafta — cart, checkout, my account, wishlist, compare
   Every value comes from tokens.css. No raw colours or sizes below.

   Three of these five pages are rendered by WooCommerce's own classic
   shortcodes, so most of what follows is written against the plugin's stable
   class names rather than against markup of ours. That is deliberate: the
   store keeps calculating its own totals, taxes and payment rules, and this
   file only decides what they look like. The plugin's stylesheets are
   dequeued for these views in functions.php, so nothing here is fighting a
   default — these rules are the only ones in play.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Utilities and the one button this family adds
   -------------------------------------------------------------------------- */

/* Said to a screen reader, shown to nobody. Also what WooCommerce's own
   screen-reader spans are reduced to, since the plugin's copy of this rule
   went out with its stylesheet. */
.rc-sr,
.rc-commerce-page .screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* The checkout's two commitments — proceeding and placing the order — are the
   only buttons on the site that sit on forest green. Terracotta is kept for
   the hover so the accent still marks the moment of acting, which is how it
   behaves on every other button in the theme. */
.rc-btn--forest {
	background: var(--rc-forest);
	color: var(--rc-on-forest);
	border: var(--rc-hairline) solid var(--rc-forest);
}
.rc-btn--forest:hover,
.rc-btn--forest:focus-visible {
	background: var(--rc-terracotta);
	border-color: var(--rc-terracotta);
	color: var(--rc-cream-light);
}

/* --------------------------------------------------------------------------
   2. Page hero. A forest band, a gold bead rule, and room to breathe.
   -------------------------------------------------------------------------- */
.rc-page-hero {
	background: var(--rc-forest);
	color: var(--rc-on-forest);
	padding-block: var(--rc-space-xl) var(--rc-space-lg);
	text-align: center;
}

.rc-page-hero__kicker { color: var(--rc-gold); }

.rc-page-hero__title {
	margin-top: var(--rc-space-xs);
	font-family: var(--rc-font-display);
	font-weight: var(--rc-weight-display);
	font-size: var(--rc-size-h2);
	line-height: var(--rc-leading-head);
	letter-spacing: var(--rc-track-display);
	color: var(--rc-on-forest);
}
.rc-page-hero__title:lang(si) { font-size: calc(var(--rc-size-h2) * 0.8); line-height: 1.3; }

.rc-page-hero__rule {
	display: block;
	width: min(220px, 40%);
	margin: var(--rc-space-sm) auto;
	background: linear-gradient(90deg, transparent, var(--rc-rule-on-forest) 12%, var(--rc-rule-on-forest) 88%, transparent);
}

.rc-page-hero__lead {
	max-width: var(--rc-measure);
	margin-inline: auto;
	font-size: var(--rc-size-lead);
	line-height: var(--rc-leading-body);
	color: var(--rc-on-forest-soft);
}

/* --------------------------------------------------------------------------
   3. The shell every one of the five pages sits in, and the house rules for
      the form parts WooCommerce prints inside it.
   -------------------------------------------------------------------------- */
.rc-commerce {
	padding-block: var(--rc-space-xl) var(--rc-space-2xl);
}

.rc-commerce .woocommerce { display: block; }

/* WooCommerce heads its own sections with h2 and h3. They are the page's
   second-level voice, so they read as the theme's display serif rather than
   as bold body copy. */
.rc-commerce h2,
.rc-commerce h3 {
	font-family: var(--rc-font-display);
	font-weight: var(--rc-weight-display);
	font-size: var(--rc-size-h3);
	line-height: var(--rc-leading-tight);
	color: var(--rc-ink);
	margin: 0 0 var(--rc-space-sm);
}
.rc-commerce h2:lang(si),
.rc-commerce h3:lang(si) { font-size: calc(var(--rc-size-h3) * 0.88); line-height: 1.38; }

.rc-commerce p { margin: 0 0 var(--rc-space-sm); }
.rc-commerce p:last-child { margin-bottom: 0; }

.rc-commerce a:not(.rc-btn):not(.button) {
	color: var(--rc-earth);
	text-decoration: none;
	border-bottom: var(--rc-hairline) solid var(--rc-rule);
}
.rc-commerce a:not(.rc-btn):not(.button):hover,
.rc-commerce a:not(.rc-btn):not(.button):focus-visible {
	color: var(--rc-terracotta);
	border-bottom-color: var(--rc-terracotta);
}

/* --- Notices ---------------------------------------------------------- */
/* One shape for all three states, distinguished by the colour of the rule
   that leads it rather than by a tinted panel, which would be the only
   filled, rounded object on an otherwise flat page. */
.rc-commerce .woocommerce-message,
.rc-commerce .woocommerce-info,
.rc-commerce .woocommerce-error,
.rc-commerce .woocommerce-notice {
	list-style: none;
	margin: 0 0 var(--rc-space-md);
	padding: var(--rc-space-sm) var(--rc-space-md);
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
	border-left-width: 3px;
	border-left-color: var(--rc-gold);
	border-radius: var(--rc-radius-none);
	font-size: var(--rc-size-small);
	color: var(--rc-ink);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rc-space-sm);
}
/* WooCommerce renders the empty cart through its block notice rather than
   the classic one, so that shape is given the same treatment instead of
   being left to the plugin stylesheet this theme does not load. */
.rc-commerce .wc-block-components-notice-banner {
	display: flex;
	align-items: center;
	gap: var(--rc-space-sm);
	padding: var(--rc-space-sm) var(--rc-space-md);
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
	border-left: 3px solid var(--rc-gold);
	font-size: var(--rc-size-small);
	color: var(--rc-ink);
}
.rc-commerce .wc-block-components-notice-banner svg {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	fill: var(--rc-earth);
}
.rc-commerce .wc-empty-cart-message { margin-bottom: var(--rc-space-md); }

.rc-commerce .woocommerce-message { border-left-color: var(--rc-forest-alt); }
.rc-commerce .woocommerce-error { border-left-color: var(--rc-terracotta); }
.rc-commerce .woocommerce-error li { list-style: none; }

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

/* --- Fields ------------------------------------------------------------ */
.rc-commerce label {
	display: block;
	margin-bottom: var(--rc-space-3xs);
	font-size: var(--rc-size-label-lg);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-ink-soft);
}
.rc-commerce label:lang(si) { letter-spacing: normal; text-transform: none; }

.rc-commerce .required,
.rc-commerce .optional {
	color: var(--rc-terracotta);
	text-decoration: none;
	border: 0;
}

.rc-commerce input[type="text"],
.rc-commerce input[type="email"],
.rc-commerce input[type="tel"],
.rc-commerce input[type="password"],
.rc-commerce input[type="number"],
.rc-commerce input[type="search"],
.rc-commerce input[type="url"],
.rc-commerce select,
.rc-commerce textarea {
	width: 100%;
	padding: 0.85rem var(--rc-space-sm);
	background: var(--rc-cream-light);
	border: var(--rc-hairline) solid var(--rc-rule);
	border-radius: var(--rc-radius-none);
	font-family: var(--rc-font-body);
	font-size: var(--rc-size-small);
	line-height: var(--rc-leading-tight);
	color: var(--rc-ink);
	appearance: none;
	transition: border-color var(--rc-duration-fast) var(--rc-ease);
}
.rc-commerce input:focus-visible,
.rc-commerce select:focus-visible,
.rc-commerce textarea:focus-visible {
	outline: none;
	border-color: var(--rc-terracotta);
}
.rc-commerce input::placeholder,
.rc-commerce textarea::placeholder { color: var(--rc-ink-soft); opacity: 0.7; }

.rc-commerce textarea { min-height: 8rem; resize: vertical; }

/* The native arrow is drawn here rather than left to the platform, so the
   select matches the text fields on both ends of the page. */
.rc-commerce select {
	padding-right: var(--rc-space-lg);
	background-image: linear-gradient(45deg, transparent 50%, var(--rc-earth) 50%),
	                  linear-gradient(135deg, var(--rc-earth) 50%, transparent 50%);
	background-position: calc(100% - 1.3rem) 1.25rem, calc(100% - 1rem) 1.25rem;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.rc-commerce .form-row {
	margin: 0 0 var(--rc-space-sm);
	padding: 0;
}
.rc-commerce .woocommerce-input-wrapper { display: block; width: 100%; }

.rc-commerce .woocommerce-invalid input.input-text,
.rc-commerce .woocommerce-invalid select { border-color: var(--rc-terracotta); }

/* --- Buttons ------------------------------------------------------------ */
/* WooCommerce prints `.button` on markup this theme never sees, so the house
   button is attached to that class rather than restated as a second object.
   The shape is given to every one of them; the skin is split in two below,
   because a selector that reaches a <button type="submit"> outranks one that
   reaches a class and would otherwise win over the green the brief asks for. */
.rc-commerce .button,
.rc-commerce button[type="submit"]:not(:is(.rc-qty__step, .rc-list__clear)) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--rc-space-2xs);
	padding: 1.05rem 2.1rem;
	border-style: solid;
	border-width: var(--rc-hairline);
	border-radius: var(--rc-radius-none);
	font-family: var(--rc-font-body);
	font-size: var(--rc-size-label-lg);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-button);
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--rc-duration-fast) var(--rc-ease),
	            color var(--rc-duration-fast) var(--rc-ease),
	            border-color var(--rc-duration-fast) var(--rc-ease);
}
.rc-commerce .button:lang(si),
.rc-commerce button[type="submit"]:lang(si) { letter-spacing: normal; text-transform: none; }

/* Everything that only asks a question: an outline, as elsewhere on the site. */
.rc-commerce :is(.button, button[type="submit"]):not(:is(.rc-qty__step, .rc-list__clear,
		.checkout-button, #place_order,
		.woocommerce-form-login__submit, .woocommerce-form-register__submit,
		.woocommerce-Button--next, .woocommerce-Button--previous,
		button[name="save_account_details"], button[name="save_address"])) {
	background: transparent;
	color: var(--rc-ink);
	border-color: var(--rc-rule-strong);
}
.rc-commerce :is(.button, button[type="submit"]):not(:is(.rc-qty__step, .rc-list__clear,
		.checkout-button, #place_order,
		.woocommerce-form-login__submit, .woocommerce-form-register__submit,
		.woocommerce-Button--next, .woocommerce-Button--previous,
		button[name="save_account_details"], button[name="save_address"])):hover,
.rc-commerce :is(.button, button[type="submit"]):not(:is(.rc-qty__step, .rc-list__clear,
		.checkout-button, #place_order,
		.woocommerce-form-login__submit, .woocommerce-form-register__submit,
		.woocommerce-Button--next, .woocommerce-Button--previous,
		button[name="save_account_details"], button[name="save_address"])):focus-visible {
	border-color: var(--rc-terracotta);
	color: var(--rc-terracotta);
}

.rc-commerce .button:disabled,
.rc-commerce .button[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}

/* The ones that commit. Forest ground, terracotta on hover — the brief's own
   pairing, and the only place on the site where a filled button is green. */
.rc-commerce :is(.checkout-button, #place_order,
		.woocommerce-form-login__submit, .woocommerce-form-register__submit,
		.woocommerce-Button--next, .woocommerce-Button--previous,
		button[name="save_account_details"], button[name="save_address"]) {
	background: var(--rc-forest);
	color: var(--rc-on-forest);
	border-color: var(--rc-forest);
}
.rc-commerce :is(.checkout-button, #place_order,
		.woocommerce-form-login__submit, .woocommerce-form-register__submit,
		.woocommerce-Button--next, .woocommerce-Button--previous,
		button[name="save_account_details"], button[name="save_address"]):hover,
.rc-commerce :is(.checkout-button, #place_order,
		.woocommerce-form-login__submit, .woocommerce-form-register__submit,
		.woocommerce-Button--next, .woocommerce-Button--previous,
		button[name="save_account_details"], button[name="save_address"]):focus-visible {
	background: var(--rc-terracotta);
	border-color: var(--rc-terracotta);
	color: var(--rc-cream-light);
}


/* --- Tables ------------------------------------------------------------- */
.rc-commerce .shop_table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	border-radius: var(--rc-radius-none);
}
.rc-commerce .shop_table th,
.rc-commerce .shop_table td {
	padding: var(--rc-space-sm) var(--rc-space-xs);
	text-align: left;
	vertical-align: middle;
	border-bottom: var(--rc-hairline) solid var(--rc-rule);
}

/* --- Price ---------------------------------------------------------------
   Rs. is set in the body face at all times. The amount is the only thing on
   these pages the eye is asked to total up, so it keeps the ink colour while
   everything around it steps back. */
.rc-commerce .woocommerce-Price-amount {
	font-variant-numeric: tabular-nums;
	color: var(--rc-ink);
	white-space: nowrap;
}
.rc-commerce .woocommerce-Price-currencySymbol {
	font-size: 0.85em;
	color: var(--rc-ink-soft);
}

/* --------------------------------------------------------------------------
   4. Cart
   -------------------------------------------------------------------------- */
.rc-commerce-page--cart .rc-commerce .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 22rem;
	gap: var(--rc-space-lg);
	align-items: start;
}
.rc-commerce-page--cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.rc-commerce-page--cart .woocommerce-cart-form { grid-column: 1; }
.rc-commerce-page--cart .cart-collaterals { grid-column: 2; }

.rc-commerce .shop_table.cart thead th {
	padding-bottom: var(--rc-space-2xs);
	font-size: var(--rc-size-label);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-earth);
	border-bottom-color: var(--rc-rule-strong);
}
.rc-commerce .shop_table.cart thead th:lang(si) { letter-spacing: normal; text-transform: none; }

.rc-commerce .cart_item > td { border-bottom-color: var(--rc-rule); }

/* A square is the one crop that reads as a catalogue of objects rather than a
   list of rows, so the cell is locked to 1:1 and the photograph fills it. */
.rc-commerce .product-thumbnail {
	width: 7rem;
	padding-right: var(--rc-space-sm);
}
.rc-commerce .product-thumbnail a { border: 0; display: block; }
.rc-commerce .product-thumbnail img {
	display: block;
	width: 6rem;
	max-width: none;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
	border-radius: var(--rc-radius-none);
}

.rc-commerce .product-name a {
	font-family: var(--rc-font-display);
	font-size: var(--rc-size-h3);
	line-height: var(--rc-leading-tight);
	color: var(--rc-ink);
	border: 0;
}
.rc-commerce .product-name a:hover,
.rc-commerce .product-name a:focus-visible { color: var(--rc-terracotta); }

.rc-commerce .product-name .variation {
	margin: var(--rc-space-3xs) 0 0;
	font-size: var(--rc-size-small);
	color: var(--rc-ink-soft);
}
.rc-commerce .product-name .variation dt,
.rc-commerce .product-name .variation dd {
	display: inline;
	margin: 0;
}
.rc-commerce .product-name .variation dd::after { content: ""; display: block; }

.rc-commerce .product-price,
.rc-commerce .product-subtotal { white-space: nowrap; }
.rc-commerce .product-subtotal { font-weight: var(--rc-weight-label); }

/* --- Remove ------------------------------------------------------------- */
.rc-commerce .product-remove { width: 2.5rem; }
.rc-commerce a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border: var(--rc-hairline) solid var(--rc-rule);
	border-radius: var(--rc-radius-none);
	font-size: var(--rc-size-small);
	line-height: 1;
	color: var(--rc-ink-soft);
	text-decoration: none;
	transition: border-color var(--rc-duration-fast) var(--rc-ease),
	            color var(--rc-duration-fast) var(--rc-ease);
}
.rc-commerce a.remove:hover,
.rc-commerce a.remove:focus-visible {
	border-color: var(--rc-terracotta);
	color: var(--rc-terracotta);
}

/* --- Quantity -----------------------------------------------------------
   commerce.js puts a minus and a plus either side of WooCommerce's number
   input. The spinners the browser draws are removed in the same breath, so
   there is one way to change a quantity rather than two sitting on top of
   each other. */
.rc-commerce .quantity {
	display: inline-flex;
	align-items: stretch;
	border: var(--rc-hairline) solid var(--rc-rule);
	border-radius: var(--rc-radius-none);
	background: var(--rc-cream-light);
}
.rc-commerce .quantity .qty {
	width: 3.25rem;
	padding: 0.6rem 0;
	text-align: center;
	background: transparent;
	border: 0;
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
}
.rc-commerce .quantity .qty::-webkit-outer-spin-button,
.rc-commerce .quantity .qty::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}
.rc-commerce .quantity .qty:focus-visible { border: 0; outline: none; }

.rc-qty__step {
	width: 2.25rem;
	padding: 0;
	background: transparent;
	border: 0;
	font-size: var(--rc-size-body);
	line-height: 1;
	color: var(--rc-ink-soft);
	cursor: pointer;
	transition: color var(--rc-duration-fast) var(--rc-ease),
	            background-color var(--rc-duration-fast) var(--rc-ease);
}
.rc-qty__step:hover,
.rc-qty__step:focus-visible { color: var(--rc-cream-light); background: var(--rc-terracotta); }
.rc-qty__step:disabled { opacity: 0.35; cursor: not-allowed; }
.rc-qty__step:disabled:hover { color: var(--rc-ink-soft); background: transparent; }

/* --- Actions row and coupon --------------------------------------------- */
.rc-commerce td.actions {
	padding: var(--rc-space-md) 0 0;
	border-bottom: 0;
}
.rc-commerce td.actions::after { content: ""; display: table; clear: both; }

.rc-commerce .coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--rc-space-2xs);
	float: left;
	max-width: 30rem;
}
.rc-commerce .coupon label { display: none; }
.rc-commerce .coupon .input-text {
	width: auto;
	min-width: 14rem;
	flex: 1 1 14rem;
}
.rc-commerce .coupon .button { flex: 0 0 auto; padding-inline: var(--rc-space-sm); }

.rc-commerce td.actions > .button[name="update_cart"] { float: right; }

/* --- Totals -------------------------------------------------------------- */
.rc-commerce .cart_totals {
	padding: var(--rc-space-md);
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
	border-top: 3px solid var(--rc-gold);
	border-radius: var(--rc-radius-none);
}
.rc-commerce .cart_totals > h2 {
	margin-bottom: var(--rc-space-sm);
	font-size: var(--rc-size-h3);
}
.rc-commerce .cart_totals th {
	width: 45%;
	font-size: var(--rc-size-label-lg);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-ink-soft);
}
.rc-commerce .cart_totals th:lang(si) { letter-spacing: normal; text-transform: none; }
.rc-commerce .cart_totals td { text-align: right; }
.rc-commerce .cart_totals .order-total th,
.rc-commerce .cart_totals .order-total td { border-bottom: 0; }
.rc-commerce .cart_totals .order-total .woocommerce-Price-amount {
	font-size: var(--rc-size-lead);
	color: var(--rc-accent-ink);
}

.rc-commerce .wc-proceed-to-checkout { margin-top: var(--rc-space-sm); }
.rc-commerce .wc-proceed-to-checkout .checkout-button { width: 100%; }

.rc-commerce .cart-empty,
.rc-commerce .return-to-shop { text-align: center; }
.rc-commerce .return-to-shop { margin-top: var(--rc-space-md); }

/* --------------------------------------------------------------------------
   5. Checkout
   -------------------------------------------------------------------------- */
.rc-commerce-page--checkout .woocommerce-form-coupon-toggle { margin-bottom: var(--rc-space-md); }

.rc-commerce .checkout_coupon {
	margin: 0 0 var(--rc-space-md);
	padding: var(--rc-space-md);
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--rc-space-sm);
}
.rc-commerce .checkout_coupon .form-row { margin: 0; flex: 1 1 14rem; }
.rc-commerce .checkout_coupon p:first-child { flex: 1 1 100%; margin: 0; }

/* The billing column and the order review stand side by side. WooCommerce
   prints the review heading as a sibling of the review itself, so both are
   placed into the second column by hand rather than wrapped. */
.rc-commerce form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: var(--rc-space-lg);
	align-items: start;
}
.rc-commerce form.checkout > #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.rc-commerce form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
.rc-commerce form.checkout > #order_review { grid-column: 2; grid-row: 2; }
.rc-commerce form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }

/* Inside the billing column the fields run one under another; halving them
   again inside a half-width column leaves nothing legible. */
.rc-commerce #customer_details.col2-set,
.rc-commerce #customer_details > .col-1,
.rc-commerce #customer_details > .col-2 {
	width: 100%;
	float: none;
	display: block;
}
.rc-commerce #customer_details > .col-2 { margin-top: var(--rc-space-md); }

.rc-commerce .woocommerce-billing-fields__field-wrapper,
.rc-commerce .woocommerce-shipping-fields__field-wrapper,
.rc-commerce .woocommerce-additional-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--rc-space-sm);
}
.rc-commerce .form-row { grid-column: 1 / -1; }
.rc-commerce .rc-field--half { grid-column: span 1; }

.rc-commerce .woocommerce-billing-fields > h3,
.rc-commerce .woocommerce-shipping-fields > h3,
.rc-commerce .woocommerce-additional-fields > h3 {
	padding-bottom: var(--rc-space-2xs);
	border-bottom: var(--rc-hairline) solid var(--rc-rule);
}

.rc-commerce .woocommerce-shipping-fields h3 label,
.rc-commerce .woocommerce-account-fields label.checkbox {
	display: inline-flex;
	align-items: center;
	gap: var(--rc-space-2xs);
	margin: 0;
	letter-spacing: normal;
	text-transform: none;
	font-size: var(--rc-size-body);
	font-family: var(--rc-font-display);
	color: var(--rc-ink);
}

/* --- Order review -------------------------------------------------------- */
.rc-commerce #order_review {
	padding: var(--rc-space-md);
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
	border-top: 3px solid var(--rc-gold);
}

.rc-commerce .woocommerce-checkout-review-order-table th,
.rc-commerce .woocommerce-checkout-review-order-table td { padding-inline: 0; }
.rc-commerce .woocommerce-checkout-review-order-table thead th {
	font-size: var(--rc-size-label);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-earth);
}
.rc-commerce .woocommerce-checkout-review-order-table thead th:lang(si) { letter-spacing: normal; text-transform: none; }
.rc-commerce .woocommerce-checkout-review-order-table .product-name {
	font-size: var(--rc-size-small);
	line-height: var(--rc-leading-tight);
}
.rc-commerce .woocommerce-checkout-review-order-table .product-name a {
	font-family: var(--rc-font-body);
	font-size: var(--rc-size-small);
}
.rc-commerce .woocommerce-checkout-review-order-table .product-quantity {
	display: inline;
	font-weight: var(--rc-weight-body);
	color: var(--rc-ink-soft);
}
.rc-commerce .woocommerce-checkout-review-order-table .product-total,
.rc-commerce .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
.rc-commerce .woocommerce-checkout-review-order-table tfoot th {
	font-size: var(--rc-size-label-lg);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-ink-soft);
}
.rc-commerce .woocommerce-checkout-review-order-table tfoot th:lang(si) { letter-spacing: normal; text-transform: none; }
.rc-commerce .woocommerce-checkout-review-order-table .order-total th,
.rc-commerce .woocommerce-checkout-review-order-table .order-total td { border-bottom: 0; }
.rc-commerce .woocommerce-checkout-review-order-table .order-total .woocommerce-Price-amount {
	font-size: var(--rc-size-lead);
	color: var(--rc-accent-ink);
}

/* --- Payment methods ------------------------------------------------------
   A real radio, sized up and recoloured through accent-color, rather than a
   drawn circle: the control stays the platform's own, so it keeps its focus
   ring and its keyboard behaviour. */
.rc-commerce .wc_payment_methods {
	list-style: none;
	margin: var(--rc-space-md) 0 0;
	padding: 0;
	border-top: var(--rc-hairline) solid var(--rc-rule);
}
.rc-commerce .wc_payment_method {
	padding: var(--rc-space-sm) 0;
	border-bottom: var(--rc-hairline) solid var(--rc-rule);
}
.rc-commerce .wc_payment_method > input[type="radio"] {
	width: 1.05rem;
	height: 1.05rem;
	margin: 0 var(--rc-space-2xs) 0 0;
	padding: 0;
	vertical-align: -2px;
	accent-color: var(--rc-forest);
	appearance: auto;
	border: 0;
	background: transparent;
}
.rc-commerce .wc_payment_method > label {
	display: inline;
	margin: 0;
	font-family: var(--rc-font-display);
	font-size: var(--rc-size-body);
	font-weight: var(--rc-weight-display);
	letter-spacing: normal;
	text-transform: none;
	color: var(--rc-ink);
	cursor: pointer;
}
.rc-commerce .wc_payment_method label img {
	display: inline-block;
	max-height: 1.5rem;
	width: auto;
	margin-left: var(--rc-space-2xs);
	vertical-align: middle;
}
.rc-commerce .payment_box {
	margin: var(--rc-space-xs) 0 0 1.65rem;
	padding: var(--rc-space-sm);
	background: var(--rc-cream);
	border-left: 3px solid var(--rc-gold);
	font-size: var(--rc-size-small);
	color: var(--rc-ink-soft);
}
.rc-commerce .payment_box p:last-child { margin-bottom: 0; }

.rc-commerce .woocommerce-terms-and-conditions-wrapper { margin-top: var(--rc-space-sm); }
.rc-commerce .place-order { margin-top: var(--rc-space-md); }
.rc-commerce #place_order { width: 100%; }

.rc-commerce .woocommerce-privacy-policy-text {
	font-size: var(--rc-size-small);
	color: var(--rc-ink-soft);
}

.rc-commerce .blockUI.blockOverlay { background: var(--rc-scrim) !important; }

/* --- Order received ------------------------------------------------------ */
.rc-commerce .woocommerce-order-overview {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--rc-space-md);
	margin: 0 0 var(--rc-space-md);
	padding: var(--rc-space-md);
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
	border-top: 3px solid var(--rc-gold);
}
.rc-commerce .woocommerce-order-overview li {
	font-size: var(--rc-size-label);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-earth);
}
.rc-commerce .woocommerce-order-overview li:lang(si) { letter-spacing: normal; text-transform: none; }
.rc-commerce .woocommerce-order-overview strong {
	display: block;
	margin-top: var(--rc-space-3xs);
	font-family: var(--rc-font-display);
	font-size: var(--rc-size-h3);
	font-weight: var(--rc-weight-display);
	letter-spacing: normal;
	text-transform: none;
	color: var(--rc-ink);
}

/* --------------------------------------------------------------------------
   6. My account
   -------------------------------------------------------------------------- */
/* Signed in: a dashboard with the navigation held to the left. Signed out:
   the login and register forms side by side. Both are the same two-column
   figure, so the page does not change shape when someone signs in. */
.rc-commerce-page--account .woocommerce {
	display: grid;
	grid-template-columns: 16rem minmax(0, 1fr);
	gap: var(--rc-space-lg);
	align-items: start;
}
.rc-commerce-page--account .woocommerce-notices-wrapper,
.rc-commerce-page--account #customer_login,
.rc-commerce-page--account .woocommerce-form-login,
.rc-commerce-page--account .woocommerce-ResetPassword,
.rc-commerce-page--account .woocommerce-form-register { grid-column: 1 / -1; }

/* The dashboard greeting is written out once per language, because a
   sentence with links inside it cannot be swapped a node at a time. The
   document says which one is being read. */
.rc-commerce .rc-account-intro {
	max-width: var(--rc-measure);
	margin: 0 0 var(--rc-space-xs);
	font-size: var(--rc-size-body);
	color: var(--rc-ink-soft);
}
.rc-commerce .rc-account-intro strong { color: var(--rc-ink); font-weight: var(--rc-weight-label); }
html[lang="si"] .rc-commerce .rc-account-intro[lang="en"],
html:not([lang="si"]) .rc-commerce .rc-account-intro[lang="si"] { display: none; }

.rc-commerce .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: var(--rc-hairline) solid var(--rc-rule);
}
.rc-commerce .woocommerce-MyAccount-navigation li { border-bottom: var(--rc-hairline) solid var(--rc-rule); }
.rc-commerce .woocommerce-MyAccount-navigation a {
	display: block;
	padding: var(--rc-space-xs) 0;
	border: 0;
	font-size: var(--rc-size-label-lg);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-ink-soft);
	transition: color var(--rc-duration-fast) var(--rc-ease);
}
.rc-commerce .woocommerce-MyAccount-navigation a:lang(si) { letter-spacing: normal; text-transform: none; }
.rc-commerce .woocommerce-MyAccount-navigation a:hover,
.rc-commerce .woocommerce-MyAccount-navigation a:focus-visible { color: var(--rc-terracotta); }
.rc-commerce .woocommerce-MyAccount-navigation-link.is-active a {
	color: var(--rc-forest);
	box-shadow: inset 3px 0 0 var(--rc-terracotta);
	padding-left: var(--rc-space-xs);
}

.rc-commerce .woocommerce-MyAccount-content {
	min-width: 0;
	position: relative;
	transition: opacity var(--rc-duration-fast) var(--rc-ease);
}

/* The panel fetches the next section instead of reloading the page, so it
   has to be able to say it is working. A hairline of terracotta travelling
   across its top edge says it without moving anything: every word under it
   stays exactly where the reader left it, which is the whole point. */
.rc-commerce .woocommerce-MyAccount-content.is-busy { opacity: 0.55; }
.rc-commerce .woocommerce-MyAccount-content.is-busy::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 2px;
	background-image: linear-gradient(90deg, transparent, var(--rc-terracotta), transparent);
	background-repeat: no-repeat;
	background-size: 40% 100%;
	animation: rc-account-wait var(--rc-duration-slow) linear infinite;
}

@keyframes rc-account-wait {
	from { background-position: -60% 0; }
	to { background-position: 160% 0; }
}

/* Still a visible answer, with nothing travelling across the screen. */
@media (prefers-reduced-motion: reduce) {
	.rc-commerce .woocommerce-MyAccount-content.is-busy::before {
		animation: none;
		background-image: none;
		background-color: var(--rc-rule-accent);
	}
}

/* The panel is focused in code so that a screen reader lands on the words
   that changed. That is not somebody reaching for the keyboard, so it is
   not given a focus ring; a visitor who tabs to it still gets one. */
.rc-commerce .woocommerce-MyAccount-content:focus:not(:focus-visible) { outline: none; }

/* The two account forms. `.col-1` / `.col-2` are WooCommerce's own names for
   login and register, shared with the checkout, so they are scoped to the
   login block to keep the two apart. */
.rc-commerce #customer_login {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--rc-space-lg);
	align-items: start;
}
.rc-commerce #customer_login > .col-1,
.rc-commerce #customer_login > .col-2 { width: 100%; float: none; }

.rc-commerce .woocommerce-form {
	padding: var(--rc-space-md);
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
	border-top: 3px solid var(--rc-gold);
}
.rc-commerce .woocommerce-form-login__rememberme,
.rc-commerce .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: var(--rc-space-2xs);
	margin: 0;
	letter-spacing: normal;
	text-transform: none;
	font-size: var(--rc-size-small);
	color: var(--rc-ink-soft);
}
.rc-commerce input[type="checkbox"],
.rc-commerce input[type="radio"] {
	width: 1rem;
	height: 1rem;
	margin: 0;
	padding: 0;
	accent-color: var(--rc-forest);
	appearance: auto;
	border: 0;
	background: transparent;
	flex: 0 0 auto;
}
.rc-commerce .woocommerce-LostPassword { margin: var(--rc-space-sm) 0 0; font-size: var(--rc-size-small); }

.rc-commerce .woocommerce-orders-table__cell-order-actions { text-align: right; }
.rc-commerce .woocommerce-orders-table__cell-order-actions .button { padding: 0.6rem var(--rc-space-sm); }

.rc-commerce .woocommerce-Address {
	padding: var(--rc-space-md);
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
}
.rc-commerce .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--rc-space-md);
}
.rc-commerce .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--rc-space-2xs);
}
.rc-commerce .woocommerce-Address address {
	font-style: normal;
	font-size: var(--rc-size-small);
	line-height: var(--rc-leading-body);
	color: var(--rc-ink-soft);
}

.rc-commerce .woocommerce-pagination ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--rc-space-2xs);
	margin: var(--rc-space-md) 0 0;
	padding: 0;
}
.rc-commerce .woocommerce-pagination a,
.rc-commerce .woocommerce-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	border: var(--rc-hairline) solid var(--rc-rule);
	font-size: var(--rc-size-small);
	color: var(--rc-ink-soft);
}
.rc-commerce .woocommerce-pagination .current {
	border-color: var(--rc-forest);
	background: var(--rc-forest);
	color: var(--rc-on-forest);
}

/* --------------------------------------------------------------------------
   7. Wishlist and compare — the shared shell
   -------------------------------------------------------------------------- */
.rc-list__state {
	font-size: var(--rc-size-small);
	color: var(--rc-ink-soft);
}

.rc-list__empty {
	display: grid;
	justify-items: center;
	gap: var(--rc-space-md);
	padding-block: var(--rc-space-xl);
	text-align: center;
}
.rc-list__empty-text {
	max-width: var(--rc-measure-narrow);
	margin: 0;
	font-size: var(--rc-size-lead);
	color: var(--rc-ink-soft);
}

.rc-list__foot {
	display: flex;
	justify-content: flex-end;
	margin-top: var(--rc-space-md);
	padding-top: var(--rc-space-sm);
	border-top: var(--rc-hairline) solid var(--rc-rule);
}
.rc-list__clear { padding: 0; }

/* The saved grid is the shop's own card, three across — a wishlist is a short
   list read closely, not a catalogue skimmed four at a time. */
.rc-grid--saved { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* The one action a saved card needs is taking it back off the list, so it
   stands in the corner of the photograph rather than behind a hover tray. */
.rc-card__drop {
	position: absolute;
	top: var(--rc-space-2xs);
	right: var(--rc-space-2xs);
	z-index: var(--rc-z-content);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	background: var(--rc-cream-light);
	border: var(--rc-hairline) solid var(--rc-rule);
	font-size: var(--rc-size-body);
	line-height: 1;
	color: var(--rc-ink-soft);
	transition: background-color var(--rc-duration-fast) var(--rc-ease),
	            border-color var(--rc-duration-fast) var(--rc-ease),
	            color var(--rc-duration-fast) var(--rc-ease);
}
.rc-card__drop:hover,
.rc-card__drop:focus-visible {
	background: var(--rc-terracotta);
	border-color: var(--rc-terracotta);
	color: var(--rc-cream-light);
}

/* --------------------------------------------------------------------------
   8. Compare table
   -------------------------------------------------------------------------- */
.rc-compare { overflow-x: auto; }

.rc-compare__table {
	width: 100%;
	min-width: 38rem;
	border-collapse: collapse;
	border-spacing: 0;
}

.rc-compare__corner { width: 10rem; }

.rc-compare__head,
.rc-compare__corner {
	padding: 0 var(--rc-space-sm) var(--rc-space-md);
	text-align: left;
	vertical-align: bottom;
	position: relative;
}

.rc-compare__shot { display: block; border: 0; }
.rc-compare__img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
}

.rc-compare__name {
	display: block;
	margin-top: var(--rc-space-xs);
	font-family: var(--rc-font-display);
	font-weight: var(--rc-weight-display);
	font-size: var(--rc-size-h3);
	line-height: var(--rc-leading-tight);
	color: var(--rc-ink);
	border: 0;
}
.rc-compare__name:hover,
.rc-compare__name:focus-visible { color: var(--rc-terracotta); }

.rc-compare__drop {
	position: absolute;
	top: var(--rc-space-2xs);
	right: var(--rc-space-sm);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	background: var(--rc-cream-light);
	border: var(--rc-hairline) solid var(--rc-rule);
	font-size: var(--rc-size-small);
	line-height: 1;
	color: var(--rc-ink-soft);
	transition: background-color var(--rc-duration-fast) var(--rc-ease),
	            border-color var(--rc-duration-fast) var(--rc-ease),
	            color var(--rc-duration-fast) var(--rc-ease);
}
.rc-compare__drop:hover,
.rc-compare__drop:focus-visible {
	background: var(--rc-terracotta);
	border-color: var(--rc-terracotta);
	color: var(--rc-cream-light);
}

.rc-compare__label,
.rc-compare__cell {
	padding: var(--rc-space-sm);
	text-align: left;
	vertical-align: middle;
	border-top: var(--rc-hairline) solid var(--rc-rule);
}

.rc-compare__label {
	font-size: var(--rc-size-label);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-earth);
	padding-left: 0;
}
.rc-compare__label:lang(si) { letter-spacing: normal; text-transform: none; }

.rc-compare__cell {
	font-size: var(--rc-size-small);
	color: var(--rc-ink);
}
.rc-compare__none { color: var(--rc-ink-soft); }

/* The price row carries the one number the table exists to put beside itself,
   so it is set at lead size and the row is marked with the gold hairline the
   theme uses wherever something is being singled out. */
.rc-compare__table tr:nth-child(2) .rc-compare__cell { border-top-color: var(--rc-rule-strong); }
.rc-compare__table tr:nth-child(2) .rc-compare__cell .woocommerce-Price-amount { font-size: var(--rc-size-lead); }

.rc-compare__table tbody tr:last-child .rc-compare__cell { padding-top: var(--rc-space-md); }
.rc-compare__table .rc-btn { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   9. Narrower screens. Each layout gives up its second column before anything
      inside it has to shrink past the point of being readable.
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.rc-commerce-page--cart .rc-commerce .woocommerce,
	.rc-commerce form.checkout,
	.rc-commerce-page--account .woocommerce {
		grid-template-columns: minmax(0, 1fr);
	}
	.rc-commerce-page--cart .woocommerce-cart-form,
	.rc-commerce-page--cart .cart-collaterals,
	.rc-commerce form.checkout > #customer_details,
	.rc-commerce form.checkout > #order_review_heading,
	.rc-commerce form.checkout > #order_review {
		grid-column: 1;
		grid-row: auto;
	}
	.rc-commerce-page--account .woocommerce-MyAccount-navigation,
	.rc-commerce-page--account .woocommerce-MyAccount-content { grid-column: 1; }

	.rc-grid--saved { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.rc-commerce .woocommerce-billing-fields__field-wrapper,
	.rc-commerce .woocommerce-shipping-fields__field-wrapper,
	.rc-commerce .woocommerce-additional-fields__field-wrapper,
	.rc-commerce #customer_login,
	.rc-commerce .woocommerce-Addresses {
		grid-template-columns: minmax(0, 1fr);
	}
	.rc-commerce .rc-field--half { grid-column: 1 / -1; }

	/* The account navigation becomes a row of links above the panel rather
	   than a column squeezed beside it. */
	.rc-commerce .woocommerce-MyAccount-navigation ul {
		display: flex;
		flex-wrap: wrap;
		gap: 0 var(--rc-space-sm);
		border-bottom: var(--rc-hairline) solid var(--rc-rule);
	}
	.rc-commerce .woocommerce-MyAccount-navigation li { border-bottom: 0; }
	.rc-commerce .woocommerce-MyAccount-navigation-link.is-active a {
		box-shadow: inset 0 -3px 0 var(--rc-terracotta);
		padding-left: 0;
	}
}

@media (max-width: 620px) {
	.rc-page-hero { padding-block: var(--rc-space-lg) var(--rc-space-md); }
	.rc-commerce { padding-block: var(--rc-space-lg) var(--rc-space-xl); }

	/* The cart stops being a table and becomes one block per piece. The
	   headings each cell used to sit under are printed from its own
	   data-title, which is why the thead above can be taken out of the
	   reading order entirely rather than left to wrap. */
	.rc-commerce .shop_table.cart thead {
		position: absolute;
		width: 1px; height: 1px;
		margin: -1px; padding: 0;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.rc-commerce .shop_table.cart,
	.rc-commerce .shop_table.cart tbody,
	.rc-commerce .cart_item,
	.rc-commerce .cart_item > td,
	.rc-commerce td.actions { display: block; width: auto; }

	.rc-commerce .cart_item {
		position: relative;
		padding: var(--rc-space-sm) 0;
		border-bottom: var(--rc-hairline) solid var(--rc-rule);
	}
	.rc-commerce .cart_item > td {
		padding: var(--rc-space-3xs) 0;
		border-bottom: 0;
		text-align: left;
	}
	.rc-commerce .cart_item > td[data-title]::before {
		content: attr(data-title);
		display: block;
		font-size: var(--rc-size-label);
		font-weight: var(--rc-weight-label);
		letter-spacing: var(--rc-track-label);
		text-transform: uppercase;
		color: var(--rc-earth);
	}
	.rc-commerce .cart_item > .product-thumbnail {
		width: auto;
		padding-right: 0;
		margin-bottom: var(--rc-space-2xs);
	}
	.rc-commerce .cart_item > .product-remove {
		position: absolute;
		top: var(--rc-space-sm);
		right: 0;
		width: auto;
		padding: 0;
	}

	.rc-commerce .coupon { float: none; max-width: none; }
	.rc-commerce td.actions > .button[name="update_cart"] {
		float: none;
		width: 100%;
		margin-top: var(--rc-space-sm);
	}

	.rc-grid--saved { grid-template-columns: minmax(0, 1fr); }

	.rc-compare__table { min-width: 30rem; }
	.rc-compare__corner { width: 7rem; }
}
