@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Fiche restaurant Livré Malin — calée sur la maquette Figma. */

/* Police Poppins sur tout le site (override YOOtheme). */
html body, html body button, html body input, html body select, html body textarea, html body optgroup,
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body .uk-navbar-nav > li > a, html body .uk-heading-small, html body .uk-heading-medium, html body .uk-heading-large,
html body .tm-headline, html body [class*="uk-h"] {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Contexte page store : le conteneur uk-container-large gère la largeur/le padding. */
.wf-store-takeover .wf-resto { max-width: none; padding: 0; }

.wf-resto {
	--wf-accent: #e2492b;
	--wf-blue: #0027A0;
	--wf-ink: #2D2E33;
	--wf-muted: #6b7280;
	--wf-line: #ececec;
	--wf-ok: #1a8f4a;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
	font-family: inherit;
	color: var(--wf-ink);
	box-sizing: border-box;
}
.wf-resto *, .wf-resto *::before, .wf-resto *::after { box-sizing: border-box; }

/* ---- Bannière ---- */
.wf-resto__banner {
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
}
.wf-resto__banner img {
	width: 100%;
	height: clamp(200px, 26vw, 380px);
	object-fit: cover;
	display: block;
}

/* ---- En-tête (infos + carte) ---- */
.wf-resto__head {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 32px;
	margin-top: 24px;
	align-items: start;
}

.wf-resto__title-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 6px;
}
.wf-resto__name { margin: 0; font-size: 1.8rem; line-height: 1.1; font-weight: 700; }
.wf-resto__rating { font-size: 1rem; font-weight: 600; white-space: nowrap; }
/* Section "Avis clients" (bas de fiche) : visible (styles complets plus bas). */
/* Widget de notation SOUS le titre (visible si le client peut noter). */
.wf-resto__rate { display: flex; align-items: center; gap: 4px; margin: 4px 0 2px; flex-wrap: wrap; }
.wf-resto__rate-lbl { font-size: .85rem; color: var(--wf-muted, #6b7177); font-weight: 600; margin-right: 4px; }
.wf-resto__rate-star { border: 0; background: none; cursor: pointer; font-size: 1.35rem; line-height: 1; color: #d7d9dd; padding: 0 1px; transition: color .1s; }
.wf-resto__rate-star.is-on { color: #f5a623; }
.wf-resto__rate-thanks { font-size: .9rem; color: #1a8a3c; font-weight: 600; }
/* Rappel de la note du client (lecture seule) : étoiles non cliquables. */
.wf-resto__rate--mine .wf-resto__rate-star { cursor: default; }
.wf-resto__rate-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wf-star { color: #111; }
.wf-resto__reviews { color: var(--wf-muted); font-weight: 400; }
.wf-resto__fav {
	margin-left: auto;
	background: none;
	border: 0;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--wf-ink);
	cursor: pointer;
	transition: transform .15s, color .15s;
}
.wf-resto__fav:hover { transform: scale(1.15); }
.wf-resto__fav.is-on { color: var(--wf-accent); }

/* ===== Restaurants à proximité (wf_nearby) ===== */
.wf-nearby { max-width: 1440px; margin: 0 auto; padding: 0 24px; font-family: inherit; color: #2D2E33; }
.wf-nearby__title { font-size: 1.5rem; font-weight: 700; margin: 0 0 18px; }
.wf-nearby__status { color: #6b7280; font-size: .9rem; padding: 8px 0; }
.wf-nearby__grid {
	display: grid;
	grid-template-columns: repeat(var(--wf-cols, 3), 1fr);
	gap: 24px;
}
/* Carte style Uber Eats : image arrondie, texte dessous, sans cadre. */
.wf-nc { display: block; text-decoration: none; color: inherit; }
.wf-nc__img {
	position: relative; width: 100%; aspect-ratio: 16/9;
	background: #eef0f2 center/cover no-repeat;
	border-radius: 12px; overflow: hidden;
	transition: opacity .15s;
}
.wf-nc:hover .wf-nc__img { opacity: .92; }
.wf-nc__fav {
	position: absolute; top: 10px; right: 10px;
	width: 34px; height: 34px; border-radius: 50%;
	border: 0; background: rgba(255,255,255,.92); color: #e2492b;
	font-size: 1.05rem; cursor: pointer; line-height: 1;
	display: flex; align-items: center; justify-content: center;
}
.wf-nc__fav.is-on { background: #e2492b; color: #fff; }
.wf-nc__closed {
	position: absolute; left: 10px; bottom: 10px;
	background: rgba(26,26,26,.85); color: #fff;
	font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.wf-nc__body { padding: 10px 2px 0; }
.wf-nc__name { font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.wf-nc__fee { font-size: .88rem; color: #2D2E33; margin-bottom: 2px; }
.wf-nc__meta { font-size: .85rem; color: #6b7280; }
.wf-nc__rating { color: #2D2E33; font-weight: 600; }
.wf-nc__count { color: #6b7280; }
.wf-nearby__hint { margin-top: 14px; font-size: .85rem; color: #6b7280; }
.wf-nearby__hint a { color: inherit; text-decoration: underline; }

/* ===== Sélecteur d'adresse (wf_address) — style Uber Eats ===== */
.wf-addr { display: inline-block; font-family: inherit; color: #2D2E33; }
.wf-addr__pill {
	display: inline-flex; align-items: center; gap: 6px;
	background: #fff; border: 0; cursor: pointer;
	font-size: .95rem; font-weight: 600; color: #2D2E33;
	padding: 8px 14px; border-radius: 999px;
}
.wf-addr__pill:hover { background: #f4f4f4; }
.wf-addr__label { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-addr__sep, .wf-addr__time { color: #6b7280; font-weight: 500; }
.wf-addr__caret { font-size: .8rem; }

.wf-addr__overlay {
	position: fixed; inset: 0; z-index: 99999;
	background: rgba(0,0,0,.45);
	display: flex; align-items: flex-start; justify-content: center;
	padding: 6vh 16px;
}
.wf-addr__modal {
	background: #fff; border-radius: 16px; width: 100%; max-width: 480px;
	max-height: 86vh; overflow-y: auto;
	padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.wf-addr__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wf-addr__head h3 { margin: 0; font-size: 1.35rem; font-weight: 700; }
.wf-addr__close { background: none; border: 0; font-size: 1.1rem; cursor: pointer; padding: 6px; }

.wf-addr__form input {
	width: 100%; box-sizing: border-box;
	background: #f3f3f3; border: 0; border-radius: 10px;
	padding: 12px 14px; margin-bottom: 8px; font-size: .95rem;
}
.wf-addr__row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.wf-addr__add {
	width: 100%; background: #2D2E33; color: #fff; border: 0;
	border-radius: 10px; padding: 12px; font-weight: 600; cursor: pointer; margin-top: 4px;
}
.wf-addr__err { color: #a3301a; font-size: .85rem; margin-top: 8px; }

.wf-addr__section { font-weight: 700; margin: 18px 0 8px; font-size: 1rem; }
.wf-addr__item {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 8px; border-bottom: 1px solid #f0f0f0; cursor: pointer; border-radius: 8px;
}
.wf-addr__item:hover { background: #f7f7f7; }
.wf-addr__txt { flex: 1; display: flex; flex-direction: column; }
.wf-addr__txt small { color: #6b7280; }
.wf-addr__del { background: none; border: 0; cursor: pointer; opacity: .55; font-size: .95rem; padding: 6px; }
.wf-addr__del:hover { opacity: 1; }
.wf-addr__empty { color: #6b7280; font-size: .9rem; padding: 8px 0; }

.wf-addr__timepref {
	display: flex; align-items: center; justify-content: space-between;
	padding: 10px 8px; font-size: .95rem;
}
.wf-addr__plan {
	background: #f3f3f3; border-radius: 999px; padding: 8px 16px;
	text-decoration: none; color: #2D2E33; font-weight: 600; font-size: .85rem;
}
.wf-addr__plan:hover { background: #e8e8e8; }

/* Nettoyage liste stores WCFM (barre bleue sous l'image, si encore affichée) */
.wcfmmp-store-lists .store-avatar, .wcfmmp-store-lists .store-avatar img,
.wcfm-store-list-page .store-avatar, .wcfm-store-list-page .store-avatar img {
	border: 0 !important; border-bottom: 0 !important; box-shadow: none !important;
}

/* ===== Favoris (wf_favorites) ===== */
.wf-favs { font-family: inherit; color: #2D2E33; }
.wf-favs__title { font-size: 1.25rem; font-weight: 700; margin: 0 0 14px; }
.wf-favs__list { display: flex; flex-direction: column; gap: 12px; }
.wf-fav {
	display: grid; grid-template-columns: 72px 1fr auto; gap: 12px;
	align-items: center; border: 1px solid #ececec; border-radius: 12px; padding: 8px;
}
.wf-fav__img { width: 72px; height: 72px; border-radius: 8px; background: #eef0f2 center/cover no-repeat; display: block; }
.wf-fav__name { font-weight: 600; text-decoration: none; color: inherit; display: block; }
.wf-fav__meta { font-size: .82rem; color: #6b7280; margin-top: 2px; }
.wf-fav__meta .is-open { color: #1a8f4a; } .wf-fav__meta .is-closed { color: #e2492b; }
.wf-fav__rm { background: none; border: 0; cursor: pointer; font-size: 1rem; opacity: .6; padding: 6px; }
.wf-fav__rm:hover { opacity: 1; }
.wf-favs__empty { color: #6b7280; font-size: .9rem; }
.wf-favs__cta {
	display: inline-block; margin-top: 8px; padding: 8px 16px;
	background: #2D2E33; color: #fff; border-radius: 8px; text-decoration: none; font-size: .85rem;
}

@media (max-width: 900px) { .wf-nearby__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
	.wf-nearby { padding: 0 16px; }
	/* Carousel scroll-snap sur mobile */
	.wf-nearby__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
	.wf-nearby__grid .wf-nc { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ===== Skeleton loading ===== */
.wf-skel-grid { display: grid; grid-template-columns: repeat(var(--wf-cols, 3), 1fr); gap: 24px; }
.wf-skel__img { aspect-ratio: 16/9; border-radius: 12px; }
.wf-skel__l { height: 16px; width: 70%; margin-top: 10px; border-radius: 6px; }
.wf-skel__s { height: 12px; width: 45%; margin-top: 6px; border-radius: 6px; }
.wf-skel__img, .wf-skel__l, .wf-skel__s {
	background: linear-gradient(90deg, #eee 25%, #f7f7f7 50%, #eee 75%);
	background-size: 200% 100%;
	animation: wf-shimmer 1.3s infinite;
}
@keyframes wf-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (max-width: 900px) { .wf-skel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wf-skel-grid { grid-template-columns: 1fr; } }

/* ===== Barre panier sticky (wf_cart_bar) ===== */
.wf-cartbar {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	background: #2D2E33; color: #fff !important; text-decoration: none;
	padding: 14px 18px; border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,.25);
	font-weight: 700;
}
.wf-cartbar__count {
	background: #fff; color: #2D2E33;
	min-width: 24px; height: 24px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: .85rem;
}
.wf-cartbar__label { flex: 1; text-align: center; }
@media (min-width: 961px) { .wf-cartbar--mobile { display: none; } }

/* ===== On livre chez vous ? (wf_zone_checker) ===== */
.wf-zone { font-family: inherit; color: #2D2E33; }
.wf-zone__title { font-size: 1.4rem; font-weight: 700; margin: 0 0 14px; }
.wf-zone__form { display: flex; gap: 8px; max-width: 420px; }
.wf-zone__form input {
	flex: 1; background: #f3f3f3; border: 0; border-radius: 10px;
	padding: 13px 16px; font-size: 1rem;
}
.wf-zone__form button {
	background: #0027A0; color: #fff; border: 0; border-radius: 10px;
	padding: 13px 22px; font-weight: 700; cursor: pointer;
}
.wf-zone__result { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: .95rem; max-width: 420px; }
.wf-zone__result.is-ok { background: #e8f6ee; color: #146c37; }
.wf-zone__result.is-no { background: #fbeae7; color: #a3301a; }

/* ===== CTA Abonnement (wf_subscription_cta) ===== */
.wf-sub {
	background: linear-gradient(135deg, #0034cc 0%, #0027A0 62%);
	color: #fff; border-radius: 20px; padding: 30px 34px;
	box-shadow: 0 16px 36px rgba(0,39,160,.28);
	position: relative; overflow: hidden;
}
.wf-sub::after { /* halo décoratif discret */
	content: ''; position: absolute; right: -70px; top: -70px;
	width: 230px; height: 230px; background: rgba(255,255,255,.06); border-radius: 50%; pointer-events: none;
}
.wf-sub > * { position: relative; z-index: 1; }
.wf-sub__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.wf-sub__title { margin: 0; font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.wf-sub__price {
	font-weight: 800; white-space: nowrap; font-size: 1.15rem;
	background: rgba(255,255,255,.15); padding: 7px 16px; border-radius: 999px;
}
.wf-sub__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.wf-sub__list li { display: flex; align-items: center; gap: 11px; padding: 0; font-size: 1rem; opacity: 1; }
.wf-sub__btn {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	background: #fff; color: #0027A0 !important; text-decoration: none;
	border-radius: 12px; padding: 15px; font-weight: 800; font-size: 1.02rem;
	box-shadow: 0 6px 18px rgba(0,0,0,.16);
	transition: transform .12s ease, box-shadow .12s ease;
}
.wf-sub__btn::after { content: '→'; font-size: 1.15em; transition: transform .12s ease; }
.wf-sub__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.24); }
.wf-sub__btn:hover::after { transform: translateX(3px); }

/* ===== Suivi de commandes (wf_order_tracking) ===== */
.wf-track { font-family: inherit; color: #2D2E33; }
.wf-track__title { font-size: 1.25rem; font-weight: 700; margin: 0 0 14px; }
.wf-track__empty { color: #6b7280; font-size: .92rem; }
.wf-track__order { border: 1px solid #ececec; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.wf-track__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wf-track__row small { display: block; color: #6b7280; font-size: .8rem; }
.wf-track__badge {
	background: #e8f6ee; color: #146c37;
	font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.wf-track__badge.is-off { background: #f3f3f3; color: #6b7280; }
.wf-track__steps { display: flex; gap: 6px; margin-top: 12px; }
.wf-track__step { flex: 1; height: 5px; border-radius: 3px; background: #ececec; }
.wf-track__step.is-done { background: #1a8f4a; }

/* ===== Catégories cuisine (wf_categories) ===== */
.wf-cats { font-family: inherit; }
.wf-cats__title { font-size: 1.25rem; font-weight: 700; margin: 0 0 14px; }
.wf-cats__rail { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.wf-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #2D2E33; min-width: 76px; }
.wf-cat__img {
	width: 64px; height: 64px; border-radius: 50%;
	background: #f3f3f3 center/cover no-repeat;
	display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
	transition: transform .15s;
}
.wf-cat:hover .wf-cat__img { transform: scale(1.07); }
.wf-cat__name { font-size: .82rem; font-weight: 600; text-align: center; }

/* ===== Commander à nouveau (wf_reorder) ===== */
.wf-reorder__title { font-size: 1.25rem; font-weight: 700; margin: 0 0 14px; }
.wf-reorder__item {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	border: 1px solid #ececec; border-radius: 12px; padding: 12px 16px; margin-bottom: 10px;
}
.wf-reorder__info small { display: block; color: #6b7280; font-size: .8rem; }
.wf-reorder__btn {
	background: #2D2E33; color: #fff; border: 0; border-radius: 8px;
	padding: 9px 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.wf-reorder__btn:disabled { opacity: .5; }

/* ===== Bandeau promo (wf_promo_banner) ===== */
.wf-promo {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	border-radius: 12px; padding: 14px 20px; font-weight: 600;
}
.wf-promo__btn {
	background: #fff; border-radius: 999px; padding: 8px 16px;
	text-decoration: none; font-weight: 700; font-size: .85rem; white-space: nowrap;
}

/* ===== Responsive mobile (audit 375px) ===== */
@media (max-width: 560px) {
	/* Cibles tactiles ≥ 38px (sélecteurs scopés = gagnent sur les blocs média suivants) */
	.wf-resto .wf-qty__btn, .wf-qty .wf-qty__btn { width: 38px; height: 38px; font-size: 1.15rem; border-radius: 8px; }
	.wf-resto .wf-qty { gap: 12px; }
	.wf-resto .wf-qty__val { font-size: 1.05rem; min-width: 20px; }
	.wf-resto .wf-qty__trash { font-size: 1.1rem; padding: 8px 6px; }
	.wf-resto .wf-resto__fav { font-size: 1.6rem; padding: 6px; }
	.wf-addr .wf-addr__pill { padding: 10px 16px; font-size: 1rem; }

	/* Plats en liste horizontale (image à gauche) au lieu de 2 colonnes serrées */
	.wf-resto .wf-resto__grid--3 { display: flex; flex-direction: column; gap: 14px; }
	.wf-resto .wf-dish {
		display: grid; grid-template-columns: 96px 1fr;
		gap: 4px 14px; align-items: center;
	}
	.wf-resto .wf-dish__media { grid-row: 1 / 3; }
	.wf-resto .wf-dish__media img { aspect-ratio: 1; border-radius: 10px; }
	.wf-resto .wf-dish__name { margin: 0; font-size: .95rem; align-self: end; }
	.wf-resto .wf-dish__row { align-self: start; }
	/* Bouton favori posé sur l'image (sinon il recouvre le nom du plat en liste). */
	.wf-resto .wf-dish__fav { top: 6px; left: 56px; right: auto; }
	/* Formats (x6 / x12 / x20…) : pleine largeur sous les infos, alignés en ligne. */
	.wf-resto .wf-dish__formats { grid-column: 1 / -1; margin-top: 2px; }

	/* Carte plus basse, sous les infos */
	.wf-resto .wf-resto__map { height: 180px; }

	/* Modal adresses = bottom sheet */
	.wf-addr__overlay { padding: 0; align-items: flex-end; }
	.wf-addr__modal { border-radius: 16px 16px 0 0; max-width: none; max-height: 92vh; }
}

/* Barre panier : encoche iPhone */
.wf-cartbar { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }

/* ===== Drawer panier (style Uber Eats) ===== */
.wf-drawer { position: fixed; inset: 0; z-index: 99998; }
.wf-drawer__overlay {
	position: absolute; inset: 0; background: rgba(0,0,0,.45);
	opacity: 0; transition: opacity .25s;
}
.wf-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: 420px; max-width: 92vw;
	background: #fff; box-shadow: -12px 0 40px rgba(0,0,0,.18);
	transform: translateX(100%); transition: transform .25s ease;
	display: flex; flex-direction: column; padding: 18px;
	overflow: hidden; box-sizing: border-box;
}
.wf-drawer.is-open .wf-drawer__overlay { opacity: 1; }
.wf-drawer.is-open .wf-drawer__panel { transform: translateX(0); }
.wf-drawer__close {
	align-self: flex-start; background: none; border: 0;
	font-size: 1.2rem; cursor: pointer; padding: 6px; margin-bottom: 8px;
}

.wf-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.wf-drawer__illu { font-size: 4rem; margin-bottom: 16px; }
.wf-drawer__empty h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }
.wf-drawer__empty p { color: #6b7280; font-size: .92rem; margin: 0 0 20px; }
.wf-drawer__cta {
	background: #2D2E33; color: #fff !important; text-decoration: none;
	border-radius: 999px; padding: 12px 24px; font-weight: 700;
}

.wf-drawer__full { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.wf-drawer__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.wf-drawer__head h3 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.wf-drawer__count { color: #6b7280; font-size: .85rem; }
.wf-drawer__items { flex: 1; overflow-y: auto; min-height: 0; }
.wf-drawer__item {
	display: grid; grid-template-columns: 42px 1fr auto; gap: 10px;
	align-items: center; padding: 8px 0; border-bottom: 1px solid #f2f2f2;
}
.wf-drawer__img { width: 42px; height: 42px; border-radius: 8px; background: #eef0f2 center/cover no-repeat; }
.wf-drawer__info { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.wf-drawer__info strong { font-size: .88rem; line-height: 1.2; }
.wf-drawer__info small { color: #6b7280; }
.wf-drawer__item .wf-qty { gap: 6px; transform: scale(.9); transform-origin: right center; }

/* Sélecteur Livraison / Sur place dans le panier */
.wf-drawer__mode { display: flex; gap: 6px; background: #f2f3f5; border-radius: 999px; padding: 4px; margin: 0 0 12px; }
.wf-drawer__mode-btn {
	flex: 1; border: 0; background: transparent; border-radius: 999px;
	padding: 7px 10px; font: inherit; font-size: .85rem; font-weight: 600;
	color: #6b7177; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s;
}
.wf-drawer__mode-btn.is-active { background: #fff; color: #2D2E33; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.wf-drawer__foot { border-top: 1px solid #ececec; padding-top: 14px; margin-top: 10px; }
.wf-drawer__subtotal { display: flex; justify-content: space-between; font-size: 1rem; margin-bottom: 12px; }
.wf-drawer__breakdown { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.wf-drawer__line { display: flex; justify-content: space-between; font-size: .92rem; color: var(--wf-muted, #6b7177); }
.wf-drawer__line--total { color: #2D2E33; font-size: 1.05rem; font-weight: 700; padding-top: 8px; border-top: 1px solid #ececec; margin-top: 2px; }
.wf-drawer__line--total strong { font-weight: 800; }

/* Upsell drawer (compact) */
.wf-drawer__tip { margin: 2px 0 10px; }
.wf-drawer__tip-t { font-size: .78rem; font-weight: 700; color: #6b7177; margin-bottom: 6px; }
.wf-drawer__tip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-tip { border: 1.5px solid #d9dce1; background: #fff; color: #2D2E33; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.wf-tip:hover { border-color: var(--wf-blue, #0027A0); }
.wf-tip.is-on { background: var(--wf-blue, #0027A0); border-color: var(--wf-blue, #0027A0); color: #fff; }
.wf-drawer__upsell { margin: 2px 0 10px; }
.wf-drawer__upsell-t { font-size: .78rem; font-weight: 700; color: #6b7177; margin-bottom: 6px; }
.wf-drawer__upsell-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.wf-ups { flex: 0 0 auto; width: 98px; border: 1px solid #e7e9ec; border-radius: 10px; background: #fff; padding: 6px; cursor: pointer; text-align: left; position: relative; display: flex; flex-direction: column; gap: 3px; font-family: inherit; }
.wf-ups:hover { border-color: var(--wf-blue, #1d3af0); }
.wf-ups__img { display: block; width: 100%; height: 50px; border-radius: 6px; background: #eef0f2 center/cover no-repeat; }
.wf-ups__name { font-size: .74rem; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wf-ups__price { font-size: .74rem; color: #6b7177; }
.wf-ups__add { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--wf-blue, #1d3af0); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; }
.wf-ups.is-adding { opacity: .6; }

/* ===== Suivi commande (tracker) ===== */
.wf-track-live { border: 1px solid #e7e9ec; border-radius: 14px; padding: 20px; margin: 0 0 24px; max-width: 560px; }
.wf-track-live__title { margin: 0 0 18px; font-size: 1.15rem; font-weight: 700; }
.wf-track-steps { display: flex; justify-content: space-between; position: relative; margin-bottom: 16px; }
.wf-track-steps::before { content: ''; position: absolute; top: 15px; left: 12%; right: 12%; height: 3px; background: #e7e9ec; z-index: 0; }
.wf-track-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.wf-track-dot { width: 32px; height: 32px; border-radius: 50%; background: #e7e9ec; color: #888; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: background .2s; }
.wf-track-step.is-done .wf-track-dot { background: #1a8a3c; color: #fff; }
.wf-track-step.is-current .wf-track-dot { background: var(--wf-blue, #1d3af0); color: #fff; box-shadow: 0 0 0 4px rgba(29,58,240,.18); }
.wf-track-lbl { font-size: .85rem; font-weight: 600; color: #6b7177; }
.wf-track-step.is-done .wf-track-lbl, .wf-track-step.is-current .wf-track-lbl { color: #2D2E33; }
.wf-track-eta { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1rem; color: #2D2E33; background: #eef4ec; border-radius: 12px; padding: 10px 14px; }
.wf-track-eta svg { width: 1.2em; height: 1.2em; color: #1f7a34; }
.wf-track-eta strong { color: #1f7a34; }
.wf-track-link { display: inline-block; margin-top: 4px; color: var(--wf-blue, #1d3af0); font-weight: 700; text-decoration: none; }
.wf-track-link:hover { text-decoration: underline; }
/* Carte de suivi live (iframe Shipday) */
.wf-track-map { margin: 16px 0 12px; border-radius: 14px; overflow: hidden; border: 1px solid #e7e9ec; background: #f4f6f9; }
.wf-track-map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Bandeau d'installation PWA */
.wf-install { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 100000; display: flex; align-items: center; gap: 10px; background: #0027A0; color: #fff; padding: 12px 14px; border-radius: 14px; box-shadow: 0 10px 28px rgba(0,0,0,.28); font-size: .9rem; }
.wf-install span { flex: 1; font-weight: 600; line-height: 1.3; }
.wf-install__yes { background: #fff; color: #0027A0; border: 0; border-radius: 10px; padding: 9px 18px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.wf-install__no { background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; opacity: .8; padding: 4px 6px; }
@media (min-width: 640px) { .wf-install { left: auto; right: 20px; max-width: 400px; } }
@media (max-width: 560px) { .wf-track-map iframe { height: 280px; } }

/* ===== Parrainage ===== */
.wf-ref { border: 1px solid #e7e9ec; border-radius: 16px; padding: 24px; max-width: 480px; background: linear-gradient(135deg, #f4f7ff, #fff); }
.wf-ref__title { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; }
.wf-ref__sub { margin: 0 0 16px; color: #4a4f57; line-height: 1.5; }
.wf-ref__code { display: flex; align-items: stretch; gap: 8px; }
.wf-ref__code-val { flex: 1; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--wf-blue, #1d3af0); border-radius: 12px; padding: 12px; font-size: 1.3rem; font-weight: 800; letter-spacing: 1px; color: var(--wf-blue, #1d3af0); background: #fff; }
.wf-ref__copy { border: 0; background: var(--wf-blue, #1d3af0); color: #fff; border-radius: 12px; padding: 0 20px; font-weight: 700; cursor: pointer; }
/* Élément Fidélité */
.wf-loyalty { background: #fff; border: 1px solid #ececec; border-radius: 16px; padding: 20px 22px; max-width: 460px; }
.wf-loyalty__title { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 800; margin: 0 0 10px; color: #2D2E33; }
.wf-loyalty__title svg { width: 1.1em; height: 1.1em; color: var(--wf-blue, #0027A0); }
.wf-loyalty__bal { font-size: 1rem; color: var(--wf-muted, #6b7280); margin-bottom: 10px; }
.wf-loyalty__pts { font-size: 1.8rem; font-weight: 800; color: var(--wf-blue, #0027A0); }
.wf-loyalty__bar { height: 10px; border-radius: 999px; background: #eef0f2; overflow: hidden; }
.wf-loyalty__fill { display: block; height: 100%; background: var(--wf-blue, #0027A0); border-radius: 999px; transition: width .3s; }
.wf-loyalty__hint { margin: 10px 0 0; font-size: .9rem; color: var(--wf-muted, #6b7280); }

.wf-ref__actions { margin-top: 12px; }
.wf-ref__share { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--wf-blue, #0027A0); color: #fff; border-radius: 12px; padding: 12px 22px; font: inherit; font-weight: 700; cursor: pointer; width: 100%; justify-content: center; }
.wf-ref__share svg { width: 1.1em; height: 1.1em; }
.wf-ref__share:hover { filter: brightness(1.08); }
.wf-ref__hint { margin: 12px 0 0; font-size: .85rem; color: #6b7177; }

/* ===== Mon compte (page-id 14) ===== */
/* Largeur « Large » YOOtheme pour le contenu du compte. */
body.page-id-14 .tm-main .uk-container { max-width: 1600px; }
/* Masque les onglets Téléchargement / Followings / Questions (fallback ; le filtre PHP les retire aussi). */
body.page-id-14 .woocommerce-MyAccount-navigation-link--downloads,
body.page-id-14 .woocommerce-MyAccount-navigation-link--followings,
body.page-id-14 .woocommerce-MyAccount-navigation-link--wcfmmp-followings,
body.page-id-14 .woocommerce-MyAccount-navigation-link--following,
body.page-id-14 .woocommerce-MyAccount-navigation-link--questions,
body.page-id-14 .woocommerce-MyAccount-navigation-link--wcfmmp-questions,
body.page-id-14 .woocommerce-MyAccount-navigation-link--wcfm-questions,
body.page-id-14 .woocommerce-MyAccount-navigation-link--wcfmmp-enquiry { display: none !important; }

/* Tableau de bord enrichi */
.wf-acc-dash { margin: 0 0 24px; }
.wf-acc-dash__hi { font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; }
.wf-acc-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.wf-acc-action { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; border: 1px solid #e7e9ec; border-radius: 14px; text-decoration: none; color: #2D2E33; font-weight: 600; transition: border-color .12s, transform .12s; text-align: center; }
.wf-acc-action:hover { border-color: var(--wf-blue, #1d3af0); transform: translateY(-2px); }
.wf-acc-action__ico { font-size: 1.8rem; }
.wf-acc-action__lbl { font-size: .9rem; }
.wf-acc-lastorder { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 14px; background: #f4f7ff; text-decoration: none; color: #2D2E33; }
.wf-acc-lastorder__l { display: flex; flex-direction: column; gap: 2px; }
.wf-acc-lastorder__l small { color: #6b7177; }
.wf-acc-lastorder__go { color: var(--wf-blue, #1d3af0); font-weight: 700; white-space: nowrap; }
.wf-acc-lastorder-wrap { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.wf-acc-lastorder-wrap .wf-acc-lastorder { flex: 1 1 260px; }
.wf-acc-reorder { border: 0; background: var(--wf-blue, #0027A0); color: #fff; border-radius: 14px; padding: 0 22px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.wf-acc-reorder:hover { filter: brightness(1.1); }
.wf-acc-reorder:disabled { opacity: .6; cursor: default; }

/* "Mes notes" (onglet Mon compte) : notes laissées par le client, par restaurant. */
.wf-myratings__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wf-myratings__item { border: 1px solid #e7e9ec; border-radius: 14px; padding: 14px 18px; }
.wf-myratings__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wf-myratings__name { font-weight: 700; color: #2D2E33; text-decoration: none; }
a.wf-myratings__name:hover { color: var(--wf-blue, #0027A0); text-decoration: underline; }
.wf-myratings__stars { white-space: nowrap; font-size: 1.1rem; letter-spacing: 1px; }
.wf-myratings__star { color: #d7d9dd; }
.wf-myratings__star.is-on { color: #f5a623; }
.wf-myratings__meta { color: var(--wf-muted, #6b7177); font-size: .82rem; margin-top: 2px; }
.wf-myratings__text { margin: 8px 0 0; color: #333; line-height: 1.45; }
.wf-myratings__empty { color: var(--wf-muted, #6b7177); }

/* Stats vendeur ([wf_vendor_stats]) */
.wf-stats { max-width: 820px; }
.wf-stats__title { font-size: 1.6rem; font-weight: 800; margin: 0 0 16px; }
.wf-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .wf-stats__grid { grid-template-columns: repeat(2, 1fr); } }
.wf-stat { border: 1px solid #e7e9ec; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.wf-stat__val { font-size: 1.5rem; font-weight: 800; color: var(--wf-blue, #0027A0); }
.wf-stat__lbl { font-weight: 700; font-size: .9rem; }
.wf-stat__sub { color: var(--wf-muted, #6b7177); font-size: .8rem; }
.wf-stats__sec { font-size: 1.1rem; font-weight: 700; margin: 24px 0 10px; }
.wf-stats__top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wf-stats__toprow { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 12px; }
.wf-stats__topname { font-weight: 600; }
.wf-stats__topbar { background: #eef0f3; border-radius: 999px; height: 12px; overflow: hidden; }
.wf-stats__topbar > span { display: block; height: 100%; background: var(--wf-blue, #0027A0); border-radius: 999px; }
.wf-stats__topqty { font-weight: 800; min-width: 28px; text-align: right; }
.wf-stats__empty { color: var(--wf-muted, #6b7177); }

/* Page restaurant : commandes à accepter + suivi livreur ([wf_vendor_orders]). */
.wf-vendorders { max-width: 900px; margin: 0 auto; }
.wf-vendorders__title { font-size: 1.6rem; font-weight: 800; margin: 0 0 12px; }
.wf-vendorders__sec { font-size: 1rem; font-weight: 700; color: var(--wf-muted, #6b7177); text-transform: uppercase; letter-spacing: .04em; margin: 20px 0 10px; }
.wf-vendorders__empty { color: var(--wf-muted, #6b7177); }
.wf-vo { border: 1px solid #e7e9ec; border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; background: #fff; }
.wf-vo.is-awaiting { border-color: #f5a623; box-shadow: 0 0 0 2px rgba(245,166,35,.15); }
.wf-vo__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wf-vo__num { font-weight: 800; }
.wf-vo__type { font-size: .85rem; font-weight: 600; }
.wf-vo__ago { margin-left: auto; font-size: .8rem; color: var(--wf-muted, #6b7177); }
.wf-vo__who { color: var(--wf-muted, #6b7177); font-size: .9rem; margin: 2px 0 8px; }
.wf-vo__items { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.wf-vo__items li { font-size: .96rem; }
.wf-vo__note { background: #fff8e6; border-radius: 8px; padding: 6px 10px; font-size: .88rem; margin-bottom: 8px; }
.wf-vo__total { font-weight: 800; margin-bottom: 10px; }
.wf-vo--new { border-color: #f5a623; box-shadow: 0 0 0 2px rgba(245,166,35,.15); }
.wf-vo--hold { border-color: #d7d9dd; background: #fafafa; }
.wf-vo__badge { display: inline-block; font-size: .8rem; font-weight: 700; color: #8a6d00; background: #fff3cd; border-radius: 8px; padding: 3px 10px; margin-bottom: 8px; }
.wf-vo__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wf-vo__act { flex: 1 1 auto; border: 0; border-radius: 12px; padding: 12px 14px; font-weight: 800; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.wf-vo__act:disabled { opacity: .6; cursor: default; }
.wf-vo__act--accept { background: #1a8f4a; color: #fff; }
.wf-vo__act--hold { background: #eef0f3; color: #333; }
.wf-vo__act--refuse { background: #fff; color: #b32d2e; border: 1px solid #f0c4c4; flex: 0 0 auto; }
.wf-vo__act--accept:hover, .wf-vo__act--hold:hover { filter: brightness(1.05); }
.wf-vo__act--refuse:hover { background: #fdeaea; }
.wf-vo__act--ready { background: var(--wf-blue, #0027A0); color: #fff; }
.wf-vo__act--ready:hover { filter: brightness(1.1); }
.wf-vo--accepted { border-color: #bcd4ff; box-shadow: 0 0 0 2px rgba(0,39,160,.10); }
.wf-vo__status { font-weight: 700; color: #1a8f4a; margin-bottom: 8px; }
.wf-vo__status.is-prep { color: #8a6d00; }
.wf-vo__status.is-refused { color: #b32d2e; }
.wf-vo__ready { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wf-vo__ready-lbl { font-weight: 700; color: #333; }
.wf-vo__when { flex: 1 1 140px; min-width: 120px; border: 1px solid #d7d9dd; border-radius: 10px; padding: 10px 12px; font-size: .95rem; background: #fff; }
.wf-vo__ready .wf-vo__act { flex: 0 0 auto; }

/* --- Écran cuisine : cartes plus grandes + toutes les options --- */
.wf-vo { padding: 18px 22px; }
.wf-vo__num { font-size: 1.25rem; }
.wf-vo__type { font-size: 1rem; }
.wf-vo__items li { font-size: 1.15rem; line-height: 1.5; }
.wf-vo__qty { color: var(--wf-blue, #0027A0); font-size: 1.2rem; }
.wf-vo__total { font-size: 1.3rem; }
.wf-vo__note { background: #fdecea; border-left: 4px solid #e2492b; color: #9a1f0f; font-size: 1.05rem; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
.wf-vo__head { position: relative; }
.wf-vo__print { margin-left: 8px; border: 1px solid #e7e9ec; background: #fff; border-radius: 8px; padding: 4px 8px; font-size: 1rem; cursor: pointer; line-height: 1; }
.wf-vo__print:hover { border-color: var(--wf-blue, #0027A0); }
/* Chips de délai (Maintenant / 5 / 10 …) */
.wf-vo__chip { border: 1px solid #bcd4ff; background: #eef4ff; color: #0027A0; border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: .95rem; cursor: pointer; }
.wf-vo__chip:hover { background: #0027A0; color: #fff; }
.wf-vo__chip:disabled { opacity: .5; cursor: default; }
/* Clignotement nouvelle commande */
@keyframes wf-vo-flash { 0%,100% { box-shadow: 0 0 0 2px rgba(245,166,35,.15); } 50% { box-shadow: 0 0 0 5px rgba(245,166,35,.85); } }
.wf-vo.is-flash { animation: wf-vo-flash 1s ease-in-out 4; }
/* En-tête : Ouvert/Fermé + récap du jour */
.wf-vo-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.wf-vo-toggle { border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 800; font-size: 1rem; cursor: pointer; color: #fff; }
.wf-vo-toggle.is-on { background: #1a8f4a; }
.wf-vo-toggle.is-off { background: #b32d2e; }
.wf-vo-autoprint { border: 1.5px solid #d9d9d9; background: #fff; color: #6b7177; border-radius: 12px; padding: 11px 16px; font-weight: 700; font-size: .95rem; cursor: pointer; }
.wf-vo-autoprint.is-on { border-color: #1d3af0; color: #1d3af0; background: #eef1ff; }
.wf-vo-summary { color: var(--wf-muted, #6b7177); font-size: 1rem; }

/* ===== Espace restaurateur : barre de navigation bas d'écran ===== */
body.wflm-resto { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
/* Espace resto = look appli : on masque le gros titre de page YOOtheme (police hors app).
   Les titres propres aux écrans restent (h2.wflm-shop__title, stylés par le plugin). */
body.wflm-resto .uk-article-title { display: none; }
.wflm-resto-nav {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990;
	display: flex; background: #fff; border-top: 1px solid #e6e6e6;
	box-shadow: 0 -2px 12px rgba(0,0,0,.06);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.wflm-resto-nav__item {
	flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 3px; padding: 9px 4px 8px; text-decoration: none;
	color: #2D2E33; font-size: .72rem; font-weight: 600; line-height: 1;
	transition: color .15s, background .15s;
}
.wflm-resto-nav__item:hover { background: #f6f7f9; }
.wflm-resto-nav__ico { font-size: 1.3rem; line-height: 1; }
.wflm-resto-nav__item.is-active { color: var(--wf-blue, #1d3af0); }
.wflm-resto-nav__item--out { color: #b32d2e; }
.wflm-resto-nav__more { border: 0; background: transparent; font: inherit; cursor: pointer; }
.wflm-resto-sheet {
	position: fixed; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 99991;
	background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.14);
	min-width: 200px; overflow: hidden;
}
.wflm-resto-sheet__item { display: block; padding: 13px 16px; text-decoration: none; color: #2D2E33; font-weight: 600; font-size: .95rem; border-bottom: 1px solid #f2f2f2; }
.wflm-resto-sheet__item:last-child { border-bottom: 0; }
.wflm-resto-sheet__item:hover, .wflm-resto-sheet__item.is-active { background: #f6f7f9; color: var(--wf-blue, #1d3af0); }
.wflm-resto-sheet__out { color: #b32d2e; }

/* ===== Outils resto (Ma boutique / Historique / Avis) ===== */
.wflm-shop, .wflm-hist, .wflm-vrev { max-width: 100%; margin: 0 auto; }
.wflm-shop__title { font-size: 1.4rem; font-weight: 800; margin: 0 0 16px; }
.wflm-muted { color: #6b7177; font-size: .85rem; }
.wflm-btn { border: 0; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 700; background: var(--wf-blue, #1d3af0); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.wflm-btn--ghost { background: #fff; color: #2D2E33; border: 1.5px solid #d9d9d9; }
.wflm-shop__card { background: #fff; border: 1px solid #ececec; border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.wflm-shop__card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.wflm-shop__closed { color: #b32d2e; font-weight: 600; }
.wflm-shop__pausebtns { display: flex; flex-wrap: wrap; gap: 8px; }
.wflm-shop__dateform { display: flex; gap: 8px; margin-bottom: 10px; }
.wflm-shop__dates { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wflm-chip { display: inline-flex; align-items: center; gap: 6px; background: #f2f3f5; border-radius: 999px; padding: 5px 6px 5px 12px; font-size: .85rem; font-weight: 600; }
.wflm-chip__x { border: 0; background: #d9dce0; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; line-height: 1; }
.wflm-shop__banner { height: 120px; border-radius: 10px; background: #eef0f2 center/cover no-repeat; margin-bottom: 10px; }
.wflm-shop__bannerform, .wflm-shop__addr { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wflm-field { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: #4b5157; margin-bottom: 12px; flex: 1; min-width: 130px; }
.wflm-field input, .wflm-field textarea { border: 1.5px solid #d9d9d9; border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 500; }
.wflm-note { border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-weight: 600; font-size: .92rem; }
.wflm-note--ok { background: #e6f7ec; color: #0b7a35; } .wflm-note--err { background: #fdecec; color: #b32d2e; }
.wflm-hist__filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.wflm-hist__sum { margin: 0 0 14px; }
.wflm-hrow { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; align-items: center; }
.wflm-hrow__num { font-weight: 800; } .wflm-hrow__date, .wflm-hrow__status { color: #6b7177; font-size: .85rem; } .wflm-hrow__total { font-weight: 700; grid-column: 3; }
.wflm-vrev__item { background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.wflm-vrev__head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.wflm-vrev__stars { color: #f5a623; }
.wflm-vrev__text { margin: 0 0 10px; }
.wflm-vrev__reply { display: flex; flex-direction: column; gap: 8px; }
.wflm-vrev__reply textarea { border: 1.5px solid #d9d9d9; border-radius: 10px; padding: 10px; font: inherit; }
.wf-rv__reply { margin-top: 8px; padding: 10px 12px; background: #f6f7f9; border-radius: 10px; font-size: .9rem; }
.wf-rv__reply-lbl { display: block; font-weight: 700; font-size: .78rem; color: var(--wf-blue, #1d3af0); margin-bottom: 3px; }

/* ===== Anti-débordement mobile (espace resto) ===== */
.wflm-shop, .wflm-hist, .wflm-vrev, .wflm-promos { box-sizing: border-box; }
.wflm-shop *, .wflm-hist *, .wflm-vrev *, .wflm-promos * { box-sizing: border-box; max-width: 100%; }
@media (max-width: 600px) {
	.wflm-shop, .wflm-hist, .wflm-vrev, .wflm-promos { padding-left: 14px; padding-right: 14px; }
	/* Les lignes multi-champs passent en colonne pour ne jamais dépasser l'écran. */
	.wflm-shop__addr, .wflm-promos__row, .wflm-hist__filters, .wflm-shop__bannerform, .wflm-shop__dateform { flex-direction: column; align-items: stretch; }
	.wflm-shop__addr .wflm-field, .wflm-promos__row label { min-width: 0; }
	.wflm-shop input, .wflm-shop select, .wflm-shop textarea,
	.wflm-promos__row input, .wflm-promos__row select,
	.wflm-hist__filters input { width: 100%; }
	.wflm-hrow { grid-template-columns: 1fr auto; }
	.wflm-hrow__total { grid-column: 2; }
}

/* ===== Écran cuisine : lisibilité mobile (écrans étroits/longs) ===== */
@media (max-width: 768px) {
	.wf-vendorders { max-width: 100%; }
	.wf-vo { padding: 16px; }
	.wf-vo__num { font-size: 1.55rem; }
	.wf-vo__type, .wf-vo__who, .wf-vo__ago { font-size: 1.1rem; }
	.wf-vo__items li { font-size: 1.4rem; line-height: 1.65; }
	.wf-vo__qty { font-size: 1.5rem; }
	.wf-vo__total { font-size: 1.6rem; }
	.wf-vo__note { font-size: 1.2rem; }
	.wf-vo__act { font-size: 1.25rem; padding: 16px 14px; }
	.wf-vo__status { font-size: 1.2rem; }
	.wf-vo__chip { font-size: 1.1rem; padding: 12px 14px; }
	.wf-vendorders__sec { font-size: 1.15rem; }
}

/* ===== Espace restaurateur : footer du thème masqué ===== */
body.wflm-resto #tm-footer,
body.wflm-resto .tm-footer,
body.wflm-resto footer[id*="footer"] { display: none !important; }

/* ===== Cuisine : panneau « rupture rapide » d'un plat ===== */
.wf-vo-rupt { max-width: 900px; margin: 0 auto 14px; }
.wf-vo-rupt__toggle { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #d9dce0; background: #fff; border-radius: 12px; padding: 12px 16px; font: inherit; font-weight: 700; cursor: pointer; color: #2D2E33; }
.wf-vo-rupt__panel { margin-top: 10px; border: 1px solid #ececec; border-radius: 14px; background: #fff; padding: 12px; }
.wf-vo-rupt__search { width: 100%; border: 1.5px solid #d9d9d9; border-radius: 10px; padding: 11px 14px; font: inherit; margin-bottom: 10px; box-sizing: border-box; }
.wf-vo-rupt__list { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.wf-vo-rupt__row { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 8px; }
.wf-vo-rupt__row:hover { background: #f6f7f9; }
.wf-vo-rupt__name { flex: 1; font-weight: 600; }
.wf-vo-rupt__row.is-off .wf-vo-rupt__name { color: #c0392b; text-decoration: line-through; }
.wf-vo-rupt__state { font-size: .85rem; color: #6b7177; min-width: 78px; text-align: right; }
.wf-vo-rupt__row input { width: 22px; height: 22px; accent-color: #1a8a3c; cursor: pointer; }

/* ===== Élément FAQ (accordéon) ===== */
.wf-faq { max-width: 760px; margin: 0 auto; }
.wf-faq__title { font-size: 1.5rem; font-weight: 800; margin: 0 0 16px; }
.wf-faq__item { border: 1px solid #ececec; border-radius: 12px; margin-bottom: 10px; background: #fff; }
.wf-faq__q { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #2D2E33; }
.wf-faq__q::-webkit-details-marker { display: none; }
.wf-faq__chevron { transition: transform .2s; color: var(--wf-blue, #1d3af0); flex: 0 0 auto; }
.wf-faq__item[open] .wf-faq__chevron { transform: rotate(180deg); }
.wf-faq__a { padding: 0 18px 16px; color: #4b5157; line-height: 1.6; }

/* ===== Élément Nouveautés (derniers plats) ===== */
.wf-newdishes { max-width: 1200px; margin: 0 auto; }
.wf-newdishes__title { font-size: 1.5rem; font-weight: 800; margin: 0 0 16px; }
.wf-newdishes__grid { display: grid; grid-template-columns: repeat(var(--wf-nd-cols, 3), 1fr); gap: 20px; }
@media (max-width: 900px) { .wf-newdishes__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wf-newdishes__grid { grid-template-columns: 1fr; } }
.wf-nd { display: block; text-decoration: none; color: inherit; }
.wf-nd__img { display: block; width: 100%; aspect-ratio: 16/10; border-radius: 12px; background: #eef0f2 center/cover no-repeat; transition: opacity .15s; }
.wf-nd:hover .wf-nd__img { opacity: .92; }
.wf-nd__body { display: block; padding: 8px 2px; }
.wf-nd__name { display: block; font-weight: 700; color: #2D2E33; }
.wf-nd__resto { display: block; font-size: .85rem; color: var(--wf-muted, #6b7280); }
.wf-nd__price { display: block; font-weight: 700; color: var(--wf-blue, #0027A0); margin-top: 2px; }

/* ===== Élément Étapes (Comment ça marche) ===== */
.wf-steps { max-width: 1100px; margin: 0 auto; }
.wf-steps__title { font-size: 1.5rem; font-weight: 800; margin: 0 0 20px; text-align: center; }
.wf-steps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 22px; }
.wf-steps__item { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; }
.wf-steps__num { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--wf-blue, #0027A0); color: #fff; font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.wf-steps__t { font-weight: 800; color: #2D2E33; align-self: center; }
.wf-steps__s { font-size: .9rem; color: var(--wf-muted, #6b7280); grid-column: 2; }

/* ===== Élément Témoignages ===== */
.wf-testi { max-width: 1100px; margin: 0 auto; }
.wf-testi__title { font-size: 1.5rem; font-weight: 800; margin: 0 0 20px; text-align: center; }
.wf-testi__grid { display: grid; grid-template-columns: repeat(var(--wf-testi-cols, 3), 1fr); gap: 18px; }
@media (max-width: 900px) { .wf-testi__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wf-testi__grid { grid-template-columns: 1fr; } }
.wf-testi__item { background: #fff; border: 1px solid #ececec; border-radius: 14px; padding: 20px; }
.wf-testi__stars { color: #f5a623; margin-bottom: 8px; letter-spacing: 2px; }
.wf-testi__text { margin: 0 0 12px; color: #2D2E33; line-height: 1.5; }
.wf-testi__meta { font-size: .88rem; color: var(--wf-muted, #6b7280); }

/* ===== Élément Chiffres clés ===== */
.wf-stats { max-width: 1100px; margin: 0 auto; }
.wf-stats__title { font-size: 1.5rem; font-weight: 800; margin: 0 0 20px; text-align: center; }
.wf-stats__grid { display: grid; grid-template-columns: repeat(var(--wf-stats-cols, 4), 1fr); gap: 16px; }
@media (max-width: 720px) { .wf-stats__grid { grid-template-columns: repeat(2, 1fr); } }
.wf-stats__item { text-align: center; background: #fff; border: 1px solid #ececec; border-radius: 16px; padding: 22px 14px; }
.wf-stats__num { display: block; font-size: 2rem; font-weight: 800; color: var(--wf-blue, #0027A0); line-height: 1.1; }
.wf-stats__lbl { display: block; margin-top: 6px; font-size: .9rem; color: var(--wf-muted, #6b7280); font-weight: 600; }

/* ===== Élément Carte des restaurants ===== */
.wf-map { max-width: 1200px; margin: 0 auto; }
.wf-map__title { font-size: 1.5rem; font-weight: 800; margin: 0 0 16px; }
.wf-map__canvas { width: 100%; border-radius: 16px; overflow: hidden; background: #eef0f2; z-index: 0; }
.wf-map__canvas .leaflet-container { border-radius: 16px; font: inherit; }
.wf-map__pop { min-width: 150px; }
.wf-map__pop b { display: block; color: #2D2E33; font-size: .95rem; }
.wf-map__pop .wf-map__rate { color: #f5a623; font-size: .85rem; }
.wf-map__pop a { display: inline-block; margin-top: 6px; color: var(--wf-blue, #0027A0); font-weight: 700; text-decoration: none; }

/* ===== Élément Hero + recherche ===== */
.wf-hero { position: relative; display: flex; align-items: center; border-radius: 20px; overflow: hidden; padding: 40px; background: #f4f6f8; }
.wf-hero--img { background: #2D2E33; }
.wf-hero--img::before { content: ""; position: absolute; inset: 0; background-image: var(--wf-hero-img); background-size: cover; background-position: center; opacity: 1; }
.wf-hero--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)); }
.wf-hero__inner { position: relative; z-index: 1; width: 100%; max-width: 620px; }
.wf-hero--center { justify-content: center; text-align: center; }
.wf-hero--center .wf-hero__inner { margin: 0 auto; }
.wf-hero--center .wf-zone__form { margin-left: auto; margin-right: auto; }
.wf-hero--img .wf-hero__title, .wf-hero--img .wf-hero__sub { color: #fff; }
.wf-hero__title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 12px; color: #2D2E33; line-height: 1.15; }
.wf-hero__sub { font-size: 1.05rem; margin: 0 0 20px; color: var(--wf-muted, #6b7280); }
.wf-hero__zone { margin-top: 6px; }
.wf-hero__cta { display: inline-block; margin-top: 16px; background: var(--wf-blue, #0027A0); color: #fff; font-weight: 700; text-decoration: none; padding: 13px 26px; border-radius: 14px; }
.wf-hero__cta:hover { filter: brightness(1.08); }
@media (max-width: 560px) { .wf-hero { padding: 26px 20px; } }

/* ===== Élément Horaires d'un restaurant ===== */
.wf-hours { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid #ececec; border-radius: 16px; padding: 18px 20px; }
.wf-hours__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wf-hours__title { font-size: 1.15rem; font-weight: 800; margin: 0; color: #2D2E33; }
.wf-hours__badge { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.wf-hours__badge.is-open { background: #e6f4ea; color: #1f7a34; }
.wf-hours__badge.is-closed { background: #fdecea; color: #c0392b; }
.wf-hours__list { list-style: none; margin: 0; padding: 0; }
.wf-hours__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #f1f1f1; font-size: .92rem; }
.wf-hours__row:first-child { border-top: 0; }
.wf-hours__day { color: var(--wf-muted, #6b7280); font-weight: 600; }
.wf-hours__slots { color: #2D2E33; text-align: right; }
.wf-hours__row.is-today { font-weight: 700; }
.wf-hours__row.is-today .wf-hours__day, .wf-hours__row.is-today .wf-hours__slots { color: var(--wf-blue, #0027A0); }
.wf-hours__row.is-off .wf-hours__slots { color: #b3b6bb; }

/* ===== Élément Menu d'un restaurant ===== */
.wf-menushow .wf-nd__img { position: relative; }
.wf-nd--off .wf-nd__img { filter: grayscale(1); opacity: .6; }
.wf-nd__badge { position: absolute; top: 8px; left: 8px; background: #2D2E33; color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.wf-menushow__all { display: inline-block; margin-top: 16px; color: var(--wf-blue, #0027A0); font-weight: 700; text-decoration: none; }
.wf-menushow__all:hover { text-decoration: underline; }

/* ===== Badges régime (Végé/Vegan/Halal/Sans gluten) ===== */
.wf-dish__diets, .wf-nd__diets, .wf-rc__diets { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 0; }
.wf-diet { display: inline-block; font-size: .7rem; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 999px; background: #eef0f2; color: #4a4d52; }
.wf-diet--vegetarien { background: #e6f4ea; color: #1f7a34; }
.wf-diet--vegan { background: #d7f0dd; color: #14622a; }
.wf-diet--halal { background: #e7edff; color: #12329c; }
.wf-diet--sans-gluten { background: #fff2d9; color: #9a6b00; }
.wf-dish__allerg { font-size: .78rem; color: var(--wf-muted, #6b7280); margin-top: 4px; line-height: 1.35; }
.wf-dish__allerg-lbl { font-weight: 700; color: #7a4a00; }
/* ===== Fiche produit d'un plat (single-product) habillée ===== */
.wf-dish-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--wf-blue, #0027A0); font-weight: 700; text-decoration: none; }
.wf-dish-back svg { width: 1em; height: 1em; }
.wf-dish-back:hover { text-decoration: underline; }
.single-product .product_title { font-weight: 800; color: #2D2E33; }
.single-product .price { color: var(--wf-blue, #0027A0) !important; font-weight: 800; }
.single-product .single_add_to_cart_button, .single-product button.single_add_to_cart_button, .single-product .single_add_to_cart_button.button.alt {
	background: var(--wf-blue, #0027A0) !important; border-radius: 12px !important; font-weight: 800 !important; padding: 12px 26px !important;
}
.single-product .product_meta { display: none; }
.single-product .woocommerce-product-gallery__image img { border-radius: 14px; }

/* ===== Rails « Découverte » (bandes horizontales façon Uber/Deliveroo) ===== */
.wf-rail { max-width: 1200px; margin: 0 auto; }
.wf-rail__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.wf-rail__title { font-size: 1.5rem; font-weight: 800; margin: 0; }
.wf-rail__sub { margin: 4px 0 0; color: var(--wf-muted, #6b7280); font-size: .95rem; }
.wf-rail__track {
	display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
	padding: 2px 2px 10px; margin: 0 -2px; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.wf-rail__track > * { flex: 0 0 auto; scroll-snap-align: start; width: min(80vw, 260px); }
.wf-rail__track::-webkit-scrollbar { height: 8px; }
.wf-rail__track::-webkit-scrollbar-thumb { background: #d9d9d9; border-radius: 999px; }

/* Carte restaurant (rails + collections) */
.wf-rc { display: block; text-decoration: none; color: inherit; }
.wf-rc__img { position: relative; display: block; width: 100%; aspect-ratio: 16/10; border-radius: 14px; background: #eef0f2 center/cover no-repeat; transition: opacity .15s; }
.wf-rc:hover .wf-rc__img { opacity: .93; }
.wf-rc__badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.wf-rc__badge { background: #fff; color: #2D2E33; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.wf-rc__badge--closed { background: #2D2E33; color: #fff; }
.wf-rc__name { display: block; font-weight: 800; color: #2D2E33; margin-top: 8px; }
.wf-rc__meta { display: block; font-size: .85rem; color: var(--wf-muted, #6b7280); margin-top: 2px; }
.wf-rc__rate { color: #2D2E33; font-weight: 700; }
.wf-rc__rate svg { width: .95em; height: .95em; vertical-align: -1px; color: #f5a623; }

/* Best-sellers : badge de rang sur la carte plat */
.wf-bs .wf-nd__img, .wf-rail .wf-nd__img { position: relative; }
.wf-bs__rank {
	position: absolute; top: 8px; left: 8px; min-width: 26px; height: 26px; padding: 0 6px;
	border-radius: 999px; background: var(--wf-blue, #0027A0); color: #fff; font-weight: 800; font-size: .85rem;
	display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* Cartes « Offres » (deals) */
.wf-deal {
	display: flex; align-items: stretch; text-decoration: none; color: inherit; overflow: hidden;
	border-radius: 16px; border: 1px solid #ececec; background: #fff; min-height: 118px;
}
.wf-deal__off {
	flex: 0 0 92px; display: flex; align-items: center; justify-content: center; text-align: center;
	background: var(--wf-blue, #0027A0); color: #fff; font-weight: 800; font-size: 1.25rem; padding: 8px;
}
.wf-deal__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; min-width: 0; }
.wf-deal__resto { font-weight: 800; color: #2D2E33; }
.wf-deal__desc { font-size: .85rem; color: var(--wf-muted, #6b7280); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-deal__code { font-size: .85rem; color: #2D2E33; margin-top: auto; }
.wf-deal__code strong { letter-spacing: .5px; }
.wf-deal__exp { font-size: .78rem; color: var(--wf-muted, #6b7280); }
a.wf-deal:hover { border-color: var(--wf-blue, #0027A0); }

/* ===== Élément Recherche globale ===== */
.wf-search { position: relative; max-width: 560px; margin: 0 auto; }
.wf-search__box { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #e0e2e6; border-radius: 999px; padding: 4px 6px 4px 16px; }
.wf-search__box:focus-within { border-color: var(--wf-blue, #0027A0); }
.wf-search__ico { display: inline-flex; color: var(--wf-muted, #6b7280); }
.wf-search__ico svg { width: 1.15em; height: 1.15em; }
.wf-search__input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; padding: 10px 8px; color: #2D2E33; min-width: 0; }
.wf-search__results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: #fff; border: 1px solid #ececec; border-radius: 16px; box-shadow: 0 12px 34px rgba(0,0,0,.14); overflow: hidden; max-height: 60vh; overflow-y: auto; }
.wf-search__group { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--wf-muted, #6b7280); padding: 12px 16px 4px; }
.wf-search__item { display: flex; align-items: center; gap: 12px; padding: 9px 16px; text-decoration: none; color: inherit; }
.wf-search__item:hover { background: #f5f7fb; }
.wf-search__thumb { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: #eef0f2 center/cover no-repeat; }
.wf-search__txt { display: flex; flex-direction: column; min-width: 0; }
.wf-search__name { font-weight: 700; color: #2D2E33; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-search__sub { font-size: .84rem; color: var(--wf-muted, #6b7280); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-search__none { padding: 16px; color: var(--wf-muted, #6b7280); text-align: center; }

/* ===== Élément Restaurant à la une ===== */
.wf-featured { max-width: 1000px; margin: 0 auto; }
.wf-featured__title { font-size: 1.5rem; font-weight: 800; margin: 0 0 16px; }
.wf-featured__card { display: grid; grid-template-columns: 1.4fr 1fr; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid #ececec; background: #fff; }
.wf-featured__img { background: #eef0f2 center/cover no-repeat; min-height: 240px; }
.wf-featured__body { display: flex; flex-direction: column; gap: 8px; padding: 24px; justify-content: center; }
.wf-featured__name { font-size: 1.6rem; font-weight: 800; color: #2D2E33; }
.wf-featured__rating { color: #f5a623; font-weight: 700; }
.wf-featured__addr { color: var(--wf-muted, #6b7280); }
.wf-featured__cta { margin-top: 8px; font-weight: 800; color: var(--wf-blue, #0027A0); }
@media (max-width: 640px) { .wf-featured__card { grid-template-columns: 1fr; } .wf-featured__img { min-height: 180px; } }

/* ===== Élément Réassurance ===== */
.wf-reassure { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.wf-reassure__item { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; align-items: center; background: #fff; border: 1px solid #ececec; border-radius: 14px; padding: 18px; }
.wf-reassure__ico { grid-row: 1 / span 2; color: #1a8a3c; font-size: 1.8rem; }
.wf-reassure__t { font-weight: 800; color: #2D2E33; }
.wf-reassure__s { font-size: .88rem; color: var(--wf-muted, #6b7280); grid-column: 2; }

/* ===== Bandeau d'état paiement (client) ===== */
.wf-paybanner { border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; font-weight: 600; font-size: .95rem; line-height: 1.5; }
.wf-paybanner.is-pending { background: #fff7e6; color: #8a5a00; border: 1px solid #ffe0a3; }
.wf-paybanner.is-done { background: #e6f7ec; color: #0b7a35; border: 1px solid #b6e6c6; }
.wf-paybanner.is-cancelled { background: #fdecea; color: #b32d2e; border: 1px solid #f5c6c2; }

/* ===== Icônes Phosphor (Bold) ===== */
.wf-i { line-height: 0; max-width: 100%; }
/* Favori : cercle blanc ; cœur contour gris (non aimé) → cœur PLEIN rouge (aimé, heart-fill). */
.wf-nc__fav { color: #6b7177; }
.wf-nc__fav.is-on { background: rgba(255,255,255,.95); color: #e2492b; }
.wf-resto__fav { color: #6b7177; }
.wf-resto__fav.is-on { color: #e2492b; }

/* ===== Espace resto : codes promo (front) ===== */
.wflm-promos { max-width: 100%; margin: 0 auto; }
.wflm-promos__title, .wflm-myqr__title { font-size: 1.4rem; font-weight: 800; margin: 0 0 14px; }
.wflm-note { border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-weight: 600; font-size: .92rem; }
.wflm-note--ok { background: #e6f7ec; color: #0b7a35; }
.wflm-note--err { background: #fdecec; color: #b32d2e; }
.wflm-promos__form { background: #fff; border: 1px solid #ececec; border-radius: 14px; padding: 16px; margin-bottom: 18px; }
.wflm-promos__row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.wflm-promos__row label { flex: 1; min-width: 130px; display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: #4b5157; }
.wflm-promos__row input, .wflm-promos__row select {
	border: 1.5px solid #d9d9d9; border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 500; background: #fff;
}
.wflm-promos__add {
	border: 0; border-radius: 10px; padding: 12px 18px; font: inherit; font-weight: 700;
	background: var(--wf-blue, #1d3af0); color: #fff; cursor: pointer;
}
.wflm-promos__hint { font-size: .8rem; color: #6b7177; margin: 10px 0 0; }
.wflm-promos__empty { color: #6b7177; }
.wflm-promo {
	display: flex; align-items: center; gap: 12px; padding: 12px 14px;
	border: 1px solid #ececec; border-radius: 12px; margin-bottom: 10px; background: #fff;
}
.wflm-promo__main { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; }
.wflm-promo__code { font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.wflm-promo__amt { color: var(--wf-blue, #1d3af0); font-weight: 700; }
.wflm-promo__meta { font-size: .8rem; color: #6b7177; }
.wflm-promo__del button { border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; color: #b32d2e; }

/* ===== Espace resto : mon QR ===== */
.wflm-myqr { max-width: 480px; margin: 0 auto; text-align: center; }
.wflm-myqr__desc { color: #4b5157; font-size: .92rem; margin: 0 0 18px; }
.wflm-myqr__code { display: flex; justify-content: center; margin: 0 0 14px; }
.wflm-myqr__code img, .wflm-myqr__code canvas { border: 8px solid #fff; border-radius: 12px; box-shadow: 0 2px 14px rgba(0,0,0,.1); }
.wflm-myqr__link { font-size: .72rem; color: #8a8f95; word-break: break-all; margin: 0 0 16px; }
.wflm-myqr__print {
	border: 1.5px solid #d9d9d9; background: #fff; border-radius: 10px; padding: 10px 18px;
	font: inherit; font-weight: 700; cursor: pointer;
}

/* Bouton « Activer les alertes » (push) sur la page commandes */
.wf-pushbtn { display: inline-block; margin: 0 0 16px; border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 800; font-size: 1rem; cursor: pointer; color: #fff; background: var(--wf-blue, #1d3af0); }
.wf-pushbtn:hover { filter: brightness(1.05); }
/* Sections dépliables (En livraison / Terminées) */
.wf-vendorders__acc { border: 1px solid #e7e9ec; border-radius: 14px; margin: 12px 0; padding: 0 14px; }
.wf-vendorders__acc > summary { cursor: pointer; font-weight: 700; color: var(--wf-muted, #6b7177); text-transform: uppercase; letter-spacing: .04em; padding: 14px 4px; list-style: revert; }
.wf-vendorders__acc[open] > summary { border-bottom: 1px solid #eceef1; margin-bottom: 12px; }
.wf-vo__map { position: relative; height: 220px; border-radius: 12px; overflow: hidden; margin-bottom: 6px; }
.wf-vo__map iframe { width: 100%; height: 100%; border: 0; }
.wf-vo__track { color: var(--wf-blue, #0027A0); font-weight: 700; text-decoration: none; }

/* Bandeau suivi commande sticky (site-wide quand commande en cours) */
.wf-track-sticky { position: sticky; top: 0; z-index: 999; display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; background: #0027A0; color: #fff; padding: 8px 16px; font-size: .88rem; }
.wf-track-sticky__steps { display: flex; align-items: center; gap: 6px; }
.wf-track-sticky__step { position: relative; padding-left: 18px; color: rgba(255,255,255,.55); font-weight: 600; }
.wf-track-sticky__step::before { content: '○'; position: absolute; left: 0; }
.wf-track-sticky__step.is-done { color: #fff; }
.wf-track-sticky__step.is-done::before { content: '●'; }
.wf-track-sticky__link { color: #fff; font-weight: 800; text-decoration: underline; white-space: nowrap; }
@media (max-width: 560px) { .wf-track-sticky { font-size: .8rem; gap: 8px; padding: 7px 12px; } }
@media (max-width: 640px) { .wf-acc-actions { grid-template-columns: repeat(2, 1fr); } }
.wf-drawer__checkout {
	display: block; text-align: center;
	background: #2D2E33; color: #fff !important; text-decoration: none;
	border-radius: 10px; padding: 14px; font-weight: 700;
}
.wf-drawer__checkout.is-disabled { opacity: .45; pointer-events: none; }
.wf-drawer__min {
	margin: 0 0 10px; font-size: .85rem; font-weight: 600; text-align: center;
	color: #9a6b00; background: #fff2d9; border-radius: 10px; padding: 9px 12px;
}
@media (max-width: 560px) {
	.wf-drawer__panel { width: 100%; max-width: none; padding: 16px; }
}

/* ===== Panier flottant (wf_cart_fab) ===== */
.wf-cart-fab {
	position: fixed;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 9997;
	width: var(--fab-size, 56px);
	height: var(--fab-size, 56px);
	border-radius: 50%;
	border: 0;
	background: var(--fab-bg, #0027A0);
	color: var(--fab-color, #fff);
	font-size: calc(var(--fab-size, 56px) * .42);
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0,0,0,.28);
	display: flex; align-items: center; justify-content: center;
	transition: transform .15s;
}
.wf-cart-fab:hover { transform: scale(1.06); }
.wf-cart-fab .wf-cart-badge {
	position: absolute; top: -4px; right: -4px;
	min-width: 22px; height: 22px; border-radius: 999px;
	background: var(--wf-cart-badge-bg, var(--wf-blue, #0027A0)); color: #fff;
	font-size: .72rem; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
	padding: 0 5px;
}
/* Positions desktop (>960px) */
@media (min-width: 961px) {
	.wf-fab--d-hidden { display: none; }
	.wf-fab--d-bottom-right { right: 24px; left: auto; }
	.wf-fab--d-bottom-left { left: 24px; right: auto; }
}
/* Positions mobile (≤960px) */
@media (max-width: 960px) {
	.wf-fab--m-hidden { display: none; }
	.wf-fab--m-bottom-right { right: 16px; left: auto; }
	.wf-fab--m-bottom-left { left: 16px; right: auto; }
}

/* ===== Classes utilitaires de positionnement (à mettre dans « Classe » d'un
   élément YOOtheme, ex. ton Icône Panier) =====
   .wf-fix-br / .wf-fix-bl        → fixé bas droite / bas gauche (partout)
   .wf-fix-br-m / .wf-fix-bl-m    → fixé seulement sur MOBILE
   .wf-fix-br-d / .wf-fix-bl-d    → fixé seulement sur DESKTOP */
.wf-fix-br, .wf-fix-bl {
	position: fixed !important;
	bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
	z-index: 9997 !important;
}
.wf-fix-br { right: 18px !important; left: auto !important; }
.wf-fix-bl { left: 18px !important; right: auto !important; }
@media (max-width: 960px) {
	.wf-fix-br-m, .wf-fix-bl-m {
		position: fixed !important;
		bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
		z-index: 9997 !important;
	}
	.wf-fix-br-m { right: 16px !important; left: auto !important; }
	.wf-fix-bl-m { left: 16px !important; right: auto !important; }
}
@media (min-width: 961px) {
	.wf-fix-br-d, .wf-fix-bl-d {
		position: fixed !important;
		bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
		z-index: 9997 !important;
	}
	.wf-fix-br-d { right: 24px !important; left: auto !important; }
	.wf-fix-bl-d { left: 24px !important; right: auto !important; }
}

/* ===== Autocomplétion d'adresse ===== */
.wf-addr__suggest {
	background: #fff; border: 1px solid #ececec; border-radius: 10px;
	margin: -4px 0 8px; overflow: hidden;
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.wf-addr__sug { padding: 10px 14px; font-size: .88rem; cursor: pointer; }
.wf-addr__sug:hover { background: #f5f5f5; }

.wf-resto__delivery { margin: 0; }
.wf-resto__delivery-result { font-size: .95rem; font-weight: 600; color: var(--wf-muted); }
.wf-resto__delivery-result.is-ok { color: var(--wf-ok); }
.wf-resto__delivery-result.is-error { color: var(--wf-accent); }
.wf-deliv-rush { color: #9a6b00; font-weight: 600; white-space: nowrap; }
.wf-deliv-rush svg { width: 1em; height: 1em; vertical-align: -1px; }
/* ===== Accessibilité : focus clavier visible sur les éléments interactifs ===== */
.wf-co-btn:focus-visible, .wf-tip:focus-visible, .wf-rv-tag:focus-visible, .wf-dish__fav:focus-visible,
.wf-search__input:focus-visible, .wf-when__mode:focus-visible, .wf-when__dt:focus-visible,
.wf-ref__share:focus-visible, .wf-hero__cta:focus-visible, .wf-menushow__all:focus-visible,
.wf-tip:focus-visible, .wf-rc:focus-visible, .wf-nd:focus-visible, .wf-deal:focus-visible {
	outline: 3px solid var(--wf-blue, #0027A0); outline-offset: 2px; border-radius: 6px;
}
.wf-resto__when { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.wf-when__lbl { display: inline-flex; align-items: center; gap: 5px; font-size: .9rem; font-weight: 700; color: #2D2E33; }
.wf-when__lbl svg { width: 1em; height: 1em; }
.wf-when__mode, .wf-when__dt { border: 1.5px solid #d9d9d9; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .9rem; background: #fff; color: var(--wf-ink, #2D2E33); }
.wf-resto__min { margin: 6px 0 0; font-size: .88rem; color: var(--wf-muted, #6b7280); display: flex; align-items: center; gap: 6px; }
.wf-resto__min svg { width: 1em; height: 1em; }
.wf-resto__min strong { color: #2D2E33; }
.wf-deliv-km { font-weight: 400; color: var(--wf-muted); }
.wf-retry-deliv { color: inherit; text-decoration: underline; }

.wf-resto__addr { color: var(--wf-muted); font-size: .9rem; margin: 0 0 8px; line-height: 1.4; }
.wf-resto__status { font-size: .9rem; font-weight: 600; margin: 0 0 14px; }
.wf-resto__status.is-open { color: var(--wf-ok); }
.wf-resto__status.is-closed { color: var(--wf-accent); }
.wf-resto__desc { font-size: .92rem; line-height: 1.55; color: #444; max-width: 620px; }

.wf-resto__aside {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.wf-resto__map {
	width: 100%;
	height: 260px;
	border-radius: 12px;
	overflow: hidden;
	background: #eef0f2;
}
.wf-resto__gmap {
	width: 100%;
	height: 100%;
	min-height: 180px;
	border: 0;
	display: block;
}

.wf-resto__map-empty {
	display: flex; align-items: center; justify-content: center;
	height: 100%; color: var(--wf-muted); font-size: .85rem;
}

/* ---- Sections menu ---- */
.wf-resto__menu { margin-top: 44px; }
.wf-resto__menu-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 18px; }

/* En-tête de « La carte » : titre à gauche, puis « Trier » collé à la recherche, le tout à droite. */
.wf-resto__menu-head {
	display: flex; align-items: center;
	gap: 10px; flex-wrap: wrap; margin-bottom: 18px;
}
/* Le titre pousse tout le reste vers la droite (margin auto). */
.wf-resto__menu-head .wf-resto__menu-title { margin: 0 auto 0 0; order: 0; }
.wf-sort { order: 1; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--wf-muted, #6b7177); }
.wf-sort__lbl { font-weight: 600; }
.wf-sort__sel {
	appearance: none; -webkit-appearance: none;
	border: 1px solid #e3e5e8; background-color: #fff; border-radius: 10px;
	padding: 8px 32px 8px 12px; font-size: .9rem; font-weight: 600; color: #2D2E33; cursor: pointer;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7177' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
}
.wf-sort__sel:hover { border-color: #c9ccd1; }
.wf-sort__sel:focus-visible { outline: 2px solid var(--wf-blue); outline-offset: 1px; }

/* Recherche de plat + masquage combiné (catégorie / recherche) */
.wf-dish--hcat, .wf-dish--hsearch { display: none !important; }
.wf-dish-search { order: 2; flex: 1 1 220px; max-width: 320px; }
.wf-dish-search__input {
	width: 100%; border: 1px solid #e3e5e8; border-radius: 10px;
	padding: 8px 14px; font-size: .9rem; font-family: inherit; background: #fff;
}
.wf-dish-search__input:focus-visible { outline: 2px solid var(--wf-blue); outline-offset: 1px; }
.wf-deliv-eta { color: var(--wf-muted, #6b7177); font-weight: 600; white-space: nowrap; }

/* ===== Avis clients ===== */
/* Section avis masquée en bas de fiche (demande client). Retirer cette ligne pour la réafficher. */
.wf-reviews { display: none !important; }
.wf-reviews { max-width: 720px; margin: 36px 0 8px; }
.wf-reviews__title { font-size: var(--wf-fs-section, 1.5rem); font-weight: 700; margin: 0 0 12px; }
.wf-reviews__summary { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wf-reviews__note { font-size: 1.4rem; font-weight: 800; }
.wf-rv-star { color: #d7d9dd; }
.wf-rv-star.is-on { color: #f5a623; }
.wf-reviews__count { color: var(--wf-muted, #6b7177); font-size: .9rem; }
.wf-reviews__empty { color: var(--wf-muted, #6b7177); }
.wf-rv-form { background: #f7f8fa; border: 1px solid #eceef1; border-radius: 14px; padding: 16px; margin: 12px 0 18px; display: flex; flex-direction: column; gap: 10px; }
.wf-rv-form__stars { display: flex; gap: 4px; }
.wf-rv-pick { border: 0; background: none; font-size: 1.8rem; line-height: 1; color: #d7d9dd; cursor: pointer; padding: 0; transition: color .1s; }
.wf-rv-pick.is-on { color: #f5a623; }
.wf-rv-form__text { border: 1px solid #e3e5e8; border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: .95rem; resize: vertical; }
.wf-rv-form__submit { align-self: flex-start; border: 0; background: var(--wf-blue, #1d3af0); color: #fff; border-radius: 10px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.wf-rv-form__submit:disabled { opacity: .5; cursor: default; }
.wf-rv-form__msg { font-size: .85rem; color: #c0392b; }
/* Tags rapides d'avis */
.wf-rv-form__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-rv-tag { border: 1.5px solid #d9dce1; background: #fff; color: #4a4d52; border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .12s; }
.wf-rv-tag:hover { border-color: var(--wf-blue, #0027A0); }
.wf-rv-tag.is-on { background: var(--wf-blue, #0027A0); border-color: var(--wf-blue, #0027A0); color: #fff; }
.wf-rv__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wf-rv-tagchip { font-size: .76rem; font-weight: 600; color: #12329c; background: #e7edff; border-radius: 999px; padding: 3px 9px; }
/* Photo d'avis */
.wf-rv-form__photolbl { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; border: 1.5px dashed #c9ccd2; border-radius: 12px; padding: 9px 14px; font-size: .88rem; font-weight: 600; color: #4a4d52; cursor: pointer; }
.wf-rv-form__photolbl svg { width: 1.1em; height: 1.1em; }
.wf-rv-form__photolbl input[type="file"] { display: none; }
.wf-rv__photo { display: inline-block; margin-top: 8px; border-radius: 12px; overflow: hidden; max-width: 220px; }
.wf-rv__photo img { display: block; width: 100%; height: auto; }
.wf-reviews__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.wf-rv__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wf-rv__stars .wf-rv-star { font-size: .85rem; }
.wf-rv__date { color: var(--wf-muted, #6b7177); font-size: .82rem; }
.wf-rv__text { margin: 4px 0 0; color: #2a2f37; line-height: 1.5; }

/* Onglets catégories — mobile : pills sur une ligne, scroll horizontal */
.wf-resto__filters {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	gap: 8px;
	margin: 0 0 22px;
	padding-bottom: 6px;
	scrollbar-width: none;
}
.wf-resto__filters::-webkit-scrollbar { display: none; }
.wf-filter {
	flex: 0 0 auto;
	white-space: nowrap;
	border: 1.5px solid #d9d9d9;
	background: #fff;
	color: var(--wf-ink);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
.wf-filter:hover { border-color: #9aa0a6; }
.wf-filter.is-active {
	background: var(--wf-blue);
	border-color: var(--wf-blue);
	color: #fff;
}
.wf-filter__n { color: var(--wf-muted); font-weight: 600; }
.wf-filter.is-active .wf-filter__n { color: rgba(255,255,255,.75); }

/* Desktop : catégories en colonne à gauche, plats à droite (maquette) */
@media (min-width: 961px) {
	.wf-resto__alacarte {
		display: grid;
		grid-template-columns: 200px 1fr;
		column-gap: 36px;
		align-items: start;
	}
	.wf-resto__alacarte .wf-resto__menu-head { grid-column: 1 / -1; }
	.wf-resto__alacarte .wf-resto__filters {
		flex-direction: column;
		overflow: visible;
		position: sticky;
		top: 24px;
		gap: 4px;
		padding-bottom: 0;
	}
	.wf-resto__alacarte .wf-filter {
		border: 0;
		background: none;
		border-radius: 8px;
		width: 100%;
		text-align: left;
		padding: 9px 14px;
	}
	.wf-resto__alacarte .wf-filter:hover { background: #f3f3f3; }
	.wf-resto__alacarte .wf-filter.is-active { background: var(--wf-blue); color: #fff; }
}

/* ---- Grilles produits ---- */
.wf-resto__grid {
	display: grid;
	gap: 28px 24px;
}
.wf-resto__grid--3 { grid-template-columns: repeat(3, 1fr); }

.wf-dish { min-width: 0; position: relative; }
/* Cœur « plat favori » (overlay sur la carte-plat). */
.wf-dish__fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #e2492b; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .12s; }
.wf-dish__fav svg { width: 18px; height: 18px; }
.wf-dish__fav:hover { transform: scale(1.08); }
.wf-favd__empty { color: var(--wf-muted, #6b7280); text-align: center; padding: 12px 0; }
.wf-dish__media { display: block; border-radius: 12px; overflow: hidden; }
.wf-dish__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
/* Repli quand le plat n'a pas de photo : bloc de marque au lieu de l'image cassée. */
.wf-dish__media--noimg { position: relative; aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 14px; background: linear-gradient(135deg, #eef1fb 0%, #e7ecfa 100%); color: var(--wf-blue, #0027A0); }
.wf-dish__noimg svg { width: 34px; height: 34px; opacity: .85; }
.wf-dish__noimg-name { font-weight: 700; font-size: .95rem; color: #2D2E33; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wf-dish__name { font-size: 1.05rem; font-weight: 600; margin: 12px 0 4px; }
.wf-dish__ingredients { font-size: .82rem; color: var(--wf-muted, #6b7177); line-height: 1.35; margin: 0 0 6px; }

/* Plats à formats (x6 / x12 / x20…) — sélecteur en grille : format au-dessus, prix en gras. */
.wf-dish__formats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
	gap: 8px; margin-top: 10px;
}
.wf-portion {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	border: 1.5px solid var(--wf-blue, #1d3af0); background: #fff; color: var(--wf-blue, #1d3af0);
	border-radius: 14px; padding: 9px 10px; font: inherit; text-align: center; cursor: pointer;
	transition: background .12s, color .12s, box-shadow .12s;
}
.wf-portion:hover { background: var(--wf-blue, #1d3af0); color: #fff; box-shadow: 0 4px 12px rgba( 0, 39, 160, .18 ); }
.wf-portion__lbl { font-size: .8rem; font-weight: 700; text-transform: none; }
.wf-portion__price { font-size: .95rem; font-weight: 800; }
.wf-portion.is-adding { opacity: .6; }
.wf-portion.is-added { background: #1a8a3c; border-color: #1a8a3c; color: #fff; }

.wf-dish__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.wf-dish__price { font-size: .95rem; color: var(--wf-ink); }
.wf-dish__price del { color: var(--wf-muted); font-weight: 400; margin-right: 4px; }
.wf-dish__soldout { font-size: .85rem; font-weight: 700; color: #c0392b; background: #fdecea; border-radius: 999px; padding: 5px 12px; }
/* Plat épuisé (étiquette en rupture) : montré grisé, rassure le client que c'est temporaire. */
.wf-dish--off .wf-dish__media { opacity: .5; filter: grayscale(.35); }
.wf-dish--off .wf-dish__name { color: #8a8f95; }

/* Sélecteur de quantité « − 0 + » */
.wf-qty {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.wf-qty__btn {
	width: 26px; height: 26px;
	border: 1px solid var(--wf-line);
	background: #fff;
	border-radius: 6px;
	font-size: 1rem;
	line-height: 1;
	color: var(--wf-ink);
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background .15s, border-color .15s;
}
.wf-qty__btn:hover { border-color: #bcbcbc; }
.wf-qty__val { min-width: 16px; text-align: center; font-weight: 600; font-size: .95rem; }
.wf-qty.is-active .wf-qty__val { color: var(--wf-blue); }
.wf-qty__trash {
	display: none;
	background: none;
	border: 0;
	font-size: .95rem;
	line-height: 1;
	cursor: pointer;
	padding: 2px 4px;
	margin-left: 2px;
	opacity: .7;
}
.wf-qty__trash:hover { opacity: 1; }
.wf-qty.has-item .wf-qty__trash { display: inline-flex; align-items: center; }
.wf-qty.is-busy { opacity: .5; pointer-events: none; }
/* Le bouton « − » devient une poubelle quand il reste 1 unité → l'ancien bouton poubelle est retiré. */
.wf-qty__trash { display: none !important; }
.wf-qty__minus svg { display: block; }
.wf-qty__minus.is-trash { color: #c0392b; }

/* Toggle Livraison / À emporter (fiche) */
.wf-ordertype { display: flex; gap: 4px; background: #f2f3f5; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.wf-ordertype__btn { flex: 1; border: 0; background: none; border-radius: 9px; padding: 9px 8px; font-size: .9rem; font-weight: 600; color: #6b7177; cursor: pointer; transition: background .12s, color .12s; }
.wf-ordertype__btn.is-active { background: #fff; color: #2D2E33; box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.wf-ordertype__btn:hover:not(.is-active) { color: #2D2E33; }
.wf-qty.is-off { opacity: .35; pointer-events: none; }

/* ---- Horaires ---- */
.wf-resto__hours { margin-top: 4px; font-size: .88rem; }
.wf-resto__hours summary { cursor: pointer; font-weight: 600; }
.wf-resto__hours ul { list-style: none; margin: 12px 0 0; padding: 0; }
.wf-resto__hours li {
	display: flex; justify-content: space-between;
	padding: 6px 0; border-bottom: 1px solid var(--wf-line);
}
.wf-resto__hours li.is-today { font-weight: 700; }
.wf-resto__hours li.is-off span:last-child { color: var(--wf-muted); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.wf-resto__head { grid-template-columns: 1fr; }
	.wf-resto__map { height: 220px; }
	.wf-resto__grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.wf-resto { padding: 0 16px; }
	.wf-resto__grid--3 { grid-template-columns: repeat(2, 1fr); }
	.wf-resto__name { font-size: 1.4rem; }
}

/* =====================================================================
 * SYSTÈME TYPO & ESPACEMENT (normalise tous les éléments Livré Malin)
 * Placé en fin de feuille : uniformise les valeurs ad hoc définies plus haut.
 * =================================================================== */
:root {
	/* Échelle fluide : mobile → desktop */
	--wf-fs-hero:    clamp(1.75rem, 1.25rem + 1.8vw, 2.5rem);   /* nom du restaurant */
	--wf-fs-section: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); /* titres de section */
	--wf-fs-title:   clamp(1.0625rem, 1rem + .3vw, 1.1875rem);  /* titres de carte */
	--wf-fs-base:    1rem;        /* 16px */
	--wf-fs-sm:      0.9375rem;   /* 15px */
	--wf-fs-xs:      0.8125rem;   /* 13px */
	--wf-lh-tight:   1.2;
	--wf-lh:         1.55;
}

/* Le conteneur YOOtheme gère largeur + gouttières : pas de double padding.
   (.wf-sub exclu : c'est une CARTE avec son propre padding interne.) */
.wf-nearby, .wf-favs, .wf-zone, .wf-cats, .wf-track, .wf-reorder {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

/* Titres de section — même taille/graisse/rythme partout */
.wf-nearby__title, .wf-resto__menu-title, .wf-favs__title,
.wf-track__title, .wf-zone__title, .wf-cats__title, .wf-reorder__title {
	font-size: var(--wf-fs-section);
	font-weight: 700;
	line-height: var(--wf-lh-tight);
	letter-spacing: -0.01em;
	margin: 0 0 18px;
}

/* Titres de carte */
.wf-nc__name, .wf-dish__name, .wf-fav__name, .wf-sub__title, .wf-drawer__head h3 {
	font-size: var(--wf-fs-title);
	font-weight: 700;
	line-height: 1.3;
}

/* Nom du restaurant (fiche) */
.wf-resto__name { font-size: var(--wf-fs-hero); letter-spacing: -0.02em; }

/* Corps de texte : plus lisible (15-16px au lieu de 13-14px) */
.wf-resto__desc, .wf-drawer__empty p { font-size: var(--wf-fs-base); line-height: var(--wf-lh); }
.wf-resto__addr, .wf-resto__status, .wf-resto__delivery-result,
.wf-nc__fee, .wf-dish__price, .wf-zone__result, .wf-sub__list li,
.wf-drawer__info strong, .wf-addr__pill, .wf-addr__item, .wf-favs__empty {
	font-size: var(--wf-fs-sm);
}
.wf-nc__meta, .wf-fav__meta, .wf-track__row small, .wf-reorder__info small,
.wf-addr__txt small, .wf-drawer__info small, .wf-nearby__status,
.wf-nearby__hint, .wf-cat__name, .wf-filter, .wf-track__badge {
	font-size: var(--wf-fs-xs);
}

/* Rythme vertical homogène entre sections */
.wf-resto__menu, .wf-nearby, .wf-favs, .wf-track, .wf-reorder, .wf-cats { margin-top: 40px; }
.wf-resto__menu:first-child, .wf-nearby:first-child { margin-top: 0; }

/* Prix : léger contraste de graisse pour la lecture */
.wf-dish__price, .wf-nc__fee strong, .wf-drawer__total { font-weight: 700; }

/* ===== Barre tri/filtre « À proximité » ===== */
.wf-nearby__tools {
	display: flex; align-items: center; gap: 12px;
	flex-wrap: wrap; margin: 0 0 18px;
}
.wf-chip {
	border: 1.5px solid #d9d9d9; background: #fff; color: var(--wf-ink, #2D2E33);
	border-radius: 999px; padding: 8px 16px;
	font-size: var(--wf-fs-xs); font-weight: 600; cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
.wf-chip:hover { border-color: #9aa0a6; }
.wf-chip.is-on { background: var(--wf-blue, #0027A0); border-color: var(--wf-blue, #0027A0); color: #fff; }
.wf-nearby__sortwrap { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.wf-nearby__sortlabel { font-size: var(--wf-fs-xs); color: var(--wf-muted, #6b7280); }
.wf-nearby__sort, .wf-nearby__cuisine, .wf-nearby__diet {
	border: 1.5px solid #d9d9d9; border-radius: 999px;
	padding: 7px 12px; font-size: var(--wf-fs-xs); font-weight: 600;
	background: #fff; color: var(--wf-ink, #2D2E33); cursor: pointer;
}
.wf-nearby__none { color: var(--wf-muted, #6b7280); font-size: var(--wf-fs-sm); }
@media (max-width: 560px) {
	.wf-nearby__sortwrap { margin-left: 0; }
}

/* ===== Accessibilité : focus visible cohérent ===== */
.wf-qty__btn:focus-visible, .wf-filter:focus-visible, .wf-chip:focus-visible,
.wf-addr__pill:focus-visible, .wf-cart-fab:focus-visible, .wf-nc:focus-visible,
.wf-drawer__checkout:focus-visible, .wf-sub__btn:focus-visible,
.wf-reorder__btn:focus-visible, .wf-zone__form button:focus-visible,
.wf-nearby__sort:focus-visible, .wf-resto__fav:focus-visible {
	outline: 3px solid var(--wf-blue, #0027A0);
	outline-offset: 2px;
	border-radius: 8px;
}
.wf-nc:focus-visible { outline-offset: 4px; }

/* ===== Respect de « animations réduites » ===== */
@media (prefers-reduced-motion: reduce) {
	.wf-drawer__panel, .wf-drawer__overlay, .wf-cart-fab,
	.wf-nc__img, .wf-resto__fav, .wf-cat__img, .wf-chip, .wf-filter {
		transition: none !important;
	}
	.wf-skel__img, .wf-skel__l, .wf-skel__s { animation: none !important; background: #eee !important; }
	.wf-cart-fab:hover, .wf-resto__fav:hover, .wf-cat:hover .wf-cat__img { transform: none !important; }
}

/* ===== Masquer la barre de recherche du header (demande client) ===== */
.uk-navbar-item.widget_search, .tm-navbar .widget_search, .uk-navbar .uk-search-navbar { display: none !important; }

/* Badge panier masqué quand vide (optionnel — retirer si tu veux garder « 0 ») */
.wf-cart-badge--empty { display: none !important; }

/* Dashboard vendeur WCFM (page « Store Manager », id 17) :
   masque header + footer du thème pour une vue back-office épurée. */
body.page-id-17 .tm-header,
body.page-id-17 .tm-header-mobile,
body.page-id-17 .tm-toolbar,
body.page-id-17 footer,
body.page-id-17 .uk-sticky-placeholder {
	display: none !important;
}

/* Badge compteur sur l'icône panier de la navigation. */
.wf-cart-icon-link { position: relative; overflow: visible; }
.wf-cart-icon-link .wf-cart-badge {
	position: absolute; top: -7px; right: -9px;
	min-width: 16px; height: 16px; border-radius: 999px;
	background: var(--wf-cart-badge-bg, var(--wf-blue, #0027A0)); color: #fff;
	font-size: .62rem; font-weight: 700; line-height: 1;
	display: flex; align-items: center; justify-content: center;
	padding: 0 4px; pointer-events: none; box-sizing: border-box;
}

/* ===== Compte / Connexion (wf_account) ===== */
.wf-account {
	display: inline-flex; align-items: center; gap: 8px;
	text-decoration: none; color: #2D2E33; font-weight: 600; font-size: .95rem;
	line-height: 1;
}
.wf-account:hover { opacity: .8; }
.wf-account__ico { display: inline-flex; }

/* ===== Élément Hero : recherche d'adresse (carte) ===== */
.wf-heroaddr { width: 100%; }
.wf-heroaddr__card {
	background: #fff; border: 1px solid #eef0f4; border-radius: 20px;
	padding: 30px 28px; box-shadow: 0 18px 50px rgba( 0, 0, 0, .08 );
}
.wf-heroaddr__title {
	text-align: center; margin: 0 0 18px; color: #2D2E33;
	font-size: 1.12rem; font-weight: 500; line-height: 1.35;
}
.wf-heroaddr__form {
	position: relative; display: flex; align-items: center; gap: 8px;
	border: 1px solid #e3e5e8; border-radius: 999px;
	padding: 6px 6px 6px 18px; background: #fff;
	transition: border-color .12s, box-shadow .12s;
}
.wf-heroaddr__form:focus-within {
	border-color: var(--wf-blue, #0027A0); box-shadow: 0 0 0 3px rgba( 0, 39, 160, .10 );
}
.wf-heroaddr__pin { display: inline-flex; flex: none; color: var(--wf-blue, #0027A0); font-size: 1.3rem; }
.wf-heroaddr__input {
	flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
	font: inherit; font-size: 1rem; color: #2D2E33; padding: 12px 4px;
}
.wf-heroaddr__input::placeholder { color: #9aa0a6; }
/* Champ code postal (dans la pastille, séparé par un trait). */
.wf-heroaddr__cp {
	flex: 0 0 108px; width: 108px; min-width: 0; border: 0; outline: 0; background: transparent;
	border-left: 1px solid #e3e5e8; text-align: center;
	font: inherit; font-size: 1rem; color: #2D2E33; padding: 12px 8px;
}
.wf-heroaddr__cp::placeholder { color: #9aa0a6; font-size: .92rem; }
.wf-heroaddr__btn {
	flex: none; border: 0; cursor: pointer; border-radius: 999px;
	background: var(--wf-blue, #0027A0); color: #fff;
	padding: 13px 30px; font: inherit; font-size: 1rem; font-weight: 700;
	transition: filter .12s;
}
.wf-heroaddr__btn:hover { filter: brightness( 1.08 ); }
.wf-heroaddr__btn:disabled, .wf-heroaddr__btn.is-busy { opacity: .7; cursor: default; }
.wf-heroaddr__err { margin: 10px 2px 0; color: #c0392b; font-size: .9rem; text-align: center; }
.wf-heroaddr__result {
	margin: 12px 2px 0; padding: 10px 14px; border-radius: 12px;
	font-size: .92rem; font-weight: 600; line-height: 1.35;
	display: flex; align-items: center; gap: 8px 10px; justify-content: center; flex-wrap: wrap; text-align: left;
}
.wf-heroaddr__result svg { flex: none; font-size: 1.2em; }
.wf-heroaddr__result.is-ok { background: #e6f4ea; color: #1f7a34; }
.wf-heroaddr__result.is-ko { background: #fdecea; color: #c0392b; }
/* Bouton « Voir les restaurants » dans le message de résultat. */
.wf-heroaddr__go { flex: none; text-decoration: none; white-space: nowrap; background: var(--wf-blue, #0027A0); color: #fff; font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; }
.wf-heroaddr__go:hover { filter: brightness( 1.08 ); }
/* Hero « épuré » : la recherche n'est pas dans un encadré (pas de box-dans-la-box). */
.wf-heroaddr--flat .wf-heroaddr__card { background: transparent; border: 0; box-shadow: none; padding: 0; }
.wf-hero__search { margin-top: 4px; }
/* Sélecteur Livraison / À emporter (hero). */
.wf-heroaddr__modes { display: flex; gap: 8px; justify-content: center; margin: 0 0 12px; }
.wf-heroaddr__mode { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #e0e2e6; background: #fff; color: #2D2E33; border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; transition: border-color .12s, background .12s, color .12s; }
.wf-heroaddr__mode svg { width: 1.1em; height: 1.1em; }
.wf-heroaddr__mode:hover { border-color: #b9c0e8; }
.wf-heroaddr__mode.is-active { border-color: var(--wf-blue, #0027A0); background: #eef1fb; color: var(--wf-blue, #0027A0); }
/* En-tête « Adresses récentes » dans la liste de suggestions. */
.wf-heroaddr__recent-h { padding: 8px 16px 4px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #9aa0a6; }

/* ===== Favoris du restaurant (fiche), rail au-dessus de « La carte » ===== */
.wf-resto__favs { margin: 8px 0 24px; }
.wf-resto__favs-title { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; color: #2D2E33; }
.wf-resto__favs-title svg { color: #e2492b; }
.wf-resto__favs-list { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.wf-favdish {
	scroll-snap-align: start; flex: 0 0 auto; width: 150px; text-align: left; cursor: pointer;
	background: #fff; border: 1px solid #ececec; border-radius: 14px; padding: 0; overflow: hidden;
	display: flex; flex-direction: column; font: inherit; transition: box-shadow .12s, transform .12s;
}
.wf-favdish:hover { box-shadow: 0 8px 22px rgba( 0, 0, 0, .10 ); transform: translateY( -2px ); }
.wf-favdish:focus-visible { outline: 2px solid var(--wf-blue, #0027A0); outline-offset: 2px; }
.wf-favdish__img { display: block; width: 100%; height: 92px; background: #eef1fb center / cover no-repeat; }
.wf-favdish__name { padding: 8px 10px 0; font-size: .9rem; font-weight: 600; color: #2D2E33; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wf-favdish__price { padding: 2px 10px 10px; font-size: .85rem; color: var(--wf-muted, #6b7177); }
.wf-dish--flash { animation: wf-flash 1.5s ease; }
@keyframes wf-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba( 0, 39, 160, 0 ); } 20% { box-shadow: 0 0 0 3px rgba( 0, 39, 160, .5 ); } }
.wf-heroaddr__hint { text-align: center; margin: 14px 0 0; color: var(--wf-muted, #6b7177); font-size: .95rem; }
.wf-heroaddr__login { color: var(--wf-blue, #0027A0); font-weight: 600; text-decoration: none; }
.wf-heroaddr__login:hover { text-decoration: underline; }
/* Autocomplétion */
.wf-heroaddr__suggest {
	position: absolute; top: calc( 100% + 6px ); left: 0; right: 0; z-index: 30;
	background: #fff; border: 1px solid #e3e5e8; border-radius: 14px; overflow: hidden;
	box-shadow: 0 12px 30px rgba( 0, 0, 0, .12 );
}
.wf-heroaddr__sug { padding: 11px 16px; font-size: .92rem; color: #2D2E33; cursor: pointer; }
.wf-heroaddr__sug:hover { background: #f2f4f8; }
@media (max-width: 560px) {
	.wf-heroaddr__card { padding: 22px 16px; }
	/* Formulaire empilé : adresse, (suggestions), code postal, bouton — champs arrondis séparés. */
	.wf-heroaddr__form { flex-direction: column; align-items: stretch; gap: 8px; border-radius: 16px; padding: 10px; }
	.wf-heroaddr__pin { display: none; }
	.wf-heroaddr__input, .wf-heroaddr__cp {
		flex: 1 1 auto; width: auto; border: 1px solid #e3e5e8; border-radius: 10px;
		text-align: left; padding: 13px 14px;
	}
	.wf-heroaddr__input { order: 0; }
	.wf-heroaddr__suggest { position: static; order: 1; box-shadow: none; }
	.wf-heroaddr__cp { order: 2; }
	.wf-heroaddr__btn { order: 3; width: 100%; padding: 14px 20px; }
}
