/**
 * Breakfast basket picker — meal-card grid + sticky wallet bar.
 *
 * Layout: per-item meal-card carousel (same as arrival-meal / meal-plans) +
 * a fixed bottom bar that surfaces credit / subtotal / to-pay live. The
 * optional note now lives inside the confirmation modal (see
 * `confirmation-modal.css`) — there's no inline textarea here anymore.
 */

/* ──────────────────────────────────────────────
 * Qty stepper inside the meal card
 *
 * The .gs-meal-card__content uses flex column; pushing the stepper to
 * margin-top: auto guarantees it sits at the bottom regardless of
 * description length, so all steppers align across cards in a row.
 * ────────────────────────────────────────────── */
.gs-meal-card--qty .gs-meal-card__content {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.gs-meal-card--qty .gs-meal-card__qty {
	margin: var(--gs-space-sm, 8px) auto 0;
	margin-top: auto;
	padding-top: var(--gs-space-sm, 8px);
	align-self: center;
}

/* Tile is no longer a click-target — kill the lift hover that suggests it.
 * The stepper buttons remain the only interactive surface. */
.gs-meal-card--qty:hover {
	transform: none;
	box-shadow: var(--gs-shadow-sm);
	border-color: var(--gs-color-border);
	cursor: default;
}

.gs-meal-card--qty:hover .gs-meal-card__media img {
	transform: none;
}

/* ──────────────────────────────────────────────
 * Delivery time / routine fields
 * ────────────────────────────────────────────── */
.gs-bf-time-fields {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gs-bf-time-fields select {
	font-size: 14px;
	padding: 6px 10px;
	background: var(--gs-color-surface-alt, rgba(255, 255, 255, .04));
	color: var(--gs-color-text, #fff);
	border: 1px solid var(--gs-color-border, rgba(255, 255, 255, .12));
	border-radius: var(--gs-radius-sm, 6px);
}

.gs-bf-routine {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	font-size: 14px;
	cursor: pointer;
	color: var(--gs-color-text, inherit);
}

/* ──────────────────────────────────────────────
 * Sticky bar padding & form spacing
 *
 * The shared .gs-sticky-price-bar is styled globally in portal.css.
 * This section just ensures proper form spacing around it.
 * ────────────────────────────────────────────── */
.gs-section:has([data-gs-breakfast-basket]) {
	padding-bottom: 160px;
}

/* ──────────────────────────────────────────────
 * Sticky bar headline — credit and total side-by-side.
 *
 * The breakfast wallet's killer feature is the live credit, so it has
 * to be visible without expanding the chevron drawer.
 * ────────────────────────────────────────────── */
.gs-bf-headline {
	display: inline-flex;
	align-items: baseline;
	column-gap: 18px;
	row-gap: 4px;
	flex-wrap: wrap;
}

.gs-bf-headline__group {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}

.gs-bf-headline__credit {
	font-weight: 600;
	color: var(--gs-color-success, #22c55e);
}

.gs-bf-headline__used {
	font-weight: 600;
	color: var(--gs-color-text, #fff);
}

/* When the basket goes overdraft, paint the total amber so the guest sees it. */
.gs-sticky-bar-total[data-gs-to-pay].is-overdraft {
	color: var(--gs-color-warning, #f59e0b);
}

/* ──────────────────────────────────────────────
 * Tiered catalog — Standard / Premium / À la carte
 *
 * Three ranges stacked in one form. Two rhythms carry the grouping and they
 * must stay distinguishable: a title breathes 20px above the carousel it
 * announces, while two ranges are 32px apart. If those two ever converge the
 * grouping stops reading and the screen falls back to a flat wall of cards.
 *
 * portal.css sets `.gs-section h2.gs-section-title` (margin, 0,2,1) and
 * `.gs-section h2.gs-section-title + *` (margin-top: 2px, 0,2,1). The tier
 * selectors carry the `.gs-bf-tier` ancestor (0,3,0) so they win on specificity
 * and their margins hold without relying on margin collapse.
 * ────────────────────────────────────────────── */
.gs-bf-tiers {
	display: flex;
	flex-direction: column;
	gap: var(--gs-space-3xl, 32px);
}

.gs-bf-tier {
	display: block;
}

.gs-section .gs-bf-tier .gs-bf-tier__title {
	margin: 0;
}

.gs-section .gs-bf-tier .gs-bf-tier__hint {
	margin: var(--gs-space-sm, 8px) 0 0;
	max-width: 62ch;
	/* The form context shrinks inherited text to ~12px; a sentence the guest
	   has to read to understand what he is buying gets the body size back. */
	font-size: var(--gs-font-size-base, 14px);
	line-height: 1.45;
}

.gs-section .gs-bf-tier__title + .mphb-gs-items-scroll-wrap,
.gs-section .gs-bf-tier__hint + .mphb-gs-items-scroll-wrap {
	margin-top: var(--gs-space-xl, 20px);
}

/* ──────────────────────────────────────────────
 * Daily budget note — sits between the intro and the first range.
 * The section body is a flex column, so this margin stacks on its gap:
 * 16px is the minimum clearance on each side.
 * ────────────────────────────────────────────── */
.gs-section .gs-bf-budget-note {
	margin: var(--gs-space-lg, 16px) 0;
}
