/**
 * Pixel Fleurs — date de commande et disponibilités (chantier P0 « date + disponibilité fournisseur »).
 * Puce « Pour le JJ/MM · Modifier » et fenêtre « Pour quand ? » (boutique, fiche produit,
 * configurateur), sélecteur du panier, badges des bouquets, mention checkout.
 *
 * ⚠️ Nom versionné (`.3.css`) : LiteSpeed retire `?ver=` — toute modification exige de renommer le
 * fichier et sa référence dans functions.php.
 */

.pf-date-picker {
	background: var(--surface, #fff);
	border: 1px solid var(--border-color, #e7dcd6);
	border-radius: var(--radius-md, 12px);
	padding: var(--spacing-lg, 20px);
	margin: 0 0 var(--spacing-lg, 20px);
}

.pf-date-picker [hidden] {
	display: none !important;
}

.pf-date-picker__title {
	font-size: 1.15rem;
	margin: 0 0 12px;
}

.pf-date-picker.has-date .pf-date-picker__title {
	font-size: 1rem;
	margin-bottom: 6px;
}

.pf-date-picker__current {
	margin: 0 0 8px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.pf-date-picker__edit {
	background: none;
	border: 0;
	padding: 4px 0;
	color: var(--primary-color, #b5546a);
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

.pf-date-picker__form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 0;
}

.pf-date-picker__input {
	min-height: 44px; /* cible tactile confortable */
	padding: 8px 12px;
	font-size: 1rem;
	border: 1px solid var(--border-color, #d9cbc4);
	border-radius: var(--radius-sm, 8px);
	flex: 1 1 180px;
	max-width: 260px;
}

.pf-date-picker__submit {
	min-height: 44px;
	padding: 8px 20px;
	border-radius: var(--radius-sm, 8px);
	border: 0;
	background: var(--primary-color, #b5546a);
	color: var(--white, #fff);
	font-weight: 600;
	cursor: pointer;
}

.pf-date-picker__submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.pf-date-picker__error {
	margin: 10px 0 0;
	color: #a12a2a;
	font-weight: 500;
}

.pf-date-picker__note {
	margin: 10px 0 0;
	font-size: 0.85rem;
	color: var(--text-light, #6f6460);
}

.pf-date-picker--cart .pf-date-picker__note {
	display: none;
}

/* Badges des bouquets (statut serveur, posés par delivery-date.6.js). */
.pf-supply-badge {
	display: inline-block;
	margin: 6px 0 0;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
}

.pf-supply-badge--in_stock {
	background: #e5f3e8;
	color: #2f6b3c;
}

.pf-supply-badge--on_order {
	/* Pour la cliente, « sur commande » et « en stock » sont la même chose : « Disponible pour votre date ». */
	background: #e5f3e8;
	color: #2f6b3c;
}

.pf-supply-badge--unavailable {
	background: #f3e6f0;
	color: #6b2f60;
}

/* Un badge sans statut (pas de date, produit non bouquet) ne laisse aucune pastille vide :
   `display: inline-block` ci-dessus l'emporterait sinon sur l'attribut `hidden`. */
.pf-supply-badge[hidden],
.pf-supply-why[hidden] {
	display: none !important;
}

/* Préouverture : badge SUR la photo de la carte (coin bas gauche, les badges « Promo / Coup de
   cœur » occupent le haut). Opaque et contrasté : lisible sur n'importe quelle photo. */
.pf-supply-badge--overlay {
	position: absolute;
	left: 8px;
	bottom: 8px;
	z-index: 2;
	margin: 0;
	max-width: calc(100% - 16px);
	padding: 5px 10px;
	border-radius: 8px; /* tient aussi sur deux lignes en carte étroite */
	font-size: 0.78rem;
	line-height: 1.25;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.pf-supply-badge--overlay.pf-supply-badge--in_stock {
	background: #2f7d45;
	color: #fff;
}

.pf-supply-badge--overlay.pf-supply-badge--on_order {
	background: #2f7d45;
	color: #fff;
}

/* Recette exacte impossible : on ne montre pas une fin de parcours (pas de rouge « stop ») mais une
   sortie — « 🌸 Adaptation nécessaire » (prune) ou « ⏱ à partir du … » (date plus lointaine). */
.pf-supply-badge--overlay.pf-supply-badge--unavailable {
	background: #7a3e6e;
	color: #fff;
}

.pf-supply-badge--overlay.pf-supply-badge--later {
	background: #c46f12;
	color: #fff;
}

/* Pictogrammes : compris sans lire. Décoratifs (CSS), le libellé reste seul lu à voix haute. */
.pf-supply-badge--in_stock::before,
.pf-supply-badge--on_order::before {
	content: '✓ ';
}

.pf-supply-badge--later::before {
	content: '⏱ ';
}

.pf-supply-badge--adapt::before {
	content: '🌸 ';
}

/* Seul l'ACHAT est neutralisé — jamais les liens secondaires (modifier, adaptation, fiche).
   Bouton gris explicite « Indisponible pour cette date », pas un bouton violet qui semble cassé. */
.pf-buy-disabled,
.pf-buy-disabled:hover,
.pf-buy-disabled:focus {
	background: #ece8e6 !important;
	color: #6b5f5b !important;
	border-color: #d9d1cd !important;
	box-shadow: none !important;
	pointer-events: none;
	cursor: not-allowed;
}

/* « Pourquoi ? » — repli natif <details>, discret sous le prix. */
.pf-supply-why {
	margin: 4px 0 0;
	font-size: 0.85rem;
	color: var(--text-secondary, #5f5551);
}

.pf-supply-why > summary {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: #6b2f60;
	font-weight: 600;
}

.pf-supply-why p {
	margin: 4px 0 0;
	line-height: 1.4;
}

.pf-supply-why__promise {
	font-style: italic;
}

.pf-supply-why__phone a {
	font-weight: 600;
	white-space: nowrap;
}

.pf-supply-why__phone[hidden] {
	display: none;
}

/* Lien secondaire devenu « Demander une adaptation » : reste un lien, un peu plus affirmé. */
.pf-card-modify.is-adapt,
.btn-personnaliser.is-adapt {
	color: var(--action-color, #7a4e8c);
	font-weight: 600;
}

/* Filtre « Disponibilité pour votre date » (boutique). */
.pf-dispo-filter {
	margin: 0 0 var(--spacing-lg, 20px);
}

.pf-dispo-filter[hidden] {
	display: none !important;
}

.pf-dispo-filter__label {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
	font-size: 0.95rem;
}

.pf-dispo-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pf-dispo-filter__option {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 14px;
	border: 1px solid var(--border-color, #d9cbc4);
	border-radius: 999px;
	background: var(--surface, #fff);
	color: var(--text-primary, #2d2522);
	font-size: 0.9rem;
	text-decoration: none;
}

.pf-dispo-filter__option.is-active {
	background: var(--primary-color, #b5546a);
	border-color: var(--primary-color, #b5546a);
	color: var(--white, #fff);
	font-weight: 600;
}

.pf-dispo-filter__nodate {
	margin: 6px 0 0;
	font-size: 0.85rem;
	color: var(--text-light, #6f6460);
}

/* Configurateur : mentions de disponibilité. */
.flower-stock.on-order {
	color: #8a5a14;
}

.flower-stock.mixed {
	color: #5e6b2f;
}

/* Checkout : date en lecture seule. */
.pf-checkout-date {
	margin: 0;
}

.pf-checkout-date__edit {
	margin-left: 6px;
	text-decoration: underline;
}

.pf-checkout-date--missing {
	color: #a12a2a;
}


/* ===== Consultation libre : puce « Pour le JJ/MM · Modifier » ===== */
.pf-date-chip {
	/* Une ligne légère, centrée sur la largeur utile : « Pour le 12/10 » puis « Modifier · Effacer ». */
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 var(--spacing-md, 16px);
	padding: 4px 0;
	text-align: center;
	color: #4a2443;
	font-size: 0.95rem;
}

.pf-date-chip[hidden] {
	display: none;
}

.pf-date-chip p {
	margin: 0;
}

.pf-date-chip__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 6px;
}

.pf-date-chip__btn {
	/* Les boutons du thème sont pleine largeur : ici deux liens discrets côte à côte. */
	display: inline-block;
	width: auto;
	flex: 0 0 auto;
	background: none;
	border: 0;
	padding: 4px 6px;
	min-height: 36px;
	color: inherit;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.pf-date-chip__btn[hidden],
.pf-date-chip__sep[hidden],
.pf-date-chip__locked[hidden] {
	display: none;
}

.pf-date-chip__locked {
	font-size: 0.85rem;
	color: var(--text-secondary, #5a5a5a);
}

/* Ordinateur : compact et élégant — une seule ligne, sur la largeur de son contenu, centrée. */
@media (min-width: 768px) {
	.pf-date-chip {
		flex-direction: row;
		justify-content: center;
		gap: 10px;
		width: fit-content;
		margin-left: auto;
		margin-right: auto;
		padding: 6px 16px;
		border-radius: 999px;
		background: #f6eef3;
	}
}

/* ===== Fenêtre « Pour quand souhaitez-vous votre bouquet ? » (feuille sur téléphone) ===== */
body.pf-sheet-open {
	overflow: hidden;
}

.pf-sheet {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.pf-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(35, 28, 38, 0.55);
}

.pf-sheet__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 24px 20px 20px;
	border-radius: 16px;
	background: #fff;
	color: var(--text-primary, #2d2d2d);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.pf-sheet__dialog.is-busy {
	opacity: 0.7;
	pointer-events: none;
}

.pf-sheet__close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	color: var(--text-secondary, #5a5a5a);
}

.pf-sheet__title {
	margin: 0 36px 8px 0;
	font-size: 1.2rem;
	line-height: 1.3;
}

.pf-sheet__intro {
	margin: 0 0 14px;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--text-secondary, #5a5a5a);
}

.pf-sheet__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.pf-sheet__chip {
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid var(--border-color, #d9cbc4);
	border-radius: 999px;
	background: #fff;
	color: var(--text-primary, #2d2d2d);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.pf-sheet__chip[hidden],
.pf-sheet__form[hidden] {
	display: none;
}

.pf-sheet__chip.is-primary {
	border-color: #7a3e6e;
	background: #7a3e6e;
	color: #fff;
}

.pf-sheet__chip:focus-visible,
.pf-sheet__submit:focus-visible,
.pf-sheet__close:focus-visible {
	outline: 3px solid #51727e;
	outline-offset: 2px;
}

.pf-sheet__form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 12px;
}

.pf-sheet__input {
	flex: 1 1 170px;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--border-color, #d9cbc4);
	border-radius: 8px;
	font: inherit;
}

.pf-sheet__submit {
	min-height: 44px;
	padding: 8px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--action-color, #a25858);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.pf-sheet__link {
	display: block;
	margin: 0 0 10px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: #51727e;
}

.pf-sheet__link.is-primary {
	padding: 12px 16px;
	border-radius: 999px;
	background: var(--action-color, #a25858);
	color: #fff;
	text-align: center;
	text-decoration: none;
}

.pf-sheet__error {
	margin: 0 0 10px;
	color: #a12a2a;
	font-weight: 500;
}

.pf-sheet__phone {
	margin: 0 0 8px;
	font-size: 0.9rem;
}

.pf-sheet__phone a {
	font-weight: 600;
	white-space: nowrap;
}

/* Téléphone : feuille ancrée en bas de l'écran, cibles tactiles confortables. */
@media (max-width: 640px) {
	.pf-sheet {
		align-items: flex-end;
		padding: 0;
	}

	.pf-sheet__dialog {
		max-width: none;
		max-height: 90vh;
		border-radius: 18px 18px 0 0;
		padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	}
}

/* ===== Fenêtre « Une adaptation est nécessaire » : un seul chemin (accepter), une question en second ===== */
.pf-sheet__accept {
	display: block;
	width: 100%;
	margin: 4px 0 8px;
	padding: 12px 18px;
	border-radius: 999px;
	text-align: center;
}

.pf-sheet__adapt-from {
	margin: 0 0 8px;
	color: #4a2443;
}

.pf-sheet__small {
	margin: 0 0 6px;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--text-secondary, #5a5a5a);
	text-align: center;
}

.pf-sheet__ask {
	display: block;
	margin: 12px 0 2px;
	padding: 10px 8px;
	text-align: center;
	font-weight: 600;
	color: #51727e;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pf-sheet__small--quick {
	margin-bottom: 0;
}
