/* Blondeshooter — Variation Summary
   Minimalist & modern. The default styling pulls colour and typography from
   Elementor's site-wide globals (--e-global-color-* and --e-global-typography-*),
   so the live page reflects the brand without any per-instance widget config.
   The Elementor widget controls layer on top via {{WRAPPER}} and `body`
   selectors and can override anything below. */

:where(.bsh-summary-wrap) {
	/* Brand palette (Elementor globals → fallbacks) */
	--bsh-color-primary:   var(--e-global-color-primary,   currentColor);
	--bsh-color-secondary: var(--e-global-color-secondary, #ffffff);
	--bsh-color-text:      var(--e-global-color-text,      currentColor);
	--bsh-color-accent:    var(--e-global-color-accent,    var(--bsh-color-primary));

	/* Local layout vars (kept for backwards compat with widget controls) */
	--bsh-fg:        var(--bsh-color-text);
	--bsh-muted:     var(--bsh-color-text);   /* solid by default — no text overlay */
	--bsh-line:      color-mix(in srgb, var(--bsh-color-text) 18%, transparent);
	--bsh-line-soft: color-mix(in srgb, var(--bsh-color-text) 10%, transparent);
	--bsh-bg:        transparent;
	--bsh-radius:    10px;

	/* Selection-control padding + border — used by L1/L2/L3/L4/button so they
	 * stay visually consistent. Each surface still exposes its own padding
	 * control in the widget panel which overrides the token below. */
	--bsh-row-padding-y:    0.55rem;
	--bsh-row-padding-x:    0.75rem;
	--bsh-row-border-width: 1px;

	/* Mockup thumbnails. Each level exposes a max-height and a max-width
	 * — image keeps its natural aspect ratio inside the bounding box. */
	--bsh-cat-thumb:    32px;   /* L1 max-height */
	--bsh-cat-thumb-w:  120px;  /* L1 max-width  */
	--bsh-fmt-thumb:    28px;   /* L2 max-height */
	--bsh-fmt-thumb-w:  120px;  /* L2 max-width  */
	--bsh-chip-thumb:   24px;   /* L4 max-height */
	--bsh-chip-thumb-w: 80px;   /* L4 max-width  */

	font-family: var(--e-global-typography-text-font-family, inherit);
	font-weight: var(--e-global-typography-text-font-weight, inherit);
	color: var(--bsh-color-text);
	line-height: 1.5;
}

/* ---- Product title ---- */
:where(.bsh-summary-wrap) .product_title {
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-weight: var(--e-global-typography-primary-font-weight, 500);
	font-size: 50px;
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0 0 1rem;
	color: inherit;
}

/* ---- Meta block (location / date / ref) ---- */
:where(.bsh-summary-wrap) .product_meta {
	border-top: 1px solid var(--bsh-line);
	border-bottom: 1px solid var(--bsh-line);
	padding: 0.75rem 0;
	margin: 0 0 1.25rem;
	font-family: var(--e-global-typography-text-font-family, inherit);
}
:where(.bsh-summary-wrap) .p-meta-text {
	display: flex;
	gap: 0.5rem;
	margin: 0.15rem 0;
	font-size: 0.85rem;
}
:where(.bsh-summary-wrap) .p-meta-label {
	color: var(--bsh-color-secondary);
	min-width: 80px;
}
:where(.bsh-summary-wrap) .p-meta-value {
	color: var(--bsh-color-secondary);
}

/* Breadcrumb segments */
:where(.bsh-summary-wrap) .bsh-loc-seg {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color .15s ease, color .15s ease;
}
:where(.bsh-summary-wrap) a.bsh-loc-seg:hover,
:where(.bsh-summary-wrap) a.bsh-loc-seg:focus-visible {
	border-bottom-color: currentColor;
}
:where(.bsh-summary-wrap) .bsh-loc-sep {
	color: var(--bsh-muted);
	margin: 0 0.15rem;
	user-select: none;
}

/* ---- Variation tree wrapper ---- */
:where(.bsh-summary-wrap) #variation-selection {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-top: 1px solid var(--bsh-line);
}

/* ---- L1: Material header ---- */
:where(.bsh-summary-wrap) .v-cat-wrapper {
	margin-bottom: 0.4rem;
}
:where(.bsh-summary-wrap) .v-cat-wrapper:last-child {
	margin-bottom: 0;
}
:where(.bsh-summary-wrap) .v-cat-title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 10px var(--bsh-row-padding-x);
	cursor: pointer;
	user-select: none;
	font-family: var(--e-global-typography-navigation-font-family, var(--e-global-typography-accent-font-family, inherit));
	font-weight: var(--e-global-typography-navigation-font-weight, 600);
	font-size: 18px;
	letter-spacing: 0.01em;
	color: var(--bsh-color-text);
	background: transparent;
	border: var(--bsh-row-border-width) solid var(--bsh-color-text);
	border-radius: var(--bsh-radius);
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
/* L1 hover + open mirror L3 size-row: hover = primary/text/primary,
   open (selected) = secondary/primary/secondary. */
:where(.bsh-summary-wrap) .v-cat-title:hover {
	color: var(--bsh-color-primary);
	background: var(--bsh-color-text);
	border-color: var(--bsh-color-primary);
}
:where(.bsh-summary-wrap) .v-cat-wrapper.is-open > .v-cat-title {
	color: var(--bsh-color-secondary);
	background: var(--bsh-color-primary);
	border-color: var(--bsh-color-secondary);
}
:where(.bsh-summary-wrap) .v-cat-title-text {
	flex: 1;
	min-width: 0;
}
:where(.bsh-summary-wrap) .v-cat-body {
	display: none;
	padding: 0.6rem 0 0.5rem;
}
:where(.bsh-summary-wrap) .v-cat-wrapper.is-open > .v-cat-body {
	display: block;
}

/* ---- L2: Format header ---- */
:where(.bsh-summary-wrap) .v-fmt-wrapper {
	margin-bottom: 0.4rem;
}
:where(.bsh-summary-wrap) .v-fmt-wrapper:last-child {
	margin-bottom: 0;
}
:where(.bsh-summary-wrap) .v-fmt-title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 10px var(--bsh-row-padding-x);
	cursor: pointer;
	user-select: none;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--bsh-color-text);
	background: transparent;
	border: var(--bsh-row-border-width) solid var(--bsh-color-text);
	border-radius: var(--bsh-radius);
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
/* L2 hover + open mirror L3 size-row. */
:where(.bsh-summary-wrap) .v-fmt-title:hover {
	color: var(--bsh-color-primary);
	background: var(--bsh-color-text);
	border-color: var(--bsh-color-primary);
}
:where(.bsh-summary-wrap) .v-fmt-wrapper.is-open > .v-fmt-title {
	color: var(--bsh-color-secondary);
	background: var(--bsh-color-primary);
	border-color: var(--bsh-color-secondary);
}
/* The size range chip inside the L2 header has its own explicit `color`
 * declaration, so the parent's hover/open colour swap doesn't cascade into
 * it. These two rules pin the range text to the parent's current colour
 * during hover (→ primary) and the open state (→ secondary). */
:where(.bsh-summary-wrap) .v-fmt-title:hover .v-fmt-range {
	color: currentColor;
}
:where(.bsh-summary-wrap) .v-fmt-wrapper.is-open > .v-fmt-title .v-fmt-range {
	color: var(--bsh-color-secondary);
}
:where(.bsh-summary-wrap) .v-fmt-title-text {
	flex: 1;
	min-width: 0;
}
:where(.bsh-summary-wrap) .v-fmt-range {
	flex: none;
	font-family: var(--e-global-typography-text-font-family, inherit);
	font-size: 16px;
	font-weight: 400;
	color: var(--bsh-color-text);
	letter-spacing: 0.01em;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
/* L2 open state also stays flat by default. */
:where(.bsh-summary-wrap) .v-fmt-body {
	display: none;
	padding: 0.6rem 0 1rem 0.5rem;
}
:where(.bsh-summary-wrap) .v-fmt-wrapper.is-open > .v-fmt-body {
	display: block;
}

/* Arrow indicator (used at L1 + L2) */
:where(.bsh-summary-wrap) .arrow-icon {
	width: 9px; height: 9px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
	margin-right: 0.15rem;
	flex: none;
}
:where(.bsh-summary-wrap) .v-cat-wrapper.is-open > .v-cat-title .arrow-icon,
:where(.bsh-summary-wrap) .v-fmt-wrapper.is-open > .v-fmt-title .arrow-icon {
	transform: rotate(-135deg);
}

/* ---- L3: Size row — Normal / Hover / Selected (text · bg · border) ---- */
:where(.bsh-summary-wrap) .v-size-list {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
:where(.bsh-summary-wrap) .v-size-row {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 0.6rem;
	align-items: center;
	padding: var(--bsh-row-padding-y) var(--bsh-row-padding-x);
	cursor: pointer;
	color: var(--bsh-color-text);
	background: transparent;
	border: var(--bsh-row-border-width) solid var(--bsh-color-text);
	border-radius: var(--bsh-radius);
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
:where(.bsh-summary-wrap) .v-size-row:hover {
	color: var(--bsh-color-primary);
	background: var(--bsh-color-text);
	border-color: var(--bsh-color-primary);
}
:where(.bsh-summary-wrap) .v-size-row.is-selected {
	color: var(--bsh-color-secondary);
	background: var(--bsh-color-primary);
	border-color: var(--bsh-color-secondary);
}

/* Radio dot inherits row text colour so it switches with state. */
:where(.bsh-summary-wrap) .checked-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}
:where(.bsh-summary-wrap) .checked-icon input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 16px; height: 16px;
	border: 1.5px solid var(--bsh-color-text);
	border-radius: 50%;
	background: transparent;
	display: inline-block;
	position: relative;
	margin: 0;
	cursor: pointer;
	transition: border-color .15s ease;
}
:where(.bsh-summary-wrap) .v-size-row:hover .checked-icon input[type="radio"] { border-color: currentColor; }
:where(.bsh-summary-wrap) .v-size-row.is-selected .checked-icon input[type="radio"] { border-color: currentColor; }
:where(.bsh-summary-wrap) .checked-icon input[type="radio"]:checked::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: currentColor;
}

:where(.bsh-summary-wrap) .v-size-line {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	cursor: pointer;
	min-width: 0;
}
:where(.bsh-summary-wrap) .v-size-title {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4rem;
	font-weight: 500;
	flex: 1;
	min-width: 0;
}
:where(.bsh-summary-wrap) .v-price {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	font-weight: 500;
	flex: none;
}
:where(.bsh-summary-wrap) .v-stock {
	font-size: 0.75rem;
	color: var(--bsh-color-text);
	white-space: nowrap;
	flex: none;
}
:where(.bsh-summary-wrap) .v-size-row:hover .v-stock,
:where(.bsh-summary-wrap) .v-size-row.is-selected .v-stock { color: currentColor; }
:where(.bsh-summary-wrap) .v-stock[hidden] {
	display: none;
}

/* ---- L4: Frame / Edge chips ---- */
:where(.bsh-summary-wrap) .v-l4-chips {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 0.85rem 0 0.25rem;
	margin-top: 0.5rem;
	border-top: 1px solid var(--bsh-line-soft);
}
:where(.bsh-summary-wrap) .v-l4-chips .v-axis-group {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}
:where(.bsh-summary-wrap) .v-axis-label {
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bsh-color-text);
	margin-right: 0.15rem;
	flex: none;
}
:where(.bsh-summary-wrap) .v-axis-chips {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}

/* Chip — Normal / Hover / Selected (mirrors L3 size-row exactly).
   Default state shows full-opacity text on transparent so it reads the
   same as an L3 size row. The dim "inactive / waiting" treatment is
   applied via .is-unavailable (which the JS toggles when no parent size
   is selected, or when a value isn't valid for the chosen size).

   Specificity hardening — chips are <button> elements, and most parent
   themes (Astra, Hello, Storefront, Kadence, etc.) ship aggressive
   button resets that beat a flat `.v-chip.v-chip` selector and strip
   the border / background. Chaining `#variation-selection` adds an ID
   to the chain (1,2,0 specificity baseline; 1,4,0 on hover) so the
   chips can't be overridden by anything short of an !important rule
   in the theme. Border shorthand is also restated on hover and
   selected so theme rules like `button:hover { border: 0 }` can't
   strip the border in those states. */
:where(.bsh-summary-wrap) #variation-selection .v-chip.v-chip {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	border: var(--bsh-row-border-width) solid var(--bsh-color-text);
	color: var(--bsh-color-text);
	font: inherit;
	font-size: 0.72rem;
	letter-spacing: 0.01em;
	padding: var(--bsh-row-padding-y) var(--bsh-row-padding-x);
	border-radius: var(--bsh-radius);
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
	line-height: 1.2;
}
:where(.bsh-summary-wrap) #variation-selection .v-chip.v-chip:focus { outline: none; }
:where(.bsh-summary-wrap) #variation-selection .v-chip.v-chip:focus-visible {
	outline: 2px solid var(--bsh-color-primary);
	outline-offset: 2px;
}
:where(.bsh-summary-wrap) #variation-selection .v-chip.v-chip:hover:not(:disabled),
:where(.bsh-summary-wrap) #variation-selection .v-chip.v-chip:focus:not(:disabled):not(.is-selected) {
	color: var(--bsh-color-primary);
	background: var(--bsh-color-text);
	background-image: none;
	border: var(--bsh-row-border-width) solid var(--bsh-color-primary);
	box-shadow: none;
	text-shadow: none;
}
:where(.bsh-summary-wrap) #variation-selection .v-chip.v-chip.is-selected {
	color: var(--bsh-color-secondary);
	background: var(--bsh-color-primary);
	background-image: none;
	border: var(--bsh-row-border-width) solid var(--bsh-color-secondary);
	box-shadow: none;
	text-shadow: none;
}
:where(.bsh-summary-wrap) #variation-selection .v-chip.v-chip.is-unavailable,
:where(.bsh-summary-wrap) #variation-selection .v-chip.v-chip:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* ---- Spec tooltip ---- */
:where(.bsh-summary-wrap) .spec-wrap {
	position: relative;
	display: inline-flex;
}
:where(.bsh-summary-wrap) .spec-info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px; height: 14px;
	border: 1px solid var(--bsh-muted);
	border-radius: 50%;
	font-size: 10px;
	font-style: italic;
	color: var(--bsh-muted);
	line-height: 1;
}
:where(.bsh-summary-wrap) .spec-tooltip {
	position: absolute;
	left: 50%; bottom: calc(100% + 6px);
	transform: translateX(-50%);
	background: var(--bsh-color-text);
	color: var(--bsh-color-secondary);
	padding: 0.25rem 0.5rem;
	font-size: 0.7rem;
	border-radius: 2px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
}
:where(.bsh-summary-wrap) .spec-wrap:hover .spec-tooltip { opacity: 1; }

/* ---- Add to cart — Normal / Hover / Selected (active) ----
   Specificity bumped via doubled class (.thin-button.thin-button) and
   explicit box-shadow / text-shadow / outline / background-image resets
   so WooCommerce / theme button defaults don't override the L1/L2/L3
   parity. */
:where(.bsh-summary-wrap) .thin-button.thin-button {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	width: 100%;
	margin-top: 1rem;
	padding: var(--bsh-row-padding-y) var(--bsh-row-padding-x);
	background: transparent;
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	color: var(--bsh-color-text);
	border: var(--bsh-row-border-width) solid var(--bsh-color-text);
	border-radius: var(--bsh-radius);
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
:where(.bsh-summary-wrap) .thin-button.thin-button:focus { outline: none; }
:where(.bsh-summary-wrap) .thin-button.thin-button:focus-visible {
	outline: 2px solid var(--bsh-color-primary);
	outline-offset: 2px;
}
:where(.bsh-summary-wrap) .thin-button.thin-button:hover:not(:disabled),
:where(.bsh-summary-wrap) .thin-button.thin-button:focus:not(:disabled):not(:active):not(.is-selected) {
	color: var(--bsh-color-primary);
	background: var(--bsh-color-text);
	background-image: none;
	border-color: var(--bsh-color-primary);
	box-shadow: none;
	text-shadow: none;
	opacity: 1;
}
:where(.bsh-summary-wrap) .thin-button.thin-button:active:not(:disabled),
:where(.bsh-summary-wrap) .thin-button.thin-button.is-selected {
	color: var(--bsh-color-secondary);
	background: var(--bsh-color-primary);
	background-image: none;
	border-color: var(--bsh-color-secondary);
	box-shadow: none;
	text-shadow: none;
}
:where(.bsh-summary-wrap) .thin-button.thin-button:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ---- Afterpay ---- */
:where(.bsh-summary-wrap) .afterpay-variation {
	margin-top: 0.6rem;
	font-size: 0.8rem;
	color: var(--bsh-muted);
}

/* ---- Helpers ---- */
:where(.bsh-summary-wrap) .spacemed   { margin-bottom: 1rem; }
:where(.bsh-summary-wrap) .spacelarge { margin-top: 1.25rem; }
:where(.bsh-summary-wrap) .small      { font-size: 0.8rem; }
:where(.bsh-summary-wrap) .center     { text-align: center; }

/* ---- Mockup thumbnails (L1 / L2 right-aligned) ----
   Constraints applied directly to the <img> so the bounding box always
   shrink-wraps the rendered image (no forced square / letterbox / stretch). */
:where(.bsh-summary-wrap) .v-cat-thumb,
:where(.bsh-summary-wrap) .v-fmt-thumb {
	display: inline-flex;
	flex: none;
	overflow: hidden;
	border-radius: 0;
	margin-left: auto;
	min-width: 0;
}
:where(.bsh-summary-wrap) .v-fmt-range + .v-fmt-thumb {
	margin-left: 0;
}
:where(.bsh-summary-wrap) .v-cat-thumb img {
	max-height: var(--bsh-cat-thumb);
	max-width:  var(--bsh-cat-thumb-w);
	width:  auto;
	height: auto;
	object-fit: contain;
	display: block;
}
:where(.bsh-summary-wrap) .v-fmt-thumb img {
	max-height: var(--bsh-fmt-thumb);
	max-width:  var(--bsh-fmt-thumb-w);
	width:  auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* ---- Chip with image (L4) — keeps the base chip's padding, border, radius
   so it visually matches the rest of the selection controls. Only the
   internal layout (thumb + label) is added here. ---- */
:where(.bsh-summary-wrap) .v-chip.has-image {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 0.4rem;
}
:where(.bsh-summary-wrap) .v-chip.has-image .v-chip-thumb {
	display: inline-flex;
	overflow: hidden;
	border-radius: 0;
	flex: none;
	min-width: 0;
}
:where(.bsh-summary-wrap) .v-chip.has-image .v-chip-thumb img {
	max-height: var(--bsh-chip-thumb);
	max-width:  var(--bsh-chip-thumb-w);
	width:  auto;
	height: auto;
	object-fit: contain;
	display: block;
}
:where(.bsh-summary-wrap) .v-chip.has-image .v-chip-label {
	font-size: 0.72rem;
	letter-spacing: 0.01em;
	line-height: 1.2;
	white-space: nowrap;
}
:where(.bsh-summary-wrap) .v-chip.has-image.is-unavailable .v-chip-thumb,
:where(.bsh-summary-wrap) .v-chip.has-image:disabled .v-chip-thumb {
	filter: grayscale(1);
}
:where(.bsh-summary-wrap) .v-chip.has-image.is-unavailable .v-chip-label,
:where(.bsh-summary-wrap) .v-chip.has-image:disabled .v-chip-label {
	text-decoration: line-through;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
	:where(.bsh-summary-wrap) .product_title { font-size: 32px; }
	:where(.bsh-summary-wrap) .v-cat-title { font-size: 16px; }
	:where(.bsh-summary-wrap) .v-fmt-range { font-size: 14px; }
	:where(.bsh-summary-wrap) .v-size-line {
		flex-wrap: wrap;
		gap: 0.4rem 0.6rem;
	}
	:where(.bsh-summary-wrap) .v-size-title {
		flex: 1 1 100%;
	}
	:where(.bsh-summary-wrap) {
		--bsh-cat-thumb:    28px;
		--bsh-cat-thumb-w:  96px;
		--bsh-fmt-thumb:    24px;
		--bsh-fmt-thumb-w:  96px;
		--bsh-chip-thumb:   22px;
		--bsh-chip-thumb-w: 64px;
	}
}
