/* Flavours of India - Bowl Builder */

.foi-bowl {
	--foi-green: #1f7a3d;
	--foi-green-dark: #17612f;
	--foi-orange: #e2661a;
	--foi-cream: #fdf8ee;
	--foi-ink: #23201c;
	--foi-muted: #6f6a62;
	--foi-line: #e6ded0;
	--foi-radius: 14px;

	max-width: 1180px;
	margin: 0 auto;
	padding: 8px 0 40px;
	color: var(--foi-ink);
	font-size: 16px;
	line-height: 1.5;
}

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

/* ---------- header ---------- */

.foi-bowl__head {
	text-align: center;
	margin-bottom: 28px;
}

.foi-bowl__kicker {
	margin: 0 0 6px;
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--foi-orange);
	font-weight: 700;
}

.foi-bowl__title {
	margin: 0 0 14px;
	font-size: clamp( 28px, 5vw, 44px );
	line-height: 1.1;
	font-weight: 700;
}

.foi-bowl__badges {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.foi-bowl__badges li {
	padding: 5px 14px;
	border-radius: 999px;
	background: #eaf3ec;
	color: var(--foi-green-dark);
	font-size: 13px;
	font-weight: 600;
}

/* ---------- layout ---------- */

.foi-bowl__layout {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) 330px;
	gap: 28px;
	align-items: start;
}

@media ( max-width: 900px ) {
	.foi-bowl__layout {
		grid-template-columns: minmax( 0, 1fr );
	}
}

/* ---------- steps ---------- */

.foi-step {
	background: #fff;
	border: 1px solid var(--foi-line);
	border-radius: var(--foi-radius);
	padding: 18px;
	margin-bottom: 18px;
}

.foi-step__head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.foi-step__num {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--foi-green);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.foi-step__title {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
}

.foi-step__icon {
	font-size: 20px;
}

.foi-step__hint {
	margin-left: auto;
	font-size: 12px;
	color: var(--foi-muted);
	text-transform: uppercase;
	letter-spacing: .06em;
}

/* ---------- options ---------- */

.foi-options {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 165px, 1fr ) );
	gap: 10px;
}

.foi-option {
	display: block;
	cursor: pointer;
	position: relative;
}

.foi-option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.foi-option__box {
	display: flex;
	flex-direction: column;
	gap: 3px;
	height: 100%;
	padding: 13px 13px 13px 40px;
	border: 2px solid var(--foi-line);
	border-radius: 11px;
	background: var(--foi-cream);
	transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
	position: relative;
}

.foi-option:hover .foi-option__box {
	border-color: #cbbfa9;
}

.foi-option input:focus-visible + .foi-option__box {
	outline: 3px solid rgba( 31, 122, 61, .45 );
	outline-offset: 2px;
}

.foi-option.is-selected .foi-option__box {
	border-color: var(--foi-green);
	background: #f0f8f2;
}

.foi-option__check {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY( -50% );
	width: 20px;
	height: 20px;
	border: 2px solid #c9bda7;
	background: #fff;
	transition: background-color .15s ease, border-color .15s ease;
}

.foi-options:not( .is-multi ) .foi-option__check {
	border-radius: 50%;
}

.foi-options.is-multi .foi-option__check {
	border-radius: 5px;
}

.foi-option.is-selected .foi-option__check {
	border-color: var(--foi-green);
	background: var(--foi-green);
}

.foi-option.is-selected .foi-option__check::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate( 45deg );
}

.foi-option__name {
	font-weight: 600;
	font-size: 14.5px;
	line-height: 1.3;
}

.foi-option__price {
	font-size: 13px;
	color: var(--foi-muted);
	font-weight: 600;
}

.foi-option.is-selected .foi-option__price {
	color: var(--foi-green-dark);
}

.foi-option__tag {
	position: absolute;
	top: -8px;
	right: 10px;
	background: var(--foi-green);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	padding: 2px 7px;
	border-radius: 999px;
}

/* ---------- combo note ---------- */

.foi-combo-note {
	margin: 14px 0 0;
	padding: 11px 13px;
	background: #fff5e8;
	border: 1px dashed #e8b57c;
	border-radius: 10px;
	font-size: 13.5px;
	color: #8a4b12;
}

/* ---------- summary ---------- */

.foi-summary__inner {
	position: sticky;
	top: 24px;
	background: #fff;
	border: 1px solid var(--foi-line);
	border-radius: var(--foi-radius);
	padding: 20px;
	box-shadow: 0 6px 22px rgba( 0, 0, 0, .06 );
}

@media ( max-width: 900px ) {
	.foi-summary__inner {
		position: static;
	}
}

.foi-summary__title {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 700;
	padding-bottom: 11px;
	border-bottom: 2px solid var(--foi-line);
}

.foi-summary__empty {
	margin: 0;
	color: var(--foi-muted);
	font-size: 14px;
}

.foi-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px dashed var(--foi-line);
	font-size: 14px;
}

.foi-summary__label {
	color: var(--foi-muted);
	flex: none;
	font-weight: 600;
}

.foi-summary__value {
	text-align: right;
	font-weight: 600;
}

.foi-summary__combo {
	margin-top: 12px;
	padding: 9px 11px;
	background: #eaf3ec;
	border-radius: 9px;
	color: var(--foi-green-dark);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.foi-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 2px solid var(--foi-line);
	font-size: 16px;
	font-weight: 700;
}

.foi-summary__total strong {
	font-size: 27px;
	color: var(--foi-green-dark);
}

/* ---------- order button ---------- */

.foi-order {
	position: relative;
	width: 100%;
	margin-top: 16px;
	padding: 15px 18px;
	border: 0;
	border-radius: 11px;
	background: var(--foi-orange);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .02em;
	cursor: pointer;
	transition: background-color .15s ease, opacity .15s ease;
}

.foi-order:hover:not( :disabled ) {
	background: #c9560f;
}

.foi-order:disabled {
	background: #cfc8bd;
	cursor: not-allowed;
}

.foi-order__spinner {
	display: none;
	width: 17px;
	height: 17px;
	margin-left: 9px;
	vertical-align: -3px;
	border: 2px solid rgba( 255, 255, 255, .45 );
	border-top-color: #fff;
	border-radius: 50%;
	animation: foi-spin .7s linear infinite;
}

.foi-bowl.is-loading .foi-order__spinner {
	display: inline-block;
}

@keyframes foi-spin {
	to { transform: rotate( 360deg ); }
}

@media ( prefers-reduced-motion: reduce ) {
	.foi-order__spinner { animation-duration: 2s; }
	.foi-option__box { transition: none; }
}

.foi-summary__error {
	margin: 11px 0 0;
	padding: 9px 11px;
	background: #fdecec;
	border: 1px solid #f0b6b6;
	border-radius: 8px;
	color: #a32020;
	font-size: 13.5px;
}

.foi-summary__note {
	margin: 11px 0 0;
	font-size: 12px;
	color: var(--foi-muted);
	text-align: center;
}

/* ---------- price tier banner ---------- */

.foi-bowl__tiers {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
	gap: 12px;
	max-width: 900px;
	margin: 20px auto 0;
}

.foi-tier {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 13px 16px;
	border-radius: 11px;
	color: #fff;
	text-align: center;
}

.foi-tier--veg    { background: var(--foi-green-dark); }
.foi-tier--chicken{ background: #b3300f; }
.foi-tier--other  { background: #17612f; }

.foi-tier__name {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	opacity: .92;
}

.foi-tier__price {
	font-size: 25px;
	font-weight: 700;
	line-height: 1;
}

/* ---------- bowl / salad toggle ---------- */

.foi-mode {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 24px 0 22px;
}

.foi-mode__btn {
	padding: 11px 26px;
	border: 2px solid var(--foi-line);
	border-radius: 999px;
	background: #fff;
	color: var(--foi-muted);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.foi-mode__btn:hover {
	border-color: #cbbfa9;
}

.foi-mode__btn.is-active {
	background: var(--foi-green);
	border-color: var(--foi-green);
	color: #fff;
}

/* ---------- veg / non-veg group labels ---------- */

.foi-group-label {
	margin: 4px 0 9px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.foi-group-label--veg     { color: var(--foi-green-dark); }
.foi-group-label--nonveg  { margin-top: 16px; color: #b3300f; }

.foi-option__leaf {
	position: absolute;
	top: 8px;
	right: 9px;
	width: 17px;
	height: 17px;
	border-radius: 3px;
	background: var(--foi-green);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}

/* ---------- topping meter ---------- */

.foi-topping-meter {
	margin: 0 0 13px;
	padding: 9px 12px;
	background: #f4f8f5;
	border-radius: 8px;
	font-size: 13px;
	color: var(--foi-muted);
}

.foi-topping-meter #foi-topping-count {
	font-weight: 700;
	color: var(--foi-green-dark);
}

.foi-topping-meter.is-over {
	background: #fff5e8;
	color: #8a4b12;
}

.foi-topping-meter.is-over #foi-topping-count {
	color: #b3300f;
}

/* The theme sets display on generic elements, which defeats the [hidden]
   attribute. Make hidden authoritative inside the builder. */
.foi-bowl [hidden] {
	display: none !important;
}
