/* BBDL Heated Package - product page configurator */

.bbdl-hp-configurator {
	margin: 1.5em 0;
}

.bbdl-hp-configurator .bbdl-hp-note {
	margin: 0 0 1em;
}

.bbdl-hp-slot {
	border: 1px solid #d9dde3;
	border-radius: 4px;
	margin: 0 0 1em;
	padding: 0.75em 1em 0.5em;
}

.bbdl-hp-slot legend {
	font-weight: 700;
	padding: 0 0.35em;
}

.bbdl-hp-req {
	font-weight: 400;
	font-size: 0.85em;
	opacity: 0.75;
}

.bbdl-hp-group-label {
	font-size: 0.9em;
	font-weight: 600;
	margin: 0.5em 0 0.25em;
}

.bbdl-hp-closeout-tag {
	font-weight: 400;
	opacity: 0.75;
}

.bbdl-hp-option {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25em 0.6em;
	padding: 0.3em 0;
	cursor: pointer;
}

.bbdl-hp-option input[type="radio"] {
	display: inline-block; /* the theme makes every input display:block; width:100% */
	width: auto;
	margin: 0;
	flex: 0 0 auto;
}

.bbdl-hp-name {
	flex: 1 1 12em;
}

.bbdl-hp-prices del {
	opacity: 0.6;
	margin-right: 0.3em;
}

.bbdl-hp-prices ins {
	text-decoration: none;
	font-weight: 700;
}

.bbdl-hp-stock {
	font-size: 0.85em;
	white-space: nowrap;
}

.bbdl-hp-stock--in_stock {
	color: #1e7b34;
}

.bbdl-hp-stock--backorder {
	color: #9a5b00;
}

.bbdl-hp-stock--unavailable {
	color: #8a8f98;
}

.bbdl-hp-option--unavailable {
	cursor: not-allowed;
	opacity: 0.6;
}

.bbdl-hp-total {
	font-weight: 700;
	margin: 1em 0;
}

.bbdl-hp-submit[disabled] {
	cursor: not-allowed;
	opacity: 0.5;
}

.bbdl-hp-dealer-note,
.bbdl-hp-unavailable {
	font-weight: 600;
	margin: 1.5em 0;
}

/* Package grouping: cart, checkout review, My Account / order received (rows classed by the mu-plugin) */

tr.bbdl-hp-header td {
	border-top: 2px solid #d9dde3;
}

tr.bbdl-hp-header .product-name {
	font-weight: 700;
}

tr.bbdl-hp-part .product-name {
	padding-left: 2em;
}

tr.bbdl-hp-part td,
tr.bbdl-hp-part th {
	border-top-color: transparent;
}

.bbdl-hp-qty {
	display: inline-block;
	min-width: 2em;
	text-align: center;
}

/* ---------------------------------------------------------------------------------------------------------------------
 * Button UI (configurator.js adds .bbdl-hp-js to the form). Stacked by default: cards, the package summary list, then
 * a bar that sticks to the bottom of the screen with the total and the button. When the form itself is wide enough
 * (container query) the summary becomes a sticky right-hand column holding the total and the button, and the bar goes.
 * Selectors are long on purpose: the theme styles every button, label and list.
 * ------------------------------------------------------------------------------------------------------------------- */

/* Built by the script; never shown if it bails out. */
.bbdl-hp-configurator:not(.bbdl-hp-js) .bbdl-hp-card-head,
.bbdl-hp-configurator:not(.bbdl-hp-js) .bbdl-hp-card-desc,
.bbdl-hp-configurator:not(.bbdl-hp-js) .bbdl-hp-rows {
	display: none;
}

.bbdl-hp-configurator.bbdl-hp-js {
	--hp-ink: #111111;
	--hp-muted: #5b6675;
	--hp-line: #e3e6ea;
	--hp-soft: #eef0f2;
	--hp-accent: #ffc233;
	--hp-green: #1e6b34;
	--hp-green-bg: #f1f8f2;
	--hp-amber: #7a4a00;
	--hp-amber-bg: #fff1cc;
	--hp-focus: #0b5cad;
	container-type: inline-size;
	container-name: bbdl-hp;
	font-family: Arial, Helvetica, sans-serif;
	color: var(--hp-ink);
}

.bbdl-hp-js [hidden] {
	display: none !important;
}

.bbdl-hp-js .bbdl-hp-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Radio lists stay in the form (they are what posts) but are hidden where the buttons took over. */
.bbdl-hp-js .bbdl-hp-slot--ui .bbdl-hp-group,
.bbdl-hp-js .bbdl-hp-slot--ui .bbdl-hp-option {
	display: none;
}

.bbdl-hp-js .bbdl-hp-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.bbdl-hp-js .bbdl-hp-slot {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 16px;
	background: #ffffff;
	border: 2px solid var(--hp-line);
	border-radius: 12px;
}

.bbdl-hp-js .bbdl-hp-slot.is-done {
	border-color: var(--hp-green);
}

.bbdl-hp-js .bbdl-hp-card-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.bbdl-hp-js .bbdl-hp-card-name {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.bbdl-hp-js .bbdl-hp-num {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--hp-ink);
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
}

.bbdl-hp-js .is-done .bbdl-hp-num {
	background: var(--hp-green);
}

.bbdl-hp-js h3.bbdl-hp-card-title {
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: var(--hp-ink);
}

.bbdl-hp-js .bbdl-hp-chip {
	flex-shrink: 0;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.bbdl-hp-js .bbdl-hp-chip--done {
	background: var(--hp-green);
	color: #ffffff;
}

.bbdl-hp-js .bbdl-hp-chip--required,
.bbdl-hp-js .bbdl-hp-chip--partial {
	background: var(--hp-amber-bg);
	color: var(--hp-amber);
}

.bbdl-hp-js .bbdl-hp-chip--optional {
	background: var(--hp-soft);
	color: var(--hp-muted);
	font-weight: 400;
}

.bbdl-hp-js p.bbdl-hp-card-desc {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 19px;
	color: var(--hp-muted);
}

.bbdl-hp-js .bbdl-hp-rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 12px;
}

.bbdl-hp-js .bbdl-hp-slot--list .bbdl-hp-group:first-of-type,
.bbdl-hp-js .bbdl-hp-slot--list .bbdl-hp-none {
	margin-top: 10px;
}

.bbdl-hp-js .bbdl-hp-row-label {
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: var(--hp-muted);
}

.bbdl-hp-js .bbdl-hp-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Choice buttons */
form.bbdl-hp-configurator.bbdl-hp-js button.bbdl-hp-choice {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	position: static;
	width: auto;
	min-height: 44px;
	margin: 0;
	padding: 10px 16px;
	overflow: visible;
	background: #ffffff;
	color: var(--hp-ink);
	border: 2px solid #c3c9d0;
	border-radius: 8px;
	box-shadow: none;
	font: 700 14px/1.2 Arial, Helvetica, sans-serif;
	letter-spacing: normal;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: border-color 0.12s, background-color 0.12s;
}

form.bbdl-hp-configurator.bbdl-hp-js button.bbdl-hp-choice:hover,
form.bbdl-hp-configurator.bbdl-hp-js button.bbdl-hp-choice:focus {
	background: #ffffff;
	color: var(--hp-ink);
	border-color: var(--hp-ink);
}

form.bbdl-hp-configurator.bbdl-hp-js button.bbdl-hp-choice[aria-pressed="true"] {
	background: var(--hp-ink);
	color: #ffffff;
	border-color: var(--hp-ink);
}

form.bbdl-hp-configurator.bbdl-hp-js button.bbdl-hp-choice:disabled {
	background: #f3f4f6;
	color: #6b7480;
	border: 2px dashed #d0d5db;
	text-decoration: line-through;
	cursor: not-allowed;
}

form.bbdl-hp-configurator.bbdl-hp-js button.bbdl-hp-choice:focus-visible,
form.bbdl-hp-configurator.bbdl-hp-js button.bbdl-hp-submit:focus-visible {
	outline: 3px solid var(--hp-focus);
	outline-offset: 2px;
}

.bbdl-hp-js .bbdl-hp-choice-label,
.bbdl-hp-js .bbdl-hp-choice-sub {
	display: block;
}

.bbdl-hp-js .bbdl-hp-choice-sub {
	margin-top: 3px;
	font-size: 12px;
	font-weight: 400;
}

/* "You picked" line */
.bbdl-hp-js .bbdl-hp-resolved {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 6px 16px;
	padding: 12px 14px;
	background: var(--hp-green-bg);
	border-radius: 8px;
}

.bbdl-hp-js .bbdl-hp-resolved-part {
	flex: 1 1 14em;
	min-width: 0;
}

.bbdl-hp-js .bbdl-hp-resolved-name {
	font-size: 14px;
	font-weight: 700;
}

.bbdl-hp-js .bbdl-hp-resolved-stock {
	margin-top: 3px;
	font-size: 12px;
	color: var(--hp-amber);
}

.bbdl-hp-js .bbdl-hp-resolved-stock.bbdl-hp-stock--in_stock {
	color: var(--hp-green);
}

.bbdl-hp-js .bbdl-hp-resolved-prices {
	white-space: nowrap;
}

.bbdl-hp-js .bbdl-hp-resolved-regular {
	font-size: 13px;
	color: var(--hp-muted);
}

.bbdl-hp-js .bbdl-hp-resolved-package {
	margin-left: 8px;
	font-size: 16px;
	font-weight: 700;
}

/* Summary */
.bbdl-hp-js .bbdl-hp-summary {
	margin-top: 12px;
	background: #ffffff;
	border: 2px solid var(--hp-ink);
	border-radius: 12px;
	overflow: hidden;
}

.bbdl-hp-js .bbdl-hp-summary-head {
	padding: 12px 16px;
	background: var(--hp-ink);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
}

.bbdl-hp-js ul.bbdl-hp-summary-list {
	margin: 0;
	padding: 4px 16px 8px;
	list-style: none;
}

.bbdl-hp-js li.bbdl-hp-summary-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px solid var(--hp-soft);
	list-style: none;
}

.bbdl-hp-js li.bbdl-hp-summary-row::before {
	content: none;
}

.bbdl-hp-js li.bbdl-hp-summary-row:last-child {
	border-bottom: 0;
}

.bbdl-hp-js .bbdl-hp-mark {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
}

.bbdl-hp-js .bbdl-hp-mark--done {
	background: var(--hp-green);
	color: #ffffff;
}

.bbdl-hp-js .bbdl-hp-mark--required,
.bbdl-hp-js .bbdl-hp-mark--partial {
	background: var(--hp-amber-bg);
	color: var(--hp-amber);
}

.bbdl-hp-js .bbdl-hp-mark--optional {
	background: var(--hp-soft);
	color: var(--hp-muted);
}

.bbdl-hp-js .bbdl-hp-summary-info {
	flex: 1 1 auto;
	min-width: 0;
}

.bbdl-hp-js .bbdl-hp-summary-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--hp-muted);
}

.bbdl-hp-js .bbdl-hp-summary-value {
	margin-top: 2px;
	font-size: 13px;
}

.bbdl-hp-js .bbdl-hp-summary-value--required,
.bbdl-hp-js .bbdl-hp-summary-value--partial {
	color: var(--hp-amber);
	font-style: italic;
}

.bbdl-hp-js .bbdl-hp-summary-value--optional {
	color: var(--hp-muted);
}

.bbdl-hp-js .bbdl-hp-summary-price {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

/* Total + button: in the bar while stacked, in the summary column when wide */
.bbdl-hp-js .bbdl-hp-summary-foot {
	display: none;
	padding: 14px 20px 20px;
}

.bbdl-hp-js .bbdl-hp-total-line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.bbdl-hp-js .bbdl-hp-total-label {
	font-size: 14px;
	font-weight: 700;
}

.bbdl-hp-js .bbdl-hp-total-amount {
	font-size: 24px;
	font-weight: 700;
}

.bbdl-hp-js .bbdl-hp-save,
.bbdl-hp-js .bbdl-hp-bar-save {
	margin-top: 4px;
	font-size: 13px;
	color: var(--hp-green);
	text-align: right;
}

.bbdl-hp-js p.bbdl-hp-fineprint {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 17px;
	color: var(--hp-muted);
}

form.bbdl-hp-configurator.bbdl-hp-js button.bbdl-hp-submit {
	display: block;
	position: static;
	width: 100%;
	min-height: 48px;
	margin: 14px 0 0;
	padding: 13px 26px;
	overflow: visible;
	background: #2ac16f; /* matches the theme's Add to Cart button */
	color: #fff;
	border: 3px solid #2ac16f;
	border-radius: 999px;
	box-shadow: none;
	font: 700 16px/1.2 "IBM Plex Sans", Arial, Helvetica, sans-serif;
	letter-spacing: normal;
	text-align: center;
	text-transform: none;
	opacity: 1;
	cursor: pointer;
}

form.bbdl-hp-configurator.bbdl-hp-js button.bbdl-hp-submit:hover,
form.bbdl-hp-configurator.bbdl-hp-js button.bbdl-hp-submit:focus {
	background: #22a35d;
	color: #fff;
	border-color: #22a35d;
}

form.bbdl-hp-configurator.bbdl-hp-js button.bbdl-hp-submit:disabled {
	background: #e4e7eb;
	color: #4a525c;
	border-color: #e4e7eb;
	opacity: 1;
	cursor: not-allowed;
}

.bbdl-hp-js .bbdl-hp-bar {
	position: sticky;
	bottom: 0;
	z-index: 20;
	margin-top: 16px;
	padding: 12px 16px 16px;
	background: #ffffff;
	border-top: 2px solid var(--hp-ink);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.bbdl-hp-js .bbdl-hp-bar-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.bbdl-hp-js .bbdl-hp-bar-done {
	font-size: 13px;
	color: #3a4453;
}

.bbdl-hp-js .bbdl-hp-bar-total {
	font-size: 20px;
	font-weight: 700;
}

.bbdl-hp-js .bbdl-hp-bar-save {
	margin-top: 2px;
	min-height: 1em;
	font-size: 12px;
}

form.bbdl-hp-configurator.bbdl-hp-js .bbdl-hp-bar button.bbdl-hp-submit {
	margin-top: 10px;
}

/* Wide form: cards | sticky summary column */
@container bbdl-hp (min-width: 760px) {
	.bbdl-hp-js .bbdl-hp-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 24px;
		align-items: start;
	}

	.bbdl-hp-js .bbdl-hp-cards {
		gap: 16px;
	}

	.bbdl-hp-js .bbdl-hp-slot {
		padding: 20px 24px;
	}

	.bbdl-hp-js .bbdl-hp-num {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.bbdl-hp-js h3.bbdl-hp-card-title {
		font-size: 18px;
	}

	.bbdl-hp-js .bbdl-hp-chip {
		padding: 5px 10px;
		font-size: 12px;
	}

	.bbdl-hp-js p.bbdl-hp-card-desc,
	.bbdl-hp-js .bbdl-hp-rows,
	.bbdl-hp-js .bbdl-hp-slot--list .bbdl-hp-group,
	.bbdl-hp-js .bbdl-hp-slot--list .bbdl-hp-none {
		margin-left: 44px;
	}

	.bbdl-hp-js .bbdl-hp-summary {
		position: sticky;
		top: 24px;
		margin-top: 0;
	}

	.bbdl-hp-js .bbdl-hp-summary-head {
		padding: 14px 20px;
		font-size: 13px;
	}

	.bbdl-hp-js ul.bbdl-hp-summary-list {
		padding: 8px 20px 4px;
	}

	.bbdl-hp-js .bbdl-hp-summary-label {
		font-size: 11px;
	}

	.bbdl-hp-js .bbdl-hp-summary-foot {
		display: block;
	}

	.bbdl-hp-js .bbdl-hp-bar {
		display: none;
	}
}
