/* Floral Order Form — single product */

.fl-has-order-form .summary .product_title {
	font-family: var(--fl-serif);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .04em;
	line-height: 1.15;
	margin-bottom: 8px;
}
.fl-of-sku { font-size: 13px; margin: 0 0 22px; color: var(--fl-ink); }
.fl-of-sku span { color: var(--fl-accent); }
.fl-has-order-form .fl-single-extras { margin: 18px 0 0; }

.fl-of { display: block !important; margin: 0 0 18px; }
.fl-of-step { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.fl-of-step__title {
	display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; margin-bottom: 14px;
	font-size: 14px; font-weight: 500; color: var(--fl-ink);
}
.fl-of-step__title::after { content: ""; flex: 1; height: 1px; background: var(--fl-line); }
.fl-of-step__title span { white-space: nowrap; }
.fl-of-price { font-size: 26px; font-weight: 700; color: var(--fl-price); margin-bottom: 22px; }

/* 1. Tiles */
.fl-of-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.fl-of-tiles.has-many { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.fl-of-tile {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 2px; min-height: 54px; padding: 8px 4px; text-align: center; cursor: pointer;
	border: 1px solid var(--fl-line); border-radius: 2px; background: #fff;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.fl-of-tile input { position: absolute; opacity: 0; pointer-events: none; }
.fl-of-tile__name { font-size: 12.5px; color: var(--fl-text); line-height: 1.2; }
.fl-of-tile__price { font-size: 12.5px; font-weight: 700; color: var(--fl-ink); }
.fl-of-tile__price del { font-weight: 400; color: var(--fl-muted); margin-right: 3px; }
.fl-of-tile__price .woocommerce-Price-amount { color: inherit; }
.fl-of-tile:hover { border-color: #bdb6ab; }
.fl-of-tile.is-selected { border-color: var(--fl-ink); background: var(--fl-soft); box-shadow: inset 0 0 0 1px var(--fl-ink); }
.fl-of-tile:focus-within { outline: 2px solid var(--fl-accent); outline-offset: 2px; }
.fl-of-tile.is-disabled { opacity: .45; cursor: not-allowed; }
/* Leftover tiles in the last row stretch to fill it, like the live site. */
.fl-of-tiles.has-many .fl-of-tile:nth-child(7n+1):nth-last-child(2),
.fl-of-tiles.has-many .fl-of-tile:nth-child(7n+1):nth-last-child(2) ~ .fl-of-tile { grid-column: span 3; }
.fl-of-tiles.has-many .fl-of-tile:nth-child(7n+1):nth-last-child(2) ~ .fl-of-tile { grid-column: span 4; }
.fl-of-tiles.has-many .fl-of-tile:nth-child(7n+1):last-child { grid-column: 1 / -1; }

/* 2. Delivery / Pickup */
.fl-of-tabs { display: flex; gap: 0; }
.fl-of-tab {
	appearance: none; border: 1px solid var(--fl-line); border-bottom: 0; background: var(--fl-soft);
	padding: 8px 12px; margin-right: -1px; font: inherit; font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
	color: var(--fl-text); cursor: pointer; border-radius: 2px 2px 0 0;
}
.fl-of-tab.is-active { background: #fff; color: var(--fl-ink); position: relative; z-index: 1; margin-bottom: -1px; padding-bottom: 9px; }
.fl-of-panel { border: 1px solid var(--fl-line); padding: 18px 28px 20px; background: #fff; }
.fl-of-date {
	width: 100%; min-height: 40px; padding: 0 36px 0 12px; font: inherit; font-size: 13px; color: var(--fl-ink);
	border: 1px solid var(--fl-line); border-radius: 2px; background-color: #fff;
}
.fl-of-note { margin: 12px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--fl-ink); line-height: 1.6; }

/* Card message */
.fl-of-card__text {
	width: 100%; min-height: 84px; padding: 10px 12px; font: inherit; font-size: 13px; line-height: 1.5; color: var(--fl-ink);
	border: 1px solid var(--fl-line); border-radius: 2px; background: #fff; resize: vertical;
}
.fl-of-card__text:focus { outline: 2px solid var(--fl-accent); outline-offset: 1px; }
.fl-of-card__count { margin: 6px 0 0; font-size: 11.5px; color: var(--fl-muted); text-align: right; }

/* 3. Add-ons */
.fl-of-slider { position: relative; display: flex; align-items: center; gap: 6px; }
.fl-of-track {
	flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 42px) / 4); gap: 14px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px;
}
.fl-of-track::-webkit-scrollbar { display: none; }
.fl-of-arrow {
	flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; padding: 0;
	border: 0; background: none; color: var(--fl-ink); cursor: pointer;
}
.fl-of-arrow:disabled { opacity: .25; cursor: default; }
.fl-of-slider.no-scroll .fl-of-arrow { visibility: hidden; }
.fl-of-addon { scroll-snap-align: start; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fl-of-addon input { position: absolute; opacity: 0; pointer-events: none; }
.fl-of-addon__img { position: relative; display: block; aspect-ratio: 1; border: 1px solid var(--fl-line); border-radius: 2px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.fl-of-addon__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fl-of-addon__check {
	position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
	background: #fff; border: 1px solid var(--fl-line); display: grid; place-items: center;
}
.fl-of-addon.is-selected .fl-of-addon__img { border-color: var(--fl-ink); box-shadow: inset 0 0 0 1px var(--fl-ink); }
.fl-of-addon.is-selected .fl-of-addon__check { background: var(--fl-ink); border-color: var(--fl-ink); }
.fl-of-addon.is-selected .fl-of-addon__check::after {
	content: ""; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg);
}
.fl-of-addon:focus-within .fl-of-addon__img { outline: 2px solid var(--fl-accent); outline-offset: 2px; }
.fl-of-addon__name { font-size: 11.5px; font-weight: 500; line-height: 1.35; color: var(--fl-ink); }
.fl-of-addon__price { font-size: 11.5px; color: var(--fl-text); }
.fl-of-addon__price .woocommerce-Price-amount { color: inherit; font-weight: 400; }

/* Order Now */
.fl-of-error { margin: 0 0 12px; padding: 10px 14px; font-size: 13px; color: #b3261e; background: #fdecea; border-radius: 2px; }
.fl-of .fl-of-submit,
form.cart.fl-of .single_add_to_cart_button {
	display: block; width: 100%; max-width: none; min-height: 50px; padding: 0 20px;
	background: #fff !important; color: var(--fl-accent) !important; border: 1px solid var(--fl-accent); border-radius: 2px;
	font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .25em;
}
.fl-of .fl-of-submit:hover,
.fl-of .fl-of-submit:focus-visible { background: var(--fl-accent) !important; color: #fff !important; }
.fl-of .fl-of-submit.loading { color: transparent !important; }
.fl-of .fl-of-submit.loading::after { border-color: color-mix(in srgb, var(--fl-accent) 30%, transparent); border-top-color: var(--fl-accent); }

/* Tabs below: centred like the live site */
.fl-has-order-form .woocommerce-tabs ul.tabs { justify-content: center; }

@media (max-width: 600px) {
	.fl-of-tiles,
	.fl-of-tiles.has-many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.fl-of-tiles.has-many .fl-of-tile { grid-column: auto !important; }
	.fl-of-track { grid-auto-columns: calc((100% - 14px) / 2); }
	.fl-of-panel { padding: 14px; }
	.fl-of-arrow { display: none; }
}
