/*
Exhibit Central (rsgdx) plugin — custom-my-account.css
My Account: Orders slim cards + shared nav/layout polish.

Scoping rule (see version-logs.md dev notes): every selector here is scoped
under #exhibitrsgdx-myaccount-orders — the active theme (Astra) and
Elementor both style .woocommerce-* classes directly, so class-only
selectors get overridden. No !important as a substitute.
*/

#exhibitrsgdx-myaccount-orders.exhibitrsgdx-myaccount-orders {
	display: flex;
	flex-direction: column;
	gap: var(--exhibitrsgdx-space-4);
	font-family: var(--exhibitrsgdx-font-sans);
}

#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-cards {
	display: flex;
	flex-direction: column;
	gap: var(--exhibitrsgdx-space-3);
}

#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card {
	position: relative;
	background: var(--exhibitrsgdx-color-surface);
	border: 1px solid var(--exhibitrsgdx-color-border);
	border-radius: var(--exhibitrsgdx-radius-md);
	padding: var(--exhibitrsgdx-space-4);
	display: flex;
	flex-direction: column;
	gap: var(--exhibitrsgdx-space-2);
}

/* Date — absolute, top-right of the whole card. */
#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__date {
	position: absolute;
	top: var(--exhibitrsgdx-space-4);
	right: var(--exhibitrsgdx-space-4);
	color: var(--exhibitrsgdx-color-text-muted);
	font-size: var(--exhibitrsgdx-text-sm);
	white-space: nowrap;
}

/* Main row — ID, total, and status pill inline, left to right. Leaves
   room on the right for the absolutely-positioned date. */
#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__row {
	display: flex;
	align-items: center;
	gap: var(--exhibitrsgdx-space-3);
	flex-wrap: wrap;
	padding-right: 90px;
}

#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__id {
	font-weight: 700;
	color: var(--exhibitrsgdx-color-text);
	font-size: var(--exhibitrsgdx-text-base);
}

#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__pill {
	display: inline-flex;
	align-items: center;
	padding: 2px var(--exhibitrsgdx-space-3);
	border-radius: var(--exhibitrsgdx-radius-full);
	font-size: var(--exhibitrsgdx-text-xs);
	font-weight: 600;
	border: 1px solid transparent;
	line-height: 1.6;
}

/* Status pill colors — mirrors WooCommerce's own order-status semantics.
   See exhibitrsgdx_order_status_pill_class() in functions/my-account.php. */
#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__pill.is-success {
	color: var(--exhibitrsgdx-color-success);
	border-color: var(--exhibitrsgdx-color-success);
	background: rgba(46, 158, 78, 0.12);
}

#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__pill.is-active {
	color: var(--exhibitrsgdx-color-primary-light);
	border-color: var(--exhibitrsgdx-color-primary);
	background: var(--exhibitrsgdx-color-primary-faint);
}

#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__pill.is-warning {
	color: var(--exhibitrsgdx-color-warning);
	border-color: var(--exhibitrsgdx-color-warning);
	background: rgba(209, 165, 61, 0.12);
}

#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__pill.is-error {
	color: var(--exhibitrsgdx-color-error);
	border-color: var(--exhibitrsgdx-color-error);
	background: rgba(229, 72, 77, 0.12);
}

#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__pill.is-neutral {
	color: var(--exhibitrsgdx-color-text-muted);
	border-color: var(--exhibitrsgdx-color-border-light);
	background: var(--exhibitrsgdx-color-surface-alt);
}

#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__total {
	color: var(--exhibitrsgdx-color-text);
	font-weight: 600;
	font-size: var(--exhibitrsgdx-text-sm);
}

#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__actions {
	display: flex;
	gap: var(--exhibitrsgdx-space-3);
	margin-top: var(--exhibitrsgdx-space-1);
}

#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__btn {
	color: var(--exhibitrsgdx-color-primary-light);
	font-size: var(--exhibitrsgdx-text-sm);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__btn:hover {
	color: var(--exhibitrsgdx-color-primary-hover);
}

#exhibitrsgdx-myaccount-orders .exhibitrsgdx-myaccount-pagination {
	display: flex;
	justify-content: center;
	gap: var(--exhibitrsgdx-space-4);
	margin-top: var(--exhibitrsgdx-space-2);
}

#exhibitrsgdx-myaccount-orders .exhibitrsgdx-myaccount-empty {
	background: var(--exhibitrsgdx-color-surface);
	border: 1px solid var(--exhibitrsgdx-color-border);
	border-radius: var(--exhibitrsgdx-radius-md);
	padding: var(--exhibitrsgdx-space-5);
	text-align: center;
	color: var(--exhibitrsgdx-color-text-muted);
	display: flex;
	flex-direction: column;
	gap: var(--exhibitrsgdx-space-3);
	align-items: center;
}

@media (max-width: 480px) {
	#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__date {
		position: static;
		order: -1;
	}

	#exhibitrsgdx-myaccount-orders .exhibitrsgdx-order-card__row {
		padding-right: 0;
	}
}

/* ============================================================================
   PAGE LAYOUT — sidebar + main content
   templates/woocommerce/myaccount/my-account.php + navigation.php
   ============================================================================ */

/* WooCommerce's own default stylesheet still applies float:left;width:30%/
   68% to .woocommerce-MyAccount-navigation / .woocommerce-MyAccount-content
   — classes our templates kept on the <nav> and the content wrapper for
   compatibility (aria/plugin hooks expect them). Left alone, that float
   fights our flex layout: the nav collapses to ~30% of its own 240px
   column (icon-only, labels clipped) and the content column floats inside
   .exhibitrsgdx-myaccount__main instead of filling it. This selector's ID
   prefix outranks WooCommerce's plain class selector regardless of source
   order, so no !important needed. */
#exhibitrsgdx-myaccount .woocommerce-MyAccount-navigation,
#exhibitrsgdx-myaccount .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	margin-left: 0;
}

#exhibitrsgdx-myaccount.exhibitrsgdx-myaccount {
	display: flex;
	align-items: flex-start;
	gap: var(--exhibitrsgdx-space-5);
	font-family: var(--exhibitrsgdx-font-sans);
	max-width: var(--exhibitrsgdx-content-max-width);
	margin: 0 auto;
	padding: var(--exhibitrsgdx-space-5) var(--exhibitrsgdx-space-4);
}

#exhibitrsgdx-myaccount .exhibitrsgdx-myaccount__sidebar {
	flex: 0 0 240px;
	width: 240px;
	/* Single vertical rule separating nav from content — replaces the old
	   nested-card look (no background/border on the nav itself anymore). */
	border-right: 1px solid var(--exhibitrsgdx-color-border);
	padding-right: var(--exhibitrsgdx-space-4);
	transition: width var(--exhibitrsgdx-transition), flex-basis var(--exhibitrsgdx-transition);
}

#exhibitrsgdx-myaccount .exhibitrsgdx-myaccount__main {
	flex: 1 1 auto;
	min-width: 0;
}

/* Page title — capped at 30px per spec, regardless of the theme's own
   heading scale. */
#exhibitrsgdx-myaccount .exhibitrsgdx-myaccount__title {
	font-size: 30px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--exhibitrsgdx-color-text);
	margin: 0 0 var(--exhibitrsgdx-space-4);
}

/* Astra renders its own page-header title bar above the shortcode content
   on the My Account page — confirmed live (2026-08-25) as a large duplicate
   "Orders" heading above our own 30px title, so it's hidden outright rather
   than resized. It's a sibling of our wrapper, not a child, and the
   astra_advanced_header_title PHP filter above turned out not to be the
   mechanism this site's header uses (title was still full-size after that
   filter), so this is done in CSS instead, scoped to the body class
   WooCommerce already adds. !important is used here on purpose — this is
   the one place we're fighting the theme's own header bar rather than a
   WooCommerce/Elementor class we can out-specificity with an ID prefix. */
body.woocommerce-account .ast-page-title-bar,
body.woocommerce-account .entry-header {
	display: none !important;
}

/* ============================================================================
   SIDEBAR NAV
   ============================================================================ */

/* No card/box here on purpose — the sidebar is separated from the content
   by a single vertical rule (border-right on .exhibitrsgdx-myaccount__sidebar
   below), not by nested backgrounds. Also strips any background/border
   Astra/WooCommerce's own WooCommerce-compat CSS puts on
   .woocommerce-MyAccount-navigation and its <ul>/<li>/<a> (that's what was
   producing the "boxes inside boxes" look — our own background rules on
   this element plus the theme's default nav-list card styling, stacked). */
#exhibitrsgdx-myaccount-nav.exhibitrsgdx-myaccount-nav,
#exhibitrsgdx-myaccount-nav .exhibitrsgdx-myaccount-nav__list,
#exhibitrsgdx-myaccount-nav .exhibitrsgdx-myaccount-nav__item {
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

#exhibitrsgdx-myaccount-nav.exhibitrsgdx-myaccount-nav {
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--exhibitrsgdx-space-4);
}

#exhibitrsgdx-myaccount-nav .exhibitrsgdx-myaccount-nav__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--exhibitrsgdx-space-2);
	padding: var(--exhibitrsgdx-space-1) var(--exhibitrsgdx-space-2);
}

#exhibitrsgdx-myaccount-nav .exhibitrsgdx-myaccount-nav__brand {
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow: hidden;
}

#exhibitrsgdx-myaccount-nav .exhibitrsgdx-myaccount-nav__brand-title {
	font-weight: 700;
	font-size: var(--exhibitrsgdx-text-sm);
	color: var(--exhibitrsgdx-color-text);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

#exhibitrsgdx-myaccount-nav .exhibitrsgdx-myaccount-nav__brand-user {
	font-size: var(--exhibitrsgdx-text-xs);
	color: var(--exhibitrsgdx-color-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#exhibitrsgdx-myaccount-nav .exhibitrsgdx-myaccount-nav__toggle {
	flex: 0 0 auto;
	background: none;
	border: none;
	color: var(--exhibitrsgdx-color-text-muted);
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform var(--exhibitrsgdx-transition), color var(--exhibitrsgdx-transition);
}

#exhibitrsgdx-myaccount-nav .exhibitrsgdx-myaccount-nav__toggle:hover {
	color: var(--exhibitrsgdx-color-primary-light);
}

#exhibitrsgdx-myaccount-nav .exhibitrsgdx-myaccount-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#exhibitrsgdx-myaccount-nav .exhibitrsgdx-myaccount-nav__item a {
	display: flex;
	align-items: center;
	gap: var(--exhibitrsgdx-space-3);
	padding: var(--exhibitrsgdx-space-2) var(--exhibitrsgdx-space-3);
	border-radius: var(--exhibitrsgdx-radius-sm);
	color: var(--exhibitrsgdx-color-text-muted);
	font-size: var(--exhibitrsgdx-text-sm);
	font-weight: 600;
	white-space: nowrap;
}

#exhibitrsgdx-myaccount-nav .exhibitrsgdx-myaccount-nav__item a i {
	flex: 0 0 auto;
	width: 18px;
	text-align: center;
	font-size: var(--exhibitrsgdx-text-base);
}

#exhibitrsgdx-myaccount-nav .exhibitrsgdx-myaccount-nav__item a:hover {
	color: var(--exhibitrsgdx-color-text);
}

/* Active endpoint — WooCommerce adds "is-active" via wc_get_account_menu_item_classes().
   Text/icon color only, no fill — matches the "no backgrounds" request. */
#exhibitrsgdx-myaccount-nav .exhibitrsgdx-myaccount-nav__item.is-active a {
	color: var(--exhibitrsgdx-color-primary-light);
}

/* --- Collapsed state — toggled by assets/js/custom-my-account.js --- */
#exhibitrsgdx-myaccount.is-nav-collapsed .exhibitrsgdx-myaccount__sidebar {
	flex-basis: 64px;
	width: 64px;
}

#exhibitrsgdx-myaccount.is-nav-collapsed .exhibitrsgdx-myaccount-nav__brand,
#exhibitrsgdx-myaccount.is-nav-collapsed .exhibitrsgdx-myaccount-nav__label {
	display: none;
}

#exhibitrsgdx-myaccount.is-nav-collapsed .exhibitrsgdx-myaccount-nav__header {
	justify-content: center;
}

#exhibitrsgdx-myaccount.is-nav-collapsed .exhibitrsgdx-myaccount-nav__toggle i {
	transform: rotate(180deg);
}

#exhibitrsgdx-myaccount.is-nav-collapsed .exhibitrsgdx-myaccount-nav__item a {
	justify-content: center;
	padding: var(--exhibitrsgdx-space-2);
}

@media (max-width: 782px) {
	#exhibitrsgdx-myaccount.exhibitrsgdx-myaccount {
		flex-direction: column;
	}

	#exhibitrsgdx-myaccount .exhibitrsgdx-myaccount__sidebar {
		width: 100%;
		flex-basis: auto;
		/* Stacked layout — divider moves from the right edge to the bottom. */
		border-right: none;
		border-bottom: 1px solid var(--exhibitrsgdx-color-border);
		padding-right: 0;
		padding-bottom: var(--exhibitrsgdx-space-4);
	}

	#exhibitrsgdx-myaccount-nav .exhibitrsgdx-myaccount-nav__list {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

/* ============================================================================
   VIEW ORDER MODAL — curated content, rendered into #exhibitrsgdx-modal's
   .exhibitrsgdx-modal__html-holder by exhibitrsgdx_render_order_modal_html().
   Scoped under #exhibitrsgdx-modal on purpose (see file header scoping rule)
   — this is a different DOM context to #exhibitrsgdx-myaccount-orders, so the
   pill styling above does not reach it and gets its own copy here.
   ============================================================================ */

#exhibitrsgdx-modal .exhibitrsgdx-order-modal {
	display: flex;
	flex-direction: column;
	gap: var(--exhibitrsgdx-space-3);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__header {
	display: flex;
	align-items: center;
	gap: var(--exhibitrsgdx-space-3);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__id {
	font-weight: 700;
	font-size: var(--exhibitrsgdx-text-lg);
	color: var(--exhibitrsgdx-color-text);
}

/* Pill — duplicated from .exhibitrsgdx-order-card__pill (different DOM
   context, see scoping rule above). Keep in sync if pill styling changes. */
#exhibitrsgdx-modal .exhibitrsgdx-order-card__pill {
	display: inline-flex;
	align-items: center;
	padding: 2px var(--exhibitrsgdx-space-3);
	border-radius: var(--exhibitrsgdx-radius-full);
	font-size: var(--exhibitrsgdx-text-xs);
	font-weight: 600;
	border: 1px solid transparent;
	line-height: 1.6;
}

#exhibitrsgdx-modal .exhibitrsgdx-order-card__pill.is-success {
	color: var(--exhibitrsgdx-color-success);
	border-color: var(--exhibitrsgdx-color-success);
	background: rgba(46, 158, 78, 0.12);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-card__pill.is-active {
	color: var(--exhibitrsgdx-color-primary-light);
	border-color: var(--exhibitrsgdx-color-primary);
	background: var(--exhibitrsgdx-color-primary-faint);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-card__pill.is-warning {
	color: var(--exhibitrsgdx-color-warning);
	border-color: var(--exhibitrsgdx-color-warning);
	background: rgba(209, 165, 61, 0.12);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-card__pill.is-error {
	color: var(--exhibitrsgdx-color-error);
	border-color: var(--exhibitrsgdx-color-error);
	background: rgba(229, 72, 77, 0.12);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-card__pill.is-neutral {
	color: var(--exhibitrsgdx-color-text-muted);
	border-color: var(--exhibitrsgdx-color-border-light);
	background: var(--exhibitrsgdx-color-surface-alt);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__date {
	margin: 0;
	color: var(--exhibitrsgdx-color-text-muted);
	font-size: var(--exhibitrsgdx-text-sm);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__items {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--exhibitrsgdx-text-sm);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__items th,
#exhibitrsgdx-modal .exhibitrsgdx-order-modal__items td {
	padding: var(--exhibitrsgdx-space-2);
	border-bottom: 1px solid var(--exhibitrsgdx-color-border);
	text-align: left;
	vertical-align: top;
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__items th:last-child,
#exhibitrsgdx-modal .exhibitrsgdx-order-modal__items td:last-child {
	text-align: right;
	white-space: nowrap;
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__items thead th {
	color: var(--exhibitrsgdx-color-text-muted);
	font-weight: 600;
	font-size: var(--exhibitrsgdx-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__items tfoot th {
	font-weight: 600;
	color: var(--exhibitrsgdx-color-text);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__items tfoot tr.is-grand-total th,
#exhibitrsgdx-modal .exhibitrsgdx-order-modal__items tfoot tr.is-grand-total td {
	font-weight: 700;
	font-size: var(--exhibitrsgdx-text-base);
	color: var(--exhibitrsgdx-color-text);
	border-bottom: none;
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__items tfoot tr:last-child th,
#exhibitrsgdx-modal .exhibitrsgdx-order-modal__items tfoot tr:last-child td {
	border-bottom: none;
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__invoice-btn {
	display: inline-flex;
	align-items: center;
	color: var(--exhibitrsgdx-color-primary-light);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__invoice-btn:hover {
	color: var(--exhibitrsgdx-color-primary-hover);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__actions {
	display: flex;
	gap: var(--exhibitrsgdx-space-2);
}

/* Pay + Cancel — same box shape/size as the rest of the account UI's
   buttons (see .exhibitrsgdx-reorder-popup__cancel/__add), Pay filled,
   Cancel outlined so it doesn't read as the primary action. */
#exhibitrsgdx-modal .exhibitrsgdx-order-modal__action-btn {
	display: inline-flex;
	align-items: center;
	border-radius: var(--exhibitrsgdx-radius-sm);
	padding: 8px 18px;
	font-size: var(--exhibitrsgdx-text-sm);
	font-weight: 600;
	line-height: 1;
	border: 1px solid var(--exhibitrsgdx-color-primary);
	cursor: pointer;
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__action-btn--pay {
	background: var(--exhibitrsgdx-color-primary);
	color: #fff;
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__action-btn--pay.exhibitrsgdx-order-modal__action-btn--pay:hover {
	background: var(--exhibitrsgdx-color-primary-hover);
	border-color: var(--exhibitrsgdx-color-primary-hover);
	color: #fff;
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__action-btn--cancel {
	background: transparent;
	color: var(--exhibitrsgdx-color-primary-light);
	border-color: var(--exhibitrsgdx-color-border);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__action-btn--cancel.exhibitrsgdx-order-modal__action-btn--cancel:hover {
	background: var(--exhibitrsgdx-color-primary-faint);
	border-color: var(--exhibitrsgdx-color-primary);
	color: var(--exhibitrsgdx-color-primary-light);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--exhibitrsgdx-space-4);
	margin-top: var(--exhibitrsgdx-space-2);
	padding-top: var(--exhibitrsgdx-space-3);
	border-top: 1px solid var(--exhibitrsgdx-color-border);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__address h3 {
	margin: 0 0 var(--exhibitrsgdx-space-1);
	font-size: var(--exhibitrsgdx-text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--exhibitrsgdx-color-text-muted);
}

#exhibitrsgdx-modal .exhibitrsgdx-order-modal__address address {
	margin: 0;
	font-style: normal;
	font-size: var(--exhibitrsgdx-text-sm);
	color: var(--exhibitrsgdx-color-text);
	line-height: 1.5;
}

@media (max-width: 500px) {
	#exhibitrsgdx-modal .exhibitrsgdx-order-modal__addresses {
		grid-template-columns: 1fr;
	}
}


/* ============================================================================
   COMPONENTS PAGE — /my-account/components/
   functions/my-account.php (woocommerce_account_components_endpoint) +
   assets/js/custom-my-account.js. Scoped under #exhibitrsgdx-myaccount-
   components, same reasoning as the Orders scoping rule at the top of
   this file.
   ============================================================================ */

#exhibitrsgdx-myaccount-components.exhibitrsgdx-myaccount-components {
	font-family: var(--exhibitrsgdx-font-sans);
}

#exhibitrsgdx-myaccount-components .exhibitrsgdx-component-product-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--exhibitrsgdx-space-3);
}

#exhibitrsgdx-myaccount-components .exhibitrsgdx-component-product-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--exhibitrsgdx-space-2);
	background: var(--exhibitrsgdx-color-surface);
	border: 1px solid var(--exhibitrsgdx-color-border);
	border-radius: var(--exhibitrsgdx-radius-md);
	padding: var(--exhibitrsgdx-space-3);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

#exhibitrsgdx-myaccount-components .exhibitrsgdx-component-product-card:hover {
	border-color: var(--exhibitrsgdx-color-primary);
}

#exhibitrsgdx-myaccount-components .exhibitrsgdx-component-product-card__image {
	display: block;
	width: 100%;
	height: 160px;
	border-radius: var(--exhibitrsgdx-radius-sm);
	overflow: hidden;
}

#exhibitrsgdx-myaccount-components .exhibitrsgdx-component-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#exhibitrsgdx-myaccount-components .exhibitrsgdx-component-product-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#exhibitrsgdx-myaccount-components .exhibitrsgdx-component-product-card__name {
	font-weight: 600;
	color: var(--exhibitrsgdx-color-text);
	font-size: var(--exhibitrsgdx-text-sm);
}

#exhibitrsgdx-myaccount-components .exhibitrsgdx-component-product-card__price {
	color: var(--exhibitrsgdx-color-text-muted);
	font-size: var(--exhibitrsgdx-text-sm);
}

#exhibitrsgdx-myaccount-components .exhibitrsgdx-component-product-card__orders {
	color: var(--exhibitrsgdx-color-primary-light);
	font-size: var(--exhibitrsgdx-text-xs);
	margin-top: 2px;
}

/* Modal — different DOM context (#exhibitrsgdx-modal), same reasoning as the
   duplicated order-modal pill rules above. */

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__header {
	display: flex;
	align-items: center;
	gap: var(--exhibitrsgdx-space-3);
	margin-bottom: var(--exhibitrsgdx-space-3);
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__image img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: var(--exhibitrsgdx-radius-sm);
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__title {
	font-weight: 700;
	font-size: var(--exhibitrsgdx-text-base);
	color: var(--exhibitrsgdx-color-text);
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__empty {
	color: var(--exhibitrsgdx-color-text-muted);
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__list {
	display: flex;
	flex-direction: column;
	gap: var(--exhibitrsgdx-space-2);
	max-height: min(500px, 80vh);
	overflow-y: auto;
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__item {
	display: flex;
	align-items: center;
	gap: var(--exhibitrsgdx-space-3);
	border: 1px solid var(--exhibitrsgdx-color-border-light);
	border-radius: var(--exhibitrsgdx-radius-sm);
	padding: var(--exhibitrsgdx-space-2) var(--exhibitrsgdx-space-3);
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__item-image img {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: var(--exhibitrsgdx-radius-sm);
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__item-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__item-name {
	font-weight: 600;
	font-size: var(--exhibitrsgdx-text-sm);
	color: var(--exhibitrsgdx-color-text);
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__item-meta {
	font-size: var(--exhibitrsgdx-text-xs);
	color: var(--exhibitrsgdx-color-text-muted);
	display: flex;
	align-items: center;
	gap: var(--exhibitrsgdx-space-2);
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__reorder-btn {
	flex-shrink: 0;
	background: var(--exhibitrsgdx-color-primary);
	color: #fff;
	border-radius: var(--exhibitrsgdx-radius-sm);
	padding: 6px 14px;
	font-size: var(--exhibitrsgdx-text-sm);
	font-weight: 600;
	white-space: nowrap;
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__reorder-btn:hover {
	background: var(--exhibitrsgdx-color-primary-hover);
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__reorder-btn.added::before,
#exhibitrsgdx-modal .exhibitrsgdx-components-modal__reorder-btn.loading::after {
	/* WooCommerce core's own ajax_add_to_cart tick/spinner still applies —
	   left unstyled on purpose, no override needed. */
}


/* Reorder mini qty popup — sits on top of the Components modal itself
   (position: fixed, higher z-index than #exhibitrsgdx-modal's 9000), not a
   second use of the shared modal component. See exhibitrsgdx_render_
   components_modal_html() + assets/js/custom-my-account.js. */

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup[hidden] {
	display: none;
}

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup {
	position: fixed;
	inset: 0;
	z-index: 9100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--exhibitrsgdx-space-5);
}

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.6);
}

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__box {
	position: relative;
	z-index: 1;
	width: min(320px, 90vw);
	background: var(--exhibitrsgdx-color-surface);
	border: 1px solid var(--exhibitrsgdx-color-border);
	border-radius: var(--exhibitrsgdx-radius-md);
	padding: var(--exhibitrsgdx-space-4);
	display: flex;
	flex-direction: column;
	gap: var(--exhibitrsgdx-space-2);
}

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__name {
	margin: 0;
	font-weight: 600;
	font-size: var(--exhibitrsgdx-text-sm);
	color: var(--exhibitrsgdx-color-text);
}

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__label {
	font-size: var(--exhibitrsgdx-text-xs);
	color: var(--exhibitrsgdx-color-text-muted);
}

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__qty {
	width: 100%;
	padding: 6px 10px;
	border: 1px solid var(--exhibitrsgdx-color-border);
	border-radius: var(--exhibitrsgdx-radius-sm);
	background: var(--exhibitrsgdx-color-surface-alt);
	color: var(--exhibitrsgdx-color-text);
}

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__error {
	margin: 0;
	font-size: var(--exhibitrsgdx-text-xs);
	color: var(--exhibitrsgdx-color-error);
}

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__error[hidden] {
	display: none;
}

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__actions {
	display: flex;
	justify-content: flex-end;
	gap: var(--exhibitrsgdx-space-2);
	margin-top: var(--exhibitrsgdx-space-1);
}

/* Cancel + Add to cart — same shape/size (pill, same padding, same font
   weight/size), differ only by fill so they read as one pair of buttons
   rather than two different button styles. */
#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__cancel,
#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__add {
	border-radius: var(--exhibitrsgdx-radius-sm);
	padding: 10px 22px;
	font-size: var(--exhibitrsgdx-text-sm);
	font-weight: 600;
	line-height: 1;
	border: 1px solid var(--exhibitrsgdx-color-primary);
}

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__cancel {
	background: transparent;
	color: var(--exhibitrsgdx-color-primary-light);
}

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__cancel:hover {
	background: var(--exhibitrsgdx-color-primary-faint);
}

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__add {
	background: var(--exhibitrsgdx-color-primary);
	color: #fff;
}

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__add:hover {
	background: var(--exhibitrsgdx-color-primary-hover);
	border-color: var(--exhibitrsgdx-color-primary-hover);
}

#exhibitrsgdx-modal .exhibitrsgdx-reorder-popup__add:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Cancel-order confirmation popup — see exhibitrsgdx_render_order_modal_
   html() + assets/js/custom-my-account.js. Same overlay pattern/z-index as
   the Reorder popup above; only ever one of the two is in the DOM at once
   (different modal contents), so sharing z-index is fine. */

#exhibitrsgdx-modal .exhibitrsgdx-cancel-popup[hidden] {
	display: none;
}

#exhibitrsgdx-modal .exhibitrsgdx-cancel-popup {
	position: fixed;
	inset: 0;
	z-index: 9100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--exhibitrsgdx-space-5);
}

#exhibitrsgdx-modal .exhibitrsgdx-cancel-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.6);
}

#exhibitrsgdx-modal .exhibitrsgdx-cancel-popup__box {
	position: relative;
	z-index: 1;
	width: min(360px, 90vw);
	background: var(--exhibitrsgdx-color-surface);
	border: 1px solid var(--exhibitrsgdx-color-border);
	border-radius: var(--exhibitrsgdx-radius-md);
	padding: var(--exhibitrsgdx-space-4);
	display: flex;
	flex-direction: column;
	gap: var(--exhibitrsgdx-space-2);
}

#exhibitrsgdx-modal .exhibitrsgdx-cancel-popup__title {
	margin: 0;
	font-weight: 600;
	font-size: var(--exhibitrsgdx-text-base);
	color: var(--exhibitrsgdx-color-text);
}

#exhibitrsgdx-modal .exhibitrsgdx-cancel-popup__message {
	margin: 0;
	font-size: var(--exhibitrsgdx-text-sm);
	color: var(--exhibitrsgdx-color-text-muted);
}

#exhibitrsgdx-modal .exhibitrsgdx-cancel-popup__actions {
	display: flex;
	justify-content: flex-end;
	gap: var(--exhibitrsgdx-space-2);
	margin-top: var(--exhibitrsgdx-space-1);
}

#exhibitrsgdx-modal .exhibitrsgdx-cancel-popup__dismiss,
#exhibitrsgdx-modal .exhibitrsgdx-cancel-popup__confirm {
	border-radius: var(--exhibitrsgdx-radius-sm);
	padding: 10px 22px;
	font-size: var(--exhibitrsgdx-text-sm);
	font-weight: 600;
	line-height: 1;
	border: 1px solid var(--exhibitrsgdx-color-primary);
	cursor: pointer;
}

#exhibitrsgdx-modal .exhibitrsgdx-cancel-popup__dismiss {
	background: transparent;
	color: var(--exhibitrsgdx-color-primary-light);
}

#exhibitrsgdx-modal .exhibitrsgdx-cancel-popup__dismiss:hover {
	background: var(--exhibitrsgdx-color-primary-faint);
}

#exhibitrsgdx-modal .exhibitrsgdx-cancel-popup__confirm {
	background: var(--exhibitrsgdx-color-error);
	border-color: var(--exhibitrsgdx-color-error);
	color: #fff;
}

#exhibitrsgdx-modal .exhibitrsgdx-cancel-popup__confirm:hover {
	opacity: 0.9;
}

#exhibitrsgdx-modal .exhibitrsgdx-cancel-popup__confirm:disabled {
	opacity: 0.6;
	cursor: default;
}


/* "More Components" section — no-price components that can't be reordered
   online (see exhibitrsgdx_component_has_orderable_price() in functions/
   my-account.php). Sits below the reorderable list, visually toned down
   since there's no action to take here beyond reading the disclaimer. */

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__section {
	margin-top: var(--exhibitrsgdx-space-4);
	padding-top: var(--exhibitrsgdx-space-4);
	border-top: 1px solid var(--exhibitrsgdx-color-border-light);
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__section-title {
	margin: 0 0 4px;
	font-size: var(--exhibitrsgdx-text-sm);
	font-weight: 700;
	color: var(--exhibitrsgdx-color-text);
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__section-note {
	margin: 0 0 var(--exhibitrsgdx-space-3);
	font-size: var(--exhibitrsgdx-text-xs);
	color: var(--exhibitrsgdx-color-text-muted);
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__item--no-price {
	opacity: 0.75;
}

#exhibitrsgdx-modal .exhibitrsgdx-components-modal__item--no-price .exhibitrsgdx-components-modal__item-body {
	justify-content: center;
}


/* ============================================================================
   PASSWORD UPDATE — /my-account/edit-account/
   templates/woocommerce/myaccount/form-edit-account.php (password fields
   only — see that file's header comment for why the other account-details
   fields still exist as hidden inputs). Minimal styling pass, same scope
   as Addresses (still WooCommerce's own form markup, just made legible on
   the dark theme) rather than a full redesign.
   ============================================================================ */

/* Overrides the old `rsgdx` plugin's own account-details CSS, which hides
   this exact form's rows: `body.woocommerce-account form.woocommerce-
   EditAccountForm.edit-account > p.woocommerce-form-row` (confirmed live,
   2026-08-26 — that plugin previously kept this page hidden entirely). Our
   selector includes #exhibitrsgdx-myaccount (an ID), which out-specifies
   that class-only selector regardless of stylesheet load order — same
   pattern already used for the WooCommerce float/width override above, no
   !important needed. */
#exhibitrsgdx-myaccount form.woocommerce-EditAccountForm.edit-account > p.woocommerce-form-row {
	display: block;
}

#exhibitrsgdx-myaccount .exhibitrsgdx-password-form {
	display: flex;
	flex-direction: column;
	gap: var(--exhibitrsgdx-space-3);
	max-width: 360px;
}

#exhibitrsgdx-myaccount .exhibitrsgdx-password-form label {
	display: block;
	margin-bottom: var(--exhibitrsgdx-space-1);
	font-size: var(--exhibitrsgdx-text-sm);
	color: var(--exhibitrsgdx-color-text-muted);
}

#exhibitrsgdx-myaccount .exhibitrsgdx-password-form input[type="password"] {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--exhibitrsgdx-color-border);
	border-radius: var(--exhibitrsgdx-radius-sm);
	background: var(--exhibitrsgdx-color-surface-alt);
	color: var(--exhibitrsgdx-color-text);
}

#exhibitrsgdx-myaccount .exhibitrsgdx-password-form .exhibitrsgdx-order-card__btn {
	align-self: flex-start;
	background: var(--exhibitrsgdx-color-primary);
	color: #fff;
	border-radius: var(--exhibitrsgdx-radius-sm);
	padding: 8px 18px;
	font-size: var(--exhibitrsgdx-text-sm);
	font-weight: 600;
	text-decoration: none;
}

#exhibitrsgdx-myaccount .exhibitrsgdx-password-form .exhibitrsgdx-order-card__btn:hover {
	background: var(--exhibitrsgdx-color-primary-hover);
	color: #fff;
}
