/* Key Food Hollywood — order minimum progress bar */
.kfom {
	--kfom-red: #D71F2B;
	--kfom-blue: #0B77BF;
	--kfom-blue-text: #075A92;
	--kfom-blue-soft: #EAF3FA;
	--kfom-ink: #1A1A1A;
	--kfom-muted: #5B6068;
	--kfom-border: #DDE0E5;
	--kfom-track: #E8EBEF;
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 24px;
	padding: 16px 18px;
	border: 1px solid var(--kfom-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 3px 10px rgba(26, 26, 26, .03);
	color: var(--kfom-ink);
	font-family: "Figtree", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.35;
	transition: border-color .3s, background-color .3s;
}
.kfom *, .kfom *::before, .kfom *::after { box-sizing: border-box; }

.kfom__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.kfom__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--kfom-blue-soft);
	color: var(--kfom-blue-text);
	transition: background-color .3s, color .3s;
}
.kfom__icon svg { display: block; }
.kfom .kfom__msg {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0;
	color: var(--kfom-ink);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}
.kfom__msg strong { color: var(--kfom-red); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kfom__msg b { color: var(--kfom-blue-text); font-weight: 800; }

.kfom__track {
	position: relative;
	height: 10px;
	margin: 14px 0 0;
	border-radius: 999px;
	background: var(--kfom-track);
	overflow: hidden;
}
.kfom__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--kfom-blue) 0%, var(--kfom-blue-text) 100%);
	transition: width .8s cubic-bezier(.22, 1, .36, 1);
}
.kfom__fill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
	transform: translateX(-120%);
}

.kfom__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 14px;
	margin-top: 10px;
	color: var(--kfom-muted);
	font-size: 13.5px;
}
.kfom__foot:has(.kfom__note:empty):has(.kfom__amt:empty) { display: none; }
.kfom__note:empty, .kfom__amt:empty { display: none; }
.kfom__amt { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kfom__amt b { color: var(--kfom-ink); font-weight: 700; }

.kfom__cart {
	flex: none;
	margin-left: auto;
	color: var(--kfom-blue-text) !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

/* Reached */
.kfom.is-met { border-color: #BCD8EE; background: #F5F9FD; }
.kfom.is-met .kfom__icon { background: var(--kfom-blue); color: #fff; }
.kfom.is-met .kfom__msg { font-weight: 500; }
.kfom.is-met .kfom__foot { display: none; }

/* Nothing in the cart yet (catering menu): one quiet line */
.kfom.is-empty { padding: 12px 16px; background: var(--kfom-blue-soft); border-color: transparent; box-shadow: none; }
.kfom.is-empty .kfom__icon { width: auto; height: auto; background: none; }
.kfom.is-empty .kfom__msg { color: var(--kfom-blue-text); font-size: 15px; font-weight: 600; }
.kfom.is-empty .kfom__track, .kfom.is-empty .kfom__foot { display: none; }
.kfom.is-loading { display: none; }

/* Moments */
.kfom.is-celebrate .kfom__fill::after { animation: kfom-shine 1.1s .35s ease-out 1; }
.kfom.is-celebrate .kfom__icon { animation: kfom-pop .45s .3s ease-out 1; }
.kfom.is-nudge { animation: kfom-nudge .55s ease-out 1; border-color: var(--kfom-red); }
@keyframes kfom-shine { to { transform: translateX(120%); } }
@keyframes kfom-pop { 50% { transform: scale(1.18); } }
@keyframes kfom-nudge {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-6px); }
	40% { transform: translateX(6px); }
	60% { transform: translateX(-4px); }
	80% { transform: translateX(3px); }
}

/* "Added to your cart" panel */
.kfom--panel { margin: -6px 0 22px; padding: 14px 15px; border-radius: 12px; box-shadow: none; background: #FAFBFC; }
.kfom--panel .kfom__icon { width: 34px; height: 34px; }
.kfom--panel .kfom__msg { font-size: 15px; }
.kfom--panel .kfom__track { height: 8px; margin-top: 12px; }

/* Catering menu */
.kfom--menu { margin: 0 0 18px; }
.kfom--menu .kfom__track { height: 8px; }

/* Cart: checkout buttons wait for the minimum */
body.kfom-below .kfsr-cart .checkout-button,
body.kfom-below .kfsr-mobile-bar a.kfsr-btn {
	background: var(--kfsr-border, #DDE0E5) !important;
	border-color: transparent !important;
	color: #4A4F57 !important;
	cursor: not-allowed;
	box-shadow: none !important;
}
body.kfom-below .kfsr-cart .checkout-button:hover,
body.kfom-below .kfsr-mobile-bar a.kfsr-btn:hover { background: #D3D7DD !important; }

/* Phone checkout bar: thin progress line along its top edge */
.kfom-mini { display: none; }
@media (max-width: 1023px) {
	.kfsr-mobile-bar .kfom-mini {
		display: block;
		position: absolute;
		top: -1px;
		left: 0;
		right: 0;
		height: 4px;
		background: var(--kfom-track, #E8EBEF);
		pointer-events: none;
	}
	.kfom-mini__fill {
		display: block;
		height: 100%;
		width: 0;
		background: linear-gradient(90deg, #0B77BF, #075A92);
		transition: width .8s cubic-bezier(.22, 1, .36, 1);
	}
}

@media (max-width: 640px) {
	.kfom { margin-bottom: 18px; padding: 14px 14px 13px; border-radius: 12px; }
	.kfom__row { gap: 10px; }
	.kfom__icon { width: 34px; height: 34px; }
	.kfom .kfom__msg { font-size: 15px; }
	.kfom__track { margin-top: 12px; }
	.kfom__foot { font-size: 13px; }
	.kfom--menu .kfom__row { flex-wrap: wrap; }
	.kfom--menu .kfom__cart { margin-left: 44px; font-size: 14px; }
	.kfom--menu:not(.is-met) .kfom__cart { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
	.kfom__fill, .kfom-mini__fill, .kfom, .kfom__icon { transition: none; }
	.kfom.is-celebrate .kfom__fill::after, .kfom.is-celebrate .kfom__icon, .kfom.is-nudge { animation: none; }
}
