/**
 * Elessi-only collision fixes. Core Store UX contains no nasa-* selectors.
 *
 * The limited !important declarations are necessary because Elessi applies its
 * grid declarations with equal/higher specificity and inline responsive rules.
 */
.wp-theme-elessi-theme .k2fish-store-grid{
	display: grid !important;
	float: none !important;
	width: 100% !important;
}

.wp-theme-elessi-theme .k2fish-store-grid > .k2fish-store-card{
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wp-theme-elessi-theme .k2fish-store-card .nasa-product-grid,
.wp-theme-elessi-theme .k2fish-store-card .nasa-group-btns,
.wp-theme-elessi-theme .k2fish-store-card .nasa-product-content-nasa_label-wrap,
.wp-theme-elessi-theme .k2fish-store-card .nasa-product-content-select-wrap,
.wp-theme-elessi-theme .k2fish-store-card .quick-view,
.wp-theme-elessi-theme .k2fish-store-card .btn-wishlist{
	display: none !important;
}

.wp-theme-elessi-theme .k2fish-store-card__button::before,
.wp-theme-elessi-theme .k2fish-store-card__button::after{
	display: none !important;
}



.wp-theme-elessi-theme .k2fish-store-relations .nasa-slick-slider{
	display: grid !important;
}

.wp-theme-elessi-theme.k2fish-store-ux-relations-active .row.related-product.up-sell,
.wp-theme-elessi-theme.k2fish-store-ux-related-active .row.related-product:not(.up-sell){
	display: none !important;
}

.wp-theme-elessi-theme.k2fish-store-ux-active #nasa-paging,
.wp-theme-elessi-theme .nasa-archive-product-warp:has(.k2fish-store-grid) > #nasa-paging{
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

html:has(body.wp-theme-elessi-theme.k2fish-store-ux-active),
body.wp-theme-elessi-theme.k2fish-store-ux-active,
html:has(body.wp-theme-elessi-theme.k2sux-store--archive),
body.wp-theme-elessi-theme.k2sux-store--archive{
	overflow-x: clip;
}

/*
 * Elessi adds its own price, brand, excerpt and sharing callbacks around the
 * standard WooCommerce summary actions. Keep the first native representation
 * composed by Store UX and suppress only later visual duplicates.
 */
.wp-theme-elessi-theme.k2sux-product-hero .summary .nasa-product-info-wrap > .price ~ .price,
.wp-theme-elessi-theme.k2sux-product-hero .summary .nasa-product-info-wrap > .woocommerce-product-details__short-description ~ .woocommerce-product-details__short-description,
.wp-theme-elessi-theme.k2sux-product-hero .summary .nasa-product-info-wrap > .nasa-single-product-brands,
.wp-theme-elessi-theme.k2sux-product-hero .summary .nasa-product-info-wrap > .nasa-single-share ~ .nasa-single-share,
.wp-theme-elessi-theme.k2sux-product-hero .summary .nasa-product-info-wrap > .nasa-single-share ~ .nasa-single-hr{
	display: none !important;
}

/* Store UX owns archive discovery controls; Elessi remains an adapter only. */
.wp-theme-elessi-theme.k2sux-store--archive .filters-container.nasa-filter-wrap,
.wp-theme-elessi-theme.k2sux-store--archive .li-toggle-sidebar,
.wp-theme-elessi-theme.k2sux-store--archive .nasa-filter-order.filter-order > .woocommerce-ordering{
	display: none !important;
}

@media (min-width: 761px) {
	.wp-theme-elessi-theme.k2sux-product-hero .k2sux-hero > .row > .product-gallery,
.wp-theme-elessi-theme.k2sux-product-hero .k2sux-hero > .row > .summary,
.wp-theme-elessi-theme.k2sux-product-hero .k2sux-buybox{
		box-sizing: border-box;
		width: 50% !important;
		max-width: 50% !important;
	}
}



/*
 * Elessi keeps the native WooCommerce variation form and variation events.
 * Store UX only constrains the theme's generated swatches so large option sets
 * remain compact and reversible.
 */
.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .nasa-color-small-square{
	width: 100%;
	margin: 0 0 5px;
	padding: 8px 10px;
	border: 1px solid var(--k2sux-visual-border, #e5e7eb);
	border-radius: var(--k2sux-visual-radius-md, 2px);
	background: #fff;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .nasa-attr-ux_wrap{
	display: flex !important;
	flex-wrap: wrap;
	gap: 4px;
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	overflow: visible;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .nasa-attr-ux_wrap.k2sux-options-collapsible:not(.is-expanded){
	max-height: var(--k2sux-options-collapsed-height, 83px);
	overflow: hidden;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .nasa-attr-ux{
	position: relative;
	display: inline-flex !important;
	gap: 6px;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 48px;
	min-height: 44px;
	margin: 0 !important;
	padding: 6px 10px;
	border: 1px solid var(--k2sux-visual-border, #e5e7eb);
	border-radius: var(--k2sux-visual-radius-sm, 2px);
	background: #fff !important;
	box-shadow: none;
	color: var(--k2sux-visual-dark, #0b1f33) !important;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transform: none !important;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .nasa-attr-ux:hover{
	border-color: var(--k2sux-visual-action, #00aee7);
	background: var(--k2sux-visual-info, #f3fbfe) !important;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .nasa-attr-ux:focus-visible{
	border-color: var(--k2sux-visual-action, #00aee7);
	background: #fff !important;
	outline: 3px solid rgba(0, 174, 231, .28);
	outline-offset: 2px;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .nasa-attr-ux:is(.selected, .nasa-active){
	border-color: var(--k2sux-visual-primary, #0077c8);
	background: var(--k2sux-visual-info, #f3fbfe) !important;
	box-shadow: 0 0 0 2px rgba(0, 119, 200, .18);
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form:not(:has(select option:checked:not([value=""]))) .nasa-attr-ux:is(.selected, .nasa-active){
	border-color: var(--k2sux-visual-border, #e5e7eb);
	background: #fff !important;
	box-shadow: none;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form:not(:has(select option:checked:not([value=""]))) .nasa-attr-ux:is(.selected, .nasa-active):hover{
	border-color: var(--k2sux-visual-action, #00aee7);
	background: var(--k2sux-visual-info, #f3fbfe) !important;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .nasa-attr-ux:is(.nasa-disable, [aria-disabled="true"]){
	background: #f5f6f7 !important;
	box-shadow: none;
	opacity: .45;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .type-nasa_label .nasa-attr-bg{
	display: none;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .nasa-attr-text{
	position: static;
	width: auto;
	height: auto;
	padding: 0;
	color: inherit;
	line-height: inherit;
	transform: none;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .type-nasa_image .nasa-attr-ux,
.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .type-nasa_color .nasa-attr-ux{
	width: 52px !important;
	height: 52px;
	min-width: 52px;
	min-height: 52px;
	padding: 4px;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .type-nasa_image .nasa-attr-bg,
.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .type-nasa_color .nasa-attr-bg{
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 2px;
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .k2sux-options-toggle{
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 5px 0 0;
	padding: 5px 0;
	border: 0;
	background: transparent !important;
	box-shadow: none;
	color: var(--k2sux-visual-primary, #0077c8);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .k2sux-options-toggle:focus-visible,
.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .k2sux-variation-reset:focus-visible{
	border-radius: 2px;
	outline: 3px solid rgba(0, 174, 231, .28);
	outline-offset: 2px;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .reset_variations.k2sux-variation-reset{
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 5px 0 0;
	padding: 5px 0;
	color: var(--k2sux-visual-muted, #64748b);
	font-size: 12px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .k2sux-options-toggle + .reset_variations.k2sux-variation-reset{
	margin-left: 18px;
	padding-left: 18px;
	border-left: 1px solid var(--k2sux-visual-border, #e5e7eb);
}

@media (max-width: 760px) {
	.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .nasa-attr-ux{
		min-height: 44px;
		padding-top: 9px;
		padding-bottom: 9px;
	}

	.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .k2sux-options-toggle,
.wp-theme-elessi-theme .k2sux-store.k2sux-product form.variations_form .reset_variations.k2sux-variation-reset{
		min-height: 44px;
	}
}


/* RC31 — preserve the canonical Elessi container width. */
body.wp-theme-elessi-theme.k2sux-store--archive.k2sux-archive-sidebar--none :where(
	.k2sux-owned-archive-main-column,
	.k2sux-owned-archive-path
){
	box-sizing: border-box !important;
	float: none !important;
	clear: none !important;
	flex: 0 0 100% !important;
	flex-basis: 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
body.wp-theme-elessi-theme.k2sux-store--archive.k2sux-archive-sidebar--none :where(
	.k2sux-owned-archive-row,
	.k2sux-owned-archive-width-boundary
){
	box-sizing: border-box !important;
	min-width: 0 !important;
}
body.wp-theme-elessi-theme.k2sux-store--archive.k2sux-archive-sidebar--none :where(.k2sux-theme-sidebar-column, .k2sux-theme-sidebar-content){
	display: none !important;
	width: 0 !important;
	max-width: 0 !important;
	flex: 0 0 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.wp-theme-elessi-theme.k2sux-store--archive.k2sux-archive-sidebar--theme :where(.k2sux-theme-sidebar-column, .k2sux-theme-sidebar-content){
	visibility: visible;
}

/* Cached inner-root fallback: expand only recognised columns, not Elessi rows/containers. */
body.wp-theme-elessi-theme.k2sux-store--archive.k2sux-archive-sidebar--none :is(
	.columns,
	.column,
	[class*="large-"],
	[class*="medium-"],
	[class*="col-lg-"],
	[class*="col-md-"]
):has([data-k2sux-catalog-root]){
	box-sizing: border-box !important;
	float: none !important;
	flex: 0 0 100% !important;
	flex-basis: 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* RC24 — the Elessi adapter never sizes or positions canonical Store UX card interiors. */

/* RC38 — Elessi side-cart quantity reset for the Store UX Members summary. */
:where(.nasa-cart-sidebar,.nasa-side-cart,.nasa-mini-cart,.nasa-mini-cart-content,.nasa-cart-sidebar-content,#cart-sidebar)
.k2sux-mini-member-line.quantity{
  position:static!important;
  display:grid!important;
  float:none!important;
  clear:both!important;
  flex:1 1 100%!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  margin:7px 0 0!important;
  white-space:normal!important;
}
