/* Food Customizer — front-end styles. */

/* Catering: courier cash/POS choice inside the "Cash on delivery" box.
   !important + scoped selectors so the theme's checkout label styles can't
   force them inline/floated. */
.fc-pay-choice { display: block !important; margin: 12px 0 0 !important; clear: both; overflow: hidden; }
.fc-pay-choice .fc-pay-choice-label { display: block !important; font-weight: 600; margin: 0 0 10px !important; float: none !important; }
.fc-pay-choice .fc-pay-opt {
	display: flex !important; float: none !important; align-items: center; gap: 11px;
	width: 100% !important; max-width: 100% !important; box-sizing: border-box !important;
	padding: 12px 14px !important; margin: 8px 0 !important; cursor: pointer;
	border: var(--fc-bw, 1px) solid var(--fc-line, rgba(242, 237, 228, .26)) !important;
	border-radius: var(--fc-radius, 6px) !important; background: transparent;
	transition: border-color .15s, background .15s;
}
.fc-pay-choice .fc-pay-opt:hover { border-color: var(--fc-line-strong, rgba(242, 237, 228, .7)) !important; }
.fc-pay-choice .fc-pay-opt input[type="radio"] {
	appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 19px !important; height: 19px !important; margin: 0 !important; padding: 0 !important;
	border: 2px solid var(--fc-line-strong, rgba(242, 237, 228, .7)) !important; border-radius: 50% !important;
	position: relative; cursor: pointer; background: transparent !important; box-shadow: none !important;
}
.fc-pay-choice .fc-pay-opt input[type="radio"]:checked { border-color: var(--fc-accent, #dd5903) !important; }
.fc-pay-choice .fc-pay-opt input[type="radio"]:checked::after {
	content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--fc-accent, #dd5903);
}
.fc-pay-choice .fc-pay-opt:has(input:checked) { border-color: var(--fc-accent, #dd5903) !important; background: rgba(127, 127, 127, .08); }
.fc-pay-choice .fc-pay-opt .fc-pay-opt-text { color: inherit; line-height: 1.3; }


/* Floating mini-cart button (bottom-right), shows live item count + total. */
.fc-fly-cart {
	position: fixed;
	right: 22px;
	/* Sit above the theme's back-to-top button. Offset is admin-configurable
	   (Food Customizer → Layout) so it can be tuned per theme. */
	bottom: var(--fc-flycart-bottom, 96px);
	z-index: 99990;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--fc-accent, #f2ede4);
	color: var(--fc-accent-text, #14110d);
	text-decoration: none;
	font-weight: 700;
	line-height: 1;
	box-shadow: none;
	transition: transform .15s ease;
}
.fc-fly-cart:hover { transform: translateY(-2px); color: var(--fc-accent-text, #14110d); }
.fc-fly-cart.fc-fly-hidden { display: none; }
.fc-fly-cart .fc-fly-ico { display: inline-flex; }
.fc-fly-cart .fc-fly-ico svg { width: 22px; height: 22px; }
.fc-fly-cart .fc-fly-count {
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--fc-accent-text, #14110d);
	color: var(--fc-accent, #f2ede4);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .82rem;
}
.fc-fly-cart .fc-fly-total { font-size: .95rem; white-space: nowrap; }
@media (max-width: 600px) {
	/* Keep the button clear of the iOS Safari / gesture bar via the safe-area inset,
	   and keep the running total visible — on mobile this is the main way to the cart. */
	.fc-fly-cart { right: 14px; bottom: calc(var(--fc-flycart-bottom, 96px) + env(safe-area-inset-bottom, 0px)); padding: 12px 16px; }
}

/* Minimum-order message on the checkout page. */
.fc-min-order-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	padding: 14px 16px;
	border-radius: var(--fc-radius, 3px);
	background: rgba(190, 60, 50, .12);
	border: 1px solid rgba(190, 60, 50, .5);
	color: #f0b9b2;
	font-weight: 500;
	line-height: 1.45;
}
.fc-min-order-notice::before {
	content: "\26A0";
	flex: 0 0 auto;
	font-size: 1.15em;
	line-height: 1;
}

/* The floating cart is a <button> when it opens the side panel. patiotime styles
   every bare `button` (font-size:0, fixed 40x40, and a ::before dot), which would
   wipe out the count and the total — reset those here so it renders exactly like
   the link version. */
button.fc-fly-cart {
	width: auto;
	height: auto;
	font-size: inherit;
	line-height: 1;
	border: 0;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
button.fc-fly-cart::before,
button.fc-fly-cart::after { display: none; content: none; }

/* --- header cart icon -----------------------------------------------------
 * Rendered by [fc_cart_button] and placed in the site header. It inherits the
 * header's colour so it sits with the other header icons, and the count rides
 * on the corner rather than widening the header when it appears.
 * ------------------------------------------------------------------------- */
.fc-head-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: inherit;
	text-decoration: none;
	line-height: 0;
}
.fc-head-cart:hover,
.fc-head-cart:focus { color: var(--fc-accent, currentColor); }
.fc-head-ico svg { width: 20px; height: 20px; display: block; }
.fc-head-count {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--fc-accent, #a05835);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 17px;
	text-align: center;
	pointer-events: none;
}
