/* Offres page — ported from the approved prototype (MyFitness-Offres), scoped
   under .mf-offres so nothing leaks into the rest of the site. */

.mf-offres {
	--mfo-ink: #202733;
	--mfo-muted: #69746f;
	--mfo-lime: #dcff35;
	--mfo-tint: #f1f8d6;
	--mfo-green: #3f5e1a;
	--mfo-line: #e1e6dd;
	color: var(--mfo-ink);
	background: #fff;
	font-size: 15px;
	line-height: 1.5;
}

.mf-offres *,
.mf-offres *::before,
.mf-offres *::after {
	box-sizing: border-box;
}

.mf-offres button {
	font: inherit;
	color: inherit;
	cursor: pointer;
	touch-action: manipulation;
}

.mf-offres a {
	color: inherit;
	text-decoration: none;
}

.mf-offres svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

.mf-offres button:focus-visible,
.mf-offres a:focus-visible,
.mf-offres input:focus-visible,
.mf-offres select:focus-visible {
	outline: 2px solid var(--mfo-green);
	outline-offset: 3px;
}

.mf-offres button:disabled {
	opacity: .4;
	cursor: default;
}

.mf-offres h1,
.mf-offres h2,
.mf-offres h3 {
	color: var(--mfo-ink);
}

/* Toolbar */
.mfo-toolbar {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 14px max(28px, calc((100vw - 1124px) / 2));
	border-block: 1px solid var(--mfo-line);
	background: #fff;
}

.mfo-circle {
	flex: none;
	display: grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	padding: 0;
	border: 1px solid var(--mfo-line);
	border-radius: 50%;
	background: #fff;
	font-size: 23px;
}

#mfo-city-button {
	display: flex;
	align-items: center;
	gap: 18px;
	min-block-size: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: start;
}

#mfo-city-button strong {
	font-size: 18px;
}

#mfo-city-button > span {
	font-size: 13px;
	color: var(--mfo-green);
}

#mfo-search-button {
	margin-inline-start: auto;
}

.mfo-coupons-link {
	min-block-size: 44px;
	padding: 8px 16px;
	border: 1px solid var(--mfo-line);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
}

.mfo-coupon-count:not(:empty) {
	margin-inline-start: 5px;
	padding: 2px 6px;
	border-radius: 20px;
	background: var(--mfo-ink);
	color: #fff;
	font-size: 11px;
}

.mfo-main {
	max-inline-size: 1180px;
	margin: auto;
	padding: 0 28px;
}

/* Value strip */
.mfo-value-strip {
	margin-block-start: 22px;
	padding: 23px 26px;
	border: 1px solid #e4ead8;
	border-radius: 20px;
	background: #f7f9f1;
}

.mfo-value-strip h1 {
	margin: 0 0 7px;
	font-size: 30px;
	letter-spacing: -1px;
	line-height: 1.2;
}

.mfo-value-strip p {
	margin: 0;
	color: var(--mfo-green);
	font-size: 17px;
}

.mfo-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-block-start: 16px;
	font-size: 12px;
	color: var(--mfo-muted);
}

.mfo-trust span {
	display: flex;
	align-items: center;
	gap: 5px;
}

.mfo-trust svg {
	inline-size: 14px;
	block-size: 14px;
	color: var(--mfo-green);
}

#mfo-private-banner {
	margin-block-start: 20px;
	padding: 16px;
	border: 1px solid #dce6c2;
	border-radius: 16px;
	background: #f7f9f1;
}

#mfo-private-banner p {
	margin: 0 0 12px;
	font-size: 14px;
}

/* Chips */
.mfo-chips {
	display: flex;
	gap: 8px;
	padding: 20px 0 27px;
	overflow: auto;
	scrollbar-width: none;
}

.mfo-chips::-webkit-scrollbar,
.mfo-theme-rail::-webkit-scrollbar {
	display: none;
}

.mfo-chips button {
	min-block-size: 44px;
	padding: 10px 16px;
	border: 1px solid var(--mfo-line);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	white-space: nowrap;
}

.mfo-chips button[aria-pressed="true"] {
	border-color: var(--mfo-ink);
	background: var(--mfo-ink);
	color: #fff;
}

.mfo-category-chips {
	margin-block-start: -9px;
	padding-block-start: 0;
	padding-block-end: 24px;
}

.mfo-category-chips button {
	min-block-size: 38px;
	padding: 7px 12px;
	font-size: 11px;
}

.mfo-section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 18px;
}

.mf-offres h2 {
	margin: 0;
	font-size: 22px;
	letter-spacing: -.5px;
}

.mfo-all-title {
	padding-block-start: 3px;
}

.mfo-all-title button {
	min-block-size: 44px;
	padding: 8px 14px;
	border: 1px solid var(--mfo-line);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
}

/* Themed rows */
.mfo-theme-row {
	margin: 5px 0 28px;
}

.mfo-theme-rail {
	display: flex;
	gap: 14px;
	padding-block-end: 4px;
	overflow: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.mfo-theme-rail > .mfo-offer-card {
	flex: 0 0 390px;
	scroll-snap-align: start;
}

.mfo-theme-link {
	min-block-size: 44px;
	border: 0;
	background: none;
	color: var(--mfo-green);
	font-size: 12px;
}

.mfo-see-all {
	flex: 0 0 160px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 12px;
	padding: 20px;
	border: 0;
	border-radius: 20px;
	background: var(--mfo-lime);
	color: var(--mfo-ink);
	text-align: start;
	scroll-snap-align: start;
}

.mfo-see-all strong {
	font-size: 17px;
}

.mfo-see-all span {
	font-size: 12px;
}

/* Feed + offer card */
.mfo-feed {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.mfo-offer-card {
	position: relative;
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr);
	min-block-size: 185px;
	border: 1px solid #dce6c2;
	border-radius: 20px;
	background: #fff;
	overflow: hidden;
	transition: box-shadow .15s;
}

.mfo-offer-card:hover {
	box-shadow: 0 6px 20px rgba(32, 39, 51, .04);
}

.mfo-offer-value {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
	padding: 15px 10px;
	border-inline-end: 1px dashed #afc680;
	background: #e4f2b8;
}

.mfo-offer-value::before,
.mfo-offer-value::after {
	content: '';
	position: absolute;
	inset-inline-end: -8px;
	inline-size: 16px;
	block-size: 16px;
	border-radius: 50%;
	background: #fff;
}

.mfo-offer-value::before { inset-block-start: -8px; }
.mfo-offer-value::after { inset-block-end: -8px; }

.mfo-offer-value strong {
	font-size: 22px;
	color: #2f4a12;
	white-space: nowrap;
}

.mfo-offer-value img {
	inline-size: 68px;
	block-size: 55px;
	border-radius: 10px;
	object-fit: cover;
}

.mfo-offer-content {
	min-inline-size: 0;
	padding: 16px 16px 12px;
	background: #fff;
}

.mfo-pro-line {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.mfo-pro-line a {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mfo-pro-line a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

.mfo-seal {
	flex: none;
	inline-size: 16px;
	block-size: 16px;
}

.mfo-rating {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-inline-start: auto;
	font-size: 12px;
	font-weight: 400;
	white-space: nowrap;
}

.mfo-rating svg {
	inline-size: 13px;
	block-size: 13px;
	fill: #ffb800;
	stroke: #ffb800;
}

.mfo-extra-offers {
	display: inline-block;
	margin-block-start: 6px;
	padding: 2px 6px;
	border: 1px solid #dce6c2;
	border-radius: 999px;
	color: var(--mfo-green);
	font-size: 10px;
}

.mfo-offer-title {
	margin: 9px 0 4px;
	font-size: 14px;
	color: var(--mfo-green);
}

.mfo-offer-location {
	margin: 0 0 4px;
	font-size: 12px;
	color: var(--mfo-muted);
}

.mfo-price-effect {
	margin: 0 0 7px;
	font-size: 12px;
	color: var(--mfo-green);
}

.mfo-price-effect strong {
	font-size: 14px;
}

.mfo-price-effect del {
	margin-inline-start: 5px;
	color: #778069;
}

.mfo-offer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 5px;
	margin-block-start: 8px;
}

.mfo-get {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-block-size: 44px;
	padding: 8px 12px;
	border: 1px solid #d5e2b2;
	border-radius: 999px;
	background: #fff;
	color: var(--mfo-green);
	font-size: 12px;
}

.mfo-get svg {
	inline-size: 15px;
	block-size: 15px;
}

.mfo-new-client {
	display: inline-block;
	margin-inline-end: 5px;
	padding: 2px 7px;
	border: 1px solid #c9de8f;
	border-radius: 999px;
	background: #fff;
	color: var(--mfo-green);
	font-size: 10px;
}

.mfo-urgency {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: var(--mfo-green);
	white-space: nowrap;
}

.mfo-urgency.soon {
	padding: 2px 7px;
	border-radius: 20px;
	background: #ffedd5;
	color: #c2410c;
}

.mfo-urgency.last {
	padding: 2px 7px;
	border-radius: 20px;
	background: #fee2e2;
	color: #b91c1c;
}

.mfo-proof {
	margin: 7px 0 0;
	font-size: 11px;
	color: var(--mfo-muted);
}

/* Pro block, empty state, secondary blocks */
.mfo-pro-block {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 25px 28px;
	border: 1px solid var(--mfo-ink);
	border-radius: 20px;
	background: #fafbf8;
}

.mfo-eyebrow {
	margin: 0 0 5px;
	font-size: 10px;
	letter-spacing: 1.6px;
	color: var(--mfo-muted);
}

.mfo-pro-block h3 {
	margin: 0;
	font-size: 21px;
	letter-spacing: -.5px;
}

.mfo-pro-block p {
	margin: 5px 0 0;
	font-size: 14px;
	color: var(--mfo-muted);
}

.mfo-pro-block .mfo-eyebrow {
	font-size: 10px;
}

.mfo-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-block-size: 44px;
	padding: 11px 19px;
	border: 1px solid var(--mfo-ink);
	border-radius: 999px;
	background: var(--mfo-ink);
	color: #fff !important;
	font-size: 14px;
	white-space: nowrap;
}

.mfo-primary:hover {
	background: #2e3646;
}

.mfo-secondary {
	min-block-size: 44px;
	padding: 10px 18px;
	border: 1px solid var(--mfo-ink);
	border-radius: 999px;
	background: #fff;
}

.mfo-empty {
	grid-column: 1 / -1;
	padding: 35px 20px;
	border: 1px solid var(--mfo-line);
	border-radius: 20px;
	text-align: center;
}

.mfo-empty h3 {
	margin: 0;
	font-size: 20px;
}

.mfo-empty p {
	color: var(--mfo-muted);
}

#mfo-nearby {
	margin: 28px 0;
}

#mfo-nearby .mfo-feed {
	margin-block-start: 16px;
}

.mfo-load-block {
	margin-block-start: 24px;
	text-align: center;
}

.mfo-load-block button {
	min-inline-size: 240px;
}

.mfo-load-block p {
	font-size: 12px;
	color: var(--mfo-muted);
}

#mfo-filter-state {
	margin-block-end: 12px;
	font-size: 12px;
	color: var(--mfo-muted);
}

#mfo-filter-state:empty {
	display: none;
}

#mfo-filter-state button {
	min-block-size: 30px;
	padding: 0;
	border: 0;
	background: none;
	text-decoration: underline;
}

.mfo-how {
	margin-block-start: 45px;
	padding-block: 28px 60px;
	border-block-start: 1px solid var(--mfo-line);
}

.mfo-how > div {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.mfo-how p {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.mfo-how b {
	margin-block-end: 10px;
	font-size: 12px;
	color: #86a13b;
}

.mfo-how strong {
	font-size: 14px;
}

.mfo-how span {
	margin-block-start: 5px;
	font-size: 13px;
	color: var(--mfo-muted);
}

/* Bottom sheet */
#mfo-sheet {
	inline-size: min(520px, calc(100% - 32px));
	max-block-size: 85vh;
	padding: 22px;
	border: 0;
	border-radius: 20px;
	color: var(--mfo-ink);
	overflow: auto;
	box-shadow: 0 20px 80px rgba(0, 0, 0, .2);
}

#mfo-sheet::backdrop {
	background: rgba(32, 39, 51, .44);
}

.mfo-handle {
	display: none;
}

.mfo-sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-block-end: 18px;
}

.mfo-sheet-head h2 {
	font-size: 22px;
}

.mfo-sheet-head .mfo-circle {
	border: 0;
	background: #f4f6f0;
}

.mfo-sheet-offer {
	margin-block-end: 18px;
	padding: 22px;
	border-radius: 16px;
	background: var(--mfo-tint);
	color: var(--mfo-green);
}

.mfo-sheet-offer > strong {
	font-size: 32px;
}

.mfo-sheet-offer h3 {
	margin: 4px 0 10px;
	font-size: 18px;
	color: var(--mfo-green);
}

.mfo-sheet-offer p {
	margin: 4px 0;
	font-size: 13px;
}

.mfo-sheet-footer {
	margin-block-start: 15px;
	font-size: 12px;
	color: var(--mfo-muted);
}

#mfo-sheet-body > .mfo-primary {
	inline-size: 100%;
}

.mfo-field {
	display: block;
	margin: 0 0 18px;
	font-size: 13px;
}

.mfo-field input,
.mfo-field select {
	display: block;
	inline-size: 100%;
	min-block-size: 46px;
	margin-block-start: 7px;
	padding: 12px;
	border: 1px solid var(--mfo-line);
	border-radius: 12px;
	background: #fff;
	color: var(--mfo-ink);
	font: inherit;
}

.mfo-check-field {
	display: flex;
	align-items: center;
	gap: 10px;
	min-block-size: 44px;
	font-size: 14px;
}

.mfo-check-field input {
	accent-color: var(--mfo-ink);
}

.mfo-option-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mfo-option-list button {
	min-block-size: 48px;
	padding: 12px;
	border: 1px solid var(--mfo-line);
	border-radius: 12px;
	background: #fff;
	text-align: start;
}

.mfo-option-list button.chosen {
	border-color: #a7bf70;
	background: var(--mfo-tint);
}

.mfo-coupon-code {
	padding: 18px;
	border: 1px dashed #a4b77d;
	border-radius: 14px;
	background: #f7f9f1;
	text-align: center;
}

.mfo-coupon-code strong {
	display: block;
	font-size: 25px;
	letter-spacing: 2px;
}

.mfo-coupon-code small {
	color: var(--mfo-muted);
}

.mfo-coupon-code img {
	display: block;
	inline-size: 140px;
	block-size: 140px;
	margin: 15px auto;
}

.mfo-saved-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-block-end: 12px;
	padding: 15px;
	border: 1px solid var(--mfo-line);
	border-radius: 14px;
}

.mfo-saved-row strong,
.mfo-saved-row small {
	display: block;
}

.mfo-saved-row small {
	font-size: 12px;
	color: var(--mfo-muted);
}

.mfo-saved-row button {
	padding: 10px;
	border: 0;
	border-radius: 20px;
	background: var(--mfo-tint);
	font-size: 12px;
}

#mfo-toast {
	position: fixed;
	inset-block-end: 90px;
	inset-inline-start: 50%;
	z-index: 20;
	display: none;
	padding: 12px 18px;
	border-radius: 12px;
	background: var(--mfo-ink);
	color: #fff;
	font-size: 13px;
	transform: translateX(-50%);
}

@media (max-width: 800px) {
	.mfo-feed {
		grid-template-columns: 1fr;
	}

	.mfo-section-title > span {
		display: none;
	}

	.mfo-pro-block {
		flex-direction: column;
		align-items: flex-start;
	}

	.mfo-how > div {
		gap: 18px;
	}
}

@media (max-width: 600px) {
	.mfo-toolbar {
		gap: 9px;
		padding: 10px 16px;
	}

	#mfo-city-button {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	#mfo-city-button strong {
		font-size: 16px;
	}

	#mfo-city-button > span {
		font-size: 11px;
	}

	.mfo-toolbar .mfo-circle {
		inline-size: 38px;
		border: 0;
	}

	.mfo-coupons-link {
		padding: 6px 12px;
		font-size: 12px;
	}

	.mfo-main {
		padding: 0 16px;
	}

	.mfo-value-strip {
		margin-block-start: 16px;
		padding: 18px;
	}

	.mfo-value-strip h1 {
		font-size: 24px;
		letter-spacing: -.7px;
	}

	.mfo-value-strip p {
		font-size: 14px;
	}

	.mfo-trust {
		gap: 5px 12px;
		margin-block-start: 12px;
		font-size: 10px;
	}

	.mfo-chips {
		margin-inline-end: -16px;
		padding: 16px 16px 22px 0;
	}

	.mfo-chips button {
		padding: 9px 13px;
		font-size: 12px;
	}

	.mfo-theme-rail {
		margin-inline-end: -16px;
		padding-inline-end: 16px;
	}

	.mfo-theme-rail > .mfo-offer-card {
		flex-basis: 92%;
	}

	.mfo-see-all {
		flex-basis: 150px;
	}

	.mfo-theme-row h2 {
		font-size: 18px;
	}

	.mf-offres h2 {
		font-size: 20px;
	}

	.mfo-offer-card {
		grid-template-columns: 76px minmax(0, 1fr);
	}

	.mfo-offer-value {
		gap: 14px;
		padding: 12px 6px;
	}

	.mfo-offer-value strong {
		font-size: 20px;
	}

	.mfo-offer-value img {
		inline-size: 57px;
		block-size: 51px;
	}

	.mfo-offer-content {
		padding: 13px 12px 11px;
	}

	.mfo-pro-line {
		gap: 4px;
		font-size: 14px;
	}

	.mfo-rating {
		font-size: 11px;
	}

	.mfo-offer-title {
		font-size: 13px;
	}

	.mfo-offer-location {
		font-size: 11px;
	}

	.mfo-get {
		padding: 7px 10px;
		font-size: 11px;
	}

	.mfo-new-client {
		font-size: 9px;
	}

	.mfo-pro-block {
		padding: 22px;
	}

	.mfo-how > div {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.mfo-how p {
		position: relative;
		margin: 12px 0;
		padding-inline-start: 38px;
	}

	.mfo-how b {
		position: absolute;
		inset-inline-start: 0;
		inset-block-start: 2px;
	}

	.mfo-how {
		padding-block-end: 110px;
	}

	#mfo-sheet {
		position: fixed;
		inset: auto 0 0 0;
		inline-size: 100%;
		max-inline-size: none;
		max-block-size: 88dvh;
		margin: 0;
		padding: 12px 20px 28px;
		border-radius: 24px 24px 0 0;
	}

	.mfo-handle {
		display: block;
		inline-size: 36px;
		block-size: 4px;
		margin: 0 auto 14px;
		border-radius: 9px;
		background: #d8ddd4;
	}
}

@media (max-width: 359px) {
	.mfo-rating {
		margin-inline-start: 0;
	}

	.mfo-pro-line {
		flex-wrap: wrap;
	}

	.mfo-offer-bottom .mfo-get {
		inline-size: 44px;
		padding: 7px;
	}

	.mfo-get .mfo-get-label,
	.mfo-new-client {
		display: none;
	}
}

/* Breadcrumb (replaces the back button). */
.mfo-crumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--mfo-muted);
	white-space: nowrap;
}

.mfo-crumb a {
	color: var(--mfo-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mfo-crumb [aria-current] {
	color: var(--mfo-ink);
	font-weight: 700;
}

/* Search sheet fields: the theme styles bare inputs/checkboxes heavily, so the
   sheet resets them to the prototype's look. */
.mf-offres #mfo-sheet {
	overflow-x: hidden;
}

.mf-offres #mfo-sheet .mfo-field {
	font-size: 13px;
	font-weight: 400;
}

.mf-offres #mfo-sheet .mfo-field input[type="search"],
.mf-offres #mfo-sheet .mfo-field select {
	display: block;
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: 100%;
	block-size: auto;
	min-block-size: 46px;
	margin: 7px 0 0;
	padding: 12px;
	border: 1px solid var(--mfo-line);
	border-radius: 12px;
	background-color: #fff;
	box-shadow: none;
	color: var(--mfo-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
}

.mf-offres #mfo-sheet .mfo-check-field {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
}

.mf-offres #mfo-sheet input[type="checkbox"] {
	appearance: auto;
	-webkit-appearance: checkbox;
	position: static;
	display: inline-block;
	inline-size: 18px;
	block-size: 18px;
	min-block-size: 0;
	margin: 0;
	padding: 0;
	opacity: 1;
	flex: none;
	border-radius: 4px;
}

/* City chip + picker: same look as the home page's location chip and dialog. */
.mf-offres {
	--mf-dark: #1a2120;
	--mf-muted: #596472;
	--mf-lime-soft: #c1d362;
}

.mf-offres #mfo-city-button.mfo-location-chip {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border: 1px solid var(--mf-lime-soft);
	border-radius: 30px;
	background: rgba(255, 255, 255, .72);
	color: var(--mf-dark);
	font-size: 13px;
	min-block-size: 0;
}

.mf-offres #mfo-city-button.mfo-location-chip .mf-icon {
	inline-size: 16px;
	block-size: 16px;
}

.mf-offres #mfo-city-button.mfo-location-chip u {
	color: var(--mf-dark);
}

.mf-offres #mfo-city-button.mfo-location-chip .mfo-city-name {
	font-weight: 700;
	font-size: 13px;
}

.mf-offres dialog.mf-city-dialog[open] {
	margin: 0;
	inset: auto 0 0 0;
	inline-size: 100%;
	max-inline-size: 100%;
	max-block-size: 82vh;
	padding: 0;
	border: none;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -12px 34px rgba(26, 33, 32, .18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-size: 16px;
	color: var(--mf-dark);
}

.mf-offres dialog.mf-city-dialog::backdrop {
	background: rgba(26, 33, 32, .55);
}

.mf-offres dialog.mf-city-dialog::before {
	content: "";
	display: block;
	inline-size: 36px;
	block-size: 4px;
	margin: 10px auto 0;
	border-radius: 2px;
	background: #ddd;
	flex-shrink: 0;
}

.mf-offres .mf-city-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px 12px;
	flex-shrink: 0;
}

.mf-offres .mf-city-dialog-head h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: var(--mf-dark);
}

.mf-offres .mf-city-dialog-close {
	inline-size: 32px;
	block-size: 32px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #f2f2f2;
	color: var(--mf-dark);
	font-size: 20px;
	line-height: 1;
}

.mf-offres .mf-city-dialog-list {
	margin: 0;
	padding: 4px 12px calc(20px + env(safe-area-inset-bottom, 0px));
	list-style: none;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mf-offres .mf-city-dialog-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 12px;
	border-radius: 12px;
	color: var(--mf-dark);
	font-size: 15px;
	font-weight: 600;
}

.mf-offres .mf-city-dialog-list a svg {
	inline-size: 20px;
	block-size: 20px;
	color: var(--mf-muted);
}

.mf-offres .mf-city-dialog-list a:hover,
.mf-offres .mf-city-dialog-list a:focus-visible {
	background: #f5f5f5;
}

.mf-offres .mf-city-dialog-list a.is-active {
	background: var(--mf-lime-soft);
}

@media (min-width: 780px) {
	.mf-offres dialog.mf-city-dialog[open] {
		inset: 0;
		margin: auto;
		inline-size: 100%;
		max-inline-size: 400px;
		max-block-size: 70vh;
		border-radius: 20px;
		box-shadow: 0 20px 50px rgba(26, 33, 32, .25);
	}

	.mf-offres dialog.mf-city-dialog::before {
		display: none;
	}

	.mf-offres .mf-city-dialog-head {
		padding: 20px 22px 14px;
	}

	.mf-offres .mf-city-dialog-list {
		padding: 4px 14px 22px;
	}
}

/* Home page « Offres à [ville] »: 3 cards on desktop, a snap-scroll rail with a
   « see all » card below 1200px (same rule as the other home sections). */
.mf-offres.mfo-home {
	background: transparent;
}

.mfo-home-rail {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.mfo-home .mfo-see-all {
	display: none;
}

@media (max-width: 1199px) {
	.mfo-home-rail {
		display: flex;
		gap: 14px;
		margin-inline: -16px;
		padding: 0 16px 4px;
		overflow: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 16px; /* snap to the content edge, not the screen edge */
		scrollbar-width: none;
	}

	.mfo-home-rail::-webkit-scrollbar {
		display: none;
	}

	.mfo-home-rail > .mfo-offer-card {
		flex: 0 0 min(390px, 88%);
		scroll-snap-align: start;
	}

	.mfo-home .mfo-see-all {
		display: flex;
		flex: 0 0 160px;
	}

	/* V2.4: below 1200px the Home rail is 3 curated cards + the closing card (the other cards stay in the DOM for desktop). */
	.mfo-home-rail > .mfpc-card:nth-child(n+4) {
		display: none;
	}
}

/* Desktop: exactly 4 COMPLETE cards in a fixed grid (never a clipped fifth); the header pill carries « Voir les N Promos → ». */
@media (min-width: 1200px) {
	.mf-offres.mfo-home .mfo-home-rail {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 18px;
		overflow: visible;
	}

	.mf-offres.mfo-home .mfo-home-rail > .mfpc-card:nth-child(n+5) {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mf-offres * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

/* Offer name + rating sit at the foot of the card; the offer itself leads. */
.mfo-offer-content > .mfo-offer-title:first-child,
.mfo-offer-content > .mfo-extra-offers + .mfo-offer-title {
	margin-block-start: 0;
}

.mfo-offer-bottom + .mfo-pro-line {
	margin-block-start: 10px;
}

/* « +22 » closing tile, same idea as the other home sections' see-all card. */
.mfo-see-all strong {
	font-size: 34px;
	line-height: 1;
	letter-spacing: -.5px;
}

.mfo-see-all span {
	font-size: 13px;
	font-weight: 600;
}
.mfo-crumb-wrap{white-space:nowrap}

/* One Promo card, two densities: compact (Home, profile) and discovery (Promos page).
   The whole card is the tap target: no button, no eligibility badge (that lives in the details sheet). */
.mfo-offer-card[data-mf-promo],
.mfo-card-discovery,
.mf-card-compact { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.mfo-offer-card:hover { box-shadow: 0 6px 18px rgba(32, 39, 51, .1); }
.mfo-offer-card:active { transform: scale(.985); }
.mfo-offer-card:focus-visible { outline: 2px solid #202733; outline-offset: 2px; }
.mfo-offer-content .mfo-offer-title { margin: 0 0 4px; font-weight: 700; }
.mfo-offer-content .mfo-price-effect { margin: 0 0 6px; font-size: 14px; }
.mfo-offer-content .mfo-price-effect strong { font-size: 16px; color: #202733; }
.mfo-offer-content .mfo-price-effect del { margin-inline-start: 6px; color: #8a928e; font-size: 13px; }
.mfo-offer-content > .mfo-urgency { margin: 0 0 8px; }
.mfo-pro-name { font-size: 15px; font-weight: 700; color: #202733; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfo-pro-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; font-size: 13px; color: #66706d; }
.mfo-pro-meta .mfo-rating { display: inline-flex; align-items: center; gap: 3px; color: #202733; font-weight: 600; }
.mfo-pro-meta .mfo-rating svg { width: 13px; height: 13px; fill: #f5b400; stroke: none; }
.mfo-pro-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.mfo-pro-thumb { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.mfo-urgency:not(.soon):not(.last) { padding: 0; background: none; color: #66706d; font-weight: 600; }
.mfo-urgency.soon { background: #ffedd5; color: #c2410c; }
.mfo-urgency.last { background: #fee2e2; color: #b91c1c; }
/* Aligned card grid: title, price and urgency read from the top, the provider block sits at the
   bottom, everything left-aligned, so cards stay consistent even when a field is empty. */
.mfo-card-compact .mfo-offer-content,
.mfo-card-discovery .mfo-offer-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: start;
}

.mfo-offer-content .mfo-price-effect {
	min-block-size: 22px;
	display: flex;
	align-items: baseline;
}

.mfo-offer-content .mfo-price-effect.mfo-empty {
	margin: 0;
}

.mfo-offer-content .mfo-pro-line,
.mfo-offer-content .mfo-pro-row {
	margin-block-start: auto;
	padding-block-start: 8px;
	align-self: stretch;
}

.mfo-offer-content .mfo-pro-meta {
	justify-content: flex-start;
	align-self: stretch;
	text-align: start;
}

.mfo-offer-content .mfo-pro-meta .mfo-rating,
.mfo-offer-content .mfo-rating {
	margin: 0;
	margin-inline-start: 0;
}

.mfo-pro-row > div {
	min-inline-size: 0;
	align-self: stretch;
}

/* Expiry pill: text centred, equal padding. */
.mfo-urgency.soon,
.mfo-urgency.last {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	line-height: 1.2;
	text-align: center;
}
.mfo-card-compact .mfo-offer-content > *,
.mfo-card-discovery .mfo-offer-content > * {
	flex: 0 0 auto;
}

.mfo-offer-content .mfo-price-effect.mfo-empty {
	block-size: 22px;
}

.mfo-offer-content .mfo-price-effect {
	padding: 0;
}

.mfo-offer-content .mfo-price-effect.mfo-empty {
	block-size: 29px;
	min-block-size: 29px;
	margin: 0 0 6px;
}

.mfo-offer-content .mfo-price-effect.mfo-empty {
	border: 0;
	background: none;
	box-shadow: none;
}
