/* Exhibit RSGDX — custom-product-add-to-cart.css — v13
   v13: no visual change required for qty labels; keep variable spacing.
   v12: variable inclusions prompt + more space before add-to-cart.
   v11: broader hide for duplicate ATC text links (Astra/theme anchors).
   v10: custom variation picker; hide native variation table/price;
   hide duplicate ATC links.
   v9: Inclusions label; 3px radius; quantity label/input gap.
   v8: purchase-type wrappers (variable / woosb / default).
   v7: WAPI inclusion name list above add-to-cart.
   v6: only hide empty summary (not forms moved there by theme JS); hide all
   availability/stock duplicates in this column; pin-friendly form layout.
   v5: hide duplicate stock in this column. */

.single-product div.summary.entry-summary:empty {
	display: none;
	margin: 0;
	padding: 0;
	border: none;
}

#exhibitrsgdx-product-add-to-cart,
#exhibitrsgdx-product-add-to-cart *::before,
#exhibitrsgdx-product-add-to-cart *::after {
	box-sizing: border-box;
}

#exhibitrsgdx-product-add-to-cart.exhibitrsgdx-product-add-to-cart {
	width: 100%;
	padding: 0;
	font-family: var(--exhibitrsgdx-font-sans, inherit);
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__inner {
	max-width: none;
	margin: 0;
	padding: 0;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card {
	background: var(--exhibitrsgdx-color-surface, #1a1a1a);
	border: 1px solid var(--exhibitrsgdx-color-border, #2e2e2e);
	border-radius: var(--exhibitrsgdx-radius-md, 3px);
	padding: 24px;
	width: 100%;
}

/* Stock / availability lives under the price in the gallery header only. */
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .stock,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .woocommerce-variation-availability,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .ast-stock-detail,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card [class*="stock-detail"],
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card [class*="availability"] {
	display: none !important;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-inclusions {
	width: 100%;
	margin: 0 0 24px;
	padding: 0;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-inclusions--variable {
	margin: 8px 0 32px;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-inclusions__map {
	display: none !important;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-inclusions__prompt {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--exhibitrsgdx-color-text-muted, #a8a8a8);
	font-style: italic;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-inclusions__selected[hidden],
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-inclusions__prompt[hidden] {
	display: none !important;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-inclusions.is-empty-selection {
	display: none;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-inclusions__label {
	margin: 0 0 8px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--exhibitrsgdx-color-text-muted, #aaaaaa);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-inclusions__list {
	margin: 0;
	padding: 0 0 0 18px;
	list-style: disc;
	color: var(--exhibitrsgdx-color-text, #f5f5f5);
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-inclusions__item {
	margin: 0 0 4px;
	font-size: 0.9375rem;
	line-height: 1.4;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-inclusions__item:last-child {
	margin-bottom: 0;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .woocommerce-variation-add-to-cart {
	margin-top: 20px;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__purchase-variable > form.variations_form {
	margin-top: 4px;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__purchase-variable,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__purchase-woosb,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__purchase-default {
	width: 100%;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card form.cart,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card form.exhibitrsgdx-product-add-to-cart__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 0;
	border-bottom: none;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card form.variations_form {
	flex-direction: column;
	align-items: stretch;
}

/* Native WC attribute table + reset link — replaced by custom picker. */
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card table.variations,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .reset_variations {
	display: none !important;
}

/* Variation price lives in the custom picker options — hide WC copy. */
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .woocommerce-variation-price,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .woocommerce-variation .price {
	display: none !important;
}

/* Duplicate ATC controls — keep only the solid submit button. */
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card a.single_add_to_cart_button,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card a.button.alt.add_to_cart_button,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card a.add_to_cart_button,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card a.ajax_add_to_cart,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .woocommerce-variation-add-to-cart > a,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .woocommerce-variation-add-to-cart a.button,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .variations_button > a,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .variations_button a.button {
	display: none !important;
}

/* --- Custom variation picker --- */

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker {
	position: relative;
	width: 100%;
	margin: 0 0 16px;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__trigger {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 56px;
	padding: 8px 12px;
	background: var(--exhibitrsgdx-color-surface-high, #252525);
	color: var(--exhibitrsgdx-color-text, #f5f5f5);
	border: 1px solid var(--exhibitrsgdx-color-border, #2e2e2e);
	border-radius: var(--exhibitrsgdx-radius-md, 3px);
	cursor: pointer;
	text-align: left;
	font: inherit;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__trigger:hover,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker.is-open .exhibitrsgdx-variation-picker__trigger {
	border-color: var(--exhibitrsgdx-color-primary, #f26419);
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__trigger-placeholder {
	flex: 1 1 auto;
	color: var(--exhibitrsgdx-color-text-muted, #a8a8a8);
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__trigger-selected {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__trigger-selected[hidden] {
	display: none !important;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__trigger-image,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__option-image {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: var(--exhibitrsgdx-radius-md, 3px);
	flex: 0 0 40px;
	background: var(--exhibitrsgdx-color-surface, #1a1a1a);
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__trigger-text,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__option-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__trigger-name,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__option-name {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--exhibitrsgdx-color-text, #f5f5f5);
	line-height: 1.3;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__trigger-price,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__option-price,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__trigger-price .amount,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__option-price .amount {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--exhibitrsgdx-color-primary, #f26419);
	line-height: 1.3;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__chevron {
	margin-left: auto;
	color: var(--exhibitrsgdx-color-text-muted, #a8a8a8);
	transition: transform var(--exhibitrsgdx-transition, 0.3s ease);
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker.is-open .exhibitrsgdx-variation-picker__chevron {
	transform: rotate(180deg);
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__list {
	position: absolute;
	z-index: 20;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--exhibitrsgdx-color-surface, #1a1a1a);
	border: 1px solid var(--exhibitrsgdx-color-border, #2e2e2e);
	border-radius: var(--exhibitrsgdx-radius-md, 3px);
	max-height: 280px;
	overflow-y: auto;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__list[hidden] {
	display: none !important;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: var(--exhibitrsgdx-radius-md, 3px);
	cursor: pointer;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__option:hover,
#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__option.is-selected {
	background: var(--exhibitrsgdx-color-surface-high, #252525);
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__clear {
	display: inline-block;
	margin-top: 8px;
	padding: 0;
	border: none;
	background: none;
	color: var(--exhibitrsgdx-color-primary, #f26419);
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
	text-decoration: underline;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-variation-picker__clear[hidden] {
	display: none !important;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .single_variation_wrap {
	display: block !important;
	width: 100%;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .woocommerce-variation-add-to-cart {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .quantity {
	display: inline-flex !important;
	align-items: center;
	gap: 12px;
	margin: 0;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .quantity label {
	margin: 0;
	padding: 0;
	white-space: nowrap;
	color: var(--exhibitrsgdx-color-text, #f5f5f5);
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .qty {
	width: 70px;
	text-align: center;
	background: var(--exhibitrsgdx-color-surface-high, #252525);
	color: var(--exhibitrsgdx-color-text, #f5f5f5);
	border: 1px solid var(--exhibitrsgdx-color-border, #2e2e2e);
	border-radius: var(--exhibitrsgdx-radius-md, 3px);
	padding: 10px 8px;
	margin: 0;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card button[type="submit"].single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: var(--exhibitrsgdx-color-primary, #f26419);
	color: #fff;
	border: none;
	border-radius: var(--exhibitrsgdx-radius-md, 3px);
	padding: 12px 32px;
	font-size: 1rem;
	cursor: pointer;
	transition: opacity var(--exhibitrsgdx-transition, 0.3s ease);
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card button[type="submit"].single_add_to_cart_button:hover {
	opacity: 0.85;
}

#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card button[type="submit"].single_add_to_cart_button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* WooCommerce "View cart" link after adding to cart */
#exhibitrsgdx-product-add-to-cart .added_to_cart,
#exhibitrsgdx-product-add-to-cart a.added_to_cart,
.single-product .woocommerce-message a.button,
.single-product .woocommerce-message a.wc-forward {
	color: var(--exhibitrsgdx-color-primary, #f26419);
	text-decoration: none;
}

#exhibitrsgdx-product-add-to-cart .added_to_cart:hover,
#exhibitrsgdx-product-add-to-cart a.added_to_cart:hover,
.single-product .woocommerce-message a.button:hover,
.single-product .woocommerce-message a.wc-forward:hover {
	color: #fff;
}

@media (max-width: 500px) {
	#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card form.cart,
	#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card form.exhibitrsgdx-product-add-to-cart__form,
	#exhibitrsgdx-product-add-to-cart .exhibitrsgdx-product-add-to-cart__card .woocommerce-variation-add-to-cart {
		flex-direction: column;
		align-items: stretch;
	}
}
