/**
 * KB Candle Builder — front end.
 *
 * Theme-agnostic: everything is namespaced under .kcb and sets its own
 * box-sizing, so XStore's form styles can't leak in.
 */

.kcb,
.kcb *,
.kcb-sticky,
.kcb-sticky * {
	box-sizing: border-box;
}

form.cart.kcb,
.kcb {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
}

.kcb [hidden],
.kcb-modal[hidden] {
	display: none !important;
}

.kcb {
	--kcb-ink: #111;
	--kcb-line: #e2e0dc;
	--kcb-line-strong: #111;
	--kcb-muted: #6f6b66;
	--kcb-bg-soft: #faf9f7;
	--kcb-radius: 4px;
	--kcb-gap: 10px;

	display: block;
	width: 100%;
	margin: 24px 0 0;
	color: var(--kcb-ink);
}

/* ------------------------------------------------------------------ Steps */

.kcb-step {
	border-top: 1px solid var(--kcb-line);
	padding: 22px 0 24px;
	margin: 0;
}

.kcb-step:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.kcb-step-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 16px;
}

.kcb-num {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--kcb-ink);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
	margin-top: 1px;
}

.kcb-step-head h3 {
	margin: 0;
	font-size: 15px;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.3;
}

.kcb-sub {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--kcb-muted);
	line-height: 1.4;
}

.kcb-done {
	margin-left: auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid var(--kcb-line);
	position: relative;
	flex: 0 0 22px;
	transition: background .2s ease, border-color .2s ease;
}

.kcb-step.is-complete .kcb-done {
	background: var(--kcb-ink);
	border-color: var(--kcb-ink);
}

.kcb-step.is-complete .kcb-done:after {
	content: "";
	position: absolute;
	left: 7px;
	top: 3px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* ------------------------------------------------------------ Choice cards */

.kcb-cards {
	display: grid;
	gap: var(--kcb-gap);
}

.kcb-cards--qty {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.kcb-cards--pack {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.kcb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: left;
	padding: 16px 16px 18px;
	background: #fff;
	border: 1px solid var(--kcb-line);
	border-radius: var(--kcb-radius);
	cursor: pointer;
	font: inherit;
	color: inherit;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.kcb-card:hover {
	border-color: var(--kcb-line-strong);
	box-shadow: 0 6px 18px rgba(17, 17, 17, .08);
	transform: translateY(-2px);
}

.kcb-card:focus-visible {
	outline: 2px solid var(--kcb-ink);
	outline-offset: 2px;
}

.kcb-card.is-selected {
	border-color: var(--kcb-ink);
	box-shadow: inset 0 0 0 1px var(--kcb-ink);
}

.kcb-card[disabled] {
	opacity: .4;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.kcb-card-qty {
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.02em;
}

.kcb-card-title {
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-weight: 600;
}

.kcb-card--pack .kcb-card-title {
	font-size: 14px;
	letter-spacing: .06em;
}

.kcb-card-blurb {
	font-size: 13px;
	color: var(--kcb-muted);
	line-height: 1.45;
}

.kcb-card-price {
	font-size: 13px;
	color: var(--kcb-muted);
	margin-top: 2px;
}

.kcb-card--pack .kcb-card-price {
	margin-top: 8px;
	font-size: 17px;
	font-weight: 700;
	color: var(--kcb-ink);
}

/* Tick badge on selected cards */

.kcb-tick {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--kcb-ink);
	opacity: 0;
	transform: scale(.6);
	transition: opacity .18s ease, transform .18s ease;
}

.kcb-tick:after {
	content: "";
	position: absolute;
	left: 7px;
	top: 3px;
	width: 4px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.is-selected .kcb-tick {
	opacity: 1;
	transform: scale(1);
}

/* --------------------------------------------------------------- Stepper */

.kcb-stepper-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0 0;
	padding: 14px 16px;
	background: var(--kcb-bg-soft);
	border-radius: var(--kcb-radius);
}

.kcb-stepper-label {
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-weight: 600;
}

.kcb-stepper {
	display: inline-flex;
	align-items: stretch;
	border-radius: var(--kcb-radius);
	overflow: hidden;
}

.kcb-step-btn {
	width: 44px;
	height: 44px;
	border: 0;
	background: var(--kcb-ink);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, opacity .15s ease;
}

.kcb-step-btn:hover {
	background: #333;
}

.kcb-step-btn:disabled {
	opacity: .35;
	cursor: not-allowed;
}

.kcb-step-input {
	width: 78px;
	height: 44px;
	border: 1px solid var(--kcb-ink);
	border-left: 0;
	border-right: 0;
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	background: #fff;
	color: var(--kcb-ink);
	-moz-appearance: textfield;
	border-radius: 0;
}

.kcb-step-input::-webkit-outer-spin-button,
.kcb-step-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.kcb-stepper-note {
	font-size: 13px;
	color: var(--kcb-muted);
}

/* ---------------------------------------------------------------- Bulk */

.kcb-bulk {
	margin: 16px 0 0;
	padding: 18px;
	border: 1px dashed var(--kcb-line-strong);
	border-radius: var(--kcb-radius);
}

.kcb-bulk strong {
	display: block;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.kcb-bulk p {
	margin: 6px 0 12px;
	font-size: 13px;
	color: var(--kcb-muted);
}

/* -------------------------------------------------------------- Swatches */

.kcb-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
	gap: 12px 8px;
}

.kcb-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 4px 2px;
	background: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	color: inherit;
}

.kcb-swatch-dot {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, .18);
	position: relative;
	transition: transform .18s ease, box-shadow .18s ease;
}

.kcb-swatch:hover .kcb-swatch-dot {
	transform: scale(1.08);
	box-shadow: 0 4px 12px rgba(17, 17, 17, .18);
}

.kcb-swatch.is-selected .kcb-swatch-dot {
	box-shadow: 0 0 0 2px #fff inset, 0 0 0 2px var(--kcb-ink);
}

.kcb-swatch.is-selected .kcb-swatch-dot:after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 6px;
	height: 12px;
	margin: -8px 0 0 -3px;
	border: solid rgba(0, 0, 0, .55);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.kcb-swatch-name {
	font-size: 11px;
	line-height: 1.25;
	text-align: center;
	color: var(--kcb-muted);
}

.kcb-swatch.is-selected .kcb-swatch-name {
	color: var(--kcb-ink);
	font-weight: 600;
}

.kcb-swatch:focus-visible .kcb-swatch-dot {
	outline: 2px solid var(--kcb-ink);
	outline-offset: 3px;
}

/* Custom colour */

.kcb-custom {
	margin: 18px 0 0;
}

.kcb-custom-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	font: inherit;
	color: inherit;
	font-size: 14px;
}

.kcb-box {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	border: 1px solid var(--kcb-ink);
	border-radius: 3px;
	position: relative;
	background: #fff;
}

.kcb-custom-toggle[aria-pressed="true"] .kcb-box {
	background: var(--kcb-ink);
}

.kcb-custom-toggle[aria-pressed="true"] .kcb-box:after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.kcb-custom-toggle em {
	font-style: normal;
	color: var(--kcb-muted);
}

.kcb-custom-field {
	margin: 12px 0 0;
}

.kcb-custom-field label {
	display: block;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin: 0 0 6px;
	font-weight: 600;
}

.kcb-custom-field input {
	width: 100%;
	max-width: 420px;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--kcb-line-strong);
	border-radius: var(--kcb-radius);
	font-size: 15px;
	background: #fff;
}

/* ------------------------------------------------------------ Fragrances */

.kcb-families {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: var(--kcb-gap);
}

.kcb-family {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--kcb-line);
	border-radius: var(--kcb-radius);
	cursor: pointer;
	font: inherit;
	color: inherit;
	text-align: left;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.kcb-family:hover {
	border-color: var(--kcb-line-strong);
	box-shadow: 0 6px 18px rgba(17, 17, 17, .08);
	transform: translateY(-2px);
}

.kcb-family.is-selected {
	border-color: var(--kcb-ink);
	box-shadow: inset 0 0 0 1px var(--kcb-ink);
}

.kcb-family-icon {
	font-size: 22px;
	line-height: 1;
}

.kcb-family-name {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.3;
}

.kcb-family-count {
	font-size: 12px;
	color: var(--kcb-muted);
}

.kcb-back {
	background: none;
	border: 0;
	padding: 0 0 14px;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--kcb-muted);
}

.kcb-back:hover {
	color: var(--kcb-ink);
}

.kcb-scent-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--kcb-gap);
}

.kcb-scent {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
	padding: 16px 44px 16px 16px;
	background: #fff;
	border: 1px solid var(--kcb-line);
	border-radius: var(--kcb-radius);
	cursor: pointer;
	font: inherit;
	color: inherit;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.kcb-scent:hover {
	border-color: var(--kcb-line-strong);
	box-shadow: 0 6px 18px rgba(17, 17, 17, .08);
	transform: translateY(-2px);
}

.kcb-scent.is-selected {
	border-color: var(--kcb-ink);
	box-shadow: inset 0 0 0 1px var(--kcb-ink);
}

.kcb-scent-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.kcb-scent-name {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .03em;
}

.kcb-scent-fee {
	font-size: 12px;
	font-weight: 600;
}

.kcb-scent-desc {
	font-size: 13px;
	color: var(--kcb-muted);
	line-height: 1.45;
}

.kcb-notes {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px solid var(--kcb-line);
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--kcb-muted);
}

.kcb-notes strong {
	color: var(--kcb-ink);
	letter-spacing: .05em;
	text-transform: uppercase;
	font-size: 10.5px;
	margin-right: 4px;
}

.kcb-disclosure {
	margin: 16px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--kcb-muted);
	font-style: italic;
}

/* ---------------------------------------------------------------- Review */

.kcb-step--review {
	background: var(--kcb-bg-soft);
	border-radius: var(--kcb-radius);
	padding: 22px 20px 24px;
	border-top: 0;
	margin-top: 8px;
}

.kcb-review {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.kcb-review > li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0;
	border-bottom: 1px solid var(--kcb-line);
	font-size: 14px;
}

.kcb-review > li span {
	color: var(--kcb-muted);
}

.kcb-review > li em {
	font-style: normal;
	font-weight: 600;
	text-align: right;
}

.kcb-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 0 0 16px;
}

.kcb-total-each {
	font-size: 14px;
	color: var(--kcb-muted);
}

.kcb-total-sum {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-left: auto;
}

.kcb-total-label {
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--kcb-muted);
}

.kcb-total-value {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.kcb-error {
	margin: 0 0 14px;
	padding: 10px 12px;
	background: #fdf2f2;
	border-left: 3px solid #b32d2e;
	color: #8a2324;
	font-size: 13px;
	line-height: 1.45;
}

/* --------------------------------------------------------------- Buttons */

.kcb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 28px;
	background: var(--kcb-ink);
	color: #fff;
	border: 1px solid var(--kcb-ink);
	border-radius: var(--kcb-radius);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: none;
	transition: background .18s ease, opacity .18s ease;
}

.kcb-btn:hover {
	background: #333;
	color: #fff;
}

.kcb-btn--cart {
	width: 100%;
}

.kcb-btn--ghost {
	background: transparent;
	color: var(--kcb-ink);
	padding: 12px 22px;
}

.kcb-btn--ghost:hover {
	background: var(--kcb-ink);
	color: #fff;
}

.kcb-btn:disabled,
.kcb-btn[disabled] {
	opacity: .35;
	cursor: not-allowed;
}

.kcb-btn.is-loading {
	opacity: .6;
	pointer-events: none;
}

/* --------------------------------------------------------- Sticky bar */

.kcb-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	background: #fff;
	border-top: 1px solid var(--kcb-line);
	box-shadow: 0 -6px 20px rgba(17, 17, 17, .1);
}

.kcb-sticky-info {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.kcb-sticky-total {
	font-size: 19px;
	font-weight: 700;
}

.kcb-sticky-each {
	font-size: 12px;
	color: var(--kcb-muted);
}

.kcb-sticky .kcb-btn {
	margin-left: auto;
	width: auto;
	padding: 14px 22px;
	flex: 0 0 auto;
}

.kcb-cart-tier {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #6f6b66;
}

/* ---------------------------------------------------------------- Mobile */

@media (max-width: 767px) {

	.kcb-cards--qty {
		grid-template-columns: repeat(2, 1fr);
	}

	.kcb-cards--pack,
	.kcb-scent-list {
		grid-template-columns: 1fr;
	}

	.kcb-families {
		grid-template-columns: repeat(2, 1fr);
	}

	.kcb-swatches {
		grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
		gap: 10px 6px;
	}

	.kcb-swatch-dot {
		width: 42px;
		height: 42px;
	}

	.kcb-card-qty {
		font-size: 22px;
	}

	.kcb-step-head h3 {
		font-size: 14px;
	}

	.kcb-stepper-wrap {
		justify-content: space-between;
	}

	/* The sticky bar carries the action on small screens, so the inline
	   button would be a duplicate sitting just above it. */
	.kcb-sticky.is-visible {
		display: flex;
	}

	body.kcb-has-sticky {
		padding-bottom: 78px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.kcb-card,
	.kcb-family,
	.kcb-scent,
	.kcb-swatch-dot,
	.kcb-tick {
		transition: none;
	}

	.kcb-card:hover,
	.kcb-family:hover,
	.kcb-scent:hover {
		transform: none;
	}
}


/* ================================================================
 * Wizard chrome — progress, panels, nav, review modal
 * ============================================================== */

.kcb-progress {
	display: flex;
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	gap: 6px;
	counter-reset: none;
}

.kcb-pip {
	flex: 1 1 0;
	min-width: 0;
}

.kcb-pip > button {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 0 2px 10px;
	background: none;
	border: 0;
	border-bottom: 3px solid var(--kcb-line);
	cursor: pointer;
	font: inherit;
	color: var(--kcb-muted);
	transition: color .18s ease, border-color .18s ease;
}

.kcb-pip.is-locked > button {
	cursor: default;
	opacity: .55;
}

.kcb-pip-num {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--kcb-line);
	font-size: 12px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.kcb-pip-label {
	font-size: 10.5px;
	letter-spacing: .07em;
	text-transform: uppercase;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.kcb-pip.is-current > button {
	color: var(--kcb-ink);
	border-bottom-color: var(--kcb-ink);
}

.kcb-pip.is-current .kcb-pip-num {
	background: var(--kcb-ink);
	border-color: var(--kcb-ink);
	color: #fff;
}

.kcb-pip.is-done > button {
	color: var(--kcb-ink);
	border-bottom-color: var(--kcb-ink);
}

.kcb-pip.is-done .kcb-pip-num {
	background: var(--kcb-ink);
	border-color: var(--kcb-ink);
	color: transparent;
	position: relative;
}

.kcb-pip.is-done .kcb-pip-num:after {
	content: "";
	position: absolute;
	left: 9px;
	top: 5px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.kcb-panels {
	min-height: 220px;
}

.kcb-panel {
	display: block;
	width: 100%;
	animation: kcb-fade .22s ease both;
}

@keyframes kcb-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

.kcb-panel-title {
	margin: 0 0 4px;
	font-size: 16px;
	letter-spacing: .05em;
	text-transform: uppercase;
	line-height: 1.3;
}

.kcb-panel-sub {
	margin: 0 0 18px;
	font-size: 13px;
	color: var(--kcb-muted);
	line-height: 1.45;
}

/* Navigation bar */

.kcb-nav {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 24px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--kcb-line);
}

.kcb-nav-price {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	margin: 0 auto;
	text-align: center;
}

.kcb-nav-total {
	font-size: 19px;
	font-weight: 700;
}

.kcb-nav-each {
	font-size: 12px;
	color: var(--kcb-muted);
}

.kcb-nav .kcb-btn {
	flex: 0 0 auto;
	padding: 14px 26px;
}

/* Review modal */

.kcb-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.kcb-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, .55);
	animation: kcb-fade-in .2s ease both;
}

@keyframes kcb-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.kcb-modal-card {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 88vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 6px;
	padding: 30px 26px 26px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
	animation: kcb-pop .24s ease both;
}

@keyframes kcb-pop {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

.kcb-modal-card h3 {
	margin: 0;
	font-size: 17px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.kcb-modal-sub {
	margin: 4px 0 20px;
	font-size: 13px;
	color: var(--kcb-muted);
}

.kcb-modal-x {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: var(--kcb-muted);
}

.kcb-modal-x:hover {
	color: var(--kcb-ink);
}

.kcb-modal .kcb-review > li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	grid-template-areas: "label value edit";
	align-items: baseline;
	gap: 10px;
}

.kcb-modal .kcb-review > li > span:first-child {
	grid-area: label;
}

.kcb-modal .kcb-review > li em {
	grid-area: value;
}

.kcb-modal .kcb-review > li button {
	grid-area: edit;
}

.kcb-modal .kcb-review > li button {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--kcb-muted);
	text-decoration: underline;
	cursor: pointer;
}

.kcb-modal .kcb-review > li button:hover {
	color: var(--kcb-ink);
}

.kcb-modal-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 18px;
}

.kcb-modal-each {
	font-size: 13px;
	color: var(--kcb-muted);
}

.kcb-modal-sum {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.kcb-modal-keep {
	display: block;
	width: 100%;
	margin: 12px 0 0;
	padding: 10px;
	background: none;
	border: 0;
	font: inherit;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--kcb-muted);
	cursor: pointer;
}

.kcb-modal-keep:hover {
	color: var(--kcb-ink);
}

body.kcb-modal-open {
	overflow: hidden;
}

@media (max-width: 767px) {

	.kcb-pip-label {
		display: none;
	}

	.kcb-progress {
		gap: 4px;
	}

	.kcb-nav {
		position: sticky;
		bottom: 0;
		background: #fff;
		padding: 12px 0;
		margin-top: 20px;
		z-index: 20;
		box-shadow: 0 -6px 16px rgba(17, 17, 17, .06);
	}

	.kcb-nav .kcb-btn {
		padding: 13px 18px;
		font-size: 12px;
	}

	.kcb-nav-total {
		font-size: 17px;
	}

	.kcb-modal {
		padding: 0;
		align-items: flex-end;
	}

	.kcb-modal-card {
		max-width: none;
		max-height: 92vh;
		border-radius: 12px 12px 0 0;
		padding: 26px 20px 20px;
	}
}

/* ================================================================
 * Theme hardening
 *
 * XStore forces a fixed height, single-line white-space and hidden
 * overflow onto buttons. That squashed the swatch spans into ovals and
 * stopped the fragrance cards growing, so their notes spilled out and
 * overlapped. These rules sit last on purpose and win on specificity.
 * ============================================================== */

form.cart.kcb button,
.kcb-modal button {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
	line-height: 1.4;
	box-shadow: none;
	text-shadow: none;
	overflow-wrap: break-word;
	word-break: normal;
}

/* --- Cards must be able to grow with their content --- */

form.cart.kcb .kcb-card,
form.cart.kcb .kcb-family,
form.cart.kcb .kcb-scent {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	text-align: left !important;
	width: 100% !important;
	height: auto !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	border-radius: var(--kcb-radius) !important;
	background-color: #fff !important;
	color: inherit !important;
}

form.cart.kcb .kcb-card:hover,
form.cart.kcb .kcb-family:hover,
form.cart.kcb .kcb-scent:hover {
	background-color: #fff !important;
	color: inherit !important;
}

form.cart.kcb .kcb-scent-list,
form.cart.kcb .kcb-cards,
form.cart.kcb .kcb-families {
	align-items: stretch;
}

form.cart.kcb .kcb-scent-head,
form.cart.kcb .kcb-notes {
	width: 100%;
	display: flex !important;
}

form.cart.kcb .kcb-scent-head {
	flex-direction: row !important;
	flex-wrap: wrap;
}

form.cart.kcb .kcb-notes {
	flex-direction: column !important;
}

form.cart.kcb .kcb-notes span,
form.cart.kcb .kcb-scent-desc,
form.cart.kcb .kcb-card-blurb {
	display: block;
	white-space: normal !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

/* --- Swatches: perfect circles, whatever the theme does to spans --- */

form.cart.kcb .kcb-swatches {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)) !important;
	gap: 18px 10px !important;
	align-items: start;
}

form.cart.kcb .kcb-swatch {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 8px !important;
	width: 100% !important;
	height: auto !important;
	padding: 2px !important;
	margin: 0 !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
}

form.cart.kcb .kcb-swatch-dot {
	display: block !important;
	box-sizing: border-box !important;
	width: 52px !important;
	height: 52px !important;
	min-width: 52px !important;
	min-height: 52px !important;
	max-width: 52px !important;
	max-height: 52px !important;
	flex: 0 0 52px !important;
	aspect-ratio: 1 / 1;
	padding: 0 !important;
	margin: 0 auto !important;
	border-radius: 50% !important;
	background-clip: padding-box;
}

form.cart.kcb .kcb-swatch-name {
	display: block !important;
	width: 100%;
	font-size: 11px !important;
	line-height: 1.3 !important;
	letter-spacing: .02em !important;
	text-align: center !important;
	text-transform: uppercase !important;
	white-space: normal !important;
	overflow-wrap: break-word;
	min-height: 2.6em;
}

/* --- Stepper: the theme likes to restyle number inputs --- */

form.cart.kcb .kcb-stepper-wrap,
form.cart.kcb .kcb-stepper {
	max-width: 100%;
}

form.cart.kcb .kcb-step-btn {
	width: 46px !important;
	height: 46px !important;
	min-width: 46px !important;
	flex: 0 0 46px;
	padding: 0 !important;
	border-radius: 0 !important;
	background: var(--kcb-ink) !important;
	color: #fff !important;
	font-size: 20px !important;
}

form.cart.kcb .kcb-step-btn:hover {
	background: #333 !important;
}

form.cart.kcb .kcb-step-input {
	height: 46px !important;
	min-height: 46px !important;
	width: 84px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0 !important;
	text-align: center !important;
	background: #fff !important;
}

/* --- Nav buttons keep their fill --- */

form.cart.kcb .kcb-btn,
.kcb-modal .kcb-btn {
	background: var(--kcb-ink) !important;
	color: #fff !important;
	border-radius: var(--kcb-radius) !important;
	width: auto;
	height: auto !important;
}

form.cart.kcb .kcb-btn:hover,
.kcb-modal .kcb-btn:hover {
	background: #333 !important;
	color: #fff !important;
}

form.cart.kcb .kcb-btn--ghost {
	background: transparent !important;
	color: var(--kcb-ink) !important;
	border: 1px solid var(--kcb-ink) !important;
}

form.cart.kcb .kcb-btn--ghost:hover {
	background: var(--kcb-ink) !important;
	color: #fff !important;
}

.kcb-modal .kcb-btn--cart {
	width: 100% !important;
}

/* --- Progress pips --- */

form.cart.kcb .kcb-progress button {
	background: none !important;
	border-radius: 0 !important;
	color: inherit !important;
}

form.cart.kcb .kcb-pip-num {
	flex: 0 0 26px;
	width: 26px !important;
	height: 26px !important;
	min-width: 26px !important;
	border-radius: 50% !important;
	padding: 0 !important;
}

form.cart.kcb .kcb-pip.is-current .kcb-pip-num,
form.cart.kcb .kcb-pip.is-done .kcb-pip-num {
	background: var(--kcb-ink) !important;
}

/* --- Tick badges stay circular --- */

form.cart.kcb .kcb-tick {
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
	border-radius: 50% !important;
	flex: none !important;
}

/* --- Fragrance list breathing room --- */

form.cart.kcb .kcb-scent-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
	gap: 12px !important;
}

form.cart.kcb .kcb-disclosure {
	clear: both;
	display: block;
	margin-top: 20px !important;
}

@media (max-width: 767px) {

	form.cart.kcb .kcb-swatches {
		grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)) !important;
		gap: 16px 8px !important;
	}

	form.cart.kcb .kcb-swatch-dot {
		width: 46px !important;
		height: 46px !important;
		min-width: 46px !important;
		min-height: 46px !important;
		max-width: 46px !important;
		max-height: 46px !important;
		flex-basis: 46px !important;
	}

	form.cart.kcb .kcb-scent-list {
		grid-template-columns: 1fr !important;
	}
}

/* ================================================================
 * Contrast pass
 *
 * Every muted grey is taken to near-black. Hierarchy is carried by
 * size and weight instead of colour, which reads better on a cream
 * background and is far kinder on mobile in daylight.
 * ============================================================== */

form.cart.kcb,
.kcb-modal {
	--kcb-muted: #111;
	--kcb-ink: #111;
}

form.cart.kcb .kcb-panel-sub,
form.cart.kcb .kcb-card-price,
form.cart.kcb .kcb-card-blurb,
form.cart.kcb .kcb-card-title,
form.cart.kcb .kcb-scent-desc,
form.cart.kcb .kcb-scent-fee,
form.cart.kcb .kcb-notes,
form.cart.kcb .kcb-notes span,
form.cart.kcb .kcb-notes strong,
form.cart.kcb .kcb-swatch-name,
form.cart.kcb .kcb-stepper-note,
form.cart.kcb .kcb-stepper-label,
form.cart.kcb .kcb-disclosure,
form.cart.kcb .kcb-nav-each,
form.cart.kcb .kcb-nav-total,
form.cart.kcb .kcb-family-count,
form.cart.kcb .kcb-family-name,
form.cart.kcb .kcb-pip-label,
form.cart.kcb .kcb-bulk p,
form.cart.kcb .kcb-custom-toggle,
form.cart.kcb .kcb-custom-toggle em,
form.cart.kcb .kcb-custom-field label,
.kcb-modal .kcb-modal-sub,
.kcb-modal .kcb-modal-each,
.kcb-modal .kcb-total-label,
.kcb-modal .kcb-review > li span,
.kcb-modal .kcb-review > li em,
.kcb-modal .kcb-review > li button,
.kcb-modal .kcb-modal-keep,
.kcb-modal .kcb-modal-x {
	color: #111 !important;
	opacity: 1 !important;
}

/* Progress: only a step you have not reached yet stays dimmed, and even
   then it is legible rather than ghosted. */
form.cart.kcb .kcb-pip.is-locked > button {
	opacity: 1 !important;
	color: #111 !important;
}

form.cart.kcb .kcb-pip.is-locked .kcb-pip-num {
	border-color: #999 !important;
}

/* --- "All fragrance families" as a real button --- */

form.cart.kcb .kcb-back {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	width: auto !important;
	margin: 0 0 18px !important;
	padding: 12px 20px !important;
	background: #111 !important;
	color: #fff !important;
	border: 1px solid #111 !important;
	border-radius: var(--kcb-radius) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .08em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: background .18s ease;
}

form.cart.kcb .kcb-back:hover,
form.cart.kcb .kcb-back:focus {
	background: #333 !important;
	color: #fff !important;
	border-color: #333 !important;
}

/* --- Headings carry the hierarchy now --- */

form.cart.kcb .kcb-panel-title {
	font-size: 17px !important;
	font-weight: 800 !important;
	letter-spacing: .04em !important;
	color: #111 !important;
}

form.cart.kcb .kcb-scent-name {
	font-size: 17px !important;
	font-weight: 800 !important;
	letter-spacing: -.01em !important;
	text-transform: none !important;
	line-height: 1.25 !important;
	color: #111 !important;
}

form.cart.kcb .kcb-scent-desc {
	font-size: 13.5px !important;
	font-weight: 500 !important;
}

form.cart.kcb .kcb-family-name {
	font-size: 13.5px !important;
	font-weight: 800 !important;
}

form.cart.kcb .kcb-card--qty .kcb-card-qty {
	font-weight: 800 !important;
	color: #111 !important;
}

form.cart.kcb .kcb-card--pack .kcb-card-title {
	font-size: 16px !important;
	font-weight: 800 !important;
	letter-spacing: .03em !important;
}

/* Note labels stay uppercase but sit at a lighter weight than the values
   so the line still parses at a glance without using grey. */
form.cart.kcb .kcb-notes strong {
	font-weight: 800 !important;
	font-size: 10.5px !important;
}

form.cart.kcb .kcb-notes span {
	font-size: 12.5px !important;
	line-height: 1.55 !important;
}

/* Separators do the work grey text used to do. */
form.cart.kcb .kcb-notes {
	border-top-color: #d8d5d0 !important;
}

form.cart.kcb .kcb-scent-desc {
	padding-bottom: 2px;
}

/* ================================================================
 * Final overrides — must stay last in the file
 *
 * The card rules above use `display: flex !important`, which ties with
 * the earlier `[hidden] { display: none !important }` on specificity and
 * wins on source order. That forced hidden cards back into view — a
 * packaging option with no price was still appearing as a choice.
 * ============================================================== */

form.cart.kcb [hidden],
form.cart.kcb .kcb-card[hidden],
form.cart.kcb .kcb-card--pack[hidden],
form.cart.kcb .kcb-family[hidden],
form.cart.kcb .kcb-scent[hidden],
form.cart.kcb .kcb-panel[hidden],
form.cart.kcb .kcb-scents[hidden],
form.cart.kcb .kcb-families[hidden],
form.cart.kcb .kcb-stepper-wrap[hidden],
form.cart.kcb .kcb-bulk[hidden],
form.cart.kcb .kcb-custom-field[hidden],
form.cart.kcb .kcb-error[hidden],
.kcb-modal[hidden] {
	display: none !important;
}

/* --- Modal buttons: explicit hex, no custom properties, high specificity.
       The theme was winning the background and leaving white on white. --- */

body .kcb-modal .kcb-modal-card button.kcb-btn,
body .kcb-modal button[data-kcb-submit] {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 17px 24px !important;
	background: #111 !important;
	background-color: #111 !important;
	background-image: none !important;
	color: #ffffff !important;
	border: 1px solid #111 !important;
	border-radius: 4px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .1em !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
	opacity: 1 !important;
	visibility: visible !important;
	text-shadow: none !important;
	box-shadow: none !important;
	cursor: pointer;
}

body .kcb-modal .kcb-modal-card button.kcb-btn:hover,
body .kcb-modal button[data-kcb-submit]:hover {
	background: #333 !important;
	background-color: #333 !important;
	color: #ffffff !important;
	border-color: #333 !important;
}

/* --- "Edit order" as an outlined button --- */

body .kcb-modal .kcb-modal-card button.kcb-modal-keep {
	margin-top: 10px !important;
	padding: 15px 24px !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	color: #111 !important;
	border: 1px solid #111 !important;
}

body .kcb-modal .kcb-modal-card button.kcb-modal-keep:hover {
	background: #111 !important;
	background-color: #111 !important;
	color: #ffffff !important;
	border-color: #111 !important;
}

/* --- Same treatment for the wizard's own Next / Back --- */

body form.cart.kcb .kcb-nav button.kcb-btn {
	background: #111 !important;
	background-color: #111 !important;
	background-image: none !important;
	color: #ffffff !important;
	border: 1px solid #111 !important;
	opacity: 1 !important;
	text-shadow: none !important;
}

body form.cart.kcb .kcb-nav button.kcb-btn:hover {
	background: #333 !important;
	background-color: #333 !important;
	color: #ffffff !important;
}

body form.cart.kcb .kcb-nav button.kcb-btn:disabled {
	background: #b8b5b0 !important;
	background-color: #b8b5b0 !important;
	border-color: #b8b5b0 !important;
	color: #ffffff !important;
	cursor: not-allowed;
}

body form.cart.kcb .kcb-nav button.kcb-btn--ghost {
	background: transparent !important;
	background-color: transparent !important;
	color: #111 !important;
	border: 1px solid #111 !important;
}

body form.cart.kcb .kcb-nav button.kcb-btn--ghost:hover {
	background: #111 !important;
	background-color: #111 !important;
	color: #ffffff !important;
}

/* ================================================================
 * Added to cart
 * ============================================================== */

.kcb-modal--done .kcb-modal-card {
	text-align: center;
	max-width: 420px;
	padding-top: 34px;
}

.kcb-done-mark {
	width: 62px;
	height: 62px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #111;
	position: relative;
	animation: kcb-mark-in .32s cubic-bezier(.2, .9, .3, 1.2) both;
}

.kcb-done-mark span {
	position: absolute;
	left: 21px;
	top: 16px;
	width: 14px;
	height: 26px;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
	transform-origin: center;
	animation: kcb-tick-in .26s .16s ease both;
}

@keyframes kcb-mark-in {
	from { opacity: 0; transform: scale(.5); }
	to   { opacity: 1; transform: none; }
}

@keyframes kcb-tick-in {
	from { opacity: 0; transform: rotate(45deg) scale(.4); }
	to   { opacity: 1; transform: rotate(45deg) scale(1); }
}

.kcb-modal--done h3 {
	margin: 0 0 20px !important;
}

.kcb-done-item {
	display: flex;
	align-items: center;
	gap: 12px;
	text-align: left;
	padding: 12px;
	margin: 0 0 14px;
	background: #faf9f7;
	border-radius: 4px;
}

.kcb-done-thumb {
	flex: 0 0 56px;
	width: 56px;
	line-height: 0;
}

.kcb-done-thumb img {
	width: 56px !important;
	height: 56px !important;
	object-fit: cover;
	border-radius: 3px;
	display: block;
	margin: 0 !important;
}

.kcb-done-detail {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.kcb-done-detail strong {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
	color: #111;
}

.kcb-done-detail span {
	font-size: 12px;
	line-height: 1.4;
	color: #111;
}

.kcb-done-price {
	margin-left: auto;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	color: #111;
}

.kcb-done-cart {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 18px;
	padding: 0 2px 14px;
	border-bottom: 1px solid #e2e0dc;
	font-size: 13px;
	color: #111;
}

.kcb-done-carttotal {
	font-weight: 700;
}

body .kcb-modal--done .kcb-modal-card a.kcb-btn,
body .kcb-modal--done .kcb-modal-card button.kcb-btn {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 17px 24px !important;
	background: #111 !important;
	background-color: #111 !important;
	background-image: none !important;
	color: #fff !important;
	border: 1px solid #111 !important;
	border-radius: 4px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .1em !important;
	text-transform: uppercase !important;
	text-align: center !important;
	text-decoration: none !important;
	line-height: 1.2 !important;
	opacity: 1 !important;
	visibility: visible !important;
}

body .kcb-modal--done .kcb-modal-card a.kcb-btn:hover,
body .kcb-modal--done .kcb-modal-card button.kcb-btn:hover {
	background: #333 !important;
	background-color: #333 !important;
	color: #fff !important;
}

body .kcb-modal--done .kcb-modal-card button.kcb-done-continue {
	margin-top: 10px !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #111 !important;
	border: 1px solid #111 !important;
}

body .kcb-modal--done .kcb-modal-card button.kcb-done-continue:hover {
	background: #111 !important;
	background-color: #111 !important;
	color: #fff !important;
}

.kcb-done-viewcart {
	display: inline-block;
	margin: 14px 0 0;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #111 !important;
	text-decoration: underline;
}

@media (max-width: 767px) {

	.kcb-modal--done .kcb-modal-card {
		max-width: none;
		padding-top: 28px;
	}

	.kcb-done-mark {
		width: 54px;
		height: 54px;
	}

	.kcb-done-mark span {
		left: 18px;
		top: 13px;
		width: 12px;
		height: 23px;
	}
}

/* Keep the spacing right on panels that have no subheading. */
form.cart.kcb .kcb-panel-title + .kcb-cards,
form.cart.kcb .kcb-panel-title + .kcb-swatches,
form.cart.kcb .kcb-panel-title + .kcb-families {
	margin-top: 18px;
}

/* --- Running total: the most important number on the page --- */

form.cart.kcb .kcb-nav-price {
	gap: 2px;
}

form.cart.kcb .kcb-nav-total {
	font-size: 26px !important;
	font-weight: 800 !important;
	letter-spacing: -.02em !important;
	line-height: 1.1 !important;
	color: #111 !important;
}

form.cart.kcb .kcb-nav-each {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #111 !important;
}

@media (max-width: 767px) {

	form.cart.kcb .kcb-nav-total {
		font-size: 22px !important;
	}

	form.cart.kcb .kcb-nav-each {
		font-size: 13px !important;
	}
}

/* ================================================================
 * Mixed orders — batch builder
 * ============================================================== */

form.cart.kcb .kcb-mode {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 10px;
	margin: 0 0 22px;
}

form.cart.kcb .kcb-card--mode {
	padding: 15px 16px 16px;
}

/* Allocation bar */

form.cart.kcb .kcb-mix-bar {
	margin: 0 0 16px;
}

form.cart.kcb .kcb-mix-count {
	display: block;
	font-size: 14px;
	font-weight: 800;
	color: #111;
	margin: 0 0 8px;
}

form.cart.kcb .kcb-mix-progress {
	display: block;
	height: 6px;
	background: #e2e0dc;
	border-radius: 3px;
	overflow: hidden;
}

form.cart.kcb .kcb-mix-progress > span {
	display: block;
	height: 100%;
	width: 0;
	background: #111;
	transition: width .25s ease;
}

/* Allocation rows */

form.cart.kcb .kcb-rows {
	margin: 0 0 12px;
}

form.cart.kcb .kcb-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
	align-items: end;
	gap: 10px 12px;
	padding: 14px;
	margin: 0 0 10px;
	background: #fff;
	border: 1px solid #e2e0dc;
	border-radius: 4px;
	transition: border-color .18s ease, box-shadow .18s ease;
}

form.cart.kcb .kcb-row.is-complete {
	border-color: #111;
}

form.cart.kcb .kcb-row.is-focus {
	border-color: #111;
	box-shadow: 0 0 0 3px rgba(17, 17, 17, .12);
}

form.cart.kcb .kcb-row-head {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

form.cart.kcb .kcb-row-num {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #111;
}

form.cart.kcb .kcb-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

form.cart.kcb .kcb-field-label {
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #111;
	opacity: .65;
}

form.cart.kcb .kcb-row-qty {
	display: inline-flex;
	align-items: stretch;
}

form.cart.kcb .kcb-row-qty .kcb-step-btn {
	width: 38px !important;
	height: 44px !important;
	min-width: 38px !important;
	flex: 0 0 38px;
	font-size: 18px !important;
}

form.cart.kcb .kcb-row-qty .kcb-step-input {
	width: 58px !important;
	height: 44px !important;
	min-height: 44px !important;
	font-size: 15px !important;
}

/* Colour / fragrance triggers */

form.cart.kcb .kcb-chip {
	display: flex !important;
	align-items: center;
	gap: 8px;
	width: 100% !important;
	min-width: 0;
	height: 44px !important;
	padding: 0 12px !important;
	background: #fff !important;
	border: 1px solid #111 !important;
	border-radius: 4px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #111 !important;
	text-align: left !important;
	cursor: pointer;
	transition: background .15s ease;
}

form.cart.kcb .kcb-chip:hover {
	background: #f4f2ef !important;
}

form.cart.kcb .kcb-chip-dot {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, .2);
}

form.cart.kcb .kcb-chip-dot.is-empty {
	background: repeating-linear-gradient(45deg, #fff, #fff 3px, #ddd 3px, #ddd 6px);
}

form.cart.kcb .kcb-chip-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap !important;
}

form.cart.kcb .kcb-chip-text.is-empty {
	font-weight: 600 !important;
	opacity: .75;
}

form.cart.kcb .kcb-row-x {
	width: 34px !important;
	height: 34px !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	font-size: 22px !important;
	line-height: 1;
	color: #111 !important;
	cursor: pointer;
}

form.cart.kcb .kcb-mix-bar--bottom {
	margin: 14px 0 0;
}

/* Order summary in the review popup */

.kcb-modal .kcb-order-row {
	display: block !important;
	padding: 12px 0 !important;
}

.kcb-modal .kcb-order-row > span {
	display: block;
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #111 !important;
}

.kcb-order-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kcb-order-list li {
	display: flex !important;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0 !important;
	border: 0 !important;
	border-bottom: 1px dashed #e2e0dc !important;
}

.kcb-order-list li:last-child {
	border-bottom: 0 !important;
}

.kcb-order-line {
	font-size: 14px;
	line-height: 1.45;
	color: #111;
	overflow-wrap: anywhere;
}

.kcb-order-line strong {
	font-weight: 800;
}

.kcb-order-list li button {
	flex: 0 0 auto;
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	font-size: 11px !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #111 !important;
	text-decoration: underline;
	cursor: pointer;
}

form.cart.kcb .kcb-add-row {
	width: 100% !important;
	justify-content: center;
}

/* Picker modal */

.kcb-modal--picker .kcb-modal-card {
	max-width: 560px;
	padding: 28px 24px 20px;
}

.kcb-modal--picker h3 {
	margin: 0 0 2px !important;
}

.kcb-picker-for {
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #111;
}

.kcb-picker-body {
	min-height: 120px;
}

.kcb-pane {
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .14s ease, transform .14s ease;
}

.kcb-pane.is-in {
	opacity: 1;
	transform: none;
}

.kcb-modal--picker .kcb-swatches {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)) !important;
	gap: 16px 8px !important;
}

.kcb-modal--picker .kcb-swatch {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 7px !important;
	background: none !important;
	border: 0 !important;
	cursor: pointer;
}

.kcb-modal--picker .kcb-swatch-dot {
	width: 48px !important;
	height: 48px !important;
	min-width: 48px !important;
	min-height: 48px !important;
	max-width: 48px !important;
	max-height: 48px !important;
	flex: 0 0 48px !important;
	border-radius: 50% !important;
	border: 1px solid rgba(0, 0, 0, .18);
}

.kcb-modal--picker .kcb-swatch.is-selected .kcb-swatch-dot {
	box-shadow: 0 0 0 2px #fff inset, 0 0 0 2px #111;
}

.kcb-modal--picker .kcb-swatch-name {
	font-size: 10.5px !important;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
	color: #111 !important;
	min-height: 2.6em;
}

.kcb-modal--picker .kcb-scent-search {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	margin: 0 0 14px;
	border: 1px solid #111;
	border-radius: 4px;
	font-size: 14px;
	color: #111;
	background: #fff;
}

.kcb-modal--picker .kcb-bfamilies {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px;
}

.kcb-modal--picker .kcb-family {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 4px;
	padding: 14px !important;
	background: #fff !important;
	border: 1px solid #e2e0dc !important;
	border-radius: 4px !important;
	cursor: pointer;
	text-align: left !important;
	transition: border-color .15s ease, transform .15s ease;
}

.kcb-modal--picker .kcb-family:hover {
	border-color: #111 !important;
	transform: translateY(-1px);
}

.kcb-modal--picker .kcb-family-count {
	font-size: 11px;
	color: #111 !important;
}

.kcb-modal--picker .kcb-scent-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.kcb-modal--picker .kcb-scent {
	position: relative;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 3px;
	padding: 13px 40px 13px 14px !important;
	background: #fff !important;
	border: 1px solid #e2e0dc !important;
	border-radius: 4px !important;
	text-align: left !important;
	cursor: pointer;
	transition: border-color .15s ease;
}

.kcb-modal--picker .kcb-scent:hover,
.kcb-modal--picker .kcb-scent.is-selected {
	border-color: #111 !important;
}

.kcb-modal--picker .kcb-scent-name {
	font-size: 14.5px !important;
	font-weight: 800 !important;
	color: #111 !important;
}

.kcb-modal--picker .kcb-scent-desc {
	font-size: 12px !important;
	color: #111 !important;
}

.kcb-no-hits {
	margin: 16px 0 0;
	font-size: 13px;
	color: #111;
	text-align: center;
}

.kcb-picker-foot {
	display: flex;
	gap: 10px;
	margin: 20px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid #e2e0dc;
	position: sticky;
	bottom: 0;
	background: #fff;
}

body .kcb-modal--picker .kcb-picker-foot .kcb-btn {
	flex: 1 1 0;
	width: auto !important;
	padding: 13px 16px !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #111 !important;
	border: 1px solid #111 !important;
}

body .kcb-modal--picker .kcb-picker-foot .kcb-btn:hover {
	background: #111 !important;
	background-color: #111 !important;
	color: #fff !important;
}

@media (max-width: 767px) {

	form.cart.kcb .kcb-mode {
		grid-template-columns: 1fr;
	}

	form.cart.kcb .kcb-batch-editor {
		padding: 14px;
	}

	form.cart.kcb .kcb-bfamilies {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {

	.kcb-modal--picker .kcb-modal-card {
		max-width: none;
		padding: 24px 18px 16px;
	}

	.kcb-modal--picker .kcb-swatches {
		grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)) !important;
	}

	.kcb-modal--picker .kcb-swatch-dot {
		width: 42px !important;
		height: 42px !important;
		min-width: 42px !important;
		min-height: 42px !important;
		max-width: 42px !important;
		max-height: 42px !important;
		flex-basis: 42px !important;
	}

	.kcb-modal--picker .kcb-bfamilies {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* A quantity tier that doesn't sell the chosen packaging */
form.cart.kcb .kcb-card.is-unavailable {
	opacity: .45;
	cursor: not-allowed;
	border-style: dashed;
}

form.cart.kcb .kcb-card.is-unavailable:hover {
	transform: none;
	box-shadow: none;
	border-color: #e2e0dc;
}

/* Rows sitting at zero read as awaiting input, not as complete */
form.cart.kcb .kcb-row:not(.is-complete) .kcb-row-qty .kcb-step-input {
	color: #111;
}

form.cart.kcb .kcb-row-qty .kcb-step-input[value="0"] {
	font-weight: 600;
}

/* Packaging with only one option priced */

form.cart.kcb .kcb-cards--single {
	grid-template-columns: minmax(0, 340px);
}



/* ================================================================
 * Responsive pass — last block in the file
 *
 * Fixes things that only show up on a real phone: content clipped by
 * a scrolling modal, sticky footers that scroll away, iOS zooming on
 * focus, long fragrance names forcing horizontal scroll, and tap
 * targets under 44px.
 * ============================================================== */

/* --- Nothing may push the page sideways --- */

form.cart.kcb,
form.cart.kcb .kcb-panels,
form.cart.kcb .kcb-panel {
	max-width: 100%;
	overflow-x: hidden;
}

form.cart.kcb .kcb-row,
form.cart.kcb .kcb-batch-detail,
form.cart.kcb .kcb-chip,
form.cart.kcb .kcb-card,
form.cart.kcb .kcb-scent,
form.cart.kcb .kcb-family,
.kcb-modal .kcb-scent,
.kcb-modal .kcb-family {
	min-width: 0;
}

form.cart.kcb .kcb-scent-name,
form.cart.kcb .kcb-scent-desc,
form.cart.kcb .kcb-notes span,
form.cart.kcb .kcb-card-title,
form.cart.kcb .kcb-card-blurb,
.kcb-modal .kcb-scent-name,
.kcb-modal .kcb-scent-desc,
.kcb-modal .kcb-review > li em {
	overflow-wrap: anywhere;
	word-break: normal;
	hyphens: auto;
}

/* --- Modals: card holds still, body scrolls, footer stays put --- */

.kcb-modal--picker .kcb-modal-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.kcb-modal--picker .kcb-picker-body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	margin-right: -6px;
	padding-right: 6px;
}

.kcb-modal--picker .kcb-picker-foot {
	position: static;
	flex: 0 0 auto;
	margin-top: 16px;
}

/* --- iOS: inputs under 16px make the page zoom on focus --- */

form.cart.kcb .kcb-step-input,
form.cart.kcb .kcb-custom-field input,
form.cart.kcb .kcb-scent-search,
.kcb-modal .kcb-scent-search {
	font-size: 16px !important;
}

@media (max-width: 767px) {

	form.cart.kcb {
		margin-top: 18px;
	}

	/* --- Progress: keep the labels, just smaller --- */

	form.cart.kcb .kcb-progress {
		gap: 4px;
		margin-bottom: 18px;
	}

	form.cart.kcb .kcb-pip-label {
		display: block;
		font-size: 9px;
		letter-spacing: .04em;
	}

	form.cart.kcb .kcb-pip > button {
		gap: 5px;
		padding-bottom: 8px;
	}

	form.cart.kcb .kcb-pip-num {
		width: 24px !important;
		height: 24px !important;
		min-width: 24px !important;
		line-height: 22px !important;
		font-size: 11px;
	}

	form.cart.kcb .kcb-pip.is-done .kcb-pip-num:after {
		left: 8px;
		top: 5px;
		width: 4px;
		height: 9px;
	}

	/* --- Panels --- */

	form.cart.kcb .kcb-panel-title {
		font-size: 15px !important;
		line-height: 1.35 !important;
	}

	form.cart.kcb .kcb-panel-sub {
		font-size: 12.5px;
		margin-bottom: 16px;
	}

	/* --- Quantity cards: two up, never cramped --- */

	form.cart.kcb .kcb-cards--qty {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	form.cart.kcb .kcb-card {
		padding: 13px 12px 15px;
	}

	form.cart.kcb .kcb-card-qty {
		font-size: 20px !important;
	}

	form.cart.kcb .kcb-card-title {
		font-size: 11px !important;
		letter-spacing: .05em !important;
	}

	form.cart.kcb .kcb-card-price {
		font-size: 12px !important;
	}

	form.cart.kcb .kcb-tick {
		top: 8px;
		right: 8px;
		width: 18px !important;
		height: 18px !important;
		min-width: 18px !important;
	}

	form.cart.kcb .kcb-tick:after {
		left: 6px;
		top: 3px;
		width: 3px;
		height: 8px;
	}

	/* Packaging and mode cards stack — their blurbs need the width */
	form.cart.kcb .kcb-cards--pack,
	form.cart.kcb .kcb-mode {
		grid-template-columns: 1fr;
	}

	form.cart.kcb .kcb-cards--single {
		grid-template-columns: 1fr;
	}

	/* --- Stepper: 44px tap targets --- */

	form.cart.kcb .kcb-stepper-wrap {
		gap: 10px;
		padding: 12px;
	}

	form.cart.kcb .kcb-stepper-label {
		width: 100%;
	}

	form.cart.kcb .kcb-step-btn {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		flex-basis: 44px !important;
	}

	form.cart.kcb .kcb-step-input {
		width: 70px !important;
		height: 44px !important;
		min-height: 44px !important;
	}

	form.cart.kcb .kcb-stepper-note {
		width: 100%;
		font-size: 12px;
	}

	form.cart.kcb .kcb-row-qty .kcb-step-btn {
		width: 44px !important;
		height: 46px !important;
		min-width: 44px !important;
		flex-basis: 44px !important;
	}

	form.cart.kcb .kcb-row-qty .kcb-step-input {
		width: 66px !important;
		height: 46px !important;
		min-height: 46px !important;
	}

	form.cart.kcb .kcb-chip {
		height: 48px !important;
		font-size: 13.5px !important;
	}

	form.cart.kcb .kcb-row-x {
		width: 40px !important;
		height: 40px !important;
		justify-self: end;
	}

	form.cart.kcb .kcb-mix-count {
		font-size: 13px;
	}

	/* --- Fragrance cards --- */

	form.cart.kcb .kcb-families {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	form.cart.kcb .kcb-family {
		padding: 13px 12px;
	}

	form.cart.kcb .kcb-family-name {
		font-size: 12px !important;
	}

	form.cart.kcb .kcb-scent {
		padding: 14px 40px 14px 13px !important;
	}

	form.cart.kcb .kcb-scent-name {
		font-size: 15.5px !important;
	}

	form.cart.kcb .kcb-notes span {
		font-size: 12px !important;
	}

	form.cart.kcb .kcb-back {
		width: 100% !important;
		justify-content: center !important;
		padding: 14px !important;
	}

	/* --- Nav: fixed columns so the price never squeezes the buttons --- */

	form.cart.kcb .kcb-nav {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		gap: 8px;
		padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
	}

	form.cart.kcb .kcb-nav .kcb-btn {
		padding: 13px 14px !important;
		font-size: 11px !important;
		letter-spacing: .06em !important;
		white-space: nowrap !important;
	}

	form.cart.kcb .kcb-nav-price {
		margin: 0;
		min-width: 0;
	}

	form.cart.kcb .kcb-nav-total {
		font-size: 20px !important;
	}

	form.cart.kcb .kcb-nav-each {
		font-size: 11.5px !important;
	}

	/* Back is hidden on step 1, so hold its column open to stop the
	   price and Next jumping sideways between steps. */
	form.cart.kcb .kcb-nav [data-kcb-prev][hidden] {
		display: block !important;
		visibility: hidden;
		pointer-events: none;
	}

	/* --- Modals become bottom sheets --- */

	.kcb-modal {
		align-items: flex-end;
		padding: 0;
	}

	.kcb-modal-card {
		max-width: none !important;
		width: 100%;
		max-height: 90vh;
		max-height: 90dvh;
		border-radius: 14px 14px 0 0;
		padding: 22px 16px calc(16px + env(safe-area-inset-bottom, 0px));
	}

	.kcb-modal-x {
		top: 6px;
		right: 6px;
		width: 44px;
		height: 44px;
	}

	.kcb-modal .kcb-review > li {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"label edit"
			"value value";
		gap: 2px 10px;
		padding: 11px 0;
	}

	.kcb-modal .kcb-review > li span:first-child {
		grid-area: label;
	}

	.kcb-modal .kcb-review > li em {
		grid-area: value;
		text-align: left !important;
		font-size: 14px;
	}

	.kcb-modal .kcb-review > li button {
		grid-area: edit;
	}

	.kcb-modal-total {
		flex-wrap: wrap;
	}

	.kcb-picker-for {
		margin-bottom: 14px;
	}

	.kcb-modal--picker .kcb-scent-list {
		gap: 8px;
	}

	.kcb-done-item {
		padding: 10px;
	}

	.kcb-done-detail strong {
		font-size: 13px;
	}
}

/* --- Small phones --- */

@media (max-width: 380px) {

	form.cart.kcb .kcb-pip-label {
		font-size: 8.5px;
	}

	form.cart.kcb .kcb-cards--qty {
		gap: 6px;
	}

	form.cart.kcb .kcb-card-qty {
		font-size: 18px !important;
	}

	form.cart.kcb .kcb-swatches {
		grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)) !important;
	}

	form.cart.kcb .kcb-nav-total {
		font-size: 18px !important;
	}

	form.cart.kcb .kcb-nav .kcb-btn {
		padding: 12px 11px !important;
		font-size: 10.5px !important;
	}

	.kcb-modal--picker .kcb-bfamilies {
		grid-template-columns: 1fr;
	}
}

/* --- Landscape phones: a bottom sheet would fill the screen --- */

@media (max-height: 480px) and (orientation: landscape) {

	.kcb-modal {
		align-items: center;
		padding: 12px;
	}

	.kcb-modal-card {
		max-height: 94vh;
		border-radius: 8px;
	}

	form.cart.kcb .kcb-nav {
		position: static;
		box-shadow: none;
	}
}

/* --- Tax note beside prices --- */

form.cart.kcb .kcb-vat,
.kcb-modal .kcb-vat,
.woocommerce .kcb-vat,
.kcb-vat {
	display: inline-block;
	margin-left: 5px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
	vertical-align: baseline;
	opacity: .7;
	color: inherit;
}

form.cart.kcb .kcb-nav-total .kcb-vat,
.kcb-modal .kcb-total-value .kcb-vat {
	font-size: 10px;
	letter-spacing: .06em;
}

form.cart.kcb .kcb-card-price .kcb-vat {
	display: block;
	margin: 3px 0 0;
	font-size: 10px;
}

/* Single headline price on the packaging step */

form.cart.kcb .kcb-from {
	margin: 0 0 18px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: #111;
}

form.cart.kcb .kcb-from .kcb-vat {
	font-size: 10.5px;
	font-weight: 600;
}

@media (max-width: 767px) {
	form.cart.kcb .kcb-from {
		font-size: 18px;
		margin-bottom: 16px;
	}
}

/* Sets on mobile: one field per line, nothing clipped */

@media (max-width: 767px) {

	form.cart.kcb .kcb-row {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 14px 12px;
	}

	form.cart.kcb .kcb-field--qty .kcb-row-qty {
		align-self: start;
	}

	form.cart.kcb .kcb-row-qty .kcb-step-btn {
		width: 46px !important;
		height: 48px !important;
		min-width: 46px !important;
		flex-basis: 46px !important;
	}

	form.cart.kcb .kcb-row-qty .kcb-step-input {
		width: 70px !important;
		height: 48px !important;
		min-height: 48px !important;
	}

	form.cart.kcb .kcb-chip {
		height: 50px !important;
		font-size: 14px !important;
	}

	form.cart.kcb .kcb-row-x {
		width: 40px !important;
		height: 40px !important;
	}

	.kcb-order-list li {
		flex-wrap: wrap;
		gap: 4px 12px;
	}

	.kcb-order-line {
		flex: 1 1 100%;
		font-size: 13.5px;
	}

	.kcb-order-list li button {
		margin-left: auto;
	}
}

/* --- Mode header --- */

form.cart.kcb .kcb-mode-wrap .kcb-panel-sub {
	margin-bottom: 14px;
}

/* --- Allocation hint --- */

form.cart.kcb .kcb-mix-hint {
	display: block;
	margin: 8px 0 0;
	font-size: 12.5px;
	font-weight: 700;
	color: #111;
}

form.cart.kcb .kcb-mix-bar.is-done .kcb-mix-count,
form.cart.kcb .kcb-mix-bar.is-done .kcb-mix-hint {
	color: #111;
}

form.cart.kcb .kcb-mix-bar.is-done .kcb-mix-progress > span {
	background: #1e7a3c;
}

form.cart.kcb .kcb-mix-bar.is-done .kcb-mix-hint:before {
	content: "✓";
	margin-right: 6px;
	font-weight: 800;
	color: #1e7a3c;
}

/* Spent, but still tappable so it can explain itself */
form.cart.kcb .kcb-add-row.is-spent {
	opacity: .5;
}

/* --- Limit dialog --- */

.kcb-modal--limit .kcb-modal-card {
	max-width: 400px;
	text-align: center;
	padding: 30px 24px 24px;
}

.kcb-modal--limit h3 {
	margin: 0 0 10px !important;
	font-size: 17px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #111;
}

.kcb-limit-text {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.55;
	color: #111;
}

body .kcb-modal--limit .kcb-modal-card button.kcb-btn {
	display: block !important;
	width: 100% !important;
	padding: 16px 24px !important;
	background: #111 !important;
	background-color: #111 !important;
	background-image: none !important;
	color: #fff !important;
	border: 1px solid #111 !important;
	border-radius: 4px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .1em !important;
	text-transform: uppercase !important;
	opacity: 1 !important;
	visibility: visible !important;
}

body .kcb-modal--limit .kcb-modal-card button.kcb-btn:hover {
	background: #333 !important;
	background-color: #333 !important;
	color: #fff !important;
}

@media (max-width: 767px) {

	.kcb-modal--limit .kcb-modal-card {
		max-width: none;
		padding: 26px 18px calc(18px + env(safe-area-inset-bottom, 0px));
	}

	form.cart.kcb .kcb-mix-hint {
		font-size: 12px;
	}
}

/* ================================================================
 * Spacing pass — final block
 * ============================================================== */

/* Sets: explicit layout with no inherited grid areas to fall back on */

form.cart.kcb .kcb-row {
	grid-template-areas: none !important;
	align-items: start;
	row-gap: 14px;
	column-gap: 14px;
}

form.cart.kcb .kcb-field > * {
	min-width: 0;
}

form.cart.kcb .kcb-field--qty .kcb-row-qty {
	width: max-content;
	max-width: 100%;
}

/* The stepper is one unit: no gaps, shared borders */
form.cart.kcb .kcb-row-qty .kcb-step-btn,
form.cart.kcb .kcb-row-qty .kcb-step-input {
	margin: 0 !important;
	border-radius: 0 !important;
}

form.cart.kcb .kcb-row-qty .kcb-step-btn:first-child {
	border-radius: 4px 0 0 4px !important;
}

form.cart.kcb .kcb-row-qty .kcb-step-btn:last-child {
	border-radius: 0 4px 4px 0 !important;
}

/* Consistent rhythm between the pieces of a step */

form.cart.kcb .kcb-mix-bar--top {
	margin: 0 0 16px;
}

form.cart.kcb .kcb-rows {
	margin: 0 0 14px;
}

form.cart.kcb .kcb-add-row {
	margin: 0 0 4px;
	line-height: 1.35 !important;
	padding: 15px 18px !important;
}

form.cart.kcb .kcb-mix-bar--bottom {
	margin: 16px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid #e2e0dc;
}

form.cart.kcb .kcb-mix-hint:empty {
	display: none;
}

form.cart.kcb .kcb-mode {
	margin-bottom: 24px;
}

form.cart.kcb .kcb-panel > *:last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {

	form.cart.kcb .kcb-row {
		grid-template-columns: minmax(0, 1fr) !important;
		row-gap: 14px;
		padding: 14px 12px;
	}

	form.cart.kcb .kcb-row-head {
		margin-bottom: 2px;
	}

	/* Keep the add button to two readable lines rather than three */
	form.cart.kcb .kcb-add-row {
		font-size: 11.5px !important;
		letter-spacing: .05em !important;
		padding: 14px 12px !important;
	}
}


/* ================================================================
 * Review order lines
 * ============================================================== */

.kcb-modal [hidden],
.kcb-modal .kcb-review > li[hidden],
.kcb-modal .kcb-order-row[hidden] {
	display: none !important;
}

.kcb-order-list li {
	display: grid !important;
	grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
	align-items: start;
	gap: 10px 12px;
	padding: 12px 0 !important;
	border-bottom: 1px dashed #e2e0dc !important;
}

.kcb-order-list li:first-child {
	padding-top: 2px !important;
}

.kcb-order-list li:last-child {
	border-bottom: 0 !important;
}

.kcb-ol-cell {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.kcb-ol-label {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #111;
	opacity: .6;
	line-height: 1.2;
}

.kcb-ol-value {
	font-size: 14px;
	line-height: 1.35;
	color: #111;
	overflow-wrap: anywhere;
}

.kcb-ol-qty .kcb-ol-value {
	font-weight: 800;
	font-size: 16px;
}

.kcb-order-list li > button {
	align-self: center;
	flex: 0 0 auto;
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	font-size: 11px !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #111 !important;
	text-decoration: underline;
	cursor: pointer;
	white-space: nowrap;
}

@media (max-width: 767px) {

	/* Stays three columns on a phone — the whole point is reading it at a
	   glance. Long fragrance names wrap inside their column instead of
	   pushing the layout into a stack. */
	.kcb-order-list li {
		grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1.2fr) auto;
		gap: 8px;
		padding: 12px 0 !important;
	}

	.kcb-ol-label {
		font-size: 8.5px;
		letter-spacing: .09em;
	}

	.kcb-ol-value {
		font-size: 12.5px;
		line-height: 1.3;
	}

	.kcb-ol-qty .kcb-ol-value {
		font-size: 14px;
	}

	.kcb-order-list li > button {
		font-size: 10px !important;
		letter-spacing: .05em;
	}
}

/* Change quantity, under the allocation hint */

form.cart.kcb .kcb-mix-change {
	display: inline-block;
	margin: 10px 0 0;
	padding: 9px 16px !important;
	background: transparent !important;
	border: 1px solid #111 !important;
	border-radius: 4px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: .08em !important;
	text-transform: uppercase !important;
	color: #111 !important;
	line-height: 1 !important;
	cursor: pointer;
	width: auto !important;
	transition: background .15s ease, color .15s ease;
}

form.cart.kcb .kcb-mix-change:hover {
	background: #111 !important;
	color: #fff !important;
}

@media (max-width: 767px) {

	form.cart.kcb .kcb-mix-change {
		padding: 11px 16px !important;
		font-size: 11.5px !important;
	}
}

/* ================================================================
 * Review popup polish
 * ============================================================== */

/* Fragrance sits right beside colour instead of drifting to the edge.
   The colour column takes only the width it needs; something in the theme
   was also right-aligning these cells, hence the explicit left. */

.kcb-order-list li {
	grid-template-columns: 40px minmax(0, max-content) minmax(0, 1fr) auto;
	column-gap: 16px;
}

.kcb-ol-cell,
.kcb-ol-cell .kcb-ol-label,
.kcb-ol-cell .kcb-ol-value {
	text-align: left !important;
	align-items: flex-start;
}

/* --- Close buttons: black circle, white × --- */

.kcb-modal .kcb-modal-x,
body .kcb-modal .kcb-modal-card button.kcb-modal-x {
	display: flex !important;
	align-items: center;
	justify-content: center;
	top: 14px;
	right: 14px;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	padding: 0 !important;
	background: #111 !important;
	background-color: #111 !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 50% !important;
	font-size: 20px !important;
	line-height: 1 !important;
	opacity: 1 !important;
	transition: background .15s ease;
}

.kcb-modal .kcb-modal-x:hover,
body .kcb-modal .kcb-modal-card button.kcb-modal-x:hover {
	background: #333 !important;
	background-color: #333 !important;
	color: #fff !important;
}

/* Remove-set × matches */

form.cart.kcb .kcb-row-x {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	padding: 0 !important;
	background: #111 !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 50% !important;
	font-size: 17px !important;
	line-height: 1 !important;
	transition: background .15s ease;
}

form.cart.kcb .kcb-row-x:hover {
	background: #333 !important;
	color: #fff !important;
}

form.cart.kcb .kcb-row-x--empty {
	background: none !important;
}

/* --- Edit reads as a button --- */

body .kcb-modal .kcb-review > li button,
body .kcb-modal .kcb-order-list li > button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 8px 14px !important;
	background: #111 !important;
	background-color: #111 !important;
	background-image: none !important;
	color: #fff !important;
	border: 1px solid #111 !important;
	border-radius: 3px !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	letter-spacing: .1em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	line-height: 1 !important;
	white-space: nowrap;
	opacity: 1 !important;
	transition: background .15s ease;
}

body .kcb-modal .kcb-review > li button:hover,
body .kcb-modal .kcb-order-list li > button:hover {
	background: #333 !important;
	background-color: #333 !important;
	color: #fff !important;
	border-color: #333 !important;
}

@media (max-width: 767px) {

	.kcb-order-list li {
		grid-template-columns: 34px minmax(0, max-content) minmax(0, 1fr) auto;
		column-gap: 12px;
	}

	body .kcb-modal .kcb-review > li button,
	body .kcb-modal .kcb-order-list li > button {
		padding: 7px 11px !important;
		font-size: 9.5px !important;
		letter-spacing: .07em !important;
	}

	.kcb-modal .kcb-modal-x,
	body .kcb-modal .kcb-modal-card button.kcb-modal-x {
		top: 12px;
		right: 12px;
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
	}
}

/* ================================================================
 * Order lines — own layout, nothing inherited
 * ============================================================== */

.kcb-modal .kcb-order-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kcb-modal .kcb-order-list li {
	display: grid !important;
	grid-template-areas: none !important;
	grid-template-columns: 44px minmax(0, max-content) minmax(0, 1fr) auto !important;
	align-items: start !important;
	column-gap: 18px !important;
	row-gap: 0 !important;
	padding: 12px 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-bottom: 1px dashed #e2e0dc !important;
	text-align: left !important;
}

.kcb-modal .kcb-order-list li:last-child {
	border-bottom: 0 !important;
}

.kcb-modal .kcb-order-list li > .kcb-ol-cell {
	grid-area: auto !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 3px;
	min-width: 0;
	text-align: left !important;
}

.kcb-modal .kcb-order-list li > button {
	grid-area: auto !important;
	align-self: center !important;
	justify-self: end !important;
}

.kcb-modal .kcb-order-list .kcb-ol-label {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #111 !important;
	opacity: .6;
	line-height: 1.2;
	text-align: left !important;
}

.kcb-modal .kcb-order-list .kcb-ol-value {
	font-size: 14px;
	line-height: 1.35;
	font-weight: 500;
	color: #111 !important;
	text-align: left !important;
	overflow-wrap: anywhere;
}

.kcb-modal .kcb-order-list .kcb-ol-qty .kcb-ol-value {
	font-size: 16px;
	font-weight: 800;
}

@media (max-width: 767px) {

	.kcb-modal .kcb-order-list li {
		grid-template-columns: 34px minmax(0, max-content) minmax(0, 1fr) auto !important;
		column-gap: 12px !important;
	}

	.kcb-modal .kcb-order-list .kcb-ol-value {
		font-size: 12.5px;
	}

	.kcb-modal .kcb-order-list .kcb-ol-qty .kcb-ol-value {
		font-size: 14px;
	}

	.kcb-modal .kcb-order-list .kcb-ol-label {
		font-size: 8.5px;
	}
}

/* ================================================================
 * Personalisation
 * ============================================================== */

form.cart.kcb .kcb-pers {
	display: grid;
	gap: 18px;
}

form.cart.kcb .kcb-pers-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	position: relative;
}

form.cart.kcb .kcb-pers-field > label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #111;
}

form.cart.kcb .kcb-pers-field abbr.required {
	border: 0;
	text-decoration: none;
	color: #111;
}

form.cart.kcb .kcb-pers-field input[type="text"],
form.cart.kcb .kcb-pers-field input[type="date"] {
	width: 100%;
	height: 50px;
	padding: 0 14px;
	border: 1px solid #111;
	border-radius: 4px;
	background: #fff;
	color: #111;
	font-size: 16px;
}

form.cart.kcb .kcb-pers-hint {
	font-size: 12px;
	color: #111;
	opacity: .7;
}

form.cart.kcb .kcb-pers-count {
	position: absolute;
	right: 12px;
	bottom: 15px;
	font-size: 11px;
	font-weight: 700;
	color: #111;
	opacity: .55;
	pointer-events: none;
}

/* Quote choices */

form.cart.kcb .kcb-quotes {
	display: grid;
	gap: 8px;
}

form.cart.kcb .kcb-quote {
	position: relative;
	display: block !important;
	width: 100% !important;
	text-align: left !important;
	padding: 14px 44px 14px 16px !important;
	background: #fff !important;
	border: 1px solid #e2e0dc !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	color: #111 !important;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}

form.cart.kcb .kcb-quote:hover {
	border-color: #111 !important;
}

form.cart.kcb .kcb-quote.is-selected {
	border-color: #111 !important;
	box-shadow: inset 0 0 0 1px #111;
}

form.cart.kcb .kcb-quote--none {
	font-style: italic;
	opacity: .85;
}

/* Review popup */

.kcb-modal .kcb-pers-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kcb-modal .kcb-pers-list li {
	display: flex !important;
	flex-direction: column;
	gap: 2px;
	padding: 7px 0 !important;
	border: 0 !important;
	border-bottom: 1px dashed #e2e0dc !important;
}

.kcb-modal .kcb-pers-list li:last-child {
	border-bottom: 0 !important;
}

.kcb-modal .kcb-pers-list .kcb-ol-value {
	font-size: 14px;
	font-weight: 600;
	color: #111 !important;
}

@media (max-width: 767px) {

	form.cart.kcb .kcb-pers {
		gap: 16px;
	}

	form.cart.kcb .kcb-quote {
		font-size: 13.5px !important;
		padding: 13px 40px 13px 14px !important;
	}
}

/* Message box */

form.cart.kcb .kcb-pers-field textarea {
	width: 100%;
	min-height: 96px;
	padding: 13px 14px;
	border: 1px solid #111;
	border-radius: 4px;
	background: #fff;
	color: #111;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	resize: vertical;
}

form.cart.kcb .kcb-pers-field:has(textarea) .kcb-pers-count {
	bottom: 12px;
	right: 14px;
	background: #fff;
	padding: 2px 4px;
}

/* ================================================================
 * Collection mode
 * ============================================================== */

form.cart.kcb--collection .kcb-candles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

form.cart.kcb--collection .kcb-candle {
	position: relative;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 8px;
	padding: 10px 10px 14px !important;
	background: #fff !important;
	border: 1px solid #e2e0dc !important;
	border-radius: 4px !important;
	cursor: pointer;
	text-align: left !important;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

form.cart.kcb--collection .kcb-candle:hover {
	border-color: #111 !important;
	box-shadow: 0 6px 18px rgba(17, 17, 17, .08);
	transform: translateY(-2px);
}

form.cart.kcb--collection .kcb-candle.is-selected {
	border-color: #111 !important;
	box-shadow: inset 0 0 0 1px #111;
}

form.cart.kcb--collection .kcb-candle.is-spent {
	opacity: .45;
}

form.cart.kcb--collection .kcb-candle.is-locked {
	cursor: default;
}

form.cart.kcb--collection .kcb-candle.is-locked:hover {
	transform: none;
	box-shadow: inset 0 0 0 1px #111;
}

form.cart.kcb--collection .kcb-candle-img {
	display: block;
	line-height: 0;
	border-radius: 3px;
	overflow: hidden;
	background: #faf9f7;
}

form.cart.kcb--collection .kcb-candle-img img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	margin: 0 !important;
}

form.cart.kcb--collection .kcb-candle-name {
	font-size: 12.5px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #111 !important;
	overflow-wrap: anywhere;
}

form.cart.kcb--collection .kcb-candle-flag {
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #111;
	opacity: .6;
}

form.cart.kcb--collection .kcb-included-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

form.cart.kcb--collection .kcb-included-list li {
	padding: 11px 14px;
	background: #faf9f7;
	border-radius: 4px;
	font-size: 13.5px;
	font-weight: 600;
	color: #111;
}

/* Fragrance rows reuse the set-row look */

form.cart.kcb--collection .kcb-rows .kcb-row {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 767px) {

	form.cart.kcb--collection .kcb-candles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	form.cart.kcb--collection .kcb-candle-name {
		font-size: 12px !important;
	}
}

/* Every candle in a full collection is included, so the cards read as a
   manifest rather than a picker. */

form.cart.kcb--collection .kcb-candles--all .kcb-candle {
	cursor: default;
}

form.cart.kcb--collection .kcb-candles--all .kcb-candle:hover {
	transform: none;
	box-shadow: inset 0 0 0 1px #111;
}

/* Shop-manager-only note explaining a missing option */

form.cart.kcb .kcb-admin-note {
	margin: 16px 0 0;
	padding: 14px 16px;
	background: #fffbea;
	border: 1px dashed #b8860b;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.5;
	color: #111;
}

form.cart.kcb .kcb-admin-note strong {
	display: block;
	margin: 0 0 6px;
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

form.cart.kcb .kcb-admin-note ul {
	margin: 0 0 8px;
	padding: 0 0 0 18px;
}

form.cart.kcb .kcb-admin-note li {
	margin: 0 0 4px;
}

form.cart.kcb .kcb-admin-note a {
	font-size: 12px;
	font-weight: 700;
	color: #111 !important;
	text-decoration: underline;
}

/* ================================================================
 * Collection slots — one row per place in the box
 * ============================================================== */

form.cart.kcb--collection .kcb-slots {
	display: grid;
	gap: 10px;
	margin: 0 0 4px;
}

form.cart.kcb--collection .kcb-slot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 10px 14px;
	padding: 14px;
	background: #fff;
	border: 1px solid #e2e0dc;
	border-radius: 4px;
	transition: border-color .18s ease;
}

form.cart.kcb--collection .kcb-slot.is-complete {
	border-color: #111;
}

form.cart.kcb--collection .kcb-slot-head {
	grid-column: 1 / -1;
}

form.cart.kcb--collection .kcb-slot-num {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #111;
}

form.cart.kcb--collection .kcb-slot-candle {
	display: flex !important;
	align-items: center;
	gap: 10px;
	min-width: 0;
	width: 100% !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	text-align: left !important;
	cursor: pointer;
}

form.cart.kcb--collection .kcb-slot-candle.is-locked {
	cursor: default;
}

form.cart.kcb--collection .kcb-slot-img {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 3px;
	overflow: hidden;
	background: #faf9f7;
	line-height: 0;
}

form.cart.kcb--collection .kcb-slot-img img {
	width: 48px !important;
	height: 48px !important;
	object-fit: cover;
	display: block;
	margin: 0 !important;
}

form.cart.kcb--collection .kcb-slot-img.is-empty {
	background: repeating-linear-gradient(45deg, #fff, #fff 4px, #eee 4px, #eee 8px);
}

form.cart.kcb--collection .kcb-slot-name {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
	overflow-wrap: anywhere;
}

form.cart.kcb--collection button.kcb-slot-candle .kcb-slot-name {
	text-decoration: underline;
}

form.cart.kcb--collection .kcb-slot-name.is-empty {
	font-weight: 600;
	opacity: .75;
	text-decoration: underline;
}

form.cart.kcb--collection .kcb-slot-scent {
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: center !important;
	gap: 3px !important;
	height: auto !important;
	min-height: 52px;
	padding: 8px 12px !important;
}

form.cart.kcb--collection .kcb-slot-scent .kcb-field-label {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .6;
}

@media (max-width: 767px) {

	form.cart.kcb--collection .kcb-slot {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
}


/* Candle cards inside a slot */

form.cart.kcb--collection .kcb-candles--slot {
	/* Two across, always. auto-fill with a pixel minimum drops to a single
	   column whenever the product column is narrow, which is most themes. */
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-candle {
	padding: 8px 8px 10px !important;
	gap: 6px;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-candle-name {
	font-size: 11.5px !important;
	line-height: 1.25 !important;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-tick {
	top: 6px;
	right: 6px;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-tick:after {
	left: 6px;
	top: 3px;
	width: 3px;
	height: 8px;
}

/* A slot with inline cards stacks: cards above, fragrance below */

form.cart.kcb--collection .kcb-slot:has(.kcb-candles--slot) {
	grid-template-columns: minmax(0, 1fr);
}

form.cart.kcb--collection .kcb-slot .kcb-candles--slot {
	grid-column: 1 / -1;
}

@media (max-width: 767px) {

	form.cart.kcb--collection .kcb-candles--slot {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ================================================================
 * Candle images — enlarge on double tap
 * ============================================================== */

/* Suppress the browser's own double-tap zoom so ours is the only
   thing that happens. */
form.cart.kcb--collection .kcb-candle,
form.cart.kcb--collection .kcb-slot-img,
form.cart.kcb--collection .kcb-candle-img {
	touch-action: manipulation;
}

form.cart.kcb--collection .kcb-candle-img,
form.cart.kcb--collection .kcb-slot-img {
	position: relative;
}

form.cart.kcb--collection .kcb-zoom {
	position: absolute;
	right: 5px;
	bottom: 5px;
	width: 26px !important;
	height: 26px !important;
	min-width: 26px !important;
	padding: 0 !important;
	margin: 0 !important;
	background: rgba(17, 17, 17, .72) !important;
	border: 0 !important;
	border-radius: 50% !important;
	cursor: pointer;
	z-index: 2;
	transition: background .15s ease;
}

form.cart.kcb--collection .kcb-zoom:hover {
	background: #111 !important;
}

/* A magnifier drawn from two elements, so there is no icon font or
   image to load. */
form.cart.kcb--collection .kcb-zoom span {
	position: absolute;
	left: 7px;
	top: 7px;
	width: 9px;
	height: 9px;
	border: 1.5px solid #fff;
	border-radius: 50%;
}

form.cart.kcb--collection .kcb-zoom span:after {
	content: "";
	position: absolute;
	right: -4px;
	bottom: -4px;
	width: 5px;
	height: 1.5px;
	background: #fff;
	transform: rotate(45deg);
}

/* The hint */

form.cart.kcb--collection .kcb-zoom-hint {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	font-size: 12.5px;
	font-weight: 600;
	color: #111;
	opacity: .8;
}

form.cart.kcb--collection .kcb-zoom-ico {
	position: relative;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 1.5px solid #111;
	border-radius: 50%;
}

form.cart.kcb--collection .kcb-zoom-ico:after {
	content: "";
	position: absolute;
	right: -5px;
	bottom: -5px;
	width: 7px;
	height: 1.5px;
	background: #111;
	transform: rotate(45deg);
}

/* Bigger choice cards: taller images, still two across. */

form.cart.kcb--collection .kcb-candles--slot .kcb-candle-img img {
	aspect-ratio: 1 / 1;
	height: auto !important;
}

/* The lightbox */

.kcb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.kcb-lightbox[hidden] {
	display: none !important;
}

.kcb-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, .82);
	animation: kcb-fade-in .18s ease both;
}

.kcb-lightbox-inner {
	position: relative;
	max-width: 620px;
	width: 100%;
	text-align: center;
	animation: kcb-pop .22s ease both;
}

.kcb-lightbox-img img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 76vh;
	object-fit: contain;
	margin: 0 auto;
	border-radius: 6px;
	background: #fff;
}

.kcb-lightbox-name {
	margin: 14px 0 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #fff;
}

.kcb-lightbox-x {
	position: absolute;
	top: -46px;
	right: 0;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: #fff !important;
	color: #111 !important;
	border: 0 !important;
	border-radius: 50% !important;
	font-size: 22px !important;
	line-height: 1 !important;
	cursor: pointer;
	z-index: 2;
}

@media (max-width: 767px) {

	form.cart.kcb--collection .kcb-candles--slot {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kcb-lightbox {
		padding: 16px;
	}

	.kcb-lightbox-x {
		top: -44px;
		width: 40px !important;
		height: 40px !important;
	}

	.kcb-lightbox-img img {
		max-height: 68vh;
	}
}


/* Two-across choice cards: the image carries the card, so give it room. */

form.cart.kcb--collection .kcb-candles--slot .kcb-candle {
	padding: 9px 9px 11px !important;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-candle-img {
	display: block;
	width: 100%;
	border-radius: 3px;
	overflow: hidden;
	background: #faf9f7;
	line-height: 0;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-candle-img img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-candle-name {
	font-size: 12px !important;
	line-height: 1.3 !important;
}

/* The magnifier scales with the bigger image */
form.cart.kcb--collection .kcb-candles--slot .kcb-zoom {
	right: 6px;
	bottom: 6px;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-zoom span {
	left: 9px;
	top: 9px;
}


/* ================================================================
 * Uniform candle cards — same on the set of 3 and the full collection
 * ============================================================== */

/* Two across, always. An auto-fill minimum collapses to one column in a
   narrow product column, which is what kept happening. */
form.cart.kcb--collection .kcb-candles--slot {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 10px !important;
	width: 100%;
}

/* A fixed candle is the only card in its slot, so it takes the full width. */
form.cart.kcb--collection .kcb-candles--one {
	grid-template-columns: minmax(0, 1fr) !important;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-candle {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 8px !important;
	width: 100% !important;
	padding: 10px 10px 12px !important;
	background: #fff !important;
	border: 1px solid #e2e0dc !important;
	border-radius: 4px !important;
	text-align: left !important;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-candle.is-selected {
	border-color: #111 !important;
	box-shadow: inset 0 0 0 1px #111;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-candle.is-locked {
	cursor: default;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-candle-img {
	position: relative;
	display: block !important;
	width: 100% !important;
	border-radius: 3px;
	overflow: hidden;
	background: #faf9f7;
	line-height: 0;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-candle-img img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block !important;
	margin: 0 !important;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-candle-name {
	font-size: 12.5px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #111 !important;
	overflow-wrap: anywhere;
}

/* The magnifier, identical on every card */
form.cart.kcb--collection .kcb-candles--slot .kcb-zoom {
	position: absolute;
	right: 7px;
	bottom: 7px;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	padding: 0 !important;
	margin: 0 !important;
	background: rgba(17, 17, 17, .75) !important;
	border: 0 !important;
	border-radius: 50% !important;
	z-index: 2;
}

form.cart.kcb--collection .kcb-candles--slot .kcb-zoom span {
	left: 10px;
	top: 10px;
	width: 10px;
	height: 10px;
}

/* A fixed candle fills the slot, so its image can be larger still. */
form.cart.kcb--collection .kcb-candles--one .kcb-candle-name {
	font-size: 14px !important;
	font-weight: 800 !important;
}

/* Six fixed candles stacked is a long page, so pair them up. */
form.cart.kcb--collection .kcb-slots--fixed {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 520px) {

	/* One slot per row on a phone: each carries its own fragrance button. */
	form.cart.kcb--collection .kcb-slots--fixed {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Every slot now holds a card grid plus a fragrance button, so it is always
   a single column. Stated outright rather than via :has(), which older
   browsers ignore — and a two-column fallback would overlap. */
form.cart.kcb--collection .kcb-slot {
	grid-template-columns: minmax(0, 1fr) !important;
	align-items: stretch;
}

form.cart.kcb--collection .kcb-slot .kcb-slot-scent {
	width: 100% !important;
}


/* ================================================================
 * Candle cards — anchored to the container, not to the script
 *
 * Everything above styles the cards through modifier classes that
 * kcb-collection.js puts on them (.kcb-candles--slot, .kcb-candles--one).
 * That ties the layout to one exact build of the script: if a browser ends
 * up running an older copy than this stylesheet, those modifiers are never
 * emitted, every rule above misses, and the cards fall back to the theme's
 * button styling — one column, image beside the name, no magnifier. It
 * reads as a broken build when it is only a stale file.
 *
 * These rules hang off .kcb-slots[data-kcbc-slots], which the plugin itself
 * renders, so they hold whatever the script emits inside it.
 * ============================================================== */

form.cart.kcb--collection .kcb-slots .kcb-candles:not([hidden]) {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 10px !important;
	width: 100% !important;
	align-items: start !important;
}

/* A lone fixed candle takes the whole slot. */
form.cart.kcb--collection .kcb-slots .kcb-candles--one,
form.cart.kcb--collection .kcb-slots .kcb-candles:has(> .kcb-candle:only-child) {
	grid-template-columns: minmax(0, 1fr) !important;
}

/* Image above, name below — the theme's button rules would run them
   side by side and clip the overflow. */
form.cart.kcb--collection .kcb-slots .kcb-candle {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	position: relative !important;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 10px 10px 12px !important;
	gap: 8px !important;
	background: #fff !important;
	border: 1px solid #e2e0dc !important;
	border-radius: 4px !important;
	text-align: left !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-size: 12.5px !important;
	line-height: 1.3 !important;
	white-space: normal !important;
	overflow: visible !important;
	float: none !important;
}

form.cart.kcb--collection .kcb-slots .kcb-candle.is-selected {
	border-color: #111 !important;
	box-shadow: inset 0 0 0 1px #111 !important;
}

form.cart.kcb--collection .kcb-slots .kcb-candle.is-locked {
	cursor: default !important;
}

form.cart.kcb--collection .kcb-slots .kcb-candle .kcb-candle-img {
	display: block !important;
	position: relative !important;
	flex: 0 0 auto !important;
	width: 100% !important;
	max-width: none !important;
	border-radius: 3px;
	overflow: hidden;
	background: #faf9f7;
	line-height: 0;
}

form.cart.kcb--collection .kcb-slots .kcb-candle .kcb-candle-img img {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

form.cart.kcb--collection .kcb-slots .kcb-candle .kcb-candle-name {
	display: block !important;
	width: 100% !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #111 !important;
	text-align: left !important;
	overflow-wrap: anywhere;
}

/* When the script has not drawn a magnifier of its own, the stylesheet
   draws one, so the cue for the double tap is never missing. */
form.cart.kcb--collection .kcb-slots .kcb-candle .kcb-candle-img:not(:has(.kcb-zoom)):after {
	content: "";
	position: absolute;
	right: 7px;
	bottom: 7px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(17, 17, 17, .75) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="2" stroke-linecap="round"><circle cx="10.5" cy="10.5" r="6.5"/><path d="M15.5 15.5 21 21"/></svg>') center / 17px 17px no-repeat;
	pointer-events: none;
	z-index: 2;
}
