/**
 * WooCommerce templates restyled to the OneRoof design system.
 *
 * Woo's own stylesheet still loads; this file overrides the pieces that carry
 * visual identity — product cards, prices, buttons, notices, cart and checkout.
 */

/* --------------------------------------------------------- product loop --- */

.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: var(--or-card-col);
	gap: var(--or-card-gap);
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

/* Woo emits float/width helper classes for its own column system. */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	text-align: left;
}

/*
 * WooCommerce sizes loop items with percentage widths, including a
 * higher-specificity `[class*="columns-"]` rule in its small-screen stylesheet.
 * The grid above already sizes the cells, so match that specificity and hand
 * width control back to the grid at every breakpoint.
 */
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
	float: none;
	width: auto;
	margin: 0;
	clear: none;
}

.woocommerce ul.products li.product a img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	margin: 0;
	border-radius: var(--or-radius);
	background: var(--or-surface);
	box-shadow: none;
}

/* The badge is absolutely positioned against the card. */
.woocommerce ul.products li.product {
	position: relative;
}

.woocommerce ul.products li.product .or-badge {
	z-index: 2;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 11px 2px 0;
	margin: 0;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--or-ink);
}

.woocommerce ul.products li.product .price {
	display: flex;
	align-items: baseline;
	gap: 7px;
	padding: 4px 2px 0;
	margin: 0;
	color: var(--or-ink);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -.01em;
}

.woocommerce ul.products li.product .price del {
	order: 2;
	opacity: 1;
	color: var(--or-muted);
	font-size: 12px;
	font-weight: 400;
	text-decoration: line-through;
}

.woocommerce ul.products li.product .price ins {
	order: 1;
	background: transparent;
	color: var(--or-sale);
	text-decoration: none;
	font-weight: 500;
}

.woocommerce ul.products li.product .star-rating {
	margin: 6px 2px 0;
	font-size: 11px;
	color: var(--or-muted);
}

/*
 * WooCommerce sets `display: inline-block` on the loop button from a selector
 * of the same weight as this one, which beat the flex centring in the button
 * section below — the label sat against the top edge of a 40px pill. Restore
 * it here, and leave the spacing above to `.or-card__cta` so the two margins
 * stop stacking.
 */
.woocommerce ul.products li.product .button {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

/* ------------------------------------------------------------- buttons --- */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	background: transparent;
	color: var(--or-ink);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-shadow: none;
	transition: background .2s var(--or-ease), color .2s var(--or-ease), border-color .2s var(--or-ease);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background: var(--or-ink);
	border-color: var(--or-ink);
	color: var(--or-bg);
}

/* Primary actions (add to cart on single, place order, proceed to checkout). */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce #place_order,
.woocommerce .checkout-button {
	background: var(--or-ink);
	border-color: var(--or-ink);
	color: var(--or-bg);
	min-height: 48px;
	padding: 0 26px;
	font-size: 14px;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce #place_order:hover,
.woocommerce .checkout-button:hover {
	background: var(--or-ink);
	color: var(--or-bg);
	opacity: .88;
}

/*
 * Disabled buttons. WooCommerce's own disabled rule carries an extra class
 * (`.alt.disabled`) so it outranks the `.alt` rule above and paints the button
 * its brand purple — most visible on a variable product before a size is
 * chosen. Match that specificity and keep the state on-palette.
 */
.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt:disabled,
.woocommerce a.button.alt.disabled,
.woocommerce input.button.alt:disabled,
.woocommerce .single_add_to_cart_button.disabled,
.woocommerce .single_add_to_cart_button.wc-variation-selection-needed {
	background: var(--or-surface);
	border-color: var(--or-line);
	color: var(--or-muted);
	opacity: 1;
	cursor: not-allowed;
}

/* Hover must not promise an action the button will not perform. */
.woocommerce button.button.alt.disabled:hover,
.woocommerce button.button.alt:disabled:hover,
.woocommerce a.button.alt.disabled:hover,
.woocommerce .single_add_to_cart_button.disabled:hover,
.woocommerce .single_add_to_cart_button.wc-variation-selection-needed:hover {
	background: var(--or-surface);
	border-color: var(--or-line);
	color: var(--or-muted);
	opacity: 1;
}

/* ------------------------------------------------------------ variations --- */

.woocommerce div.product form.cart .variations {
	width: 100%;
	margin-bottom: 4px;
	border-collapse: separate;
	border-spacing: 0 10px;
}

.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
	padding: 0;
	border: 0;
	background: transparent;
	vertical-align: middle;
	text-transform: none;
}

.woocommerce div.product form.cart .variations th.label {
	width: 1%;
	padding-right: 14px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--or-muted);
	white-space: nowrap;
}

.woocommerce div.product form.cart .variations select {
	width: 100%;
	min-height: 46px;
	padding: 0 38px 0 14px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	background: var(--or-bg);
	font-size: 14px;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--or-muted) 50%), linear-gradient(135deg, var(--or-muted) 50%, transparent 50%);
	background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}

.woocommerce div.product form.cart .reset_variations {
	display: inline-block;
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--or-muted);
}

.woocommerce div.product .woocommerce-variation-price {
	margin-bottom: 10px;
}

.woocommerce div.product .woocommerce-variation-price .price {
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -.02em;
	margin: 0;
}

.woocommerce div.product .woocommerce-variation-availability p {
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--or-muted);
}

.woocommerce div.product .woocommerce-variation-availability .out-of-stock,
.woocommerce div.product .stock.out-of-stock {
	color: var(--or-sale);
}

/* Price range on variable products in the loop, e.g. "৳960 – ৳1,140". */
.woocommerce ul.products li.product .price .from,
.woocommerce div.product p.price .from {
	color: var(--or-muted);
	font-size: .8em;
}

/* ------------------------------------------------------ single product --- */

.woocommerce div.product {
	display: grid;
	gap: clamp(24px, 3vw, 48px);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
}

@media (max-width: 860px) {
	.woocommerce div.product {
		grid-template-columns: minmax(0, 1fr);
	}
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce div.product div.images img {
	border-radius: var(--or-radius);
	background: var(--or-surface);
}

/* The sale badge is absolutely placed over the gallery. */
.woocommerce div.product {
	position: relative;
}

.woocommerce div.product > .or-badge {
	top: 14px;
	left: 14px;
	z-index: 3;
	font-size: 12px;
	padding: 5px 12px;
}

.or-single__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--or-muted);
}

.or-single__signals {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: -6px 0 14px;
	font-size: 13px;
	color: var(--or-muted);
}

.or-single__stock.is-low {
	color: var(--or-sale);
	font-weight: 500;
}

.or-single__trust {
	list-style: none;
	margin: 4px 0 22px;
	padding: 18px 0 0;
	border-top: 1px solid var(--or-line);
	display: grid;
	gap: 14px;
}

.or-single__trust li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.or-single__trust-icon {
	flex: none;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: var(--or-pill);
	background: var(--or-surface);
	font-size: 14px;
}

.or-single__trust li > span:last-child {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.or-single__trust strong {
	font-size: 13.5px;
	font-weight: 500;
}

.or-single__trust li > span:last-child > span {
	font-size: 12.5px;
	color: var(--or-muted);
}

.woocommerce div.product .product_title {
	font-size: clamp(22px, 2.4vw, 32px);
	font-weight: 500;
	letter-spacing: -.03em;
	margin-bottom: 10px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	color: var(--or-ink);
	font-size: 24px;
	font-weight: 500;
	letter-spacing: -.02em;
	margin-bottom: 14px;
}

.woocommerce div.product p.price del {
	opacity: 1;
	color: var(--or-muted);
	font-size: 16px;
	font-weight: 400;
}

.woocommerce div.product p.price ins {
	background: transparent;
	color: var(--or-sale);
	text-decoration: none;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--or-muted);
	font-size: 14px;
	margin-bottom: 18px;
}

.woocommerce div.product form.cart {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}

/*
 * WooCommerce still ships the float-era spacing on the quantity box. The float
 * is inert in this flex row, but the 4px margin is not — it stacked onto the
 * gap above, so the real distance was never the one declared here.
 */
.woocommerce div.product form.cart div.quantity {
	margin: 0;
}

.woocommerce .quantity .qty {
	width: 74px;
	height: 48px;
	padding: 0 10px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	background: var(--or-bg);
	text-align: center;
	font-size: 14px;
}

.woocommerce div.product .product_meta {
	font-size: 12.5px;
	color: var(--or-muted);
	padding-top: 16px;
	border-top: 1px solid var(--or-line);
}

.woocommerce div.product .woocommerce-tabs {
	grid-column: 1 / -1;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
	margin: 0 0 20px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	content: none;
	border: 0;
	box-shadow: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: var(--or-ink);
	border-color: var(--or-ink);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--or-bg);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 16px;
	font-size: 13px;
	font-weight: 500;
	color: var(--or-ink);
}

.woocommerce .related.products,
.woocommerce .upsells.products {
	grid-column: 1 / -1;
	padding-top: var(--or-sec-y);
}

.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
	font-size: var(--or-h2);
	font-weight: 500;
	letter-spacing: -.03em;
	margin-bottom: 18px;
}

/* --------------------------------------------------------------- rating --- */

.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
	color: var(--or-ink);
}

/* ------------------------------------------------------------- notices --- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
.woocommerce p.no-comments {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 14px 18px;
	margin: 0 0 22px;
	border: 1px solid var(--or-line);
	border-top-width: 1px;
	border-radius: var(--or-radius);
	background: var(--or-surface);
	color: var(--or-ink);
	font-size: 13.5px;
	list-style: none;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	position: static;
	color: var(--or-good);
}

.woocommerce-error::before {
	color: var(--or-sale);
}

.woocommerce-message .button,
.woocommerce-info .button {
	margin-left: auto;
}

/* ---------------------------------------------------------------- forms --- */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.select2-container .select2-selection--single {
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-radius-sm);
	background: var(--or-bg);
	font-size: 14px;
	line-height: 1.4;
}

.woocommerce form .form-row label {
	font-size: 12.5px;
	color: var(--or-muted);
	margin-bottom: 5px;
}

/* ----------------------------------------------------------------- cart --- */

.woocommerce table.shop_table {
	border: 1px solid var(--or-line);
	border-radius: var(--or-radius);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	font-size: 14px;
}

.woocommerce table.shop_table th {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--or-muted);
	padding: 14px 16px;
	background: var(--or-surface);
}

.woocommerce table.shop_table td {
	padding: 16px;
	border-top: 1px solid var(--or-line);
}

.woocommerce table.shop_table img {
	width: 62px;
	border-radius: var(--or-radius-sm);
}

.woocommerce .cart-collaterals .cart_totals > h2,
.woocommerce-checkout h3 {
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 14px;
}

.woocommerce #payment {
	border-radius: var(--or-radius);
	background: var(--or-surface);
}

.woocommerce #payment div.payment_box {
	background: var(--or-bg);
	border-radius: var(--or-radius-sm);
	font-size: 13px;
	color: var(--or-muted);
}

.woocommerce #payment div.payment_box::before {
	border-bottom-color: var(--or-bg);
}

.woocommerce #payment ul.payment_methods {
	border-bottom: 1px solid var(--or-line);
}

/* ------------------------------------------------------- archive header --- */

/*
 * The sidebar's first facet starts level with the results toolbar, so this gap
 * is what separates both columns from the page title.
 */
.or-shop .woocommerce-products-header {
	margin-bottom: 18px;
}

.or-shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--or-line);
}

.or-shop__toolbar::before,
.or-shop__toolbar::after {
	content: none;
}

.or-shop__toolbar .woocommerce-result-count {
	margin: 0;
	float: none;
}

.or-shop__toolbar .woocommerce-ordering {
	margin: 0;
	float: none;
}

/* The archive description sits under the title. */
.or-shop .term-description {
	max-width: 62ch;
	font-size: 13.5px;
	color: var(--or-muted);
}

/* Sub-category tiles WooCommerce prints above the products. */
.or-shop ul.products li.product-category a {
	display: block;
	text-align: left;
}

.or-shop ul.products li.product-category img {
	border-radius: var(--or-radius);
}

.or-shop ul.products li.product-category h2 {
	padding: 11px 2px 0;
	font-size: 13.5px;
	font-weight: 500;
}

.or-shop ul.products li.product-category .count {
	color: var(--or-muted);
	font-weight: 400;
	background: transparent;
	padding: 0 0 0 4px;
}

/* ---------------------------------------------------- filter sidebar --- */

.or-shop__layout {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	gap: clamp(24px, 3vw, 44px);
	align-items: start;
}

.or-shop__main {
	min-width: 0;
}

/* Beside a sidebar the cards need more room than the full-width grid gives. */
.or-has-shop-sidebar .woocommerce ul.products,
.or-has-shop-sidebar.woocommerce-page ul.products {
	grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
}

.or-shop__sidebar {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.or-shop__sidebar-head,
.or-shop__filter-toggle {
	display: none;
}

/* Hairlines rather than gaps, so each facet reads as its own section. */
.or-widget-block {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-block: 22px;
}

.or-widget-block:first-of-type {
	padding-top: 0;
}

.or-widget-block + .or-widget-block {
	border-top: 1px solid var(--or-line);
}

.or-widget-block__title {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--or-ink);
}

.or-widget-block ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 13.5px;
}

.or-widget-block ul ul {
	margin-top: 7px;
	padding-left: 12px;
	border-left: 1px solid var(--or-line);
}

.or-widget-block li a {
	color: var(--or-muted);
}

.or-widget-block li a:hover {
	color: var(--or-ink);
}

.or-widget-block li .count {
	color: var(--or-muted);
	font-size: 11.5px;
}

/* Selected category. */
.or-widget-block li.current-cat > a {
	color: var(--or-ink);
	font-weight: 500;
}

/* ---------------------------------------------------------------------------
 * Attribute facets as chips.
 *
 * Colour and Size are short, self-describing values. As a stacked text list
 * they cost one row each — ten sizes filled most of the sidebar — so they wrap
 * as pills instead. The list markup puts the count beside the link rather than
 * inside it, so the `li` is the pill and the link's overlay makes the whole
 * pill clickable.
 * ------------------------------------------------------------------------ */

.or-widget-block .woocommerce-widget-layered-nav-list {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}

.or-widget-block .woocommerce-widget-layered-nav-list__item {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	font-size: 12.5px;
	line-height: 1;
	transition: background .18s var(--or-ease), border-color .18s var(--or-ease);
}

.or-widget-block .woocommerce-widget-layered-nav-list__item a {
	color: var(--or-ink);
}

.or-widget-block .woocommerce-widget-layered-nav-list__item a::after {
	content: '';
	position: absolute;
	inset: 0;
}

.or-widget-block .woocommerce-widget-layered-nav-list__item:hover {
	border-color: var(--or-ink);
	background: var(--or-surface);
}

.or-widget-block .woocommerce-widget-layered-nav-list__item .count {
	color: var(--or-muted);
	font-size: 11px;
}

/* Applied values invert, matching the primary button. */
.or-widget-block .woocommerce-widget-layered-nav-list__item--chosen,
.or-widget-block .woocommerce-widget-layered-nav-list__item.chosen {
	border-color: var(--or-ink);
	background: var(--or-ink);
}

.or-widget-block .woocommerce-widget-layered-nav-list__item--chosen a,
.or-widget-block .woocommerce-widget-layered-nav-list__item--chosen .count,
.or-widget-block .woocommerce-widget-layered-nav-list__item.chosen a,
.or-widget-block .woocommerce-widget-layered-nav-list__item.chosen .count {
	color: var(--or-bg);
}

/* Applied-filter chips. */
.widget_layered_nav_filters ul {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 7px;
}

.widget_layered_nav_filters ul li a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 30px;
	padding: 0 12px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	background: var(--or-surface);
	color: var(--or-ink);
	font-size: 12.5px;
}

.widget_layered_nav_filters ul li a::after {
	content: '✕';
	font-size: 10px;
	color: var(--or-muted);
}

.widget_layered_nav_filters ul li a:hover {
	border-color: var(--or-ink);
}

/* Price slider. */
.or-widget-block .price_slider_wrapper {
	padding-top: 6px;
}

.or-widget-block .ui-slider {
	position: relative;
	height: 4px;
	margin: 6px 8px 18px;
	border-radius: var(--or-pill);
	background: var(--or-line);
}

.or-widget-block .ui-slider .ui-slider-range {
	position: absolute;
	height: 100%;
	border-radius: var(--or-pill);
	background: var(--or-ink);
}

.or-widget-block .ui-slider .ui-slider-handle {
	position: absolute;
	top: -6px;
	width: 16px;
	height: 16px;
	margin-left: -8px;
	border: 2px solid var(--or-ink);
	border-radius: 50%;
	background: var(--or-bg);
	box-shadow: 0 1px 4px rgba(20, 22, 28, .18);
	cursor: grab;
}

.or-widget-block .ui-slider .ui-slider-handle:active {
	cursor: grabbing;
}

.or-widget-block .ui-slider .ui-slider-handle:focus-visible {
	outline: 2px solid var(--or-ink);
	outline-offset: 2px;
}

.or-widget-block .price_slider_amount {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--or-muted);
}

.or-widget-block .price_slider_amount .price_label {
	order: 1;
	flex: 1 1 auto;
}

/* The two amounts are the answer here; the "Price:" prefix is not. */
.or-widget-block .price_slider_amount .price_label .from,
.or-widget-block .price_slider_amount .price_label .to {
	color: var(--or-ink);
	font-weight: 500;
}

.or-widget-block .price_slider_amount .button {
	order: 2;
	min-height: 34px;
	padding: 0 14px;
	font-size: 12.5px;
}

.or-widget-block .price_slider_amount input[type="text"] {
	display: none;
}

@media (max-width: 900px) {
	.or-shop__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.or-has-shop-sidebar .woocommerce ul.products {
		grid-template-columns: var(--or-card-col);
	}

	/* The sidebar becomes a drawer, opened from a button above the grid. */
	.or-shop__filter-toggle {
		display: inline-flex;
		align-self: flex-start;
		margin-bottom: 18px;
	}

	.or-shop__sidebar {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 500;
		width: min(86vw, 320px);
		padding: 18px 20px 28px;
		background: var(--or-bg);
		box-shadow: 0 20px 60px rgba(20, 22, 28, .28);
		overflow-y: auto;
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform .28s var(--or-ease), visibility .28s;
	}

	.or-shop__sidebar.is-open {
		transform: none;
		visibility: visible;
	}

	.or-shop__sidebar-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding-bottom: 6px;
		border-bottom: 1px solid var(--or-line);
		font-size: 15px;
		font-weight: 500;
	}

	.or-shop__filter-close {
		min-width: 40px;
		min-height: 40px;
		border: 0;
		background: transparent;
		color: var(--or-muted);
		font-size: 15px;
		cursor: pointer;
	}

	.or-shop__scrim {
		position: fixed;
		inset: 0;
		z-index: 499;
		background: rgba(16, 18, 24, .4);
		border: 0;
		padding: 0;
	}
}

/* ---------------------------------------------------- breadcrumb + sort --- */

.woocommerce .woocommerce-breadcrumb {
	font-size: 12.5px;
	color: var(--or-muted);
	margin-bottom: 16px;
}

.woocommerce .woocommerce-products-header__title {
	font-size: var(--or-h2);
	font-weight: 500;
	letter-spacing: -.03em;
	margin-bottom: 6px;
}

.woocommerce .woocommerce-result-count {
	font-size: 12.5px;
	color: var(--or-muted);
}

.woocommerce .woocommerce-ordering select {
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	background: var(--or-bg);
	font-size: 13px;
}

.woocommerce nav.woocommerce-pagination ul {
	border: 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
	margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 40px;
	min-height: 40px;
	display: inline-grid;
	place-items: center;
	padding: 0 12px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	font-size: 13px;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--or-ink);
	border-color: var(--or-ink);
	color: var(--or-bg);
}

/* ------------------------------------------------- block cart + checkout --- */

/*
 * WooCommerce 8+ builds the Cart and Checkout pages from blocks, which carry
 * their own class names and ignore the classic selectors above. These rules put
 * the block versions on the same design tokens.
 */

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	max-width: var(--or-max);
	margin-inline: auto;
	padding-inline: var(--or-pad);
	padding-block: var(--or-sec-y);
}

.wc-block-components-title,
.wp-block-woocommerce-cart h1,
.wp-block-woocommerce-checkout h1 {
	font-family: inherit;
	font-weight: 500;
	letter-spacing: -.03em;
	color: var(--or-ink);
}

/* Buttons. */
.wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 26px;
	border: 1px solid var(--or-ink);
	border-radius: var(--or-pill);
	background-color: var(--or-ink);
	font-size: 14px;
	font-weight: 500;
	transition: opacity .2s var(--or-ease);
}

/* The label is a nested span, so the colour has to be set on it too. */
.wc-block-components-button:not(.is-link),
.wc-block-components-button:not(.is-link) .wc-block-components-button__text,
.wc-block-components-button:not(.is-link):hover,
.wc-block-components-button:not(.is-link):hover .wc-block-components-button__text,
.wc-block-components-button:not(.is-link):focus,
.wc-block-components-button:not(.is-link):focus .wc-block-components-button__text {
	color: var(--or-bg);
	text-decoration: none;
}

.wc-block-components-button:not(.is-link):hover {
	opacity: .88;
	background-color: var(--or-ink);
}

.wc-block-components-button.is-link {
	color: var(--or-brand);
}

/* Cart line items. */
.wc-block-cart-items {
	font-size: 14px;
}

.wc-block-cart-items__header {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--or-muted);
	border-bottom: 1px solid var(--or-line);
}

.wc-block-cart-items__row {
	border-bottom: 1px solid var(--or-line);
}

.wc-block-cart-item__image img {
	border-radius: var(--or-radius-sm);
	background: var(--or-surface);
}

/*
 * The anchor-qualified selector is not redundant: the cart block renders inside
 * `.or-entry-content`, whose editorial link rule is a class plus an element and
 * would otherwise paint these product names as underlined body links.
 */
.wc-block-components-product-name,
a.wc-block-components-product-name {
	color: var(--or-ink);
	font-size: 14px;
	text-decoration: none;
}

.wc-block-components-product-name:hover,
a.wc-block-components-product-name:hover {
	color: var(--or-brand);
}

.wc-block-components-product-price__value,
.wc-block-components-totals-item__value {
	font-weight: 500;
	color: var(--or-ink);
}

.wc-block-components-product-metadata,
.wc-block-components-product-details {
	font-size: 12.5px;
	color: var(--or-muted);
}

/* Quantity stepper. */
.wc-block-components-quantity-selector {
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	overflow: hidden;
}

.wc-block-components-quantity-selector::after {
	display: none;
}

.wc-block-components-quantity-selector__input {
	background: transparent;
	font-size: 14px;
	color: var(--or-ink);
}

.wc-block-components-quantity-selector__button {
	color: var(--or-muted);
	background: transparent;
}

.wc-block-components-quantity-selector__button:hover {
	color: var(--or-ink);
}

/* Totals panel. */
.wp-block-woocommerce-cart-order-summary-block,
.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-components-order-summary {
	border-radius: var(--or-radius);
}

.wc-block-components-totals-wrapper {
	border-top: 1px solid var(--or-line);
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -.02em;
}

/* Form fields. */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-combobox input,
.wc-block-components-textarea {
	min-height: 46px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-radius-sm);
	background: var(--or-bg);
	font-size: 14px;
	color: var(--or-ink);
}

.wc-block-components-text-input.is-active label,
.wc-block-components-text-input label {
	color: var(--or-muted);
}

/* Notices. */
.wc-block-components-notice-banner {
	border-radius: var(--or-radius);
	border-width: 1px;
	font-size: 13.5px;
}

/* Payment methods. */
.wc-block-components-radio-control__option {
	font-size: 14px;
}

.wc-block-components-radio-control-accordion-option {
	border-radius: var(--or-radius-sm);
	border-color: var(--or-line);
}

/* ------------------------------------------------- empty cart + grid --- */

/*
 * The empty cart renders a "New in store" grid built from the legacy
 * `wc-block-grid` markup, which is a plain `ul`. Inside `.or-entry-content` the
 * editorial list rule in theme.css (`.or-entry-content ul`) outranks
 * WooCommerce's own `.wc-block-grid__products` layout, so the grid collapsed to
 * a single column and the cards fell back to unstyled links and buttons. Every
 * rule below therefore carries two classes to stay ahead of that rule, and the
 * cards are put on the same tokens as the classic product loop.
 */

.wc-block-cart__empty-cart__title {
	font-size: var(--or-h2);
	font-weight: 500;
	letter-spacing: -.03em;
}

.wp-block-woocommerce-empty-cart-block > h2 {
	margin-top: 1.4em;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -.02em;
}

.wp-block-woocommerce-empty-cart-block > .wp-block-separator {
	max-width: none;
	margin-block: 18px;
	border: 0;
	color: var(--or-line);
}

/*
 * Only the three properties the editorial rule injects are undone here. Column
 * sizing stays with WooCommerce, whose `.has-N-columns` rules carry three
 * classes and would outrank anything this file could reasonably write.
 */
.wc-block-grid .wc-block-grid__products {
	display: flex;
	flex-wrap: wrap;
	gap: normal;
	padding: 0;
	list-style: none;
}

.wc-block-grid .wc-block-grid__product {
	position: relative;
	padding-inline: 8px;
	text-align: left;
	list-style: none;
}

.wc-block-grid .wc-block-grid__product-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.wc-block-grid .wc-block-grid__product-image {
	display: block;
	margin: 0;
}

.wc-block-grid .wc-block-grid__product-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	margin: 0;
	border-radius: var(--or-radius);
	background: var(--or-surface);
}

.wc-block-grid .wc-block-grid__product-title {
	padding: 11px 2px 0;
	margin: 0;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--or-ink);
}

.wc-block-grid .wc-block-grid__product-price {
	display: flex;
	align-items: baseline;
	gap: 7px;
	padding: 4px 2px 0;
	margin: 0;
	color: var(--or-ink);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -.01em;
}

.wc-block-grid .wc-block-grid__product-price del {
	order: 2;
	opacity: 1;
	color: var(--or-muted);
	font-size: 12px;
	font-weight: 400;
	text-decoration: line-through;
}

.wc-block-grid .wc-block-grid__product-price ins {
	order: 1;
	background: transparent;
	color: var(--or-sale);
	text-decoration: none;
	font-weight: 500;
}

.wc-block-grid .wc-block-grid__product-rating {
	padding: 0;
	margin: 0;
}

.wc-block-grid .wc-block-grid__product-rating .star-rating {
	margin: 6px 2px 0;
	font-size: 11px;
	color: var(--or-muted);
}

/*
 * The sale flash is absolutely placed over the image, like `.or-badge` on the
 * classic loop card. WooCommerce pins its own copy to the top right from a
 * two-class rule that loads after this file, so the reset needs a third class.
 */
.wc-block-grid .wc-block-grid__product .wc-block-grid__product-onsale {
	position: absolute;
	top: 10px;
	right: auto;
	left: 10px;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	padding: 3px 9px;
	border: 0;
	border-radius: var(--or-pill);
	background: var(--or-sale);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.5;
}

/*
 * The add-to-cart control is a core button block, so it arrives with the core
 * dark fill and picks up the editorial link underline. Reset it onto the
 * outline button used across the product loop.
 */
.wc-block-grid .wc-block-grid__product .wc-block-grid__product-add-to-cart {
	margin: 10px 2px 0;
}

.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	background: transparent;
	color: var(--or-ink);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: background .2s var(--or-ease), color .2s var(--or-ease), border-color .2s var(--or-ease);
}

.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
	background: var(--or-ink);
	border-color: var(--or-ink);
	color: var(--or-bg);
}

/* Woo marks a pending AJAX add with `loading`, and `added` once it lands. */
.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link.loading {
	opacity: .6;
}

.wc-block-grid .wc-block-grid__product-add-to-cart .added_to_cart {
	display: inline-block;
	margin-left: 10px;
	font-size: 12.5px;
	color: var(--or-muted);
}

/* ------------------------------------------------------------- returns --- */

.or-returns__title {
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 14px;
}

.or-returns__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 44rem;
}

.or-returns__items {
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-radius);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.or-returns__items legend {
	padding: 0 6px;
	font-size: 12.5px;
	color: var(--or-muted);
}

.or-returns__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	cursor: pointer;
}

.or-returns__item strong {
	font-weight: 500;
}

.or-returns__qty {
	display: block;
	font-size: 12.5px;
	color: var(--or-muted);
}

.or-returns__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.or-returns__field label {
	font-size: 12.5px;
	color: var(--or-muted);
}

.or-returns__field select,
.or-returns__field input[type="text"],
.or-returns__field textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-radius-sm);
	background: var(--or-bg);
	font-size: 14px;
}

.or-returns__field textarea {
	min-height: auto;
	resize: vertical;
}

.or-returns__form .or-btn {
	align-self: flex-start;
}

.or-return-status {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 11px;
	border-radius: var(--or-pill);
	background: var(--or-surface);
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

.or-return-status.is-approved,
.or-return-status.is-received {
	background: var(--or-brand-soft);
	color: var(--or-brand);
}

.or-return-status.is-refunded {
	background: rgba(44, 122, 86, .12);
	color: var(--or-good);
}

.or-return-status.is-rejected {
	background: rgba(180, 67, 47, .12);
	color: var(--or-sale);
}

.or-return-note {
	display: block;
	margin-top: 5px;
	font-size: 12.5px;
	color: var(--or-muted);
}

/* ------------------------------------------------------------- account --- */

/*
 * The theme's entry-content link style is meant for editorial copy; WooCommerce
 * shortcodes render inside the same wrapper, so neutralise it there and let the
 * component rules below decide.
 */
:where(.or-entry-content .woocommerce) a {
	color: inherit;
	text-decoration: none;
}

/* An empty notices wrapper must not occupy a grid row. */
.woocommerce-notices-wrapper:empty {
	display: none;
}

/*
 * Navigation beside the panel on desktop, stacked pills on phones.
 *
 * Only signed-in visitors get this two-column grid. Signed out, the same page
 * renders the login/register pair with no navigation, and the first column
 * would squeeze that pair into 210px.
 */
.woocommerce-account.logged-in .woocommerce {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	gap: clamp(24px, 3vw, 48px);
	align-items: start;
}

/*
 * WooCommerce adds clearfix pseudo-elements to .woocommerce. In a grid those
 * become real grid items and push the navigation and panel out of their
 * columns, so switch them off here.
 */
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
	content: none;
}

/* Notices span the full width so nav and content keep their own columns. */
.woocommerce-account.logged-in .woocommerce > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}

@media (max-width: 782px) {
	.woocommerce-account.logged-in .woocommerce {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------ login + register --- */

/*
 * WooCommerce only emits the `col2-set` wrapper once registration is enabled,
 * and sizes the pair with floats. Lay them out side by side on the theme's
 * card, and stack them on phones.
 */
.woocommerce-account:not(.logged-in) #customer_login.col2-set {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 40px);
	align-items: start;
	max-width: 900px;
}

/* The clearfix pseudo-elements would otherwise take the first two grid cells. */
.woocommerce-account:not(.logged-in) #customer_login.col2-set::before,
.woocommerce-account:not(.logged-in) #customer_login.col2-set::after {
	content: none;
}

.woocommerce-account:not(.logged-in) #customer_login.col2-set > .col-1,
.woocommerce-account:not(.logged-in) #customer_login.col2-set > .col-2 {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 782px) {
	.woocommerce-account:not(.logged-in) #customer_login.col2-set {
		grid-template-columns: minmax(0, 1fr);
	}
}

.woocommerce-account:not(.logged-in) #customer_login h2 {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -.02em;
}

.woocommerce-account:not(.logged-in) #customer_login form.woocommerce-form {
	margin: 0;
	padding: 26px 28px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-radius);
}

/* The privacy notice is body copy, not a form control. */
.woocommerce-account:not(.logged-in) #customer_login .woocommerce-privacy-policy-text p {
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--or-muted);
}

.woocommerce-account .woocommerce-MyAccount-content {
	min-width: 0;
	font-size: 14px;
}

.woocommerce-account .woocommerce-MyAccount-content > p {
	color: var(--or-muted);
	line-height: 1.6;
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.or-btn) {
	color: var(--or-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: var(--or-line);
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.or-btn):hover {
	color: var(--or-brand);
	text-decoration-color: currentColor;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex-wrap: wrap;
}

@media (max-width: 782px) {
	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		gap: 8px;
	}
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	justify-content: flex-start;
	width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 16px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	font-size: 13px;
	font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	background: var(--or-ink);
	border-color: var(--or-ink);
	color: var(--or-bg);
}

/* ------------------------------------------------- my account: wishlist --- */

/*
 * The cards are the shop's own, so the grid rule at the top of this file already
 * sizes them. Only the frame around them is set here — and the column floor is
 * lowered, because the account content sits in a narrower column than the shop
 * and 182px would leave a single card stranded on its own row.
 */
.or-wishlist ul.products {
	margin-bottom: 0;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.or-wishlist__count {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--or-muted);
}

.or-wishlist__empty p {
	margin: 0;
}

.or-wishlist__empty .or-dash__cta {
	margin-top: 14px;
}

/* The heart is the remove control here, so it should not read as decoration. */
.or-wishlist .or-wish {
	background: var(--or-bg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

/* ----------------------------------------------------- my account: dash --- */

/*
 * One gap owns the vertical rhythm. Spacing the blocks with margins on their
 * own boxes is what made the paired panels end at different heights: a
 * `.or-dash__panel + .or-dash__panel` margin landed on the second panel only,
 * and inside the grid row that pulled its bottom edge up while its twin
 * stretched the full height.
 */
.or-dash {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.or-dash__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.or-dash__hello {
	margin: 0;
	font-size: 20px;
	letter-spacing: -.02em;
}

/* Sits beside a 20px greeting, so it reads as an aside rather than a peer. */
.or-dash__logout {
	font-size: 12.5px;
}

/* Order summary. */

.or-dash__stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
	gap: 20px;
}

.or-dash__stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	/* Side padding matches .or-dash__panel so both line up on one left edge. */
	padding: 16px 20px;
	border-radius: var(--or-radius);
	background: var(--or-surface);
}

.or-dash__stat-value {
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--or-ink);
}

/*
 * wc_price() wraps the amount in its own element that carries Woo's inherited
 * sizing, so the figure has to be pulled back to the tile's scale.
 */
.or-dash__stat-value .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
}

.or-dash__stat-label {
	font-size: 12px;
	color: var(--or-muted);
}

/* Panels. */

/*
 * One gutter value across the dashboard: the space between the two panels is
 * the same 20px that separates them from the rows above and below, so the grid
 * reads as evenly spaced whichever way you scan it.
 */
.or-dash__split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.or-dash__panel {
	padding: 18px 20px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-radius);
}

/*
 * The orders list draws its own dividers edge to edge, so the panel gives up
 * its side padding. The rows carry 16px of their own vertical padding, which
 * is what keeps the bottom inset equal to the 16px above the heading.
 */
.or-dash__panel:has(.or-dash__orders) {
	padding: 16px 0 0;
}

.or-dash__panel-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

/* Matches the inset the orders list loses when the panel goes edge to edge. */
.or-dash__panel:has(.or-dash__orders) .or-dash__panel-head {
	padding: 0 20px;
}

.or-dash__panel-title {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -.01em;
}

.or-dash__panel-head a {
	flex: none;
	font-size: 12.5px;
}

/* Profile facts. */

.or-dash__facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 16px;
	margin: 0;
	font-size: 13.5px;
}

.or-dash__facts dt {
	color: var(--or-muted);
}

.or-dash__facts dd {
	margin: 0;
	color: var(--or-ink);
	/* Long addresses would otherwise widen the column past the panel. */
	overflow-wrap: anywhere;
}

.or-dash__address {
	margin: 0;
	font-size: 13.5px;
	font-style: normal;
	line-height: 1.7;
	color: var(--or-ink);
}

.or-dash__muted {
	margin: 0;
	color: var(--or-muted);
}

.or-dash__cta {
	margin: 14px 0 0;
}

/* Quick links. */

.or-dash__more {
	margin: 0 0 12px;
}

.or-dash__tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.or-dash__tile {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 16px;
	border: 1px solid var(--or-line);
	border-radius: var(--or-pill);
	font-size: 13px;
	font-weight: 500;
	color: var(--or-ink);
	transition: border-color .18s var(--or-ease), background .18s var(--or-ease);
}

/*
 * The account content rule underlines every bare link. These carry their own
 * border or row divider, so the underline would draw a second line inside them.
 */
.woocommerce-account .woocommerce-MyAccount-content .or-dash__tile,
.woocommerce-account .woocommerce-MyAccount-content .or-dash__order {
	text-decoration: none;
}

.or-dash__tile:hover {
	border-color: var(--or-ink);
	background: var(--or-surface);
}

/* Recent orders. */

.or-dash__orders {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--or-line);
}

.or-dash__orders li + li {
	border-top: 1px solid var(--or-line);
}

.or-dash__order {
	display: grid;
	/* Order id and status size to content; the date column absorbs the slack. */
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 6px 16px;
	/* Side padding matches the panel head above, so the columns line up. */
	padding: 16px 20px;
	transition: background .18s var(--or-ease);
}

.or-dash__order:hover {
	background: var(--or-surface);
}

.or-dash__order-id {
	font-size: 14px;
	font-weight: 500;
	color: var(--or-ink);
}

.or-dash__order-meta {
	font-size: 12.5px;
	color: var(--or-muted);
}

.or-dash__order-total {
	font-size: 14px;
	font-weight: 500;
	color: var(--or-ink);
	white-space: nowrap;
}

.or-dash__status {
	padding: 3px 10px;
	border-radius: var(--or-pill);
	background: var(--or-surface);
	color: var(--or-muted);
	font-size: 11.5px;
	font-weight: 500;
	white-space: nowrap;
}

.or-dash__status--processing,
.or-dash__status--on-hold {
	background: var(--or-brand-soft);
	color: var(--or-brand);
}

.or-dash__status--completed {
	color: var(--or-good);
}

.or-dash__status--cancelled,
.or-dash__status--failed,
.or-dash__status--refunded {
	color: var(--or-sale);
}

/*
 * Four columns in a sidebar-flanked panel leaves the date squeezed, so the row
 * becomes two lines: id with status, then date with total.
 */
@media (max-width: 600px) {
	.or-dash__order {
		grid-template-columns: 1fr auto;
		gap: 4px 12px;
	}

	/* Placed cell by cell — the DOM order is id, date, status, total, which
	   auto-placement would spread across four rows. */
	.or-dash__order-id {
		grid-area: 1 / 1;
	}

	.or-dash__status {
		grid-area: 1 / 2;
		justify-self: end;
	}

	.or-dash__order-meta {
		grid-area: 2 / 1;
	}

	.or-dash__order-total {
		grid-area: 2 / 2;
		justify-self: end;
	}
}
