/* ============================================================
   Starter Kit step-skin (ClickUp Task 5) — CSS ONLY.
   Skins the WooCommerce Product Bundles tabular form
   (table.bundled_products > tr.bundled_product) into step cards.
   No JS touches the form: validation / stock / price / cart untouched.
   Scoped to body.mason-starter-kit (set in PHP for starter-kit bundles).
   ============================================================ */

/* break the bundle table out of table layout into a stack of cards */
.mason-starter-kit .bundled_products { counter-reset: mason-kit-step; display: block; }
.mason-starter-kit .bundled_products > thead { display: none !important; } /* hide the "Product / Quantity" table head */
.mason-starter-kit .bundled_products > tbody { display: block; }
.mason-starter-kit .bundled_products > tbody > tr.bundled_product {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #e7ebe0;
	border-radius: 14px;
	padding: 16px;
	margin: 0 0 14px;
	counter-increment: mason-kit-step;
}
.mason-starter-kit tr.bundled_product > td.bundled_item_col { display: block; padding: 0; border: 0; vertical-align: top; }

/* image left */
.mason-starter-kit td.bundled_item_images_col { flex: 0 0 76px; }
.mason-starter-kit td.bundled_item_images_col img { width: 76px; height: auto; border-radius: 10px; display: block; margin: 0; }

/* details */
.mason-starter-kit td.bundled_item_details_col { flex: 1 1 auto; min-width: 0; }
.mason-starter-kit td.bundled_item_qty_col { display: none !important; }

/* component title becomes the step heading with a "Step N" eyebrow */
.mason-starter-kit h4.bundled_product_title { font-size: 15px; font-weight: 700; color: #16240f; line-height: 1.25; margin: 0 0 9px; }
.mason-starter-kit h4.bundled_product_title::before {
	content: "Step " counter(mason-kit-step);
	display: block;
	font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	color: #9a7b3e; margin-bottom: 3px;
}

/* nested variation table → block; theme's own label row-head stays hidden */
.mason-starter-kit tr.attribute_options { display: block; }
.mason-starter-kit tr.attribute_options > td { display: block; padding: 0; border: 0; }
.mason-starter-kit tr.attribute_options td.label { display: none !important; }
/* clean sub-heading per attribute group — my own pseudo-element from data-attribute_label,
   so a step with TWO choices (the tree = Tree Height + Setup Type) reads as two separate picks.
   Bypasses the theme td.label entirely so it can't clash with Flatsome. */
.mason-starter-kit tr.attribute_options[data-attribute_label]::before {
	content: attr(data-attribute_label);
	display: block;
	font-size: 12.5px; font-weight: 700; color: #16240f;
	margin: 15px 0 7px;
}
.mason-starter-kit tr.attribute_options[data-attribute_label]:first-child::before { margin-top: 6px; }
/* single-choice steps (star / baubles / lights): the step title is enough — no sub-heading */
.mason-starter-kit .variations tbody tr.attribute_options:only-child[data-attribute_label]::before { content: none; }

/* swatches as option buttons */
.mason-starter-kit .woo-variation-items-wrapper,
.mason-starter-kit ul.variable-items-wrapper {
	display: flex !important; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none;
}
.mason-starter-kit .variable-item {
	border: 1.5px solid #d8d2c2 !important;
	border-radius: 8px !important;
	padding: 7px 13px !important;
	margin: 0 !important;
	box-shadow: none !important;
	height: auto !important; width: auto !important; min-width: 0 !important;
	font-weight: 600;
}
.mason-starter-kit .variable-item.selected,
.mason-starter-kit .variable-item[aria-checked="true"] {
	border-color: #1f3d29 !important;
	background: #eef3e3 !important;
	box-shadow: inset 0 0 0 1px #1f3d29 !important;
}
/* image swatches (star / bauble colour) → fixed tile size, not full-width photos */
.mason-starter-kit li.variable-item.image-variable-item { padding: 3px !important; line-height: 0; }
.mason-starter-kit .variable-item img {
	width: 54px !important; height: 54px !important;
	object-fit: cover; border-radius: 6px; display: block; max-width: none;
}
/* keep unavailable options VISIBLE but SUBTLE — muted/greyed, and drop woo-variation-swatches'
   harsh red cross (and image blur), whichever way the plugin draws it */
.mason-starter-kit .variable-item.disabled {
	opacity: 0.5 !important;
	background-image: none !important;
	background-color: #fbfbfa !important;
	border-color: #ececec !important;
	box-shadow: none !important;
}
.mason-starter-kit .variable-item.disabled .variable-item-contents { background-image: none !important; }
.mason-starter-kit .variable-item.disabled::before,
.mason-starter-kit .variable-item.disabled::after,
.mason-starter-kit .variable-item.disabled .variable-item-contents::before,
.mason-starter-kit .variable-item.disabled .variable-item-contents::after {
	content: none !important; display: none !important; background: none !important;
}
.mason-starter-kit .variable-item.disabled img { filter: none !important; }

/* The Starter Kit tree is offered ONLY in 5ft/6ft (Justin) — hide the other, unavailable
   heights entirely (this overrides the subtle-disabled style above; it stays for other
   groups like setup-type ghosts). */
.mason-starter-kit ul[data-attribute_name="attribute_pa_tree-height"] .variable-item.disabled { display: none !important; }

/* Configurator heading above the steps (injected by js/starter-kit.js) */
.mason-kit-heading { text-align: left; margin: 0 0 18px; }
/* match the product title (h1.product-title: 31px / heading font). Using an <h2> inherits the
   same theme heading font-family, colour and weight; we only match the size + line-height. */
.mason-kit-heading__title { font-size: 31px; line-height: 1.3; margin: 0; }
.mason-kit-heading__sub { font-size: 14px; color: #6a6a62; margin: 6px 0 0; }

/* Step 5: Optional Add-Ons (CUW plugin section) as a clean WHITE step card, matching steps 1-4
   (the task lists Add-Ons as Step 5). The checkout area — price + Add to cart — stays theme default. */
.mason-starter-kit .cuw-product-addons {
	background: #fff !important;
	border: 1px solid #e7ebe0 !important;
	border-radius: 14px !important;
	padding: 16px !important;
	margin: 14px 0 !important;
}
/* Step 5 (add-ons) gap = the step-card gap (14px): zero the extra space above the section */
.mason-starter-kit .bundled_products { margin-bottom: 0 !important; }
.mason-starter-kit .bundled_products > tbody > tr.bundled_product:last-child { margin-bottom: 0 !important; }
.mason-starter-kit .bundle_data { margin-top: 0 !important; }
.mason-starter-kit .cuw-heading { font-size: 15px !important; font-weight: 700; color: #16240f; margin: 0 0 12px !important; }
/* step eyebrow rendered by starter-kit.js (editable in Mason Texts) */
.mason-starter-kit .cuw-product-row { border-top: 1px solid #f0f1ec; padding-top: 10px !important; }
.mason-starter-kit .cuw-product-row:first-of-type { border-top: 0; padding-top: 0 !important; }
.mason-starter-kit .cuw-product-image img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 8px; }
/* Add-ons stay a real CHECKBOX (square) — Alex 2026-07-01: these are genuinely multi-select
   (Collar + Skirt + Storage can all be added together), so the shape should keep signalling
   "pick any number", unlike the single-choice tree swatches above. Native plugin styling, untouched. */

@media (max-width: 849px) {
	/* card becomes block so the (bigger) image sits top-left and the option groups
	   run FULL-WIDTH under it — uses the space instead of cramming options in a narrow column */
	.mason-starter-kit .bundled_products > tbody > tr.bundled_product { display: block; padding: 15px; }
	.mason-starter-kit tr.bundled_product::after { content: ""; display: table; clear: both; }
	.mason-starter-kit tr.bundled_product > td.bundled_item_col { display: block; }
	/* bigger image, floated so the step heading + helper wrap neatly beside it */
	.mason-starter-kit td.bundled_item_images_col { float: left; width: 96px; margin: 2px 14px 6px 0; }
	.mason-starter-kit td.bundled_item_images_col img { width: 96px; }
	/* option groups clear the image → full width */
	.mason-starter-kit .variations { clear: left; }
	.mason-starter-kit tr.attribute_options[data-attribute_label]::before { font-size: 11.5px; margin: 8px 0 6px; }
	/* option buttons: smaller + lighter (not big/bold), still ~44px tap height, 2 per row */
	.mason-starter-kit .variable-item { padding: 10px 12px !important; font-weight: 500 !important; }
	.mason-starter-kit .variable-item-span-button { font-size: 13px !important; font-weight: 500 !important; }
	.mason-starter-kit .variable-item img { width: 46px !important; height: 46px !important; }
	.mason-starter-kit .woo-variation-items-wrapper { gap: 8px; }
	/* tighter helper text */
	.mason-starter-kit .bundled_product_excerpt p { font-size: 13px; line-height: 1.45; }
}

/* ===== Sticky Add to Cart bar (same as the tree PDP; here wired to the bundle) ===== */
.mason-sticky-cart {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 24px;
	background: #fff;
	border-top: 1px solid #e6e6e0;
	box-shadow: 0 -6px 22px rgba(20, 25, 15, .09);
	transform: translateY(115%);
	transition: transform .25s ease;
}
.mason-sticky-cart.is-visible { transform: translateY(0); }
.mason-sticky-cart__info { display: flex; flex-direction: column; min-width: 0; }
.mason-sticky-cart__name { font-weight: 600; font-size: 15px; color: #232323; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mason-sticky-cart__sel { font-size: 13px; color: #6a6a62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mason-sticky-cart__buy { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.mason-sticky-cart__price { font-size: 18px; font-weight: 700; color: #232323; white-space: nowrap; }
.mason-sticky-cart .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mason-sticky-cart__price del { font-weight: 400; color: #9a9a92; font-size: 15px; margin-right: 4px; }
.mason-sticky-cart__price ins { text-decoration: none; }
.mason-sticky-cart__btn {
	background: #212121; color: #fff; border: 0; border-radius: 2px;
	padding: 10px 24px; font-size: 13.5px; font-weight: 600; cursor: pointer;
	line-height: 1.2; min-height: 0; margin: 0 !important; align-self: center;
	transition: background-color .15s ease;
}
.mason-sticky-cart__btn:hover { background: #355612; }
@media (max-width: 849px) {
	.mason-sticky-cart { padding: 10px 14px; gap: 10px; }
	/* Justin (2026-07-04): hide the product title + "Select your options" block in the sticky on
	   mobile — the button label already carries the state; keep the bar to price + button. */
	.mason-sticky-cart__info { display: none !important; }
	.mason-sticky-cart__buy { flex: 1; justify-content: space-between; gap: 12px; }
	.mason-sticky-cart__price { font-size: 16px; }
	.mason-sticky-cart__btn { padding: 12px 16px; font-size: 13.5px; }
}
/* brief highlight when the sticky CTA scrolls the user to an unfinished step */
.mason-starter-kit .mason-attr-flash { animation: mason-kit-flash 1.6s ease; }
@keyframes mason-kit-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(53, 86, 18, 0); } 20%, 60% { box-shadow: 0 0 0 3px rgba(53, 86, 18, .4); } }

/* ==================== FREE Styling Gift step (SK REVAMP) ==================== */
/* Head card */
.mason-sk-gift-head td { padding: 0 !important; border: 0 !important; }
.mason-sk-gift-headinner {
	display: block; position: relative;
	background: #f7f7f2; border: 1px solid #e3e3de; border-radius: 12px;
	padding: 18px 18px 14px; margin: 18px 0 10px;
}
.mason-sk-gift-title { display: inline-block; font-size: 18px; font-weight: 700; color: #1a1a1a; margin-right: 10px; }
.mason-sk-gift-counter {
	display: inline-block; vertical-align: 2px;
	background: #355612; color: #fff; border-radius: 999px;
	font-size: 12px; font-weight: 600; letter-spacing: .03em;
	padding: 3px 12px;
}
.mason-sk-gift-counter.is-done { background: #2a450e; }
.mason-sk-gift-counter.is-done::after { content: " ✓"; }
.mason-sk-gift-sub { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: #55554e; }

/* Grid of gift tiles: 3 columns desktop, 2 on mobile */
.mason-sk-gift-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
tr.mason-sk-gift {
	display: block !important; position: relative;
	background: #fff; border: 1.5px solid #e3e3de; border-radius: 12px;
	padding: 10px !important; margin: 0 !important;
	cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
	overflow: hidden;
}
tr.mason-sk-gift:hover { border-color: #bfcfae; }
tr.mason-sk-gift.is-selected { border-color: #355612; box-shadow: 0 0 0 2px rgba(53, 86, 18, .18); }
tr.mason-sk-gift > td { display: block !important; width: 100% !important; padding: 0 !important; border: 0 !important; }
tr.mason-sk-gift td.bundled_item_images_col { float: none !important; max-width: none !important; width: 100% !important; }
tr.mason-sk-gift td.bundled_item_images_col img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; display: block; }
/* Descriptions are Justin's own short copy (override_description) — show them in full
   (the old 2-line clamp truncated 'Best with champagne, gold, rose gold or…'). */
tr.mason-sk-gift .bundled_item_details_col p,
tr.mason-sk-gift .bundled_product_excerpt {
	margin-bottom: 4px;
	font-size: 12px;
	line-height: 1.4;
	color: #6a6a62;
}
tr.mason-sk-gift .bundled_product_title { font-size: 13px !important; line-height: 1.3; margin: 8px 0 2px !important; padding: 0 !important; }
tr.mason-sk-gift .bundled_product_excerpt, tr.mason-sk-gift .bundled_product_description { font-size: 11.5px; color: #6a6a62; }
/* fixed-qty "5" text + price bits: keep it minimal */
tr.mason-sk-gift .bundled_item_col_qty, tr.mason-sk-gift .quantity { font-size: 11.5px; color: #6a6a62; }
tr.mason-sk-gift .bundled_product_optional_checkbox { font-size: 12px; }
/* whole tile clickable via the generated label; native checkbox stays for a11y */
label.mason-sk-gift-hit { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0; cursor: pointer; }
.mason-sk-gift-dot {
	position: absolute; top: 8px; right: 8px; z-index: 4;
	width: 20px; height: 20px; border-radius: 50%;
	border: 2px solid #cfcfc7; background: #fff;
}
tr.mason-sk-gift.is-selected .mason-sk-gift-dot { border-color: #355612; background: #355612; }
tr.mason-sk-gift.is-selected .mason-sk-gift-dot::after {
	content: ""; position: absolute; left: 5px; top: 2px;
	width: 5px; height: 9px;
	border-right: 2px solid #fff; border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}
.mason-sk-gift-freebadge {
	position: absolute; top: 8px; left: 8px; z-index: 4;
	background: #355612; color: #fff; border-radius: 4px;
	font-size: 10px; font-weight: 700; letter-spacing: .05em;
	padding: 2px 7px;
}
@media (max-width: 849px) {
	.mason-sk-gift-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	tr.mason-sk-gift td.bundled_item_col_thumbnail img { height: 92px; }
}

/* Green value box (contents + FREE gift) above the form — texts in Mason Texts */
/* Badge look, not a button (Justin: "looks clickable") — inline pill, auto width */
.mason-sk-value {
	display: inline-block;
	background: #eef3e6;
	border: 1px solid #b9cd9e;
	color: #2a450e;
	border-radius: 999px;
	padding: 8px 18px;
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.4;
	cursor: default;
}
.mason-sk-value strong { display: inline; font-size: 13px; font-weight: 700; margin: 0; }
.mason-sk-value p { display: inline; margin: 0 0 0 6px; color: #3f5a23; }

/* Step 6: WPupsell add-ons as a grid (Justin: 3x2 desktop) */
.mason-starter-kit .cuw-product-addons .cuw-products-row,
.mason-starter-kit .cuw-product-addons .cuw-product-list {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
@media (max-width: 849px) {
	.mason-starter-kit .cuw-product-addons .cuw-products-row,
	.mason-starter-kit .cuw-product-addons .cuw-product-list { grid-template-columns: repeat(2, 1fr); }
}

/* Gift tiles are NOT step cards: no step counter, no "Step N" prefix (Codex). */
tr.mason-sk-gift { counter-increment: none !important; }
tr.mason-sk-gift .bundled_product_title::before,
tr.mason-sk-gift h4.bundled_product_title::before { content: none !important; }

/* Gift head eyebrow "STEP 5" — same treatment as the other step eyebrows */
.mason-sk-gift-eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #a8893c;
	margin-bottom: 4px;
}

/* Gift tiles: the selection UI is the corner dot + whole-tile click — visually hide the
   native "Add" checkbox row (clip-rect keeps it functional and screen-reader reachable). */
tr.mason-sk-gift .bundled_product_optional_checkbox {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	margin: 0 !important;
	padding: 0 !important;
}

/* "max reached" hint under the gift head (shows for a moment on a bounced 3rd pick) */
.mason-sk-gift-msg {
	display: none;
	margin-top: 8px;
	background: #fdf3e4;
	border: 1px solid #ecc98f;
	color: #7a5416;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13px;
	line-height: 1.4;
}
.mason-sk-gift-msg.is-visible { display: block; }

/* Step 6 add-ons as TILES, same look as the Step-5 gift grid (Justin: 3x2 desktop). The
   plugin inlines its own flex styles, hence the !important overrides. */
.mason-starter-kit .cuw-product-addons .cuw-gird {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	flex-direction: unset !important;
}
.mason-starter-kit .cuw-product-row.mason-sk-addon {
	display: block !important;
	position: relative;
	background: #fff;
	border: 1.5px solid #e3e3de !important;
	border-radius: 12px;
	padding: 10px !important;
	margin: 0 !important;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
	overflow: hidden;
}
.mason-starter-kit .cuw-product-row.mason-sk-addon:hover { border-color: #bfcfae !important; }
.mason-starter-kit .cuw-product-row.mason-sk-addon.is-selected { border-color: #355612 !important; box-shadow: 0 0 0 2px rgba(53, 86, 18, .18); }
.mason-starter-kit .mason-sk-addon > div { display: block !important; }
.mason-starter-kit .mason-sk-addon .cuw-product-image {
	height: auto !important;
	width: 100% !important;
	margin-bottom: 8px;
}
.mason-starter-kit .mason-sk-addon .cuw-product-image img { width: 100% !important; height: 110px !important; object-fit: cover; border-radius: 8px; display: block; }
.mason-starter-kit .mason-sk-addon .cuw-product-title { font-size: 13px; line-height: 1.3; margin-bottom: 4px; }
.mason-starter-kit .mason-sk-addon .cuw-product-price { font-size: 13px; }
.mason-starter-kit .mason-sk-addon .cuw-product-price del { color: #9a9a92; margin-right: 4px; }
/* native checkbox hidden — the corner dot + tile click take over (same as gifts) */
.mason-starter-kit .mason-sk-addon .cuw-product-checkbox {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px);
	margin: 0 !important;
}
@media (max-width: 849px) {
	.mason-starter-kit .cuw-product-addons .cuw-gird { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.mason-starter-kit .mason-sk-addon .cuw-product-image img { height: 92px !important; }
}

/* Add-on tiles: selection dot fills like the gift tiles (was gift-row-scoped only) */
.mason-sk-addon.is-selected .mason-sk-gift-dot { border-color: #355612; background: #355612; }
.mason-sk-addon.is-selected .mason-sk-gift-dot::after {
	content: ""; position: absolute; left: 5px; top: 2px;
	width: 5px; height: 9px;
	border-right: 2px solid #fff; border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}
/* no qty steppers inside tiles — quantity stays 1, the cart handles the rest */
.mason-starter-kit .mason-sk-addon .cuw-product-quantity { display: none !important; }

/* No naked "$0.00" before options are chosen (JS tags the empty state) */
.mason-starter-kit .bundle_price.mason-zero { display: none !important; }

/* Friendly validation note instead of the raw quoted component list */
.mason-starter-kit .bundle_error .woocommerce-info {
	background: #f7f7f2 !important;
	border: 1px solid #e3e3de !important;
	border-radius: 10px;
	color: #55554e !important;
	font-size: 13.5px;
}
.mason-starter-kit .bundle_error .msg { list-style: none; margin: 0; padding: 0; }

/* Variant select inside an add-on tile must stay inside the tile */
.mason-sk-addon select {
	width: 100% !important;
	max-width: 100% !important;
	font-size: 11.5px;
	margin: 6px 0 0 !important;
	padding: 6px 22px 6px 8px;
	height: auto;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	border-radius: 8px;
}


/* Woo's "CLEAR" reset-variations link is redundant in the guided step flow (you switch
   by tapping another swatch) and dangled oddly next to the selected option (Alex). */
.mason-starter-kit .reset_variations { display: none !important; }
