.fbl-addons {
	--fbl-accent: #C8A24A;
	--fbl-border: #d9d9d9;
	margin: 16px 0 20px;
}

/* Break out of the theme's add-to-cart form (grid OR flex) so the options take
   their own full-width row above the quantity + add-to-cart button. */
form.cart { flex-wrap: wrap; }
form.cart > .fbl-addons {
	grid-column: 1 / -1;   /* span all columns when the form is a CSS grid */
	flex: 1 1 100%;        /* full row when the form is flex */
	width: 100%;
	max-width: 100%;
	order: -1;
}

.fbl-group { margin: 0 0 22px; }

.fbl-group-title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}
.fbl-req { color: #b32d2e; }

.fbl-desc {
	margin: 0 0 10px;
	font-size: 13px;
	opacity: .7;
}

/* tiles */
.fbl-tiles {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.fbl-tile-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.fbl-tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 96px;
	padding: 13px 18px;
	border: 1px solid var(--fbl-border);
	border-radius: 2px;
	background: #fff;
	color: inherit;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
	margin: 0;
	line-height: 1;
}
.fbl-tile-name { white-space: nowrap; }
.fbl-tile-suffix {
	font-size: 11px;
	letter-spacing: .02em;
	text-transform: none;
	opacity: .7;
	white-space: nowrap;
}
.fbl-tile:hover { border-color: #a9a9a9; }
.fbl-tile-input:focus-visible + .fbl-tile { outline: 2px solid var(--fbl-accent); outline-offset: 2px; }
.fbl-tile-input:checked + .fbl-tile {
	border-color: var(--fbl-accent);
	color: var(--fbl-accent);
	box-shadow: inset 0 0 0 1px var(--fbl-accent);
}

/* gift message */
.fbl-text {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--fbl-border);
	border-radius: 2px;
	background: #fff;
	resize: vertical;
	font: inherit;
}
.fbl-text:focus { border-color: var(--fbl-accent); outline: none; }

.fbl-select-options { white-space: nowrap; }

@media (max-width: 480px) {
	.fbl-tiles { flex-wrap: nowrap; gap: 8px; }
	.fbl-tile {
		min-width: 0;
		flex: 1 1 0;
		flex-direction: column;
		gap: 3px;
		padding: 11px 6px;
		letter-spacing: .06em;
	}
	.fbl-tile-name { font-size: 11px; }
	.fbl-tile-suffix { font-size: 10px; }
}
