/**
 * Los Boeket Builder — single-bouquet configurator.
 *
 * Two columns on desktop: a sticky gallery on the left, the configurator on the
 * right. Selection state lives on the label (`.is-selected`, set by the script)
 * so the radio/checkbox itself can stay visually hidden but focusable.
 */

.blb {
	--blb-line: #e3ddd8;
	--blb-muted: color-mix(in oklab, var(--ink) 58%, transparent);
	--blb-radius: 14px;
	--blb-field-radius: 10px;
	--blb-shadow: 0 1px 2px rgba(44, 62, 76, 0.05);
	--blb-tint: color-mix(in oklab, var(--rose) 12%, white);

	box-sizing: border-box;
	max-width: 100%;
	margin-inline: auto;
	padding: 2rem 0rem 4rem;
	color: var(--ink);
}

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

.blb__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
}

@media (min-width: 1024px) {
	.blb__grid {
		grid-template-columns: 1.05fr 1fr;
        gap: calc(var(--spacing) * 12);
        align-items: start;
	}
	.blb__media {
		position: sticky;
		top: 2rem;
	}
}

.blb-icon {
	width: 1em;
	height: 1em;
	flex: none;
}

.blb-notice {
	padding: 1rem 1.25rem;
	border: 1px dashed var(--rose);
	border-radius: var(--blb-radius);
	color: var(--blb-muted);
	font-size: 0.9375rem;
}

/* ── Gallery ──────────────────────────────────────────────────────────────── */

.blb-gallery {
	margin: 0;
	border-radius: 2rem;
	overflow: hidden;
	background: var(--blb-tint);
}
.blb-gallery__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4/5;
	object-fit: cover;
}

.blb-usps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.5rem;
    margin: 1.5rem 0 0;
    padding: calc(var(--spacing) * 4) !important;
    list-style: none;
    background: var(--cream);
}
.blb-usps__item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: color-mix(in oklab, var(--ink) 80%, transparent);
}
.blb-usps__item .blb-icon {
	width: 1.05rem;
	height: 1.05rem;
	color: var(--rose);
}

.blb-thumbs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.85rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
	padding-left: 0 !important;
}
/* Each card is a bouquet product, not a gallery image — picking one swaps the
   photo, the header copy and the price. */
.blb .blb-thumb {
	display: block;
	width: 100%;
	padding: 0 !important;
	border: 2px solid transparent;
	border-radius: var(--blb-radius);
	background: var(--blb-tint);
	overflow: hidden;
	cursor: pointer;
	opacity: 0.7;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}
.blb-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}
.blb .blb-thumb:hover {
	opacity: 1;
	border-color: color-mix(in oklab, var(--rose) 50%, transparent);
}
.blb .blb-thumb.is-active {
	opacity: 1;
	border-color: var(--rose);
}
.blb .blb-thumb:focus-visible {
	outline: none;
	opacity: 1;
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--rose) 25%, transparent);
}

/* ── Panel header ─────────────────────────────────────────────────────────── */

.blb-eyebrow {
	letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--rose);
    font-size: .72rem;
    font-weight: 600;
}
.blb-title {
	margin-top: 0!important;
	margin-bottom: 0.5rem ! important;
	display: inline-flex;
	gap: 0.5rem;
	align-items: baseline;
	font-family: var(--font-display);
	font-size: var(--text-4xl);
    line-height: var(--tw-leading, var(--text-4xl--line-height));
	font-weight: 500;
	color: var(--ink);
	@media (width >= 48rem) {
		font-size: var(--text-5xl);
        line-height: var(--tw-leading, var(--text-5xl--line-height));
	}
}
.blb-dot {
    background: var(--rose);
    width: 0.5rem;
    height: 0.5rem;
    display: inline-block;
    border-radius: 1rem;
}
.blb-subtitle {
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
	color: var(--rose);
}
.blb-desc {
	margin: 0.85rem 0 0;
    font-size: 1rem;
    line-height: 1.5;
    color: color-mix(in oklab, var(--ink) 75%, transparent);
    max-width: var(--container-lg);
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.blb-section {
    margin-top: calc(var(--spacing) * 10);
    padding-top: calc(var(--spacing) * 8);
    border-top: 1px solid var(--blb-line);
}
.blb-h {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	color: var(--ink);
	font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
	margin-bottom: 0rem !important;
	display: inline-flex;
    gap: 0.5rem;
    align-items: baseline;
	@media (width >= 48rem) {
		font-size: var(--text-3xl);
        line-height: var(--tw-leading, var(--text-3xl--line-height));
	}
}
.blb-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    line-height: 1.333;
    color: color-mix(in oklab, var(--ink) 60%, transparent);
    margin-top: calc(var(--spacing) * 1) !important;
	margin-bottom: 0 !important;
}
.blb-hint .blb-icon {
	width: calc(var(--spacing) * 3.5);
    height: calc(var(--spacing) * 3.5);
}

/* ── Quantity stepper ─────────────────────────────────────────────────────── */

.blb-stepper {
	display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing) * 2);
    margin-top: 1.1rem;
    padding: calc(var(--spacing) * 1);
    border: 2px solid #e3ddd8;
    border-radius: 9999px;
    background: var(--white);
    box-shadow: var(--blb-shadow);
}
.blb-stepper__btn {
	width: calc(var(--spacing) * 9);
    height: calc(var(--spacing) * 9);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
    transition: background-color 150ms ease;
    padding: 0;
}
.blb-stepper__btn:hover, .blb-stepper__btn:focus, .blb-stepper__btn:active {
	background: var(--cream);
	color: var(--ink);
}
.blb .blb-stepper__value {
	min-width: calc(var(--spacing) * 8);
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
	font-weight: 600;
	color: var(--ink);
	-moz-appearance: textfield;
}
.blb .blb-stepper__value::-webkit-inner-spin-button,
.blb .blb-stepper__value::-webkit-outer-spin-button {
	appearance: none;
	margin: 0;
}
.blb .blb-stepper__value:focus-visible {
	outline: 2px solid var(--rose);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ── Date + shipping options ──────────────────────────────────────────────── */

.blb .blb-date {
	width: 100%;
    height: 52px;
    margin-top: 1.1rem;
    padding: calc(var(--spacing) * 3) calc(var(--spacing) * 4);
    border: 2px solid #e3ddd8;
    border-radius: var(--blb-field-radius);
    background: var(--white);
    color: var(--ink);
}
.blb .blb-date:focus {
	outline: none;
	border-color: var(--rose);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--rose) 30%, transparent);
}

.blb-options {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.75rem;
}
.blb-option {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.8rem 1rem;
	border-radius: var(--blb-field-radius);
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease;
}
.blb-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.blb-option__radio {
	width: 18px;
	height: 18px;
	flex: none;
	border: 2px solid color-mix(in oklab, var(--ink) 30%, transparent);
	border-radius: 50%;
	display: grid;
	place-items: center;
	transition: border-color 150ms ease;
}
.blb-option__radio::after {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rose);
	transform: scale(0);
	transition: transform 150ms ease;
}
.blb-option__label {
	flex: 1;
	font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
}
.blb-option__price {
	font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
	font-weight: var(--font-weight-semibold);
}
.blb-option__price .amount {
	color: inherit;
}
.blb-option.is-selected {
    background: color-mix(in oklab, var(--peach) 30%, transparent);
}
.blb-option.is-selected .blb-option__radio {
	border-color: var(--rose);
}
.blb-option.is-selected .blb-option__radio::after {
	transform: scale(1);
}

/* ── Option cards (vases, card designs) ───────────────────────────────────── */

.blb-cards {
	display: grid;
	gap: 0.85rem;
	margin-top: 1.1rem;
}
.blb-cards--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 640px) {
	.blb-cards--3 {
		grid-template-columns: repeat(1,minmax(0,1fr));
	}
}

.blb-card,
.blb-design {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 2px solid var(--blb-line);
	border-radius: var(--blb-radius);
	background: var(--white);
	overflow: hidden;
	cursor: pointer;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}
.blb-card input,
.blb-design input,
.blb-extra input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.blb-card:hover,
.blb-design:hover {
	border-color: color-mix(in oklab, var(--rose) 40%, transparent);
}
.blb-card.is-selected,
.blb-design.is-selected {
	border-color: var(--rose);
	--tw-shadow: 0 20px 50px -25px var(--tw-shadow-color, #c994ac99);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.blb-card__media,
.blb-design__media {
	position: relative;
	display: block;
	background: var(--blb-tint);
}
.blb-card__media img,
.blb-design__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}
.blb-design__media img {
	aspect-ratio: 4 / 5;
}

/* Selection mark in the top-right corner of the thumbnail. */
.blb-mark {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1px solid var(--blb-line);
	background: var(--white);
	display: grid;
	place-items: center;
	color: transparent;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.blb-mark .blb-icon {
	width: 13px;
	height: 13px;
	stroke-width: 3;
}
.is-selected .blb-mark {
	background: var(--rose);
	border-color: var(--rose);
	color: var(--white);
}

.blb-card__body {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: calc(var(--spacing) * 3);
}
.blb-card__price {
	margin-top: 0.25rem;
}
.blb-card__price .amount {
	color: inherit;
}

.blb-design__label {
    padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 2);
    text-align: center;
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
    font-weight: var(--font-weight-semibold);
}

/* ── Extras ───────────────────────────────────────────────────────────────── */

.blb-extras {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
	margin-top: 1.1rem;
}
@media (max-width: 599px) {
	.blb-extras {
		grid-template-columns: minmax(0, 1fr);
	}
}

.blb-extra {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: calc(var(--spacing) * 3);
	border: 2px solid var(--blb-line);
	border-radius: var(--blb-radius);
	background: var(--white);
	cursor: pointer;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}
.blb-extra:hover {
	border-color: color-mix(in oklab, var(--rose) 40%, transparent);
}
.blb-extra.is-selected {
	border-color: var(--rose);
}
.blb-extra__thumb {
	flex: none;
	width: calc(var(--spacing) * 16);
	border-radius: calc(var(--radius) + 4px);
	overflow: hidden;
	background: var(--blb-tint);
}
.blb-extra__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}
.blb-extra__body {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
}
.blb-extra__price .amount {
	color: inherit;
}

/* ── Card design panel ────────────────────────────────────────────────────── */

.blb-cardpanel {
	margin-top: 1rem;
    padding: calc(var(--spacing) * 4);
    border: 2px solid color-mix(in oklab, var(--rose) 35%, transparent);
    border-radius: var(--blb-radius);
    background: color-mix(in oklab, var(--peach) 20%, transparent);
}
.blb-cardpanel[hidden] {
	display: none;
}
.blb-cardpanel__note {
    margin: 0.5rem 0 0 !important;
    font-size: 0.75rem;
    color: color-mix(in oklab, var(--ink) 60%, transparent);
}
.blb-cardpanel .blb-design {
	background: var(--white);
}

.blb-field {
	margin-top: 1rem;
}
.blb-field__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.4rem;
}
.blb-field__label {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
    font-weight: 500;
    color: var(--ink);
}
.blb-field__counter {
	font-size: 0.75rem;
	color: var(--blb-muted);
	font-variant-numeric: tabular-nums;
}
.blb .blb-textarea {
    width: 100%;
    padding: calc(var(--spacing) * 3) calc(var(--spacing) * 4);
    border: 2px solid var(--blb-line);
    border-radius: var(--blb-field-radius);
    background: var(--white);
    font: inherit;
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
    color: var(--ink);
    resize: vertical;
}
.blb .blb-textarea::placeholder {
    color: color-mix(in oklab, var(--ink) 35%, transparent);
}
.blb .blb-textarea:focus {
	outline: none;
	border-color: var(--rose);
}

/* ── Summary ──────────────────────────────────────────────────────────────── */

.blb-summary {
	margin-top: 2.5rem;
    padding: calc(var(--spacing) * 6);
    border: 2px solid color-mix(in oklab, var(--rose) 35%, transparent);
    border-radius: var(--blb-radius);
    background: color-mix(in oklab, var(--peach) 20%, transparent);
}
.blb-summary__tag {
	margin: 0 0 calc(var(--spacing) * 1);
	color: var(--blb-muted);
}
.blb-summary__title {
    margin: 0;
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
    font-weight: 600;
}
.blb-summary__meta {
	margin: calc(var(--spacing) * 1) 0 0;
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
    color: var(--blb-muted);
}
.blb-summary__meta strong {
	color: var(--ink);
}
.blb-summary__error {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	color: var(--destructive);
}
.blb-summary__error[hidden] {
	display: none;
}

.blb-summary__actions {
	display: flex;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
	margin-top: 1.1rem;
}
@media (max-width: 640px) {
	.blb-summary__actions {
		flex-direction: column;
	}
}

.blb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 52px;
	padding: 0 0.9rem;
	border-radius: 9999px;
	border: 2px solid transparent;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: background-color 150ms ease, transform 150ms ease, opacity 150ms ease;
}
.blb-btn .blb-icon {
	width: 1.05rem;
	height: 1.05rem;
}
.blb-btn:hover:not(:disabled) {
	transform: translateY(-1px);
}
.blb-btn:disabled {
	opacity: 0.6;
	cursor: default;
	transform: none;
}
.blb-btn--ghost {
	background: var(--white);
	border-color: var(--ink);
	color: var(--ink);
}
.blb-btn--ghost:hover, .blb-btn--ghost:focus, .blb-btn--ghost:active {
	background-color: var(--cream);
	box-shadow: none;
	color: var(--ink);
	transform: none;
}
.blb-btn--solid {
	background: var(--ink);
	color: var(--cream);
}
.blb-btn--solid:hover:not(:disabled) {
	background: color-mix(in oklab, var(--ink) 88%, var(--rose));
}
.blb-btn.is-busy {
	opacity: 0.7;
}
.blb-btn.is-done {
	background: color-mix(in oklab, var(--rose) 22%, white);
	border-color: var(--rose);
}

/* ── Sticky bottom bar ────────────────────────────────────────────────────── */
/*
 * Same treatment as .bvdt-sticky-bar in the subscription builder, but always on
 * screen — at every width, from first paint. Nothing toggles it, so the block
 * reserves room for it at the bottom instead.
 */

.blb-stickybar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
	padding-block: calc(var(--spacing) * 4);
	background-color: color-mix(in oklab, var(--card) 95%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-top: 1px solid var(--border);
}

.blb-stickybar__inner {
	box-sizing: border-box;
	max-width: var(--global-content-width);
	margin-inline: auto;
	padding-inline: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.blb-stickybar__info {
	min-width: 0;
}

.blb-stickybar__title {
	color: color-mix(in oklab, var(--ink) 55%, transparent);
	white-space: nowrap;
	overflow: hidden;
	letter-spacing: var(--tracking-widest);
	text-overflow: ellipsis;
}

.blb-stickybar__meta {
	color: color-mix(in oklab, var(--ink) 75%, transparent);
	white-space: nowrap;
}

.blb-stickybar__meta strong {
	color: var(--ink);
	font-weight: var(--font-weight-semibold);
}

.blb-stickybar__actions {
	display: flex;
	gap: 0.65rem;
	flex-shrink: 0;
}


.blb-stickybar__actions .blb-btn {
	min-height: 52px;
	padding-inline: calc(var(--spacing) * 6);
}

@media (max-width: 767px) {
	.blb-stickybar__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 0.6rem;
		padding-inline: 1rem;
	}
	.blb-stickybar__info {
		display: none;
	}
	.blb-stickybar__actions {
		width: 100%;
	}
	.blb-stickybar__actions .blb-btn {
		width: 50%;
	}
}
@media (max-width: 480px) {
    .blb-stickybar__actions {
        flex-direction: column;
    }
	.blb-stickybar__actions .blb-btn {
        width: 100%;
    }
}
/* Reserve room so the bar never covers whatever follows the block. Set on its
   own rather than in the shorthand above, which the theme edits freely. */
.blb {
	padding-bottom: 6rem;
}
