/**
 * Frontend styles for Feel Good by So — Bookings.
 */

/* Typographie : Montserrat (Google Fonts, handle `fgby-font-montserrat`) sur tout le texte des blocs plugin. */
.fgby-massage-hub,
.fgby-massage-hub button,
.fgby-massage-hub input,
.fgby-booking-form,
.fgby-booking-form button,
.fgby-booking-form input,
.fgby-booking-form select,
.fgby-booking-form textarea,
.fgby-yoga-week,
.fgby-yoga-week button,
.fgby-yoga-landing,
.fgby-yoga-landing button,
.fgby-yoga-course-card,
.fgby-yoga-course-card a,
.fgby-yoga-course-card .button,
.fgby-yoga-product-agenda,
.fgby-yoga-confirmation,
.fgby-yoga-reservation,
.fgby-my-account,
.fgby-my-account button,
.fgby-my-account input,
.fgby-products-shortcode {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.fgby-booking-form {
	--fgby-accent:    #6cae6c;
	--fgby-accent-dk: #4a8a4a;
	--fgby-warning:   #b06f00;
	--fgby-danger:    #b32d2e;
	--fgby-grey:      #f0f0f1;
	--fgby-grey-mid:  #c9cdd3;
	--fgby-text:      #2c3338;

	max-width: 720px;
	width: 100%;
	min-width: 0; /* flex/grid child: allow shrink inside .summary */
	margin: 16px 0;
	color: var(--fgby-text);
	box-sizing: border-box;
}

.fgby-booking-form form.cart.fgby-cart-form {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

/* Colonne résumé produit (Inspiro, Storefront, etc.) : sans min-width:0 le flex déborde. */
.woocommerce.single-product div.product .summary,
.woocommerce div.product .summary.entry-summary {
	min-width: 0;
}

.single-product .summary .fgby-booking-form,
.woocommerce .product .summary .fgby-booking-form {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	align-self: stretch;
}

.fgby-step {
	background: #fff;
	border: 1px solid var(--fgby-grey-mid);
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 12px;
	min-width: 0;
	box-sizing: border-box;
}
.fgby-step strong {
	display: block;
	font-size: 16px;
	margin-bottom: 8px;
}

.fgby-my-account-hint {
	margin: -4px 0 12px 0;
	font-size: 14px;
	line-height: 1.4;
	color: #555;
}
.fgby-my-account-hint__link {
	font-weight: 600;
	color: var(--fgby-accent-dk, #4a8a4a);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.fgby-my-account-hint__link:hover {
	color: var(--fgby-accent, #6cae6c);
}
.fgby-guest-checkout-note {
	margin: 0.35em 0 0;
	font-size: 0.9em;
	line-height: 1.45;
	color: #555;
}

.fgby-my-account-hint__sep {
	color: #999;
	font-weight: 400;
}

/* Some themes force display on all divs and break the native [hidden] attribute. */
.fgby-booking-form .fgby-step-summary[hidden] {
	display: none !important;
	visibility: hidden !important;
}

/* Calendar step is visible by default; theme guards in case [hidden] is overridden. */
.fgby-booking-form .fgby-step-calendar.fgby-step-calendar--visible,
.fgby-booking-form .fgby-step-calendar:not([hidden]) {
	display: block !important;
	visibility: visible !important;
}

/* Locations legend (only shown when 2+ locations) */
.fgby-locations-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	padding: 8px 0 12px;
	font-size: 13px;
	color: #555;
}
.fgby-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.fgby-legend-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Calendar */
.fgby-calendar {
	margin-top: 4px;
}
.fgby-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.fgby-calendar-header .fgby-cal-nav {
	background: none;
	border: 1px solid var(--fgby-grey-mid);
	border-radius: 6px;
	padding: 6px 14px;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}
.fgby-calendar-header .fgby-cal-nav:disabled {
	opacity: .35;
	cursor: not-allowed;
}
.fgby-calendar-title {
	font-weight: 600;
	font-size: 17px;
	text-transform: capitalize;
}

.fgby-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.fgby-calendar-grid .fgby-cal-weekday {
	text-align: center;
	font-size: 11px;
	color: #888;
	text-transform: uppercase;
	padding: 6px 0;
	letter-spacing: .04em;
}
.fgby-calendar-grid .fgby-cal-day {
	aspect-ratio: 1 / 1;
	border: 1px solid transparent;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	cursor: default;
	transition: background .12s ease, transform .08s ease;
	background: var(--fgby-grey);
	color: #b6b6b6;
}
.fgby-calendar-grid .fgby-cal-day.fgby-cal-available {
	background: #e9f7e9;
	color: #1f5b1f;
	font-weight: 600;
	cursor: pointer;
}
.fgby-calendar-grid .fgby-cal-day.fgby-cal-available:hover {
	background: var(--fgby-accent);
	color: #fff;
	transform: translateY(-1px);
}
.fgby-calendar-grid .fgby-cal-day.fgby-cal-selected {
	background: var(--fgby-accent);
	color: #fff;
	box-shadow: 0 0 0 2px rgba(108,174,108,.4);
}
.fgby-calendar-grid .fgby-cal-day.fgby-cal-empty {
	background: transparent;
	cursor: default;
}

/* Day slot pills: [HH:MM] · ● Lieu */
.fgby-day-slots {
	margin-top: 18px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.fgby-day-slots .fgby-slot {
	display: grid;
	grid-template-columns: 52px 12px minmax(0, 1fr);
	align-items: center;
	column-gap: 8px;
	border: 1px solid var(--fgby-grey-mid);
	background: #fff;
	border-radius: 999px;
	padding: 8px 14px 8px 12px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--fgby-text);
	transition: all .12s ease;
	line-height: 1.2;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	justify-content: flex-start;
}
.fgby-day-slots .fgby-slot:hover {
	border-color: var(--fgby-accent);
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.fgby-day-slots .fgby-slot.fgby-slot-selected {
	background: var(--fgby-accent);
	border-color: var(--fgby-accent);
	color: #fff;
}
.fgby-day-slots .fgby-slot.fgby-slot-selected .fgby-slot-loc {
	color: #fff;
}
.fgby-slot-time {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}
.fgby-slot-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--fgby-accent);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.fgby-slot-loc {
	font-size: 12px;
	color: #555;
	font-weight: 500;
	min-width: 0;
	max-width: 100%;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: clip;
}
.fgby-slot-loc.fgby-slot-loc--truncated {
	text-overflow: ellipsis;
}

/* Hub massages : lien créneau (heure + prestation + lieu) */
.fgby-day-slots .fgby-slot--hub {
	grid-template-columns: 52px 12px minmax(0, 1fr);
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
}
.fgby-day-slots .fgby-slot--hub.fgby-slot--hub--solo {
	grid-template-columns: 52px 12px minmax(0, 1fr);
}
.fgby-day-slots .fgby-slot--hub.fgby-slot--hub--multi {
	grid-template-columns: 52px 12px minmax(0, 1fr) minmax(0, 1fr);
}
.fgby-day-slots button.fgby-slot--hub {
	-webkit-appearance: none;
	appearance: none;
	font: inherit;
	width: 100%;
	text-align: left;
}
.fgby-slot-hub-product {
	font-size: 12px;
	font-weight: 600;
	color: #2c3338;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}
.fgby-slot-service {
	font-size: 12px;
	font-weight: 700;
	color: #2c3338;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fgby-day-slots .fgby-slot.fgby-slot-selected .fgby-slot-service {
	color: #fff;
}

/* Page hub [fgby_massages] : liste à gauche, calendrier à droite */
/*
 * Police cible : Montserrat (Google Fonts). Les sélecteurs `body …` / `body .entry-content …` /
 * `.woocommerce …` limitent les écrasements du thème / Woo sur les boutons et le texte d’aide.
 */
.fgby-massage-hub {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

body .fgby-massage-hub,
body .fgby-massage-hub h1,
body .fgby-massage-hub h2,
body .fgby-massage-hub h3,
body .fgby-massage-hub p,
body .fgby-massage-hub a,
body .fgby-massage-hub a.button,
body .fgby-massage-hub a.fgby-massage-hub-card__btn,
body .fgby-massage-hub button,
body .fgby-massage-hub button.button,
body .fgby-massage-hub input,
body .fgby-massage-hub select,
body .fgby-massage-hub textarea,
body .fgby-massage-hub label,
body .fgby-massage-hub span,
body .fgby-massage-hub div,
body .fgby-massage-hub li,
body .fgby-massage-hub strong,
body .fgby-massage-hub em,
body .fgby-massage-hub small,
body .fgby-massage-hub .fgby-booking-form,
body .fgby-massage-hub .fgby-calendar,
body .fgby-massage-hub .fgby-calendar-title,
body .fgby-massage-hub .fgby-cal-nav,
body .fgby-massage-hub .fgby-cal-weekday,
body .fgby-massage-hub .fgby-cal-day,
body .fgby-massage-hub .fgby-day-slots,
body .fgby-massage-hub .fgby-slot,
body .fgby-massage-hub .fgby-massage-hub__hint,
body .fgby-massage-hub .fgby-calendar-slots-msg,
body .fgby-massage-hub .fgby-locations-legend,
body .fgby-massage-hub .fgby-legend-item,
body .entry-content .fgby-massage-hub,
body .entry-content .fgby-massage-hub p,
body .entry-content .fgby-massage-hub a.button,
body .entry-content .fgby-massage-hub a.fgby-massage-hub-card__btn,
body .entry-content .fgby-massage-hub button.button,
body .entry-content .fgby-massage-hub .fgby-massage-hub__hint,
body .entry-content .fgby-massage-hub .fgby-calendar-slots-msg,
body .entry-content .fgby-massage-hub .fgby-calendar-title,
.woocommerce .fgby-massage-hub a.button,
.woocommerce .fgby-massage-hub button.button {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}
.fgby-massage-hub__grid {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
	gap: 28px 32px;
	/* 0.6.30 : align-items:start — la colonne calendrier ne s’étire pas sur toute la hauteur de la liste. */
	align-items: start;
}
.fgby-massage-hub__col--list,
.fgby-massage-hub__col--calendar {
	align-self: start;
	min-width: 0;
}
/* Panneau calendrier : défile avec la page par défaut (pas de « sticky » dans le nom de classe). */
.fgby-massage-hub__calendar-panel,
.fgby-massage-hub__calendar-sticky {
	min-width: 0;
	display: flow-root;
	position: relative;
	top: auto;
	max-height: none;
	overflow: visible;
}
@media (min-width: 901px) {
	/* Opt-in uniquement : sticky_calendar="1" sur [fgby_massages] */
	.fgby-massage-hub--sticky-calendar .fgby-massage-hub__calendar-panel,
	.fgby-massage-hub--sticky-calendar .fgby-massage-hub__calendar-sticky {
		position: sticky;
		top: calc(1rem + var(--wp-admin--admin-bar--height, 0px));
		z-index: 2;
		max-height: min(100dvh - 2rem, 100vh - 2rem);
		overflow-y: auto;
		overflow-x: hidden;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}
}
.fgby-massage-hub__title {
	margin: 0 0 14px;
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.25;
}
.fgby-massage-hub__stack {
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.fgby-massage-hub-card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--fgby-grey-mid, #c9cdd3);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.fgby-massage-hub-card__thumb {
	display: block;
	flex: 0 0 150px;
	width: 150px;
	background: var(--fgby-grey, #f0f0f1);
	overflow: hidden;
	flex-shrink: 0;
}
.fgby-massage-hub-card__thumb img,
.fgby-massage-hub-card__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-height: 150px;
}
.fgby-massage-hub-card__thumb-placeholder {
	display: block;
	width: 100%;
	min-height: 150px;
	background: linear-gradient(145deg, #e9f7e9 0%, #dfeef0 100%);
}
.fgby-massage-hub-card__body {
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}
.fgby-massage-hub-card__title {
	margin: 0 0 6px;
	font-size: 1.05rem;
	line-height: 1.25;
	font-weight: 400;
}
.fgby-massage-hub-card__title a {
	color: inherit;
	text-decoration: none;
}
.fgby-massage-hub-card__title a:hover {
	color: var(--fgby-accent-dk, #4a8a4a);
	text-decoration: underline;
}
.fgby-massage-hub-card__loc {
	margin: 0 0 6px;
	font-size: 0.82rem;
	color: #4a4f55;
	line-height: 1.35;
}
.fgby-massage-hub-card--selected {
	border-color: var(--fgby-accent-dk, #4a8a4a);
	box-shadow: 0 2px 8px rgba(74, 138, 74, 0.18);
}
.fgby-massage-hub-card__pick-wrap {
	margin: 0 0 8px;
}
.fgby-massage-hub-card__pick {
	display: inline-block;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
	font-size: 12px;
	padding-top: 7px;
	padding-bottom: 7px;
	padding-left: 10px;
	padding-right: 10px;
	background: rgb(108, 174, 108);
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
}
.fgby-massage-hub-card__pick:hover {
	filter: brightness(0.96);
}

/* WC / thèmes : `.button` en `nowrap` → « Voir les créneaux pour ce massage » déborde sur mobile. */
body.woocommerce .fgby-massage-hub button.button.fgby-massage-hub-card__pick,
body .woocommerce .fgby-massage-hub button.button.fgby-massage-hub-card__pick,
body .entry-content .fgby-massage-hub button.button.fgby-massage-hub-card__pick {
	white-space: normal !important;
	overflow-wrap: anywhere !important;
	word-break: normal !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}
.fgby-massage-hub-card__excerpt {
	margin: 0 0 10px;
	font-size: 0.84rem;
	line-height: 1.4;
	color: #3c434a;
	flex: 1 1 auto;
}
.fgby-massage-hub-card__cta {
	margin: 0;
	margin-top: auto;
}
.fgby-massage-hub-card__btn {
	display: inline-block;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
	padding-top: 7px;
	padding-bottom: 7px;
	font-size: 12px;
}
.fgby-calendar-slots-msg {
	margin: 14px 0 0;
	font-size: 0.85rem;
	color: #4a4f55;
	line-height: 1.55;
	max-width: 42em;
	text-align: left;
	hyphens: auto;
	font-style: normal;
}

.fgby-massage-hub__hint {
	margin: 14px 0 0;
	font-size: 0.85rem;
	color: #4a4f55;
	line-height: 1.55;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	text-align: left;
	hyphens: none;
	-webkit-hyphens: none;
	overflow-wrap: break-word;
	word-break: normal;
	font-style: normal;
}

.fgby-booking-form--hub .fgby-day-slots > .fgby-massage-hub__hint {
	margin-top: 12px;
}

/* Message court « Choisissez un jour… » : une seule ligne (évite la coupure avant « créneaux »). */
.fgby-calendar-slots-msg.fgby-slots-msg--single-line,
.fgby-massage-hub__hint.fgby-slots-msg--single-line {
	white-space: nowrap;
	max-width: 100%;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
	overflow-x: hidden; /* pas de barre horizontale (évite overflow-x: auto) */
}

/* Hub massages : le titre « Prendre rendez-vous » est dans le même bloc que le calendrier
   pour qu’il suive le sticky / le scroll interne comme l’agenda. */
.fgby-booking-form.fgby-booking-form--hub {
	margin-top: 0;
}
.fgby-booking-form--hub > .fgby-massage-hub__title--calendar {
	margin-top: 0;
}
.fgby-massage-hub__empty {
	margin: 0;
	color: #4a4f55;
}

@media (max-width: 900px) {
	/* Hub : une colonne + pas de débordement horizontal (cartes / grille créneaux). */
	.fgby-massage-hub__grid {
		grid-template-columns: 1fr;
		min-width: 0;
		width: 100%;
	}
	.fgby-massage-hub__col--list,
	.fgby-massage-hub__col--calendar {
		min-width: 0;
		max-width: 100%;
	}
	.fgby-massage-hub {
		min-width: 0;
		max-width: 100%;
		overflow-x: clip;
		box-sizing: border-box;
	}
	.fgby-massage-hub-card {
		flex-direction: column;
		align-items: stretch;
		border-radius: 14px;
	}
	.fgby-massage-hub-card__thumb {
		flex: 0 0 auto;
		width: 100%;
		max-height: 220px;
	}
	.fgby-massage-hub-card__thumb img,
	.fgby-massage-hub-card__thumb-img {
		width: 100%;
		min-height: 0;
		max-height: 220px;
		height: auto;
		object-fit: cover;
	}
	.fgby-massage-hub-card__thumb-placeholder {
		min-height: 160px;
		max-height: 220px;
	}
	.fgby-massage-hub-card__body {
		padding: 14px 16px 18px;
	}
	.fgby-massage-hub-card__title,
	.fgby-massage-hub-card__title a {
		font-size: 1.08rem;
		line-height: 1.3;
		word-wrap: break-word;
		overflow-wrap: anywhere;
	}
	.fgby-massage-hub-card__excerpt {
		overflow-wrap: anywhere;
		word-break: normal;
		white-space: normal;
		line-height: 1.45;
	}
	.fgby-massage-hub-card__pick,
	.fgby-massage-hub-card__btn {
		min-height: 44px;
		padding-top: 10px;
		padding-bottom: 10px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.fgby-massage-hub-card__cta {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.fgby-booking-form .fgby-day-slots {
		grid-template-columns: 1fr;
	}
	.fgby-booking-form .fgby-slot-loc {
		white-space: normal;
		overflow: hidden;
		overflow-wrap: anywhere;
		text-overflow: clip;
	}
	.fgby-day-slots .fgby-slot-hub-product,
	.fgby-day-slots .fgby-slot-service {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		overflow-wrap: anywhere;
	}

	.fgby-massage-hub-card__pick-wrap {
		min-width: 0;
		width: 100%;
		box-sizing: border-box;
	}
	.fgby-massage-hub-card__pick {
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
		white-space: normal !important;
		line-height: 1.25;
		padding-left: 10px;
		padding-right: 10px;
		font-size: clamp(11px, 2.9vw, 13px);
		hyphens: none;
		overflow-wrap: anywhere !important;
		word-break: normal !important;
		min-width: 0 !important;
	}

	body.woocommerce .fgby-massage-hub .fgby-booking-form--hub form.cart .fgby-step-summary button.single_add_to_cart_button.button.alt.fgby-submit-button,
	body .woocommerce .fgby-massage-hub .fgby-booking-form--hub form.cart .fgby-step-summary button.single_add_to_cart_button.button.alt.fgby-submit-button {
		white-space: normal !important;
		overflow-wrap: anywhere !important;
		line-height: 1.2 !important;
		padding-left: 10px !important;
		padding-right: 10px !important;
		min-height: 48px;
		align-items: center;
		justify-content: center;
		display: flex !important;
	}
	.fgby-day-session__cta {
		padding-left: 2px;
		padding-right: 2px;
		min-width: 0;
	}
	.fgby-day-session__reserve-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
		font-size: 9px;
		font-weight: 700;
		padding: 6px 4px;
		border-radius: 6px;
		letter-spacing: 0.02em;
		text-transform: none;
		white-space: normal !important;
		overflow-wrap: anywhere !important;
		word-break: normal !important;
		line-height: 1.2;
		text-align: center;
		overflow: hidden;
	}

	.woocommerce div.product.product-type-fgby_appointment .fgby-booking-form,
	.woocommerce div.product.product-type-fgby_appointment .fgby-booking-form .fgby-step {
		max-width: 100%;
		min-width: 0;
		overflow-x: clip;
	}
}

@media (max-width: 560px) {
	.fgby-day-slots {
		grid-template-columns: 1fr;
	}
	.fgby-day-slots .fgby-slot--hub {
		grid-template-columns: 48px 10px minmax(0, 1fr);
		padding: 8px 10px;
	}
	.fgby-day-slots .fgby-slot--hub.fgby-slot--hub--solo {
		grid-template-columns: 48px 10px minmax(0, 1fr);
	}
	.fgby-day-slots .fgby-slot--hub.fgby-slot--hub--multi {
		grid-template-columns: 48px 10px minmax(0, 1fr) minmax(0, 1fr);
	}
}

.fgby-summary {
	background: #f7faf7;
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 12px;
	font-size: 15px;
	line-height: 1.5;
}
.fgby-summary .fgby-summary-address {
	display: block;
	margin-top: 6px;
	color: #4a5448;
	font-size: 13px;
	line-height: 1.35;
}
.fgby-summary .fgby-summary-when {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	flex-wrap: nowrap;
	white-space: nowrap;
}
.fgby-summary .fgby-summary-time {
	display: inline !important;
	font-weight: 700;
	white-space: nowrap;
}
.fgby-payment-info {
	background: #fff8e6;
	border-left: 3px solid var(--fgby-warning);
	padding: 10px 12px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 14px;
}

/* Récapitulatif : CTA contenu dans le cadre (thèmes WC : float, largeur fixe, flex sans min-width). */
.fgby-booking-form .fgby-step.fgby-step-summary {
	padding-bottom: 28px;
	display: flow-root; /* isole les floats du thème */
	position: relative;
	overflow-x: clip;
}

.fgby-booking-form .fgby-submit-wrap {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	margin-top: 10px;
	flex: 0 0 auto;
	align-self: stretch;
}

.fgby-booking-form .fgby-step-summary .fgby-submit-button,
.fgby-booking-form .fgby-step-summary button.single_add_to_cart_button.fgby-submit-button {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
	float: none !important;
	clear: both !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-bottom: 2px;
	white-space: normal !important;
	overflow-wrap: anywhere !important;
	word-break: normal !important;
	text-align: center;
	position: relative !important;
	left: auto !important;
	right: auto !important;
	transform: none !important;
	flex: none !important;
	padding-left: 12px !important;
	padding-right: 12px !important;
	line-height: 1.25 !important;
}

/* Hub : spécificité > règles Woo type `form.cart .button` qui remettent nowrap / largeur fixe. */
body.woocommerce .fgby-massage-hub .fgby-booking-form--hub form.cart .fgby-step-summary button.single_add_to_cart_button.button.alt.fgby-submit-button,
body .woocommerce .fgby-massage-hub .fgby-booking-form--hub form.cart .fgby-step-summary button.single_add_to_cart_button.button.alt.fgby-submit-button,
body .entry-content .fgby-massage-hub .fgby-booking-form--hub form.cart .fgby-step-summary button.single_add_to_cart_button.fgby-submit-button {
	white-space: normal !important;
	overflow-wrap: anywhere !important;
	word-break: normal !important;
	max-width: 100% !important;
	min-width: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	padding-left: 12px !important;
	padding-right: 12px !important;
	line-height: 1.25 !important;
}

.fgby-products-shortcode {
	margin: 1.5em 0;
	clear: both;
}

.fgby-loading {
	color: #666;
	font-style: italic;
	padding: 8px 0;
}
.fgby-error {
	color: var(--fgby-danger);
	padding: 8px 0;
}

@media (max-width: 540px) {
	.fgby-day-slots {
		grid-template-columns: 1fr;
	}
	.fgby-calendar-grid .fgby-cal-day {
		font-size: 13px;
	}
	.fgby-day-slots .fgby-slot {
		font-size: 13px;
		padding: 7px 12px 7px 10px;
	}
	.fgby-slot-loc {
		font-size: 12px;
	}
}

/* My Account */
.fgby-my-account .fgby-booking-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 16px 18px;
	margin-bottom: 12px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: start;
}
.fgby-my-account .fgby-booking-card header {
	grid-column: 1 / -1;
}
.fgby-my-account .fgby-booking-card h3 { margin: 0 0 4px 0; }
.fgby-my-account .fgby-booking-when { margin: 0 0 4px 0; color: #555; }
.fgby-my-account .fgby-booking-where { margin: 0; }
.fgby-my-account .fgby-booking-status-cancelled,
.fgby-my-account .fgby-booking-status-refunded {
	opacity: .6;
}
.fgby-my-account .fgby-booking-state-label {
	font-weight: 600;
	color: #b32d2e;
	margin: 0;
}
.fgby-my-account .fgby-booking-actions {
	text-align: right;
}
.fgby-my-account .fgby-cancel-info {
	margin: 4px 0 0;
}

/* ============================================================ */
/* Yoga: public agenda — semaine par colonnes (créneaux / slots) */
/* ============================================================ */

.fgby-yoga-week {
	--fgby-accent:    #6cae6c;
	--fgby-accent-dk: #4a8a4a;
	--fgby-warning:   #b06f00;
	--fgby-danger:    #b32d2e;
	--fgby-grey:      #f0f0f1;
	--fgby-grey-mid:  #c9cdd3;
	--fgby-text:      #2c3338;

	max-width: 1280px;
	margin: 24px 0;
	color: var(--fgby-text);
}

.fgby-week-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}
.fgby-week-nav-btn {
	background: #fff;
	border: 1px solid var(--fgby-grey-mid);
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 14px;
	color: var(--fgby-text);
	text-decoration: none;
	cursor: pointer;
}
.fgby-week-nav-btn:hover {
	border-color: var(--fgby-accent);
	color: var(--fgby-accent-dk);
}
.fgby-week-title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	text-transform: capitalize;
	flex: 1 1 auto;
	text-align: center;
}
.fgby-week-today-link {
	margin: 0 0 12px 0;
	font-size: 13px;
	text-align: center;
}
.fgby-week-today-link a,
a.fgby-week-today-btn {
	color: var(--fgby-accent-dk);
}
a.fgby-week-today-btn {
	text-decoration: underline;
}
.fgby-yoga-week-inner.is-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s ease;
}
.fgby-event-block.is-fgby-loading {
	pointer-events: none;
	opacity: 0.75;
}

.fgby-week-empty {
	text-align: center;
	padding: 16px 12px;
	color: #666;
	font-style: italic;
}
.fgby-week-empty--week {
	padding-bottom: 8px;
}

.fgby-week-slotboard-scroll {
	border: 1px solid var(--fgby-grey-mid);
	border-radius: 10px;
	background: #fff;
	padding: 12px 10px 14px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
}

/* Mobile / tablette : 4 colonnes → 2 lignes (lun–jeu, ven–dim), pas de min-width forcé. */
.fgby-week-slotboard {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-flow: row;
	gap: 8px;
	min-width: 0;
	width: 100%;
	align-items: stretch;
}

@media (min-width: 901px) {
	.fgby-week-slotboard-scroll {
		overflow-x: auto;
	}
	.fgby-week-slotboard {
		grid-template-columns: repeat(7, minmax(132px, 1fr));
		gap: 12px;
		min-width: 720px;
	}
}

.fgby-day-column {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border-radius: 8px;
	background: #fafafa;
	border: 1px solid var(--fgby-grey-mid);
	overflow: hidden;
}
.fgby-day-column.is-today {
	background: rgba(108, 174, 108, 0.06);
	border-color: var(--fgby-accent);
}

.fgby-day-column-head {
	text-align: center;
	padding: 10px 6px;
	background: #f7faf7;
	border-bottom: 1px solid var(--fgby-grey-mid);
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-transform: capitalize;
}
.fgby-day-column.is-today .fgby-day-column-head {
	background: #e9f7e9;
}
.fgby-day-column-head .fgby-day-name {
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #5f6368;
}
.fgby-day-column.is-today .fgby-day-column-head .fgby-day-name {
	color: var(--fgby-accent-dk);
}
.fgby-day-column-head .fgby-day-num {
	font-weight: 700;
	font-size: 17px;
	color: var(--fgby-text);
}

.fgby-day-column-body {
	flex: 1 1 auto;
	padding: 10px 8px 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 120px;
}

.fgby-day-slot--empty {
	flex: 1 1 auto;
	min-height: 88px;
	border: 1px dashed var(--fgby-grey-mid);
	border-radius: 8px;
	background: repeating-linear-gradient(
		-45deg,
		transparent,
		transparent 6px,
		rgba(0, 0, 0, 0.03) 6px,
		rgba(0, 0, 0, 0.03) 12px
	);
}

.fgby-day-slots-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Créneau réservable */
.fgby-yoga-week a.fgby-day-session:not(.is-full):not(.is-booking-closed),
.fgby-yoga-week a.fgby-day-session:not(.is-full):not(.is-booking-closed):link,
.fgby-yoga-week a.fgby-day-session:not(.is-full):not(.is-booking-closed):visited,
.fgby-yoga-week a.fgby-day-session:not(.is-full):not(.is-booking-closed):hover,
.fgby-yoga-week a.fgby-day-session:not(.is-full):not(.is-booking-closed):focus,
.fgby-yoga-week a.fgby-day-session:not(.is-full):not(.is-booking-closed):active {
	color: #fff !important;
	text-decoration: none !important;
}
.fgby-yoga-week a.fgby-day-session:not(.is-full):not(.is-booking-closed) * {
	color: inherit !important;
}

.fgby-day-session {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	padding: 10px 10px 10px 12px;
	border-radius: 8px;
	background: var(--fgby-accent, #6cae6c);
	border-left: 3px solid var(--fgby-accent-dk, #4a8a4a);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	font-size: 12px;
	line-height: 1.35;
	transition: transform 0.08s ease, box-shadow 0.12s ease;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.fgby-day-session:hover:not(.is-full):not(.is-booking-closed) {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.fgby-day-session.is-full,
.fgby-day-session.is-booking-closed {
	background: #c5c5c5;
	border-left-color: #888;
	pointer-events: none;
	opacity: 0.92;
	color: #1a1a1a !important;
	cursor: default;
}
.fgby-yoga-week a.fgby-day-session.is-full,
.fgby-yoga-week a.fgby-day-session.is-full *,
.fgby-yoga-week a.fgby-day-session.is-booking-closed,
.fgby-yoga-week a.fgby-day-session.is-booking-closed * {
	color: #1a1a1a !important;
}

.fgby-day-session__time {
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	font-size: 13px;
	letter-spacing: 0.02em;
}
.fgby-day-session__title {
	font-weight: 800;
	font-size: 13px;
	line-height: 1.3;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}
.fgby-day-session__location {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.35;
	opacity: 0.92;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}
.fgby-day-session__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 6px;
	font-size: 12px;
	font-weight: 600;
	opacity: 0.95;
}
.fgby-day-session__price .amount,
.fgby-day-session__price bdi {
	font-weight: 700 !important;
}
.fgby-day-session__badge {
	display: inline-block;
	margin-left: 4px;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.12);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.fgby-day-session.is-full .fgby-day-session__badge,
.fgby-day-session.is-booking-closed .fgby-day-session__badge {
	background: rgba(0, 0, 0, 0.18);
}

.fgby-day-session__cta {
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	justify-content: center;
	align-items: center;
	align-self: stretch;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	flex-shrink: 0;
	pointer-events: none;
}

.fgby-day-session__reserve-btn {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.45);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-align: center;
	line-height: 1.25;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Lien-carte : certains thèmes imposent nowrap sur les `a` → pastille « Réserver » qui déborde. */
body .fgby-yoga-week a.fgby-day-session .fgby-day-session__reserve-btn,
body .entry-content .fgby-yoga-week a.fgby-day-session .fgby-day-session__reserve-btn {
	white-space: normal !important;
	overflow-wrap: anywhere !important;
	word-break: normal !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

.fgby-day-session.is-fgby-loading {
	opacity: 0.7;
	pointer-events: none;
}

@media (max-width: 768px) {
	.fgby-week-slotboard {
		min-width: 0;
		width: 100%;
		gap: 8px;
	}
	.fgby-day-column-body {
		min-height: 100px;
		padding: 8px 6px 10px;
	}
	.fgby-day-session {
		padding: 8px 8px 8px 10px;
		font-size: 11px;
	}
	.fgby-day-session__time,
	.fgby-day-session__title {
		font-size: 12px;
	}
	.fgby-day-session__location {
		font-size: 10px;
	}
	.fgby-day-session__reserve-btn {
		font-size: 9px;
		padding: 3px 6px;
		letter-spacing: 0.01em;
	}
}

/* ============================================================ */
/* Yoga: landing agenda + liste ([fgby_yoga_courses])          */
/* ============================================================ */

.fgby-yoga-landing {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.fgby-yoga-landing__title {
	margin: 1.5em 0 0.75em;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.25;
}

.fgby-yoga-landing__agenda > .fgby-yoga-landing__title:first-child {
	margin-top: 0;
}

.fgby-yoga-landing__catalog > .fgby-yoga-landing__title:first-child {
	margin-top: 0;
}

.fgby-yoga-landing--with-agenda .fgby-yoga-landing__catalog > .fgby-yoga-landing__title:first-child {
	margin-top: 1.75em;
}

.fgby-yoga-landing__empty-catalog {
	margin: 0.75em 0 1.5em;
}

.fgby-yoga-courses-grid {
	--fgby-yoga-cols: 3;
}

.fgby-yoga-landing .fgby-yoga-courses-grid,
.entry-content .fgby-yoga-landing .fgby-yoga-courses-grid,
.woocommerce .fgby-yoga-landing .fgby-yoga-courses-grid,
.site-content .fgby-yoga-landing .fgby-yoga-courses-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--fgby-yoga-cols, 3), minmax(0, 1fr)) !important;
	column-gap: 20px;
	row-gap: 36px;
	margin: 20px 0 32px;
	max-width: 1200px;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
}

.fgby-yoga-course-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	min-width: 0;
	--fgby-accent: #6cae6c;
	--fgby-accent-dk: #4a8a4a;
	background: var(--fgby-accent);
	color: #fff;
	border: none;
	border-left: 3px solid var(--fgby-accent-dk);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	transition: box-shadow 0.15s ease, transform 0.12s ease;
	padding: 18px 14px 16px;
	box-sizing: border-box;
}

.fgby-yoga-course-card:hover {
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
	transform: translateY(-2px);
}

.fgby-yoga-course-card__thumb {
	display: block;
	flex: 0 0 auto;
	width: 104px;
	height: 104px;
	margin: 0 auto 14px;
	background: rgba(255, 255, 255, 0.2);
	overflow: hidden;
	flex-shrink: 0;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	border: 3px solid rgba(255, 255, 255, 0.95);
	box-sizing: border-box;
}

.fgby-yoga-course-card__thumb img,
.fgby-yoga-course-card__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}

.fgby-yoga-course-card__thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 50%;
}

.fgby-yoga-course-card__body {
	padding: 0;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	text-align: center;
}

.fgby-yoga-course-card__title {
	margin: 0 0 6px;
	font-size: 1rem;
	line-height: 1.25;
	font-weight: 700;
	color: #fff;
}

.fgby-yoga-course-card__title a {
	color: inherit;
	text-decoration: none;
}

.fgby-yoga-course-card__title a:hover {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: underline;
}

.fgby-yoga-course-card__loc {
	margin: 0 0 6px;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.92);
	line-height: 1.35;
}

.fgby-yoga-course-card__excerpt {
	margin: 0 0 10px;
	font-size: 0.84rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.95);
	flex: 1 1 auto;
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
}

/* Cartes « Nos cours » : le thème peut imposer une monospace (ex. Monaco) sur les <p> — forcer Montserrat. */
body .fgby-yoga-landing .fgby-yoga-course-card,
body .fgby-yoga-landing .fgby-yoga-course-card h3,
body .fgby-yoga-landing .fgby-yoga-course-card p,
body .fgby-yoga-landing .fgby-yoga-course-card a,
body .entry-content .fgby-yoga-landing .fgby-yoga-course-card,
body .entry-content .fgby-yoga-landing .fgby-yoga-course-card h3,
body .entry-content .fgby-yoga-landing .fgby-yoga-course-card p,
body .entry-content .fgby-yoga-landing .fgby-yoga-course-card a,
body .entry-content .fgby-yoga-landing .fgby-yoga-course-card a.button,
.woocommerce .fgby-yoga-landing .fgby-yoga-course-card,
.woocommerce .fgby-yoga-landing .fgby-yoga-course-card p,
.woocommerce .fgby-yoga-landing .fgby-yoga-course-card a {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.fgby-yoga-course-card__cta {
	margin: 0;
	margin-top: auto;
}

.fgby-yoga-course-card__btn {
	display: inline-block;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
	padding-top: 8px;
	padding-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0.02em;
	background: transparent;
	color: #fff !important;
	border: 2px solid rgba(255, 255, 255, 0.95) !important;
	border-radius: 8px;
	text-decoration: none !important;
}

.fgby-yoga-course-card__btn:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff !important;
	border-color: #fff !important;
}

.fgby-yoga-product-agenda {
	margin-top: 24px;
}

.fgby-yoga-product-agenda-title {
	margin: 0 0 10px;
	font-size: 1.25rem;
	font-weight: 700;
}

@media (max-width: 900px) {
	.fgby-yoga-landing .fgby-yoga-courses-grid,
	.entry-content .fgby-yoga-landing .fgby-yoga-courses-grid,
	.woocommerce .fgby-yoga-landing .fgby-yoga-courses-grid,
	.site-content .fgby-yoga-landing .fgby-yoga-courses-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		row-gap: 28px;
	}
}

@media (max-width: 560px) {
	.fgby-yoga-landing .fgby-yoga-courses-grid,
	.entry-content .fgby-yoga-landing .fgby-yoga-courses-grid,
	.woocommerce .fgby-yoga-landing .fgby-yoga-courses-grid,
	.site-content .fgby-yoga-landing .fgby-yoga-courses-grid {
		grid-template-columns: 1fr !important;
		row-gap: 24px;
	}
	.fgby-yoga-course-card__thumb {
		width: 92px;
		height: 92px;
	}
}

/* ============================================================ */
/* Yoga: reservation form                                       */
/* ============================================================ */

.fgby-yoga-reservation {
	max-width: 640px;
	margin: 24px 0;
	color: #2c3338;
}

.fgby-reservation-header {
	background: #f7faf7;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 24px;
}
.fgby-reservation-header h2 { margin: 0 0 8px 0; }
.fgby-reservation-header p  { margin: 0 0 4px 0; }
.fgby-reservation-price { font-size: 18px; font-weight: 600; margin-top: 8px !important; }

.fgby-form-errors {
	background: #fdecec;
	border: 1px solid #f0b0b0;
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 16px;
}
.fgby-form-errors p { margin: 4px 0; color: #8a1f1f; }

.fgby-login-prompt {
	background: #f0f7ff;
	border-left: 3px solid #2271b1;
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 14px;
}
.fgby-login-prompt p { margin: 0 0 4px 0; }

.fgby-fieldset {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 16px;
}
.fgby-fieldset legend {
	padding: 0 8px;
	font-weight: 600;
	color: #2c3338;
}

.fgby-field {
	margin: 0 0 12px 0;
	display: flex;
	flex-direction: column;
}
.fgby-field label {
	font-size: 13px;
	margin-bottom: 4px;
	color: #555;
}
.fgby-field .required { color: #b32d2e; }
.fgby-field input,
.fgby-field textarea {
	width: 100%;
	padding: 8px 12px;
	font-size: 15px;
	border-radius: 6px;
	border: 1px solid #c9cdd3;
	box-sizing: border-box;
}

.fgby-payment-option {
	margin: 0 0 8px 0;
	background: #fafafa;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 10px 12px;
}
.fgby-payment-option label {
	cursor: pointer;
	display: block;
}
.fgby-payment-option strong { display: inline-block; margin-left: 4px; }
.fgby-payment-option small  { display: block; margin-top: 4px; color: #666; }
.fgby-payment-option input { margin-right: 4px; vertical-align: middle; }

.fgby-submit-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 16px;
}
.fgby-submit-row .button { font-size: 15px; }

.fgby-yoga-confirmation {
	max-width: 640px;
	margin: 24px 0;
	background: #f7faf7;
	border: 1px solid #c9e2c9;
	border-radius: 10px;
	padding: 24px;
}
.fgby-yoga-confirmation h2 { margin-top: 0; color: #1f5b1f; }
.fgby-onsite-payment-note {
	background: #fff8e6;
	border-left: 3px solid #b06f00;
	padding: 10px 14px;
	margin: 12px 0;
}

/* ============================================================ */
/* Mobile (≤781px) — lisibilité & layout sans changer le desktop */
/* ============================================================ */

@media (max-width: 781px) {

	/* --- Blocs plugin : marges latérales + largeur --- */
	.fgby-massage-hub,
	.fgby-yoga-week,
	.fgby-yoga-landing,
	.fgby-yoga-product-agenda {
		padding-left: max(14px, env(safe-area-inset-left, 0px));
		padding-right: max(14px, env(safe-area-inset-right, 0px));
		box-sizing: border-box;
		max-width: 100%;
	}

	/* Évite le double padding quand l’agenda est dans la landing */
	.fgby-yoga-landing .fgby-yoga-week {
		padding-left: 0;
		padding-right: 0;
	}

	.fgby-booking-form {
		max-width: 100%;
	}

	body.single-product .summary .fgby-booking-form,
	.woocommerce .product .summary .fgby-booking-form {
		box-sizing: border-box;
		min-width: 0;
	}

	.fgby-massage-hub__title {
		font-size: 1.2rem;
		line-height: 1.25;
	}

	/* --- Calendrier (hub + fiche RDV) : tient sur la largeur d’écran --- */
	.fgby-calendar {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.fgby-calendar-header {
		flex-wrap: wrap;
		gap: 8px;
	}

	.fgby-calendar-title {
		font-size: 0.95rem;
		width: 100%;
		text-align: center;
		order: 3;
	}

	.fgby-calendar-header .fgby-cal-nav {
		flex: 1 1 auto;
		min-width: 0;
		padding: 6px 10px;
		font-size: 15px;
	}

	.fgby-calendar-grid {
		gap: 3px;
		width: 100%;
		min-width: 0;
	}

	.fgby-calendar-grid .fgby-cal-weekday {
		font-size: 8px;
		padding: 4px 1px;
		letter-spacing: 0.02em;
	}

	.fgby-calendar-grid .fgby-cal-day {
		font-size: 11px;
		border-radius: 5px;
		min-width: 0;
	}

	/* --- Agenda yoga : raffine la grille 4+3 (définie ≤900px) --- */
	.fgby-week-slotboard-scroll {
		padding: 10px 8px 12px;
	}

	.fgby-week-slotboard {
		gap: 6px;
	}

	.fgby-day-column-head {
		padding: 6px 2px;
	}

	.fgby-day-column-head .fgby-day-name {
		font-size: 9px;
	}

	.fgby-day-column-head .fgby-day-num {
		font-size: 13px;
	}

	.fgby-day-column-body {
		padding: 6px 4px 8px;
		min-height: 72px;
		gap: 6px;
	}

	.fgby-day-slot--empty {
		min-height: 56px;
	}

	.fgby-day-session {
		padding: 8px 6px;
		font-size: 11px;
		gap: 4px;
		border-radius: 6px;
	}

	.fgby-day-session__time {
		font-size: 11px;
	}

	.fgby-day-session__title {
		font-size: 11px;
		line-height: 1.3;
	}

	.fgby-day-session__location {
		font-size: 10px;
	}

	.fgby-day-session__reserve-btn {
		font-size: 8px;
		padding: 4px 2px;
		line-height: 1.15;
	}

	/* Nav semaine : titre d’abord, boutons pleine largeur */
	.fgby-week-nav {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.fgby-week-nav .fgby-week-title {
		order: -1;
		font-size: 0.95rem;
		line-height: 1.35;
		text-align: center;
		margin: 0;
	}

	.fgby-week-nav-btn {
		width: 100%;
		text-align: center;
		box-sizing: border-box;
		padding: 10px 12px;
		min-height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.fgby-week-today-link {
		margin-bottom: 10px;
	}

	.fgby-week-empty {
		padding-left: 8px;
		padding-right: 8px;
		font-size: 0.9rem;
	}

	/* --- Landing yoga : titres de section --- */
	.fgby-yoga-landing__title {
		font-size: 1.2rem;
		line-height: 1.25;
	}

	/* --- Cartes « Nos cours » : un peu d’air --- */
	.fgby-yoga-course-card {
		padding: 16px 14px 14px;
	}

	.fgby-yoga-course-card__excerpt {
		font-size: 0.88rem;
	}
}

/* ============================================================ */
/* WooCommerce panier / commande : code promo (mobile)         */
/* Même logique que les boutons hub : nowrap thème → retours   */
/* à la ligne, largeur 100 %, pas de débordement horizontal.   */
/* ============================================================ */

@media (max-width: 600px) {
	body.woocommerce-cart .woocommerce-cart-form .coupon,
	body .woocommerce-cart-form .coupon,
	.woocommerce-cart-form .coupon {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	body.woocommerce-cart .woocommerce-cart-form .coupon input.input-text,
	body .woocommerce-cart-form .coupon input.input-text,
	.woocommerce-cart-form .coupon input.input-text {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		float: none !important;
		box-sizing: border-box !important;
		margin: 0 !important;
		flex: 1 1 auto;
	}

	body.woocommerce-cart .woocommerce-cart-form .coupon button.button,
	body.woocommerce-cart .woocommerce-cart-form .coupon button[type="submit"],
	body .woocommerce-cart-form .coupon button.button,
	body .woocommerce-cart-form .coupon button[type="submit"],
	.woocommerce-cart-form .coupon button.button,
	.woocommerce-cart-form .coupon button[type="submit"] {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		float: none !important;
		clear: both !important;
		box-sizing: border-box !important;
		white-space: normal !important;
		overflow-wrap: anywhere !important;
		word-break: normal !important;
		text-align: center !important;
		margin: 0 !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
		line-height: 1.2 !important;
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	/* Checkout : formulaire coupon (si affiché). */
	body.woocommerce-checkout form.checkout_coupon,
	body.woocommerce-checkout form.woocommerce-form-coupon {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	body.woocommerce-checkout form.checkout_coupon .input-text,
	body.woocommerce-checkout form.woocommerce-form-coupon .input-text {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		float: none !important;
		box-sizing: border-box !important;
		margin: 0 !important;
	}

	body.woocommerce-checkout form.checkout_coupon .button,
	body.woocommerce-checkout form.checkout_coupon button[type="submit"],
	body.woocommerce-checkout form.woocommerce-form-coupon .button,
	body.woocommerce-checkout form.woocommerce-form-coupon button[type="submit"] {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		float: none !important;
		box-sizing: border-box !important;
		white-space: normal !important;
		overflow-wrap: anywhere !important;
		word-break: normal !important;
		text-align: center !important;
		margin: 0 !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
		line-height: 1.2 !important;
		padding-left: 12px !important;
		padding-right: 12px !important;
	}
}

/* ============================================================ */
/* Bons cadeaux — champs au checkout */
/* ============================================================ */

.fgby-gift-voucher-checkout {
	margin: 1.25em 0 1.5em;
	padding: 1em 1.1em;
	border: 1px solid #dce3dc;
	border-radius: 10px;
	background: #fafcf8;
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
}

.fgby-gift-voucher-checkout__intro {
	margin: 0 0 1em;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #444;
}

.fgby-gift-voucher-checkout h3 {
	margin: 0 0 0.65em;
	font-size: 1.1rem;
}

.fgby-gift-voucher-checkout__item {
	margin: 0 0 1em;
	padding: 0.85em 0.75em;
	border: 1px solid #e8eee8;
	border-radius: 8px;
	background: #fff;
	min-width: 0;
}

.fgby-gift-voucher-checkout__item legend {
	font-weight: 700;
	padding: 0 6px;
	font-size: 0.98rem;
}

.fgby-gift-voucher-field textarea.input-text {
	min-height: 72px;
	resize: vertical;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.fgby-gift-voucher-checkout {
		padding: 12px 10px;
	}
}

/* Bons cadeaux — notice sous le titre (visuel = image produit / galerie) */
.fgby-gift-voucher-product-notice {
	margin: 0 0 1.1em;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #555;
	max-width: 52em;
}

/* ============================================================ */
/* Grilles produits (page Cadeaux, archives, blocs WC) — mobile */
/* ============================================================ */

@media (max-width: 781px) {
	.woocommerce ul.products,
	ul.wc-block-grid__products,
	.wc-block-grid__products {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 1.25rem !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		box-sizing: border-box !important;
	}

	.woocommerce ul.products li.product,
	.wc-block-grid__products > li.wc-block-grid__product,
	.wc-block-grid__product {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		float: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		box-sizing: border-box !important;
	}

	.woocommerce ul.products li.product a.button,
	.woocommerce ul.products li.product .button,
	.woocommerce ul.products li.product .add_to_cart_button,
	.woocommerce ul.products li.product button[type="submit"],
	.wc-block-grid__product .wp-block-button__link,
	.wc-block-grid__product .wc-block-components-product-button,
	.wc-block-grid__product a.add_to_cart_button {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		float: none !important;
		clear: both !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-top: 0.5rem !important;
		white-space: normal !important;
		overflow-wrap: anywhere !important;
		word-break: normal !important;
		text-align: center !important;
		position: relative !important;
		left: auto !important;
		right: auto !important;
		transform: none !important;
	}

	.wc-block-grid__product .wc-block-grid__product-image,
	.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
		max-width: 100%;
		overflow: hidden;
	}

	.fgby-products-shortcode .woocommerce ul.products,
	.fgby-products-shortcode ul.products {
		display: flex !important;
		flex-direction: column !important;
		gap: 1.25rem !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.fgby-products-shortcode .woocommerce ul.products li.product {
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
	}
}
