/*
 * AddOnBoss — the option set editor's frame (AddOnBoss #122, step 1).
 *
 * Wide: the editor (labelled sections in a card) beside the customer's page,
 * which stays in view while the editor scrolls. Narrow: one under the other.
 * Layout only: each set type's own controls keep their own styles in
 * admin.css until their redesign replaces them.
 */

.bb-ed2,
.bb-start {
	--bb-ed2-line: #e4e2e0;
	--bb-ed2-line-soft: #f0eeec;
	--bb-ed2-tint: #f7f6f5;
	--bb-ed2-ink: #1d2327;
	--bb-ed2-ink-2: #3c434a;
	--bb-ed2-muted: #646970;
	--bb-ed2-shadow: 0 1px 2px rgba(29, 35, 39, .06), 0 6px 18px rgba(29, 35, 39, .05);
}

.bb-ed2 {
	display: grid;
	gap: 22px;
	grid-template-columns: minmax(0, 1fr);
	max-width: 1500px;
	margin-top: 14px;
	color: var(--bb-ed2-ink);
}

/* Two columns once the content area can hold both (the admin menu takes
   160px of the window). */
@media (min-width: 1360px) {
	.bb-ed2 { grid-template-columns: minmax(0, 1.62fr) minmax(360px, 1fr); }
	.bb-ed2-side { position: sticky; top: 46px; align-self: start; }
}

.bb-ed2 .bb-ed2-edit { max-width: none; }

/* The card. Visible overflow, or the Save bar could not stick inside it. */
.bb-ed2 .bb-ed2-card {
	max-width: none;
	overflow: visible;
	border-color: var(--bb-ed2-line);
	border-radius: 14px;
	box-shadow: var(--bb-ed2-shadow);
	container-type: inline-size;
}

/* The crumb bar on the card. */
.bb-ed2 .bb-ed2-card > .bb-optsets-head {
	padding: 14px 24px;
	border-bottom: 1px solid var(--bb-ed2-line);
	border-radius: 14px 14px 0 0;
}

/* A section: the label column, then the content. */
.bb-ed2 .bb-sec {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	padding: 22px 24px;
	border-top: 1px solid var(--bb-ed2-line-soft);
}
.bb-ed2 .bb-sec[hidden] { display: none; }
.bb-ed2 .bb-sec[data-bb-sec="set"] { border-top: 0; }
@container (min-width: 760px) {
	.bb-ed2 .bb-sec { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
}
.bb-ed2 .bb-sec-h h2 { margin: 0; padding: 0; font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--bb-ed2-ink); }
.bb-ed2 .bb-sec-h p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--bb-ed2-muted); }
.bb-ed2 .bb-sec-b { display: grid; gap: 12px; min-width: 0; align-content: start; }

/* What the old card put its own gutters and rules on now sits inside a
   section, which owns both. */
.bb-ed2 .bb-sec .bb-msec { border-top: 0; padding: 0; }
.bb-ed2 .bb-sec .bb-msec + .bb-msec { margin-top: 6px; }
.bb-ed2 .bb-sec .bb-edrows { padding: 0; overflow-x: auto; }
.bb-ed2 .bb-sec .bb-edadd { padding: 0; }
.bb-ed2 .bb-sec .bb-edkind { margin: 0; }
.bb-ed2 .bb-sec .bb-msec-h:first-child { margin-top: 0; }

/* The set row: name, then what kind of set it is. */
.bb-ed2 .bb-ed2-namerow .bb-edname {
	width: 100%;
	max-width: 420px;
	height: 44px;
	font-size: 18px;
	font-weight: 600;
}
.bb-ed2 .bb-edkind {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	font-size: 14px;
	color: var(--bb-ed2-ink-2);
}
.bb-ed2 .bb-edkind .bb-edlive { margin-left: 0; font-size: 13px; }
.bb-ed2 .bb-ed2-tpl {
	color: var(--bb-ed2-ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: #cfcdcb;
	text-underline-offset: 3px;
}
.bb-ed2 .bb-ed2-tpl:hover { text-decoration-color: var(--bb-ed2-ink); }
.bb-ed2 .bb-kind-desc { margin: 0; }

/* The one line about tax, where prices are typed. */
.bb-ed2 .bb-vat-line { margin: 0; font-size: 13px; color: var(--bb-ed2-muted); }

/* The Save bar, in reach while scrolling. */
.bb-ed2 .bb-savebar {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 14px 24px;
	border-top: 1px solid var(--bb-ed2-line);
	border-radius: 0 0 14px 14px;
	background: #fff;
	box-shadow: 0 -8px 20px rgba(29, 35, 39, .07);
}
.bb-ed2 .bb-savebar .button.bb-cta { height: 38px; padding: 0 24px; font-size: 14px; }
.bb-ed2 .bb-savebar-say { font-size: 13.5px; color: var(--bb-ed2-muted); }
.bb-ed2 .bb-savebar.is-dirty .bb-savebar-say { color: var(--bb-ed2-ink); font-weight: 600; }
@container (max-width: 520px) {
	.bb-ed2 .bb-savebar { padding: 10px 16px; gap: 4px 12px; }
	.bb-ed2 .bb-savebar-say { font-size: 12.5px; }
}

/* A neutral focus ring (ink), so focus never reads as an error or an action. */
.bb-ed2 :focus-visible { outline: 2px solid var(--bb-ed2-ink); outline-offset: 2px; }
.bb-ed2 .bb-editor .bb-edname:focus { border-color: var(--bb-ed2-ink); }

/* Narrow: the card's own gutters shrink with the screen. */
@container (max-width: 600px) {
	.bb-ed2 .bb-sec,
	.bb-ed2 .bb-ed2-card > .bb-optsets-head { padding-left: 16px; padding-right: 16px; }
}

/* The customer's page beside the editor. */
.bb-ed2 .bb-ed2-side .bb-epv { margin-top: 0; max-width: none; border-color: var(--bb-ed2-line); border-radius: 14px; }

/* The new-set start screen: one card per kind of set, the card itself the
   button that starts it blank, its templates one click away underneath.
   A template panel spans the row under the cards ("dense" lets the cards
   after it keep their places); on a phone it opens under its own card. */
.bb-start { max-width: 1120px; color: var(--bb-ed2-ink); container-type: inline-size; }
.bb-start .bb-start-q {
	margin: 26px 0 16px;
	padding: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.01em;
	text-wrap: balance;
	color: var(--bb-ed2-ink);
}
.bb-start .bb-start-kinds {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-flow: row dense;
	gap: 16px;
	align-items: start;
}
.bb-start .bb-start-kinds.is-one { grid-template-columns: minmax(0, 440px); }
.bb-start .bb-start-col { display: grid; gap: 8px; min-width: 0; }
.bb-start .bb-start-card {
	display: grid;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--bb-ed2-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--bb-ed2-shadow);
	color: inherit;
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.bb-start .bb-start-card:hover { border-color: #8c8f94; box-shadow: 0 6px 18px rgba(29, 35, 39, .10); transform: translateY(-1px); color: inherit; }
.bb-start .bb-start-card:focus { box-shadow: var(--bb-ed2-shadow); color: inherit; }
.bb-start .bb-start-card:focus-visible { outline: 2px solid var(--bb-ed2-ink); outline-offset: 3px; }
.bb-start .bb-start-stage { display: block; height: 176px; overflow: hidden; background: #f3f1ee; }
.bb-start .bb-start-svg { display: block; width: 100%; height: 100%; }
.bb-start .bb-start-text { display: grid; gap: 4px; padding: 14px 16px 16px; }
.bb-start .bb-start-name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--bb-ed2-ink);
}
/* A marker, not an action, so it stays in the editor's greys. */
.bb-start .bb-start-badge {
	padding: 1px 8px;
	border: 1px solid var(--bb-ed2-line);
	border-radius: 999px;
	background: var(--bb-ed2-tint);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--bb-ed2-ink-2);
}
.bb-start .bb-start-line { font-size: 13.5px; line-height: 1.45; color: var(--bb-ed2-muted); }
.bb-start .bb-start-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--bb-ed2-ink); }
.bb-start .bb-start-card.is-first .bb-start-go { color: #d4381f; }
.bb-start .bb-start-arr { transition: transform .15s ease; }
.bb-start .bb-start-card:hover .bb-start-arr,
.bb-start .bb-start-card:focus-visible .bb-start-arr { transform: translateX(3px); }
.bb-start .bb-start-more {
	justify-self: start;
	padding: 2px 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--bb-ed2-ink-2);
	text-decoration: underline;
	text-decoration-color: #cfcdcb;
	text-underline-offset: 3px;
}
.bb-start .bb-start-more:hover,
.bb-start .bb-start-more[aria-expanded="true"] { color: var(--bb-ed2-ink); text-decoration-color: var(--bb-ed2-ink); }
.bb-start .bb-start-more:focus,
.bb-start .bb-start-tile:focus,
.bb-start .bb-start-close:focus { box-shadow: none; }
.bb-start .bb-start-more:focus-visible,
.bb-start .bb-start-tile:focus-visible,
.bb-start .bb-start-close:focus-visible { outline: 2px solid var(--bb-ed2-ink); outline-offset: 2px; }
.bb-start .bb-start-panel {
	grid-column: 1 / -1;
	display: grid;
	gap: 12px;
	min-width: 0;
	padding: 14px 16px 16px;
	border: 1px solid var(--bb-ed2-line);
	border-radius: 14px;
	background: var(--bb-ed2-tint);
}
.bb-start .bb-start-panel[hidden] { display: none; }
.bb-start .bb-start-phead { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.bb-start .bb-start-phead h3 { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--bb-ed2-ink); }
.bb-start .bb-start-close {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	font-size: 18px;
	line-height: 1;
	color: var(--bb-ed2-muted);
	text-decoration: none;
}
.bb-start .bb-start-close:hover { background: #ebe9e6; color: var(--bb-ed2-ink); }
.bb-start .bb-start-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 176px), 1fr)); gap: 10px; }
.bb-start .bb-start-tile {
	display: grid;
	gap: 8px;
	align-content: start;
	min-width: 0;
	padding: 12px;
	border: 1px solid var(--bb-ed2-line);
	border-radius: 12px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bb-start .bb-start-tile:hover { border-color: #8c8f94; box-shadow: 0 4px 12px rgba(29, 35, 39, .08); color: inherit; }
.bb-start .bb-start-tname { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--bb-ed2-ink); }
.bb-start .bb-start-tsay { font-size: 12.5px; line-height: 1.4; color: var(--bb-ed2-muted); font-variant-numeric: tabular-nums; }
.bb-ed2 .bb-edname::placeholder { color: #a7aaad; font-weight: 400; opacity: 1; }
.bb-ed2 .bb-cprice input.is-bad { border-color: #d63638; box-shadow: 0 0 0 1px #d63638; }
.bb-start .bb-start-mini {
	display: flex;
	/* One row of whole chips: a chip that would not fit wraps out of sight
	   instead of fading mid-word, which read as clipped ("Dou...", fresh
	   tester, 18 Oct 2026). */
	flex-wrap: wrap;
	align-items: center;
	align-content: flex-start;
	gap: 4px 4px;
	min-height: 26px;
	max-height: 26px;
	overflow: hidden;
}
.bb-start .bb-start-dot { flex: none; width: 18px; height: 18px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 50%; }
.bb-start .bb-start-chip {
	flex: none;
	padding: 2px 7px;
	border: 1px solid var(--bb-ed2-line);
	border-radius: 999px;
	background: #fff;
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--bb-ed2-ink-2);
}
.bb-start .bb-start-grid { display: grid; gap: 2px; }
.bb-start .bb-start-grid span { display: block; width: 16px; height: 10px; border-radius: 2px; background: #e7e4df; }
.bb-start .bb-start-grid span.is-on { background: #c9c4bc; }
.bb-start .bb-start-ask { margin: 0; font-size: 13.5px; color: var(--bb-ed2-muted); }
.bb-start .bb-start-ask a { color: var(--bb-ed2-ink); font-weight: 600; text-decoration-color: #cfcdcb; text-underline-offset: 3px; }
/* The drawings: plain shapes in the editor's own greys, so each card stands
   for any shop's set rather than one product's photo. */
.bb-start-svg .pk-paper { fill: #fff; stroke: #e4e2e0; }
.bb-start-svg .pk-head { fill: #cfcac3; }
.bb-start-svg .pk-bar { fill: #cfcac3; }
.bb-start-svg .pk-bar-soft { fill: #e2ded8; }
.bb-start-svg .pk-bar-on { fill: #fff; }
.bb-start-svg .pk-on { fill: var(--bb-ed2-ink); }
.bb-start-svg .pk-tint { fill: #f3f1ee; }
.bb-start-svg .pk-cell { fill: #fff; stroke: #e4e2e0; }
.bb-start-svg .pk-ring { fill: none; stroke: var(--bb-ed2-ink); stroke-width: 2; }
.bb-start-svg .pk-c1 { fill: #1d2327; }
.bb-start-svg .pk-c2 { fill: #f7f6f4; stroke: #d6d2cc; }
.bb-start-svg .pk-c3 { fill: #2f4a6d; }
.bb-start-svg .pk-c4 { fill: #b5523a; }
.bb-start-svg .pk-c5 { fill: #7d8f6b; }
.bb-start-svg .pk-c6 { fill: #d8c3a0; }
.bb-start-svg .pk-sign { fill: #ece8e2; stroke: #d6d1ca; }
.bb-start-svg .pk-sign-ink { fill: #cbc4ba; }
.bb-start-svg .pk-dim { fill: var(--bb-ed2-ink-2); }
@container (max-width: 700px) {
	.bb-start .bb-start-kinds { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
	.bb-start .bb-start-stage { height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
	.bb-start .bb-start-card,
	.bb-start .bb-start-arr,
	.bb-start .bb-start-tile { transition: none; }
	.bb-start .bb-start-card:hover { transform: none; }
}

/* A wrapper that only groups a switch so it can stand down; it draws
   nothing itself. */
.bb-ed2 .bb-cgroup { display: contents; }
.bb-ed2 .bb-cgroup[hidden] { display: none; }

/* A fieldset only groups fields so a whole set of them can stand down at
   once (a set type that draws its own rows); it draws nothing itself. */
.bb-ed2 fieldset.bb-ed2-fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.bb-ed2 fieldset.bb-ed2-fs[hidden] { display: none; }

/* admin.css rings every field of the older editors in coral, and forcefully;
   in this editor focus stays neutral. */
.bb-ed2 .bb-editor input:focus-visible,
.bb-ed2 .bb-editor select:focus-visible,
.bb-ed2 .bb-editor button:focus-visible,
.bb-ed2 .bb-editor a:focus-visible,
.bb-ed2 .bb-editor .bb-swbub:focus-within { outline-color: var(--bb-ed2-ink) !important; }

/* ---- A list of choices (AddOnBoss #122, step 3) ----
   One line per choice that edits in place: its picture, name, price and
   stock. Details opens the rest under it. One header row names the columns. */
.bb-ed2 .bb-clist { display: grid; border: 1px solid var(--bb-ed2-line); border-radius: 12px; overflow: hidden; background: #fff; }
.bb-ed2 .bb-ccols,
.bb-ed2 .bb-chead { display: grid; grid-template-columns: 14px 44px minmax(0, 1fr) 108px 112px; gap: 10px; align-items: center; padding: 9px 12px 9px 14px; }
.bb-ed2 .bb-clist.has-stock .bb-ccols,
.bb-ed2 .bb-clist.has-stock .bb-chead { grid-template-columns: 14px 44px minmax(0, 1fr) 108px 92px 112px; }
/* A set with no colour or photo anywhere has no picture column at all: a
   row of empty squares says "missing" when nothing is. */
.bb-ed2 .bb-clist.no-thumbs .bb-ccols,
.bb-ed2 .bb-clist.no-thumbs .bb-chead { grid-template-columns: 14px minmax(0, 1fr) 108px 112px; }
.bb-ed2 .bb-clist.no-thumbs.has-stock .bb-ccols,
.bb-ed2 .bb-clist.no-thumbs.has-stock .bb-chead { grid-template-columns: 14px minmax(0, 1fr) 108px 92px 112px; }
.bb-ed2 .bb-clist.no-thumbs .bb-cthumb,
.bb-ed2 .bb-clist.no-thumbs .bb-ccols > span:nth-child(2) { display: none; }
.bb-ed2 .bb-clist.no-thumbs .bb-cedit { padding-left: 38px; }
.bb-ed2 .bb-ccols { padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--bb-ed2-line); background: var(--bb-ed2-tint); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--bb-ed2-muted); }
.bb-ed2 .bb-ccols .bb-ccol-price,
.bb-ed2 .bb-ccols .bb-ccol-stock { text-align: right; white-space: nowrap; }
.bb-ed2 .bb-sec .bb-clist .bb-edrows { display: grid; padding: 0; overflow: visible; }
.bb-ed2 .bb-edrow { border-top: 1px solid var(--bb-ed2-line-soft); background: #fff; }
.bb-ed2 .bb-edrow:first-child { border-top: 0; }
.bb-ed2 .bb-chead { cursor: pointer; }
.bb-ed2 .bb-chead:hover { background: var(--bb-ed2-tint); }
.bb-ed2 .bb-edrow.is-open { background: var(--bb-ed2-tint); }
.bb-ed2 .bb-edrow.is-open .bb-chead:hover { background: transparent; }
.bb-ed2 .bb-edrow .bb-opt-grip { color: var(--bb-ed2-muted); cursor: grab; font-size: 13px; line-height: 1; text-align: center; user-select: none; }
.bb-ed2 .bb-cthumb { width: 44px; height: 44px; border: 1px solid var(--bb-ed2-line); border-radius: 9px; background-color: var(--bb-ed2-tint); background-size: cover; background-position: center; }
.bb-ed2 .bb-cthumb.is-none { background: repeating-conic-gradient(#eceef0 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.bb-ed2 .bb-edrow.bb-sw-need .bb-cthumb { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d97706; }
.bb-ed2 .bb-cname { display: grid; min-width: 0; }
.bb-ed2 .bb-cname .bb-edlabel { width: 100%; height: 34px; margin-left: -9px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; box-shadow: none; font-size: 15px; font-weight: 600; color: var(--bb-ed2-ink); }
.bb-ed2 .bb-cname .bb-edlabel:hover { border-color: var(--bb-ed2-line); }
.bb-ed2 .bb-cname .bb-edlabel:focus { border-color: #cfcdcb; background: #fff; box-shadow: none; }
.bb-ed2 .bb-cnote { overflow: hidden; font-size: 12.5px; color: var(--bb-ed2-muted); white-space: nowrap; text-overflow: ellipsis; }
.bb-ed2 .bb-cnote:empty { display: none; }
/* What a price table adds for the choice: "+15% on Roller blind size". */
.bb-ed2 .bb-cadj { font-size: 12.5px; font-weight: 600; color: var(--bb-ed2-ink-2, #50575e); }
.bb-ed2 .bb-cprice { display: flex; align-items: center; min-width: 0; height: 34px; border: 1px solid #cfcdcb; border-radius: 8px; background: #fff; }
.bb-ed2 .bb-cprice i { padding-left: 10px; font-size: 14px; font-style: normal; color: var(--bb-ed2-muted); white-space: nowrap; }
.bb-ed2 .bb-cprice input,
.bb-ed2 .bb-cprice input:focus { width: 100%; min-width: 0; height: 32px; padding: 0 10px 0 4px; border: 0; background: transparent; box-shadow: none; outline: none; font-size: 14.5px; text-align: right; font-variant-numeric: tabular-nums; }
.bb-ed2 .bb-cprice:focus-within { outline: 2px solid var(--bb-ed2-ink); outline-offset: 1px; }
.bb-ed2 .bb-chead .bb-edstock { width: 100%; height: 34px; padding: 0 10px; border: 1px solid #cfcdcb; border-radius: 8px; background: #fff; box-shadow: none; font-size: 14.5px; text-align: right; font-variant-numeric: tabular-nums; }
.bb-ed2 .bb-chead .bb-edstock:focus { border-color: var(--bb-ed2-ink); box-shadow: none; }
/* No spinner: it ate the room "Unlimited" needs, and stock is typed. */
.bb-ed2 .bb-chead .bb-edstock { -moz-appearance: textfield; appearance: textfield; }
.bb-ed2 .bb-chead .bb-edstock::-webkit-inner-spin-button,
.bb-ed2 .bb-chead .bb-edstock::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.bb-ed2 .bb-chead .bb-edstock.is-out { border-color: #e8c87a; background: #fdf5e3; color: #8a5a00; }
/* The row's expander: a caret that turns when the row opens, so it reads
   as something that opens (NN/g: the caret is the clearest accordion sign). */
.bb-ed2 .bb-cdetails { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 32px; padding: 6px 2px; border: 0; background: none; cursor: pointer; font-size: 12.5px; line-height: 1.25; color: var(--bb-ed2-muted); text-align: right; border-radius: 6px; }
/* The column fits "Edit details" and its caret; a longer translation wraps
   inside it rather than running into the stock box. */
.bb-ed2 .bb-cdetails::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .15s ease, margin .15s ease; }
.bb-ed2 .bb-cdetails[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.bb-ed2 .bb-cdetails:hover,
.bb-ed2 .bb-edrow.is-open .bb-cdetails { color: var(--bb-ed2-ink); font-weight: 600; }
.bb-ed2 .bb-cdetails:focus-visible { outline: 2px solid var(--bb-ed2-ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .bb-ed2 .bb-cdetails::after { transition: none; } }

/* A long list: a find box over it, "Show all N choices" under it. Folded rows
   stay in the form (they save as ever), just out of sight. */
.bb-ed2 .bb-edrow.is-folded { display: none; }
.bb-ed2 .bb-cfind { position: relative; margin: 0 0 10px; }
.bb-ed2 .bb-cfind[hidden] { display: none; }
.bb-ed2 .bb-cfind input[type=search] { width: 100%; height: 38px; padding: 0 12px 0 34px; border: 1px solid #cfcdcb; border-radius: 8px; background: #fff; box-shadow: none; font-size: 14px; }
.bb-ed2 .bb-cfind input[type=search]:focus { border-color: var(--bb-ed2-ink); box-shadow: none; outline: none; }
.bb-ed2 .bb-cfind-ico { position: absolute; left: 12px; top: 50%; width: 11px; height: 11px; margin-top: -7px; border: 1.6px solid var(--bb-ed2-muted); border-radius: 50%; pointer-events: none; }
.bb-ed2 .bb-cfind-ico::after { content: ""; position: absolute; right: -5px; bottom: -4px; width: 6px; height: 1.6px; background: var(--bb-ed2-muted); transform: rotate(45deg); }
.bb-ed2 .bb-cmore { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 40px; margin: 0; padding: 8px 12px; border: 0; border-top: 1px solid var(--bb-ed2-line, #ebe9e6); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--bb-ed2-ink); }
.bb-ed2 .bb-cmore[hidden] { display: none; }
.bb-ed2 .bb-cmore::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
.bb-ed2 .bb-cmore[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.bb-ed2 .bb-cmore:hover { background: rgba(0, 0, 0, .025); }
.bb-ed2 .bb-cmore:focus-visible { outline: 2px solid var(--bb-ed2-ink); outline-offset: -2px; }
.bb-ed2 .bb-cnomatch { margin: 0; padding: 14px; font-size: 13px; color: var(--bb-ed2-muted); }
.bb-ed2 .bb-cnomatch[hidden] { display: none; }

/* Details: the colour or photo, the note, what it can't go with, moving and
   removing. */
.bb-ed2 .bb-cedit { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding: 2px 14px 16px 84px; }
.bb-ed2 .bb-cedit[hidden],
.bb-ed2 .bb-cfld[hidden] { display: none; }
.bb-ed2 .bb-cfld { display: grid; gap: 6px; align-content: start; min-width: 0; }
.bb-ed2 .bb-cfld-h { font-size: 12.5px; font-weight: 600; color: var(--bb-ed2-muted); }
.bb-ed2 .bb-cfld-wide { grid-column: 1 / -1; }
.bb-ed2 .bb-cfld input[type="text"] { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #cfcdcb; border-radius: 8px; background: #fff; box-shadow: none; font-size: 14px; }
.bb-ed2 .bb-cfld input[type="text"]:focus { border-color: var(--bb-ed2-ink); box-shadow: none; }
.bb-ed2 .bb-cedit .bb-swpair { display: grid; gap: 8px; justify-items: start; }
.bb-ed2 .bb-swline { display: flex; align-items: center; gap: 10px; width: 100%; }
.bb-ed2 .bb-swline[hidden],
.bb-ed2 .bb-sw2-add[hidden] { display: none; }
.bb-ed2 .bb-swline input[type="text"] { flex: 1; max-width: 190px; }
.bb-ed2 .bb-cedit .bb-swbub2 { width: 26px; height: 26px; }
.bb-ed2 .bb-cedit .bb-swbub2.is-none { opacity: 1; }
.bb-ed2 .bb-sw2-add { padding: 0; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--bb-ed2-ink); text-decoration: underline; text-decoration-color: #cfcdcb; text-underline-offset: 3px; }
.bb-ed2 .bb-cfld-photo .bb-edphoto { position: relative; display: inline-block; }
.bb-ed2 .bb-cfld-photo .bb-ovr-img { width: 56px; height: 56px; min-height: 56px; flex: none; border-radius: 9px; }
.bb-ed2 .bb-cacts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.bb-ed2 .bb-cacts .bb-edmoves { display: inline-flex; gap: 18px; }
.bb-ed2 .bb-cacts .button-link { padding: 0; font-size: 13.5px; font-weight: 600; color: var(--bb-ed2-ink); text-decoration: underline; text-decoration-color: #cfcdcb; text-underline-offset: 3px; }
.bb-ed2 .bb-cacts .button-link:hover { text-decoration-color: currentColor; }
.bb-ed2 .bb-cacts .bb-opt-remove { color: #d4381f; text-decoration-color: #f0b1a5; }
.bb-ed2 .bb-edrow .bb-sw-need-line { padding: 0 14px 10px 84px; }

/* Under the list. */
.bb-ed2 .bb-cempty { margin: 0; padding: 18px 16px; font-size: 14px; color: var(--bb-ed2-ink-2); }
.bb-ed2 .bb-cempty[hidden] { display: none; }
.bb-ed2 #bb-rows-fs .bb-edadd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; padding: 0; }
.bb-ed2 #bb-rows-fs .bb-edhint { font-size: 13.5px; color: var(--bb-ed2-muted); }
.bb-ed2 .bb-cbtn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--bb-ed2-line); border-radius: 9px; background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--bb-ed2-ink); white-space: nowrap; }
.bb-ed2 .bb-cbtn:hover { border-color: var(--bb-ed2-ink-2); }
.bb-ed2 .bb-cbtn-add { border-style: dashed; background: transparent; color: var(--bb-ed2-ink-2); }
.bb-ed2 .bb-cbtn-dark { border-color: var(--bb-ed2-ink); background: var(--bb-ed2-ink); color: #fff; }
.bb-ed2 .bb-cbtn-dark:hover { border-color: var(--bb-ed2-ink); background: #000; }
.bb-ed2 .bb-clink { padding: 0; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--bb-ed2-ink); text-decoration: underline; text-decoration-color: #cfcdcb; text-underline-offset: 3px; }
.bb-ed2 .bb-clink:hover { text-decoration-color: var(--bb-ed2-ink); }
.bb-ed2 .bb-clink[hidden] { display: none; }
.bb-ed2 .bb-csame { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bb-ed2-tint); }
.bb-ed2 .bb-csame[hidden] { display: none; }
.bb-ed2 .bb-csame label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--bb-ed2-ink-2); }
.bb-ed2 .bb-csame .bb-cprice { width: 120px; height: 36px; }

/* The house segmented control: a tint track, the chosen one a white pill.
   Radios underneath, so the form posts what it always posted. */
.bb-ed2 .bb-cseg { display: inline-flex; flex-wrap: wrap; justify-self: start; gap: 2px; padding: 3px; border: 1px solid var(--bb-ed2-line); border-radius: 11px; background: var(--bb-ed2-tint); }
.bb-ed2 .bb-cseg .bb-seg { position: relative; display: inline-flex; align-items: center; overflow: visible; margin: 0; padding: 7px 14px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--bb-ed2-ink-2); white-space: nowrap; user-select: none; }
.bb-ed2 .bb-cseg .bb-seg:hover { color: var(--bb-ed2-ink); }
.bb-ed2 .bb-cseg .bb-seg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bb-ed2 .bb-cseg .bb-seg.is-on { background: #fff; color: var(--bb-ed2-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.bb-ed2 .bb-cseg .bb-seg:focus-within { outline: 2px solid var(--bb-ed2-ink); outline-offset: 1px; }

/* A switch, its name, and one line under it. */
.bb-ed2 .bb-ctoggle { display: grid; gap: 3px; }
.bb-ed2 .bb-ctoggle-l { display: inline-flex; align-items: center; justify-self: start; gap: 10px; cursor: pointer; font-size: 14.5px; color: var(--bb-ed2-ink); }
.bb-ed2 .bb-ctoggle-l input[type="checkbox"] { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 38px; height: 22px; margin: 0; border: 0; border-radius: 22px; background: #cfcdcb; box-shadow: none; cursor: pointer; transition: background-color .15s; }
.bb-ed2 .bb-ctoggle-l input[type="checkbox"]::before { content: none; }
.bb-ed2 .bb-ctoggle-l input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.bb-ed2 .bb-ctoggle-l input[type="checkbox"]:checked { background: var(--bb-ed2-ink); }
.bb-ed2 .bb-ctoggle-l input[type="checkbox"]:checked::after { left: 19px; }
.bb-ed2 .bb-ctoggle-d { padding-left: 48px; font-size: 13.5px; color: var(--bb-ed2-muted); }

/* A quiet line, and a warning that something will not show as intended. */
.bb-ed2 .bb-cquiet { margin: 0; font-size: 13.5px; color: var(--bb-ed2-muted); }
.bb-ed2 .bb-calert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; padding: 11px 14px; border: 1px solid #e8c87a; border-radius: 12px; background: #fdf5e3; font-size: 14px; color: #8a5a00; }
.bb-ed2 .bb-calert[hidden] { display: none; }
.bb-ed2 .bb-calert .bb-cbtn { padding: 5px 11px; font-size: 13px; }

/* Rules: pairs that can't be picked together, choices that clear the rest,
   and what a clash does. */
.bb-ed2 .bb-excl { display: grid; gap: 20px; }
.bb-ed2 .bb-excl[hidden],
.bb-ed2 .bb-excl [hidden] { display: none; }
.bb-ed2 .bb-excl-block { display: grid; gap: 8px; }
.bb-ed2 .bb-excl-h { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--bb-ed2-ink); }
.bb-ed2 .bb-excl-list { display: grid; gap: 8px; }
.bb-ed2 .bb-excl-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 8px 8px 14px; border: 1px solid var(--bb-ed2-line); border-radius: 12px; background: #fff; font-size: 14.5px; }
.bb-ed2 .bb-excl-gname { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--bb-ed2-muted); }
.bb-ed2 .bb-excl-names { flex: 1; min-width: 0; color: var(--bb-ed2-ink); }
.bb-ed2 .bb-excl-names b { font-weight: 600; }
.bb-ed2 .bb-excl-names i { padding: 0 2px; font-style: normal; color: var(--bb-ed2-muted); }
.bb-ed2 .bb-excl-rm { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 19px; line-height: 1; color: var(--bb-ed2-muted); }
.bb-ed2 .bb-excl-rm:hover { background: var(--bb-ed2-tint); color: var(--bb-ed2-ink); }
.bb-ed2 .bb-excl-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14.5px; color: var(--bb-ed2-ink-2); }
.bb-ed2 .bb-excl-add select { min-width: 0; max-width: 260px; height: 36px; padding: 0 28px 0 10px; border: 1px solid #cfcdcb; border-radius: 8px; box-shadow: none; font-size: 14px; }
.bb-ed2 .bb-excl-add .bb-cbtn[disabled] { opacity: .45; cursor: not-allowed; }
.bb-ed2 .bb-excl-ticks { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-ed2 .bb-excl-tick { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--bb-ed2-line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 14px; color: var(--bb-ed2-ink); }
.bb-ed2 .bb-excl-tick input { margin: 0; }
.bb-ed2 .bb-excl-idle .bb-calert { margin: 0; }

/* Shop page: what customers will see, one fact to a card. */
.bb-ed2 .bb-cfacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.bb-ed2 .bb-cfact { display: grid; gap: 3px; align-content: start; padding: 12px 14px; border: 1px solid var(--bb-ed2-line); border-radius: 12px; background: #fff; font-size: 13.5px; color: var(--bb-ed2-muted); }
.bb-ed2 .bb-cfact small { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--bb-ed2-muted); }
.bb-ed2 .bb-cfact b { font-size: 18px; color: var(--bb-ed2-ink); font-variant-numeric: tabular-nums; }
.bb-ed2 .bb-cfact.ok b::after { content: " \2713"; font-size: 15px; color: #1e6b3d; }
.bb-ed2 .bb-cfact.warn { border-color: #e8c87a; background: #fdf5e3; }
.bb-ed2 .bb-cfact.warn small,
.bb-ed2 .bb-cfact.warn b,
.bb-ed2 .bb-cfact.warn span { color: #8a5a00; }
.bb-ed2 .bb-cfact .bb-cbtn { justify-self: start; margin-top: 6px; padding: 5px 11px; font-size: 13px; }

/* Picking's bounds. */
.bb-ed2 .bb-multi-bounds { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; }
.bb-ed2 .bb-multi-bounds[hidden] { display: none; }
.bb-ed2 .bb-multi-bound { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--bb-ed2-ink-2); }
.bb-ed2 .bb-multi-bound input { width: 80px; height: 36px; padding: 0 10px; border: 1px solid #cfcdcb; border-radius: 8px; background: #fff; box-shadow: none; font-size: 14px; }
.bb-ed2 .bb-multi-bound input:focus { border-color: var(--bb-ed2-ink); box-shadow: none; }

/* Narrow: a choice takes two lines, its name and Details, then its price
   and stock; the header row has no columns left to name. */
@container (max-width: 600px) {
	.bb-ed2 .bb-ccols { display: none; }
	.bb-ed2 .bb-chead,
	.bb-ed2 .bb-clist.has-stock .bb-chead { grid-template-columns: 14px 40px minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "g t n n d" "g t p p p"; gap: 6px 10px; }
	.bb-ed2 .bb-clist.has-stock .bb-chead { grid-template-areas: "g t n n d" "g t p s s"; }
	/* On a phone the expander is its caret alone (the words stay for screen
	   readers, and a tap on the row head opens it too): the price and stock
	   boxes keep their room. */
	.bb-ed2 .bb-chead .bb-cdetails { min-width: 44px; min-height: 44px; justify-content: center; gap: 0; font-size: 0; }
	.bb-ed2 .bb-chead .bb-cdetails::after { width: 8px; height: 8px; }
	.bb-ed2 .bb-chead .bb-opt-grip { grid-area: g; }
	.bb-ed2 .bb-chead .bb-cthumb { grid-area: t; width: 40px; height: 40px; }
	.bb-ed2 .bb-chead .bb-cname { grid-area: n; }
	.bb-ed2 .bb-chead .bb-cprice { grid-area: p; }
	.bb-ed2 .bb-chead .bb-edstock { grid-area: s; }
	.bb-ed2 .bb-chead .bb-cdetails { grid-area: d; }
	.bb-ed2 .bb-cedit,
	.bb-ed2 .bb-clist.no-thumbs .bb-cedit { grid-template-columns: minmax(0, 1fr); padding: 2px 12px 14px; }
	.bb-ed2 .bb-edrow .bb-sw-need-line { padding: 0 12px 10px; }
	.bb-ed2 .bb-clist.no-thumbs .bb-chead,
	.bb-ed2 .bb-clist.no-thumbs.has-stock .bb-chead { grid-template-columns: 14px minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "g n n d" "g p p p"; }
	.bb-ed2 .bb-clist.no-thumbs.has-stock .bb-chead { grid-template-areas: "g n n d" "g p s s"; }
}
