/**
 * Brand styling for WooCommerce's block Cart, Checkout and order confirmation.
 *
 * Same tokens as the shop cards and the bag drawer: charcoal ink, orange
 * action, warm off-white surfaces, 10px buttons, 12–24px panels. Selectors are
 * prefixed with `html body.…` so they outrank the site's older Customizer
 * rules without !important. Fonts are inherited from the site.
 */

html body.woocommerce-cart,
html body.woocommerce-checkout,
html body.woocommerce-order-received {
	--hrc-ink: #1c1c1c;
	--hrc-muted: #62605d;
	--hrc-line: #e3dfda;
	--hrc-soft: #f3f1ee;
	--hrc-soft-2: #e8e4df;
	--hrc-surface: #ffffff;
	--hrc-orange: #ff4500;
	--hrc-action: #d93a00;
	--hrc-ring: rgba(255, 69, 0, 0.18);
	--hrc-radius: 10px;
	--hrc-panel: 20px;
}

/* Page frame --------------------------------------------------------------- */

html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .site-main {
	/* The Customizer's older cart rules use !important for the measure; match it once here. */
	width: calc(100% - 48px) !important;
	max-width: 1140px !important;
	margin: 0 auto !important;
	padding: 48px 0 88px;
	color: var(--hrc-ink);
}

html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .site-main a {
	color: var(--hrc-ink);
}

html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .site-main a:hover,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .site-main a:focus-visible {
	color: var(--hrc-action);
}

/* Page headings (the "Your bag" / "Checkout" intro blocks) */
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .site-main > h1,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .site-main .hrc-cart-heading h1,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .site-main .hrc-checkout-heading h1,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .site-main .entry-content > h1 {
	margin: 0 0 8px;
	color: var(--hrc-ink);
	font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .site-main .hrc-cart-heading p,
html body:is(.woocommerce-cart, .woocommerce-checkout) .site-main .hrc-checkout-heading p,
html body:is(.woocommerce-cart, .woocommerce-checkout) .site-main > h1 + p {
	margin: 0 0 32px;
	color: var(--hrc-muted);
	font-size: 1rem;
}

/* An empty bag says so itself; the intro line would only repeat it. */
html body.woocommerce-cart .site-main:has(.wp-block-woocommerce-empty-cart-block) .hrc-cart-heading p {
	display: none;
}

/* Buttons ------------------------------------------------------------------- */

html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .wc-block-components-button,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .wc-block-components-button:not(.is-link),
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .wc-block-cart__submit-button,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .wc-block-components-checkout-place-order-button,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .wp-block-button__link,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .enventor-empty-button,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .woocommerce-button,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--hrc-radius);
	background: var(--hrc-orange);
	color: #ffffff;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 120ms ease;
}

html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .wc-block-components-button:hover,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .wc-block-components-button:focus-visible,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .wc-block-components-button:not(.is-link):hover,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .wc-block-cart__submit-button:hover,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .wc-block-components-checkout-place-order-button:hover,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .wp-block-button__link:hover,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .enventor-empty-button:hover,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .enventor-empty-button:focus-visible,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .woocommerce-button:hover,
html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .button:hover {
	background: var(--hrc-action);
	color: #ffffff;
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-button:disabled,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-button[aria-disabled="true"] {
	background: var(--hrc-soft-2);
	color: var(--hrc-muted);
	opacity: 1;
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-button .wc-block-components-button__text {
	font: inherit;
}

/* Secondary / text buttons stay quiet */
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-button.is-link,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-checkout-return-to-cart-button,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon__button {
	min-height: 0;
	padding: 0;
	background: transparent;
	color: var(--hrc-ink);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-button.is-link:hover,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-checkout-return-to-cart-button:hover {
	background: transparent;
	color: var(--hrc-action);
}

/* Coupon "Apply" is a compact primary button */
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon__button {
	min-height: 48px;
	padding: 0 20px;
	border-radius: var(--hrc-radius);
	background: var(--hrc-ink);
	color: #ffffff;
	text-decoration: none;
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon__button:hover {
	background: #000000;
	color: #ffffff;
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon__button:disabled {
	background: var(--hrc-soft-2);
	color: var(--hrc-muted);
}

/* Inputs -------------------------------------------------------------------- */

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-text-input input:not([type="checkbox"]):not([type="radio"]),
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-select .components-custom-select-control__button,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-select__select,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-combobox .components-combobox-control__input,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-textarea,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon__input input {
	min-height: 52px;
	border: 1px solid var(--hrc-line);
	border-radius: var(--hrc-radius);
	background: var(--hrc-surface);
	color: var(--hrc-ink);
	font: inherit;
	box-shadow: none;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-text-input input:not([type="checkbox"]):not([type="radio"]):focus,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-select .components-custom-select-control__button:focus,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-select__select:focus,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-combobox .components-combobox-control__input:focus,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-textarea:focus,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon__input input:focus {
	border-color: var(--hrc-orange);
	outline: 0;
	box-shadow: 0 0 0 3px var(--hrc-ring);
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-text-input.is-active label,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-text-input label,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-select label,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-combobox label {
	color: var(--hrc-muted);
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-text-input.has-error input,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-select.has-error .wc-block-components-select__select {
	border-color: var(--hrc-action);
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-validation-error {
	color: var(--hrc-action);
}

/* Checkbox / radio */
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	width: 22px;
	height: 22px;
	border: 1.5px solid var(--hrc-line);
	border-radius: 6px;
	background: var(--hrc-surface);
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	border-color: var(--hrc-orange);
	background: var(--hrc-orange);
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px var(--hrc-ring);
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	color: #ffffff;
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-radio-control__input {
	border: 1.5px solid var(--hrc-line);
	background: var(--hrc-surface);
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-radio-control__input:checked {
	border-color: var(--hrc-orange);
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-radio-control__input:checked::before {
	background: var(--hrc-orange);
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-radio-control__input:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px var(--hrc-ring);
}

/* Panels: totals / order summary ------------------------------------------- */

html body.woocommerce-cart .wc-block-cart__sidebar,
html body.woocommerce-checkout .wc-block-checkout__sidebar {
	padding: 28px;
	border: 0;
	border-radius: var(--hrc-panel);
	background: var(--hrc-soft);
	color: var(--hrc-ink);
}

html body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary,
html body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-wrapper,
html body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper,
html body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary__content,
html body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	border-color: rgba(28, 28, 28, 0.1);
	background: transparent;
	box-shadow: none;
}

html body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	border: 0;
	padding: 0;
}

html body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title,
html body.woocommerce-cart .wc-block-cart__totals-title {
	padding: 0 0 16px;
	border: 0;
	color: var(--hrc-ink);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-align: left;
}

html body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title-text {
	font: inherit;
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-item,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-footer-item {
	color: var(--hrc-ink);
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-item__description,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-shipping__via,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-product-metadata,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-product-details__name,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-product-details__value {
	color: var(--hrc-muted);
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 1.25rem;
	font-weight: 800;
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-panel__button {
	color: var(--hrc-ink);
	font-weight: 600;
}

html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-chip,
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-chip.is-style-removable {
	border-radius: 999px;
	background: var(--hrc-surface);
	color: var(--hrc-ink);
}

/* Order summary line items (checkout sidebar) */
html body.woocommerce-checkout .wc-block-components-order-summary-item__image > img {
	border-radius: 8px;
	background: var(--hrc-surface);
}

html body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
	border: 0;
	background: var(--hrc-ink);
	color: #ffffff;
	box-shadow: 0 0 0 2px var(--hrc-soft);
}

html body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name {
	color: var(--hrc-ink);
	font-weight: 600;
}

/* The Customizer's older cart rules put !important on the checkout button and
   the totals heading; match it for exactly those two. */
html body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-button {
	min-height: 52px !important;
	border: 0 !important;
	border-radius: var(--hrc-radius) !important;
	background: var(--hrc-orange) !important;
	color: #ffffff !important;
	font-size: 1.05rem !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}

html body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-button:hover,
html body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-button:focus-visible {
	background: var(--hrc-action) !important;
}

html body.woocommerce-cart .wc-block-cart__totals-title {
	font-size: 1.25rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.01em !important;
	text-transform: uppercase !important;
}

/* Cart line items ----------------------------------------------------------- */

html body.woocommerce-cart table.wc-block-cart-items,
html body.woocommerce-cart table.wc-block-cart-items th,
html body.woocommerce-cart table.wc-block-cart-items td {
	border-color: var(--hrc-line);
}

html body.woocommerce-cart .wc-block-cart-items__header {
	color: var(--hrc-muted);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

html body.woocommerce-cart .wc-block-cart-item__image img {
	border-radius: 12px;
	background: var(--hrc-soft);
}

html body.woocommerce-cart .wc-block-components-product-name {
	color: var(--hrc-ink);
	font-size: 1.05rem;
	font-weight: 600;
	text-decoration: none;
}

html body.woocommerce-cart .wc-block-components-product-name:hover {
	color: var(--hrc-action);
}

html body.woocommerce-cart .wc-block-cart-item__prices,
html body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
	color: var(--hrc-ink);
	font-weight: 700;
}

html body.woocommerce-cart .wc-block-components-quantity-selector {
	border: 1px solid var(--hrc-line);
	border-radius: 999px;
	background: var(--hrc-surface);
	box-shadow: none;
}

html body.woocommerce-cart .wc-block-components-quantity-selector::after {
	display: none;
}

html body.woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	color: var(--hrc-ink);
	opacity: 1;
}

html body.woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover,
html body.woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus-visible {
	background: var(--hrc-soft);
	box-shadow: none;
}

html body.woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled {
	color: var(--hrc-line);
}

html body.woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	color: var(--hrc-ink);
	font-weight: 600;
	box-shadow: none;
}

html body.woocommerce-cart .wc-block-cart-item__remove-link {
	color: var(--hrc-muted);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

html body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
	color: var(--hrc-action);
}

/* Shipping rates in the cart totals */
html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__option {
	color: var(--hrc-ink);
}

/* Empty cart ---------------------------------------------------------------- */

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
	padding: 8px 0 0;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .with-empty-cart-icon.wc-block-cart__empty-cart__title {
	margin: 0 0 12px;
	color: var(--hrc-ink);
	font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 700;
	line-height: 1.1;
	text-align: left;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .with-empty-cart-icon.wc-block-cart__empty-cart__title::before {
	display: none;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title svg {
	display: none;
}

html body.woocommerce-cart .enventor-empty-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin: 0 0 8px;
}

html body.woocommerce-cart .enventor-empty-copy {
	flex: 1 1 320px;
	margin: 0;
	color: var(--hrc-muted);
	font-size: 1rem;
}

html body.woocommerce-cart .enventor-empty-button {
	flex: 0 0 auto;
	min-height: 52px;
	padding: 0 28px;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-separator {
	width: 100%;
	height: 1px;
	margin: 40px 0 32px;
	border: 0;
	background: var(--hrc-line);
	opacity: 1;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots::before {
	content: none;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-heading:not(.with-empty-cart-icon) {
	margin: 0 0 24px;
	color: var(--hrc-orange);
	font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
	font-weight: 500;
	line-height: 1.2;
	text-align: left;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
	display: flex;
	flex-direction: column;
	max-width: none;
	margin: 0;
	padding: 24px 24px 24px;
	border: 1px solid var(--hrc-line);
	border-radius: 24px;
	background: var(--hrc-surface);
	text-align: left;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image {
	margin: 0 0 12px;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
	margin: 0 0 4px;
	color: var(--hrc-orange);
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.3;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price {
	margin: 0 0 16px;
	color: var(--hrc-ink);
	font-size: 0.95rem;
	font-weight: 500;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart {
	margin: auto 0 0;
}

html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link {
	width: 100%;
	min-height: 44px;
	font-size: 1rem;
}

/* Checkout steps ------------------------------------------------------------ */

html body.woocommerce-checkout .wc-block-components-checkout-step {
	padding-left: 0;
}

html body.woocommerce-checkout .wc-block-components-checkout-step__title {
	margin: 0 0 6px;
	color: var(--hrc-ink);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.2;
}

html body.woocommerce-checkout .wc-block-components-checkout-step__description {
	color: var(--hrc-muted);
}

html body.woocommerce-checkout .wc-block-components-express-payment-continue-rule,
html body.woocommerce-checkout .wc-block-components-express-payment__title-container {
	color: var(--hrc-muted);
}

html body.woocommerce-checkout .wc-block-components-express-payment-continue-rule::before,
html body.woocommerce-checkout .wc-block-components-express-payment-continue-rule::after {
	border-color: var(--hrc-line);
}

html body.woocommerce-checkout .wc-block-components-express-payment {
	border-color: var(--hrc-line);
	border-radius: 12px;
}

html body.woocommerce-checkout .wc-block-components-express-payment__title::before,
html body.woocommerce-checkout .wc-block-components-express-payment__title::after {
	border-color: var(--hrc-line);
}

/* Ship / Pickup toggle */
html body.woocommerce-checkout .wc-block-checkout__shipping-method-container {
	gap: 12px;
	padding: 0;
	border-radius: 0;
	background: transparent;
}

html body.woocommerce-checkout .wc-block-checkout__shipping-method-option {
	min-height: 64px;
	border: 1.5px solid var(--hrc-line);
	border-radius: 12px;
	background: var(--hrc-surface);
	color: var(--hrc-ink);
	box-shadow: none;
}

html body.woocommerce-checkout .wc-block-checkout__shipping-method-option:hover,
html body.woocommerce-checkout .wc-block-checkout__shipping-method-option:focus-visible {
	border-color: var(--hrc-ink);
	background: var(--hrc-surface);
	color: var(--hrc-ink);
}

html body.woocommerce-checkout .wc-block-checkout__shipping-method-option.wc-block-checkout__shipping-method-option--selected {
	border-color: var(--hrc-orange);
	background: var(--hrc-surface);
	color: var(--hrc-ink);
	box-shadow: 0 0 0 3px var(--hrc-ring);
}

html body.woocommerce-checkout .wc-block-checkout__shipping-method-option .wc-block-checkout__shipping-method-option-title {
	font-weight: 600;
}

html body.woocommerce-checkout .wc-block-checkout__shipping-method-option .wc-block-checkout__shipping-method-option-icon {
	fill: currentColor;
}

/* Address card (saved address) */
html body.woocommerce-checkout .wc-block-components-address-card {
	padding: 16px 20px;
	border: 1px solid var(--hrc-line);
	border-radius: 12px;
	background: var(--hrc-surface);
	color: var(--hrc-ink);
}

html body.woocommerce-checkout .wc-block-components-address-card__edit {
	color: var(--hrc-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Shipping & payment option lists */
html body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked,
html body.woocommerce-checkout .wc-block-components-radio-control-accordion-option,
html body.woocommerce-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control {
	border-color: var(--hrc-line);
	border-radius: 12px;
	background: var(--hrc-surface);
}

html body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option,
html body.woocommerce-checkout .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option {
	border-color: var(--hrc-line);
	color: var(--hrc-ink);
}

html body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted,
html body.woocommerce-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
html body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option:has(input:checked),
html body.woocommerce-checkout .wc-block-components-radio-control-accordion-option:has(> .wc-block-components-radio-control__option input:checked) {
	border-color: var(--hrc-orange);
	box-shadow: inset 0 0 0 1px var(--hrc-orange);
	border-radius: 12px;
}

html body.woocommerce-checkout .wc-block-components-radio-control__label,
html body.woocommerce-checkout .wc-block-components-radio-control__secondary-label {
	color: var(--hrc-ink);
	font-weight: 500;
}

html body.woocommerce-checkout .wc-block-components-radio-control__description,
html body.woocommerce-checkout .wc-block-components-radio-control__secondary-description {
	color: var(--hrc-muted);
}

html body.woocommerce-checkout .wc-block-components-radio-control-accordion-content {
	border-color: var(--hrc-line);
}

/* Stripe's payment element sits inside; keep its frame quiet */
html body.woocommerce-checkout .wc-block-components-payment-method-label,
html body.woocommerce-checkout .wc-block-components-payment-method-label__text {
	color: var(--hrc-ink);
	font-weight: 500;
}

html body.woocommerce-checkout .wc-block-components-payment-method-icons img {
	height: 22px;
}

/* Order note, terms, actions */
html body.woocommerce-checkout .wc-block-checkout__add-note .wc-block-components-checkbox__label {
	color: var(--hrc-ink);
}

html body.woocommerce-checkout .wc-block-checkout__terms {
	color: var(--hrc-muted);
	font-size: 0.9rem;
}

html body.woocommerce-checkout .wc-block-checkout__terms a {
	color: var(--hrc-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

html body.woocommerce-checkout .wc-block-checkout__actions {
	border-top: 1px solid var(--hrc-line);
	padding-top: 24px;
}

html body.woocommerce-checkout .wc-block-checkout__actions_row {
	align-items: center;
	gap: 16px;
}

html body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	width: 100%;
	min-height: 56px;
	font-size: 1.1rem;
}

/* Order confirmation (thank-you) ------------------------------------------ */

html body.woocommerce-order-received .wc-block-order-confirmation-status,
html body.woocommerce-order-received .woocommerce-thankyou-order-received {
	margin: 0 0 24px;
	color: var(--hrc-ink);
	font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
	font-weight: 800;
	line-height: 1.1;
}

html body.woocommerce-order-received .wc-block-order-confirmation-summary,
html body.woocommerce-order-received .woocommerce-order-overview {
	margin: 0 0 32px;
	padding: 24px 28px;
	border: 0;
	border-radius: var(--hrc-panel);
	background: var(--hrc-soft);
	color: var(--hrc-ink);
}

html body.woocommerce-order-received .wc-block-order-confirmation-summary-list,
html body.woocommerce-order-received .woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html body.woocommerce-order-received .wc-block-order-confirmation-summary-list-item,
html body.woocommerce-order-received .woocommerce-order-overview li {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--hrc-muted);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

html body.woocommerce-order-received .wc-block-order-confirmation-summary-list-item__value,
html body.woocommerce-order-received .woocommerce-order-overview strong {
	display: block;
	margin-top: 4px;
	color: var(--hrc-ink);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

html body.woocommerce-order-received .wc-block-order-confirmation-totals__table,
html body.woocommerce-order-received .woocommerce-table--order-details {
	width: 100%;
	border: 0;
	border-collapse: collapse;
}

html body.woocommerce-order-received .wc-block-order-confirmation-totals__table th,
html body.woocommerce-order-received .wc-block-order-confirmation-totals__table td,
html body.woocommerce-order-received .woocommerce-table--order-details th,
html body.woocommerce-order-received .woocommerce-table--order-details td {
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--hrc-line);
	color: var(--hrc-ink);
	text-align: left;
}

html body.woocommerce-order-received .wc-block-order-confirmation-totals__table tfoot th,
html body.woocommerce-order-received .wc-block-order-confirmation-totals__table tfoot td,
html body.woocommerce-order-received .woocommerce-table--order-details tfoot th,
html body.woocommerce-order-received .woocommerce-table--order-details tfoot td {
	border-bottom: 0;
}

html body.woocommerce-order-received .wc-block-order-confirmation-totals__table tfoot tr:last-child th,
html body.woocommerce-order-received .wc-block-order-confirmation-totals__table tfoot tr:last-child td,
html body.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child th,
html body.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td {
	font-size: 1.15rem;
	font-weight: 800;
}

html body.woocommerce-order-received .wc-block-order-confirmation-totals__table td:last-child,
html body.woocommerce-order-received .wc-block-order-confirmation-totals__table th:last-child,
html body.woocommerce-order-received .woocommerce-table--order-details td:last-child,
html body.woocommerce-order-received .woocommerce-table--order-details th:last-child {
	text-align: right;
}

html body.woocommerce-order-received .wc-block-order-confirmation-totals h2,
html body.woocommerce-order-received .wc-block-order-confirmation-shipping-address h2,
html body.woocommerce-order-received .wc-block-order-confirmation-billing-address h2,
html body.woocommerce-order-received .wc-block-order-confirmation-additional-information h2,
html body.woocommerce-order-received .wc-block-order-confirmation-downloads h2,
html body.woocommerce-order-received .woocommerce-order-details__title,
html body.woocommerce-order-received .woocommerce-column__title {
	margin: 32px 0 12px;
	color: var(--hrc-ink);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.2;
}

html body.woocommerce-order-received .wc-block-order-confirmation-shipping-address address,
html body.woocommerce-order-received .wc-block-order-confirmation-billing-address address,
html body.woocommerce-order-received .woocommerce-customer-details address {
	padding: 16px 20px;
	border: 1px solid var(--hrc-line);
	border-radius: 12px;
	background: var(--hrc-surface);
	color: var(--hrc-ink);
	font-style: normal;
	line-height: 1.5;
}

html body.woocommerce-order-received .wc-block-order-confirmation-shipping-wrapper,
html body.woocommerce-order-received .wc-block-order-confirmation-billing-wrapper {
	gap: 24px;
}

/* Single product ------------------------------------------------------------ */

/* WooCommerce gives the gallery's zoom button z-index 99, which floats it
   above the header's open Shop menu (the header sits at z-index 30). It only
   needs to clear the image it sits on. */
html body.single-product.woocommerce-page div.product div.images .woocommerce-product-gallery__trigger,
html body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	z-index: 2;
}

/* Narrow screens ------------------------------------------------------------ */

@media (max-width: 1024px) {
	html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .site-main {
		width: calc(100% - 32px) !important;
		padding: 32px 0 64px;
	}

	html body.woocommerce-cart .wc-block-cart__sidebar,
	html body.woocommerce-checkout .wc-block-checkout__sidebar {
		padding: 20px;
		border-radius: 16px;
	}

	html body.woocommerce-cart .enventor-empty-button {
		width: 100%;
	}

	html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
		padding: 16px;
		border-radius: 16px;
	}
}

@media (max-width: 480px) {
	html body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-order-received) .wc-block-components-button,
	html body:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-text-input input {
		transition: none;
	}
}
