/* Balloons.co.za Custom Print Builder
 * Change the accent colours below to match your brand.
 * The builder inherits your theme's font. */

.bcp {
	--bcp-accent: #c8175d;
	--bcp-accent-ink: #ffffff;
	--bcp-accent-soft: #fdeaf1;
	--bcp-ink: #20222b;
	--bcp-muted: #676b78;
	--bcp-line: #e4e2ea;
	--bcp-surface: #ffffff;
	--bcp-surface-2: #f7f6fa;
	--bcp-ok: #1f7a3d;
	--bcp-warn: #9a4b00;
	--bcp-warn-soft: #fff4e5;
	--bcp-error: #b3261e;

	display: flow-root; /* never slides under the floated product image */
	width: 100%;
	max-width: 100%;
	color: var(--bcp-ink);
	margin: 1.25rem 0 1.5rem;
	font-size: 15px;
	line-height: 1.5;
	clear: both;
}

.bcp *,
.bcp *::before,
.bcp *::after { box-sizing: border-box; }

.bcp [hidden] { display: none !important; }

/* Hide WooCommerce's own quantity box, variation dropdown and variation price; the builder controls them. */
.bcp-enabled form.cart .quantity { display: none !important; }
.bcp-cards form.cart table.variations { display: none !important; }
.bcp-enabled .woocommerce-variation-price { display: none !important; }
.bcp-enabled form.cart .single_add_to_cart_button { width: 100%; margin-top: .5rem; }

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

.bcp-step {
	position: relative;
	padding: 0 0 1.5rem 2.75rem;
	margin: 0;
}
.bcp-step::before {
	/* the thread connecting step numbers, like a balloon string */
	content: "";
	position: absolute;
	left: 15px;
	top: 34px;
	bottom: 4px;
	width: 2px;
	background: var(--bcp-line);
}
.bcp-step.is-done::before { background: var(--bcp-accent); opacity: .35; }

.bcp-step__title {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin: 0 0 .75rem -2.75rem !important;
	padding: 0 !important;
	font-size: 1.125rem !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	color: var(--bcp-ink) !important;
}
.bcp-step__num {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: inline-grid;
	place-items: center;
	font-size: .875rem;
	font-weight: 700;
	color: var(--bcp-muted);
	background: var(--bcp-surface);
	border: 2px solid var(--bcp-line);
	transition: background-color .2s, border-color .2s, color .2s;
}
.bcp-step.is-done .bcp-step__num {
	background: var(--bcp-accent);
	border-color: var(--bcp-accent);
	color: var(--bcp-accent-ink);
}

.bcp-help { margin: .5rem 0 0; color: var(--bcp-muted); font-size: .875rem; }
.bcp-note { margin: .5rem 0 0; color: var(--bcp-muted); font-size: .8125rem; }
.bcp-label { display: block; margin: 1rem 0 .375rem; font-weight: 600; font-size: .875rem; }

.bcp-input {
	width: 100%;
	padding: .625rem .75rem;
	border: 1px solid var(--bcp-line);
	border-radius: 8px;
	background: var(--bcp-surface);
	color: var(--bcp-ink);
	font: inherit;
}
.bcp-input--date { max-width: 16rem; margin-top: .75rem; }

.bcp :focus-visible {
	outline: 3px solid color-mix(in srgb, var(--bcp-accent) 45%, transparent);
	outline-offset: 2px;
}

/* ---------- Quantity ---------- */

.bcp-qty {
	padding: 1rem 1.125rem;
	border: 1px solid var(--bcp-line);
	border-radius: 12px;
	background: var(--bcp-surface);
}
.bcp-qty__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.bcp-qty__readout { font-size: 1rem; color: var(--bcp-muted); }
.bcp-qty__each { color: var(--bcp-muted); font-size: .9375rem; }
.bcp-qty__each strong { color: var(--bcp-accent); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.bcp-qty__row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bcp-qty__total { font-weight: 700; font-variant-numeric: tabular-nums; }
.bcp-qty__readout strong {
	font-size: 2rem;
	line-height: 1;
	color: var(--bcp-ink);
	font-variant-numeric: tabular-nums;
	letter-spacing: -.01em;
}
.bcp-qty__scale {
	display: flex;
	justify-content: space-between;
	font-size: .75rem;
	color: var(--bcp-muted);
	margin: .25rem 0 .875rem;
}

.bcp-range {
	--fill: 0%;
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 28px;
	background: transparent;
	margin: 0;
	cursor: pointer;
}
.bcp-range::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(to right, var(--bcp-accent) var(--fill), var(--bcp-line) var(--fill));
}
.bcp-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--bcp-line); }
.bcp-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--bcp-accent); }
.bcp-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 24px;
	height: 24px;
	margin-top: -9px;
	border-radius: 50%;
	background: var(--bcp-surface);
	border: 3px solid var(--bcp-accent);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.bcp-range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--bcp-surface);
	border: 3px solid var(--bcp-accent);
}

.bcp-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--bcp-line); border-radius: 8px; overflow: hidden; background: var(--bcp-surface); }
.bcp-stepper input {
	width: 5.5rem;
	border: 0 !important;
	border-left: 1px solid var(--bcp-line) !important;
	border-right: 1px solid var(--bcp-line) !important;
	border-radius: 0 !important;
	text-align: center;
	font: inherit;
	font-variant-numeric: tabular-nums;
	padding: .5rem .25rem !important;
	margin: 0 !important;
	background: transparent;
	color: var(--bcp-ink);
	-moz-appearance: textfield;
}
.bcp-stepper input::-webkit-outer-spin-button,
.bcp-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bcp-stepper__btn {
	width: 2.5rem;
	border: 0;
	background: var(--bcp-surface-2);
	color: var(--bcp-ink);
	font-size: 1.125rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.bcp-stepper__btn:hover { background: var(--bcp-accent-soft); }
.bcp-stepper--small input { width: 3.75rem; }
.bcp-stepper--small .bcp-stepper__btn { width: 2.125rem; }

/* ---------- Balloon swatches ---------- */

.bcp-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	gap: .25rem;
}
.bcp-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .375rem;
	padding: .625rem .25rem .5rem;
	border: 2px solid transparent;
	border-radius: 10px;
	background: none;
	cursor: pointer;
	color: var(--bcp-ink);
	font: inherit;
	transition: background-color .15s, border-color .15s;
}
.bcp-swatch:hover { background: var(--bcp-surface-2); }
.bcp-swatch[aria-pressed="true"] {
	border-color: var(--bcp-accent);
	background: var(--bcp-accent-soft);
}
.bcp-swatch__name { font-size: .75rem; line-height: 1.2; text-align: center; }

/* The balloon itself: latex body, shine, knot and a little string. */
.bcp-balloon {
	--c: #ccc;
	position: relative;
	display: block;
	width: 34px;
	height: 42px;
	margin-bottom: 8px;
	border-radius: 50% 50% 48% 48% / 44% 44% 56% 56%;
	background:
		radial-gradient(ellipse 30% 22% at 34% 26%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 70%),
		radial-gradient(circle at 60% 70%, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0) 60%),
		var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
	transition: transform .2s ease;
}
.bcp-balloon::after {
	/* knot */
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 8px;
	height: 6px;
	transform: translateX(-50%);
	background: var(--c);
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
	filter: brightness(.85);
}
.bcp-balloon--clear {
	background:
		radial-gradient(ellipse 30% 22% at 34% 26%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
		linear-gradient(135deg, rgba(210, 225, 240, .55), rgba(255, 255, 255, .25));
	box-shadow: inset 0 0 0 1.5px rgba(120, 140, 170, .55);
}
.bcp-balloon--clear::after { background: rgba(160, 175, 200, .8); }
.bcp-swatch[aria-pressed="true"] .bcp-balloon { transform: translateY(-3px) rotate(-4deg); }

@media (prefers-reduced-motion: reduce) {
	.bcp-balloon,
	.bcp-swatch,
	.bcp-step__num { transition: none; }
	.bcp-swatch[aria-pressed="true"] .bcp-balloon { transform: none; }
}

/* ---------- Colour split ---------- */

.bcp-split {
	margin-top: 1rem;
	border: 1px solid var(--bcp-line);
	border-radius: 12px;
	background: var(--bcp-surface);
	overflow: hidden;
}
.bcp-split__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .75rem 1rem;
	font-weight: 600;
	background: var(--bcp-surface-2);
	border-bottom: 1px solid var(--bcp-line);
}
.bcp-split__rows { padding: .25rem 1rem; }
.bcp-split__row {
	display: grid;
	grid-template-columns: 22px 1fr auto 2rem;
	align-items: center;
	gap: .75rem;
	padding: .5rem 0;
	border-bottom: 1px solid var(--bcp-line);
}
.bcp-split__row:last-child { border-bottom: 0; }
.bcp-split__row .bcp-balloon { width: 18px; height: 22px; margin: 0 0 4px; }
.bcp-split__row .bcp-balloon::after { width: 5px; height: 4px; bottom: -3px; }
.bcp-split__remove {
	border: 0;
	background: none;
	color: var(--bcp-muted);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	padding: .25rem;
	border-radius: 6px;
}
.bcp-split__remove:hover { color: var(--bcp-error); background: var(--bcp-surface-2); }
.bcp-split__meter {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .75rem 1rem;
	border-top: 1px solid var(--bcp-line);
	font-size: .875rem;
	font-variant-numeric: tabular-nums;
}
.bcp-split__bar { flex: 1; height: 6px; border-radius: 3px; background: var(--bcp-line); overflow: hidden; }
.bcp-split__bar span { display: block; height: 100%; width: 0; background: var(--bcp-warn); transition: width .2s; }
.bcp-split__meter.is-ok .bcp-split__bar span { background: var(--bcp-ok); }
.bcp-split__meter.is-over .bcp-split__bar span { background: var(--bcp-error); }
.bcp-split__meter.is-ok #bcp-split-status { color: var(--bcp-ok); font-weight: 600; }
.bcp-split__meter.is-over #bcp-split-status { color: var(--bcp-error); font-weight: 600; }

.bcp-link {
	border: 0;
	background: none;
	padding: 0;
	color: var(--bcp-accent);
	font: inherit;
	font-weight: 600;
	font-size: .875rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* ---------- Artwork ---------- */

.bcp-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .375rem;
	padding: .25rem;
	background: var(--bcp-surface-2);
	border-radius: 10px;
	margin-bottom: .875rem;
}
.bcp-tab {
	flex: 1 1 auto;
	border: 0;
	border-radius: 8px;
	padding: .5rem .75rem;
	background: transparent;
	color: var(--bcp-muted);
	font: inherit;
	font-size: .875rem;
	font-weight: 600;
	cursor: pointer;
}
.bcp-tab.is-active { background: var(--bcp-surface); color: var(--bcp-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), inset 0 0 0 1px var(--bcp-line); }

.bcp-drop {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	padding: 1.25rem;
	text-align: center;
	border: 2px dashed var(--bcp-line);
	border-radius: 12px;
	background: var(--bcp-surface);
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.bcp-drop:hover,
.bcp-drop.is-over { border-color: var(--bcp-accent); background: var(--bcp-accent-soft); }
.bcp-drop.is-done { border-style: solid; border-color: var(--bcp-ok); }
.bcp-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.bcp-drop small { display: block; margin-top: .25rem; color: var(--bcp-muted); font-size: .8125rem; }
.bcp-drop strong { color: var(--bcp-accent); }
.bcp-file-name { font-weight: 600; word-break: break-all; }
.bcp-progress { display: block; width: 200px; max-width: 100%; height: 6px; border-radius: 3px; background: var(--bcp-line); overflow: hidden; }
.bcp-progress span { display: block; height: 100%; width: 0; background: var(--bcp-accent); transition: width .1s; }

.bcp-error { margin: .5rem 0 0; color: var(--bcp-error); font-size: .875rem; font-weight: 600; }

.bcp-callout {
	margin-top: 1rem;
	padding: .75rem 1rem;
	border-left: 3px solid var(--bcp-accent);
	background: var(--bcp-surface-2);
	border-radius: 0 8px 8px 0;
	font-size: .875rem;
	color: var(--bcp-ink);
}

.bcp-warn {
	margin: .75rem 0 0;
	padding: .625rem .875rem;
	background: var(--bcp-warn-soft);
	color: var(--bcp-warn);
	border-radius: 8px;
	font-size: .875rem;
}

/* ---------- Add-ons ---------- */

.bcp-addons { border: 1px solid var(--bcp-line); border-radius: 12px; background: var(--bcp-surface); }
.bcp-addon {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: .75rem 1rem;
	border-bottom: 1px solid var(--bcp-line);
}
.bcp-addon:last-child { border-bottom: 0; }
.bcp-addon.is-picked { background: var(--bcp-accent-soft); }
.bcp-addon__info { display: flex; flex-direction: column; }
.bcp-addon__name { font-weight: 600; }
.bcp-addon__price { color: var(--bcp-muted); font-size: .875rem; }

/* ---------- Summary ---------- */

.bcp-summary {
	margin-top: .5rem;
	padding: 1.125rem 1.25rem;
	border-radius: 12px;
	background: var(--bcp-surface-2);
	border: 1px solid var(--bcp-line);
}
.bcp-summary__title { margin: 0 0 .75rem !important; padding: 0 !important; font-size: 1.125rem !important; font-weight: 700 !important; }
.bcp-summary__list { margin: 0; }
.bcp-summary__list > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .375rem 0;
	font-size: .9375rem;
}
.bcp-summary__list dt { color: var(--bcp-muted); font-weight: 400; margin: 0; }
.bcp-summary__list dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; max-width: 65%; overflow-wrap: anywhere; }
.bcp-summary__total {
	margin-top: .5rem;
	padding-top: .75rem !important;
	border-top: 1px solid var(--bcp-line);
}
.bcp-summary__total dt { color: var(--bcp-ink) !important; font-weight: 700 !important; }
.bcp-summary__total dd { font-size: 1.375rem; }

.bcp-missing {
	margin-top: .875rem;
	padding: .75rem 1rem;
	border-radius: 8px;
	background: var(--bcp-surface);
	border: 1px solid var(--bcp-line);
	font-size: .875rem;
}
.bcp-missing p { margin: 0 0 .25rem; padding: 0; font-weight: 600; }
.bcp-missing ul { margin: 0; padding-left: 1.125rem; }
.bcp-missing li { margin: .125rem 0; }
.bcp-missing.is-alert { border-color: var(--bcp-error); }
.bcp-missing.is-alert p { color: var(--bcp-error); }

@media (max-width: 600px) {
	.bcp-step { padding-left: 0; }
	.bcp-step::before { display: none; }
	.bcp-step__title { margin-left: 0 !important; }
	.bcp-swatches { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); }
	.bcp-summary__list dd { max-width: 60%; }
}


/* ---------- v2: print option cards ---------- */

.bcp-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .5rem; }
.bcp-option {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "dots label" "dots price";
	align-items: center;
	column-gap: .75rem;
	row-gap: .125rem;
	text-align: left;
	padding: .75rem .875rem;
	border: 2px solid var(--bcp-line);
	border-radius: 12px;
	background: var(--bcp-surface);
	color: var(--bcp-ink);
	font: inherit;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.bcp-option:hover { border-color: color-mix(in srgb, var(--bcp-accent) 45%, var(--bcp-line)); }
.bcp-option.is-active { border-color: var(--bcp-accent); background: var(--bcp-accent-soft); }
.bcp-option:disabled { opacity: .45; cursor: not-allowed; }
.bcp-option__dots { grid-area: dots; display: grid; grid-template-columns: repeat(2, 10px); gap: 3px; width: 23px; }
.bcp-option__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--bcp-accent); }
.bcp-option__label { grid-area: label; font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.bcp-option__price { grid-area: price; color: var(--bcp-muted); font-size: .8125rem; }

/* ---------- v2: price tiers ---------- */

.bcp-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: .375rem; margin-top: 1rem; }
.bcp-tier {
	flex: 1 0 auto;
	min-width: 72px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: .4rem .5rem;
	border: 1px solid var(--bcp-line);
	border-radius: 8px;
	background: var(--bcp-surface-2);
	color: var(--bcp-ink);
	font: inherit;
	cursor: pointer;
	font-variant-numeric: tabular-nums;
}
.bcp-tier:hover { border-color: var(--bcp-accent); }
.bcp-tier.is-active { background: var(--bcp-accent); border-color: var(--bcp-accent); color: var(--bcp-accent-ink); }
.bcp-tier__qty { font-size: .75rem; opacity: .85; }
.bcp-tier__price { font-weight: 700; font-size: .875rem; }

.bcp-help--top { margin: 0 0 .75rem; }

/* ---------- v2: design + live preview ---------- */

.bcp-design { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 1.25rem; align-items: start; }
.bcp-preview {
	position: sticky;
	top: 1rem;
	margin: 0;
	padding: 1rem .75rem .75rem;
	border-radius: 12px;
	background: linear-gradient(180deg, #eef3fb, #f8f5fb);
	border: 1px solid var(--bcp-line);
	text-align: center;
}
.bcp-preview__stage { position: relative; height: 250px; }
.bcp-preview__balloon {
	--c: #ffffff;
	position: relative;
	width: 150px;
	height: 184px;
	margin: 0 auto;
	border-radius: 50% 50% 48% 48% / 44% 44% 56% 56%;
	background:
		radial-gradient(ellipse 22% 16% at 30% 22%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%),
		radial-gradient(circle at 62% 72%, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0) 62%),
		var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 10px 24px -12px rgba(0, 0, 0, .35);
	transition: background-color .25s;
}
.bcp-preview__balloon::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -9px;
	width: 16px;
	height: 11px;
	transform: translateX(-50%);
	background: var(--c);
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
	filter: brightness(.85);
}
.bcp-preview__balloon.is-clear {
	background:
		radial-gradient(ellipse 22% 16% at 30% 22%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
		linear-gradient(135deg, rgba(200, 218, 238, .5), rgba(255, 255, 255, .2));
	box-shadow: inset 0 0 0 1.5px rgba(120, 140, 170, .5);
}
.bcp-preview__balloon.is-clear::after { background: rgba(160, 175, 200, .8); }
.bcp-preview__string {
	position: absolute;
	left: 50%;
	top: 193px;
	width: 2px;
	height: 56px;
	background: linear-gradient(#b9b4c4, rgba(185, 180, 196, 0));
	transform: translateX(-50%);
}
.bcp-preview__print {
	position: absolute;
	left: 20%;
	right: 20%;
	top: 24%;
	height: 42%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.bcp-preview__print img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bcp-preview__print img.is-multiply { mix-blend-mode: multiply; }
.bcp-preview__mask {
	width: 100%;
	height: 100%;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}
.bcp-preview__print.is-text span { font-weight: 800; line-height: 1.1; text-align: center; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.bcp-preview__print.is-empty {
	border: 1.5px dashed rgba(0, 0, 0, .22);
	border-radius: 8px;
	color: rgba(0, 0, 0, .4);
	font-size: .75rem;
	font-weight: 600;
}
.bcp-preview__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: .375rem; min-height: 4px; margin: .25rem 0 .5rem; }
.bcp-preview__dot {
	width: 18px;
	height: 18px;
	padding: 0;
	border-radius: 50%;
	border: 2px solid var(--bcp-surface);
	background: var(--c, #fff);
	box-shadow: 0 0 0 1px var(--bcp-line);
	cursor: pointer;
}
.bcp-preview__dot[data-clear] { background: linear-gradient(135deg, #dfe8f3, #fff); }
.bcp-preview__dot.is-active { box-shadow: 0 0 0 2px var(--bcp-accent); }
.bcp-preview figcaption { font-size: .75rem; color: var(--bcp-muted); line-height: 1.35; }

/* ---------- v2: ink colours ---------- */

.bcp-inks { border: 0; margin: 1rem 0 0; padding: 0; min-width: 0; }
.bcp-inks legend { padding: 0; margin-top: 0; }
.bcp-inks__list { display: flex; flex-wrap: wrap; gap: .375rem; }
.bcp-ink { position: relative; display: inline-flex; align-items: center; gap: .375rem; padding: .3rem .6rem .3rem .35rem; border: 1px solid var(--bcp-line); border-radius: 999px; cursor: pointer; font-size: .8125rem; background: var(--bcp-surface); }
.bcp-ink input { position: absolute; opacity: 0; pointer-events: none; }
.bcp-ink__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.bcp-ink__dot--match { background: conic-gradient(#d0201f, #f7b500, #1e8a44, #1f4eb4, #6a2c91, #d0201f); }
.bcp-ink:has(input:checked) { border-color: var(--bcp-accent); background: var(--bcp-accent-soft); font-weight: 600; }
.bcp-ink:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--bcp-accent) 45%, transparent); outline-offset: 2px; }

/* ---------- v2: date estimate ---------- */

.bcp-estimate { margin: 0; font-size: .875rem; color: var(--bcp-ink); }

/* ---------- v2: add-ons ---------- */

.bcp-addon__img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: 0 0 56px; background: var(--bcp-surface-2); }
.bcp-addon__info { flex: 1; min-width: 0; }
.bcp-addon__hint { font-size: .8125rem; color: var(--bcp-ink); margin-top: .25rem; }
.bcp-addon__hint { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.bcp-addon__hint[hidden] { display: none; }
.bcp-hint-btn { border: 1px solid var(--bcp-accent); background: var(--bcp-surface); color: var(--bcp-accent); border-radius: 999px; padding: .15rem .6rem; font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; }
.bcp-hint-btn:hover { background: var(--bcp-accent-soft); }

/* ---------- v2: price on product listing ---------- */

.bcp-from .woocommerce-Price-amount { font-weight: 700; }

/* ---------- v2: mobile total bar ---------- */

.bcp-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom, 0px));
	background: var(--bcp-surface);
	border-top: 1px solid var(--bcp-line);
	box-shadow: 0 -6px 20px -12px rgba(0, 0, 0, .3);
}
.bcp-bar__info { display: flex; flex-direction: column; line-height: 1.2; }
.bcp-bar__info span { font-size: .8125rem; color: var(--bcp-muted); }
.bcp-bar__info strong { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.bcp-bar__btn { border: 0; border-radius: 8px; padding: .625rem 1rem; background: var(--bcp-accent); color: var(--bcp-accent-ink); font: inherit; font-weight: 700; cursor: pointer; }
@media (min-width: 783px) { .bcp-bar { display: none !important; } }

@media (max-width: 600px) {
	.bcp-design { grid-template-columns: 1fr; }
	.bcp-preview { position: static; order: -1; }
	.bcp-options { grid-template-columns: 1fr; }
}


/* =====================================================================
 * Layout that fits any screen (v2.3)
 * builder.js measures the space the builder actually has and adds
 * bcp--narrow / bcp--mid / bcp--wide. No container queries, so it can't
 * collapse inside themes (Divi) that shrink-wrap their columns.
 * ===================================================================== */

.bcp, .bcp-layout, .bcp-main, .bcp-side { min-width: 0; }
.bcp img, .bcp svg { max-width: 100%; }

/* A little more breathing room between steps. */
.bcp-step { padding-bottom: 2rem; }
.bcp-step__title { margin-bottom: 1rem !important; }

.bcp-summary__cta {
	display: none;
	width: 100%;
	margin-top: 1rem;
	padding: .875rem 1rem;
	border: 0;
	border-radius: 10px;
	background: var(--bcp-accent);
	color: var(--bcp-accent-ink);
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}
.bcp-summary__cta:hover { filter: brightness(.95); }

/* Wide (lots of room): steps left, order summary follows you on the right. */
.bcp--wide .bcp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	column-gap: 2.5rem;
	align-items: start;
}
.bcp--wide .bcp-side { position: sticky; top: 90px; }
.bcp--wide .bcp-summary { margin-top: 0; }
.bcp--wide .bcp-summary__cta { display: block; }
.bcp--wide .bcp-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bcp--wide .bcp-swatches { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.bcp--wide .bcp-design { grid-template-columns: minmax(0, 1fr) 220px; gap: 2rem; }

/* Medium: one column. */
.bcp--mid .bcp-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Narrow (phones, slim columns): everything stacked. */
.bcp--narrow .bcp-step { padding-left: 0; }
.bcp--narrow .bcp-step::before { display: none; }
.bcp--narrow .bcp-step__title { margin-left: 0 !important; font-size: 1.0625rem !important; }
.bcp--narrow .bcp-design { grid-template-columns: minmax(0, 1fr); }
.bcp--narrow .bcp-preview { position: static; order: -1; }
.bcp--narrow .bcp-options { grid-template-columns: minmax(0, 1fr); }
.bcp--narrow .bcp-swatches { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.bcp--narrow .bcp-qty { padding: .875rem; }
.bcp--narrow .bcp-qty__readout strong { font-size: 1.75rem; }
.bcp--narrow .bcp-split__row { grid-template-columns: 18px minmax(0, 1fr) auto 1.75rem; gap: .5rem; }
.bcp--narrow .bcp-addon { flex-wrap: wrap; }
.bcp--narrow .bcp-addon .bcp-stepper { margin-left: auto; }
.bcp--narrow .bcp-summary { padding: 1rem; }
.bcp--narrow .bcp-tabs { flex-direction: column; }

/* Room for the phone total bar so it never covers the Add to cart button. */
@media (max-width: 782px) {
	.bcp-enabled form.cart { padding-bottom: 72px; }
}

/* ---------- Full width on desktop (v2.4) ---------- */
.bcp-fullwidth {
	clear: both;
	width: 100%;
	padding-top: 2.5rem;
	margin-top: 1rem;
	border-top: 1px solid var(--bcp-line, #e4e2ea);
}
.bcp-fullwidth::after { content: ""; display: table; clear: both; }
.bcp-fullwidth form.cart { margin: 0 !important; width: 100%; float: none; }
.bcp-fullwidth .bcp { margin-top: 0; }
.bcp-is-fullwidth .bcp--wide .bcp-side { top: 110px; } /* clear Divi's fixed header */

/* ---------- Type on the balloon (v2.5) ---------- */
/* Empty balloon: choose Type text / Upload logo right on it. */
.bcp-preview__print.is-choice {
	flex-direction: column;
	gap: 6px;
	border: 0;
	overflow: visible;
}
.bcp-bal-btn {
	width: 100%;
	padding: 6px 4px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: var(--bcp-accent);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.1;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.bcp-bal-btn:hover { background: #fff; border-color: var(--bcp-accent); }

/* Logo on the balloon: tap to change it. */
.bcp-preview__balloon.has-logo { cursor: pointer; }
.bcp-bal-change {
	position: absolute;
	left: 50%;
	bottom: -4px;
	transform: translate(-50%, 100%);
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: var(--bcp-ink);
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
	opacity: 0;
	transition: opacity .15s;
	pointer-events: none;
}
.bcp-preview__balloon.has-logo:hover .bcp-bal-change { opacity: 1; }
@media (hover: none) { .bcp-bal-change { opacity: 1; } }
.bcp-preview__balloon.has-logo .bcp-preview__print { overflow: visible; }

/* Drag a file over the balloon. */
.bcp-preview__stage.is-over .bcp-preview__balloon { box-shadow: 0 0 0 4px var(--bcp-accent), 0 10px 24px -12px rgba(0, 0, 0, .35); }
.bcp-edit {
	display: inline-block;
	min-width: 1ch;
	max-width: 100%;
	padding: .15em .2em;
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
	overflow-wrap: normal;
	word-break: keep-all;
	text-wrap: balance;
	outline: none;
	cursor: text;
	caret-color: currentColor;
}
.bcp-edit:empty::before { content: attr(data-placeholder); opacity: .45; font-weight: 600; font-size: 13px; }
.bcp-preview__print.is-text { border-radius: 8px; }
.bcp-preview__print.is-text:focus-within { outline: 1.5px dashed currentColor; outline-offset: -2px; }

/* =====================================================================
 * Plain balloons mode (v3.0)
 * ===================================================================== */
.bcp-plain form.cart table.variations,
.bcp-plain form.cart .single_variation_wrap { display: none !important; }
.bcp-plain .bcp-summary__cta--always { display: block; }

.bcp-swatch.is-soldout { opacity: .45; cursor: not-allowed; }
.bcp-swatch__sold { font-size: .6875rem; font-weight: 700; color: var(--bcp-error); }

.bcp-mix__total { font-variant-numeric: tabular-nums; color: var(--bcp-accent); }
.bcp-mix__row { grid-template-columns: 22px minmax(0, 1fr) auto auto 2rem; }
.bcp-mix__name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.bcp-mix__name small { color: var(--bcp-muted); font-size: .75rem; }
.bcp-mix__plus10 {
	border: 1px solid var(--bcp-line);
	background: var(--bcp-surface-2);
	color: var(--bcp-ink);
	border-radius: 999px;
	padding: .3rem .55rem;
	font: inherit;
	font-size: .75rem;
	font-weight: 700;
	cursor: pointer;
}
.bcp-mix__plus10:hover { border-color: var(--bcp-accent); color: var(--bcp-accent); }
.bcp--narrow .bcp-mix__row { grid-template-columns: 18px minmax(0, 1fr) auto 1.75rem; }
.bcp--narrow .bcp-mix__plus10 { display: none; }

/* Bunch preview */
.bcp-bunch__stage { position: relative; height: 250px; margin: 0 auto; max-width: 240px; }
.bcp-bunch__strings { position: absolute; inset: 0; width: 100%; height: 100%; }
.bcp-bunch__strings line { stroke: #b9b4c4; stroke-width: .5; vector-effect: non-scaling-stroke; }
.bcp-bunch__b { position: absolute; transform: translate(-50%, -50%); }
.bcp-bunch__b .bcp-balloon { width: 52px; height: 64px; margin: 0; animation: bcp-bob 5s ease-in-out infinite; }
.bcp-bunch__b:nth-child(odd) .bcp-balloon { animation-delay: -2.5s; }
.bcp-bunch__b:nth-child(3n) .bcp-balloon { animation-delay: -1.2s; }
@keyframes bcp-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .bcp-bunch__b .bcp-balloon { animation: none; } }
.bcp-bunch__empty { display: flex; justify-content: center; align-items: center; gap: 10px; height: 100%; }
.bcp-balloon--ghost { width: 48px; height: 58px; background: transparent !important; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .15) !important; }
.bcp-balloon--ghost::after { background: rgba(0, 0, 0, .15) !important; }

/* Summary mix list */
.bcp-summary__mixlist { list-style: none; margin: 0 0 .5rem; padding: 0; }
.bcp-summary__mixlist li { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; font-size: .875rem; }
.bcp-summary__mixlist li > span:not(.bcp-balloon) { flex: 1; min-width: 0; }
.bcp-summary__mixlist li strong { font-variant-numeric: tabular-nums; }
.bcp-balloon--tiny { width: 14px !important; height: 17px !important; margin: 0 0 3px !important; flex: 0 0 14px; }
.bcp-balloon--tiny::after { width: 4px !important; height: 3px !important; bottom: -2px !important; }

/* Plain mode, wide: preview sits above the order summary, colours get the full width. */
.bcp--plainmode.bcp--wide .bcp-design { grid-template-columns: minmax(0, 1fr); }
.bcp--plainmode .bcp-side .bcp-bunch { position: static; margin-bottom: 1rem; }
.bcp--plainmode .bcp-side .bcp-bunch__stage { height: 210px; max-width: 220px; }
.bcp--plainmode .bcp-side .bcp-bunch__b .bcp-balloon { width: 44px; height: 54px; }

/* Colours loaded from a link (palette ideas / colour wall) */
.bcp-loaded {
	margin: 0 0 .875rem;
	padding: .75rem 1rem;
	border-left: 3px solid var(--bcp-accent);
	border-radius: 0 8px 8px 0;
	background: var(--bcp-accent-soft);
	font-size: .875rem;
	line-height: 1.5;
}
.bcp-loaded span { color: var(--bcp-muted); font-size: .8125rem; }

/* ================= v3.2 ================= */

/* Text on the balloon: use more of the balloon and fit the words (no word split over lines). */
.bcp-preview__print.is-text { left: 9%; right: 9%; top: 19%; height: 50%; overflow: visible; }

/* Keep sticky bits below the theme's fixed header (measured by the script). */
.bcp--wide .bcp-side,
.bcp-is-fullwidth .bcp--wide .bcp-side { top: var(--bcp-sticky-top, 110px); }
.bcp-preview { top: var(--bcp-sticky-top, 1rem); }

/* Print layout choice: "2 colours on 1 side" or "1 colour on 2 sides" */
.bcp-layout-choice { border: 0; margin: 1rem 0 0; padding: 0; min-width: 0; }
.bcp-layout-choice legend { margin-top: 0; padding: 0; }
.bcp-layout-choice__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.bcp-layout-opt { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border: 2px solid var(--bcp-line); border-radius: 10px; background: var(--bcp-surface); cursor: pointer; font-weight: 600; font-size: .9375rem; }
.bcp-layout-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--bcp-accent); }
.bcp-layout-opt:has(input:checked) { border-color: var(--bcp-accent); background: var(--bcp-accent-soft); }

/* Date: a clear, full-width tap target (a tiny empty box on phones confused people). */
.bcp-datebox {
	position: relative;
	display: flex;
	align-items: center;
	gap: .65rem;
	width: 100%;
	max-width: 22rem;
	min-height: 52px;
	margin-top: .75rem;
	padding: .5rem 1rem;
	border: 2px dashed var(--bcp-accent);
	border-radius: 10px;
	background: var(--bcp-accent-soft);
	color: var(--bcp-accent);
	font-weight: 700;
	cursor: pointer;
}
.bcp-datebox.is-set { border-style: solid; border-color: var(--bcp-line); background: var(--bcp-surface); color: var(--bcp-ink); }
.bcp-datebox:focus-within { outline: 3px solid color-mix(in srgb, var(--bcp-accent) 45%, transparent); outline-offset: 2px; }
.bcp-datebox__icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.bcp-datebox__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.bcp--narrow .bcp-datebox { max-width: none; }

/* Variable extras (e.g. cylinder: first purchase / refill) */
.bcp-addon__var { display: block; width: 100%; max-width: 20rem; margin: .3rem 0 .15rem; padding: .35rem .5rem; border: 1px solid var(--bcp-line); border-radius: 8px; background: var(--bcp-surface); color: var(--bcp-ink); font: inherit; font-size: .8125rem; }

/* ================= v3.3: balloon finishes ================= */
/* Metallic: soft pearly sheen */
.bcp--finish-metallic .bcp-balloon:not(.bcp-balloon--clear):not(.bcp-balloon--ghost),
.bcp--finish-metallic .bcp-preview__balloon:not(.is-clear) {
	background:
		radial-gradient(ellipse 26% 18% at 32% 24%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%),
		linear-gradient(150deg, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 42%, color-mix(in srgb, var(--c) 72%, #000) 78%, color-mix(in srgb, var(--c) 80%, #fff) 100%);
}
/* Chrome: mirror-like bands */
.bcp--finish-chrome .bcp-balloon:not(.bcp-balloon--clear):not(.bcp-balloon--ghost),
.bcp--finish-chrome .bcp-preview__balloon:not(.is-clear) {
	background:
		radial-gradient(ellipse 22% 14% at 30% 22%, #fff, rgba(255, 255, 255, 0) 75%),
		linear-gradient(165deg, color-mix(in srgb, var(--c) 35%, #fff) 0%, var(--c) 28%, color-mix(in srgb, var(--c) 55%, #000) 48%, color-mix(in srgb, var(--c) 45%, #fff) 66%, var(--c) 82%, color-mix(in srgb, var(--c) 60%, #000) 100%);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}
/* Macaron: matte pastel, gentle highlight */
.bcp--finish-macaron .bcp-balloon:not(.bcp-balloon--clear):not(.bcp-balloon--ghost),
.bcp--finish-macaron .bcp-preview__balloon:not(.is-clear) {
	background:
		radial-gradient(ellipse 30% 22% at 34% 26%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 70%),
		var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

/* Pick & mix: pack prices (buy more, pay less) */
.bcp-packs { margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--bcp-accent-soft, #fde6f1); }
.bcp-packs__title { display: block; font-size: 14px; margin-bottom: 8px; }
.bcp-packs__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; }
.bcp-pack { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 10px; background: #fff; border: 2px solid transparent; font-size: 13px; line-height: 1.2; }
.bcp-pack small { font-size: 11px; font-weight: 700; opacity: .75; }
.bcp-pack b { font-size: 14px; }
.bcp-pack.is-on { border-color: var(--bcp-accent, #ed087b); }
.bcp-packs__note { margin: 8px 0 0; font-size: 12.5px; }
.bcp-packs__note strong { color: var(--bcp-accent, #ed087b); }

/* Your order: Clear */
.bcp-summary__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bcp-summary__head .bcp-summary__title { margin: 0; }
.bcp-summary__clear { border: 0; background: none; padding: 4px 0; color: var(--bcp-accent, #ed087b); font-size: 13px; font-weight: 800; text-decoration: underline; cursor: pointer; }

/* Balloon art previews (modelling + Link-O-Loons) */
.bcp-bunch__stage .bcp-art { display: block; width: 100%; height: 100%; }

/* Swatch shapes */
.bcp--shape-modelling .bcp-swatch .bcp-balloon { width: 12px; height: 44px; border-radius: 7px; }
.bcp--shape-modelling .bcp-swatch .bcp-balloon::after { display: none; }
.bcp--shape-link .bcp-swatch .bcp-balloon { position: relative; }
.bcp--shape-link .bcp-swatch .bcp-balloon::before { content: ""; position: absolute; top: -6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--c, #ddd); }
.bcp--shape-modelling .bcp-bunch__stage, .bcp--shape-link .bcp-bunch__stage { max-width: 320px; height: 240px; }
.bcp--plainmode.bcp--shape-modelling .bcp-side .bcp-bunch__stage, .bcp--plainmode.bcp--shape-link .bcp-side .bcp-bunch__stage { max-width: 300px; height: 220px; }
