/* DAP WhatsApp - bouton de commande et selecteur de librairie. */

.dapw {
	margin: 16px 0;
}

/* Repli sans JavaScript : les deux points de vente cote a cote. */
.dapw__nojs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dapw__js {
	display: none;
}

.dapw-js .dapw__js {
	display: block;
}

.dapw-js .dapw__nojs {
	display: none;
}

.dapw__btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 6px;
	background: #25d366;
	color: #fff;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: background-color .15s ease;
}

.dapw__btn:hover,
.dapw__btn:focus {
	background: #1da851;
	color: #fff;
	text-decoration: none;
}

.dapw__btn--principal {
	width: 100%;
}

.dapw__choix {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.dapw__lib {
	flex: 1 1 120px;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid #25d366;
	border-radius: 6px;
	background: #fff;
	color: #128c3e;
	font-weight: 600;
	cursor: pointer;
}

.dapw__lib:hover,
.dapw__lib:focus {
	background: #eafaf0;
}

.dapw__horaires {
	margin: 8px 0 0;
	font-size: 13px;
	opacity: .75;
}

.dapw__changer {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 13px;
	text-decoration: underline;
	opacity: .7;
	cursor: pointer;
}

.dapw__changer:hover {
	opacity: 1;
}

/* Carte catalogue : le bouton reste compact. */
.dapw--loop {
	margin: 10px 0 0;
}

.dapw--loop .dapw__btn {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
}

.dapw--loop .dapw__horaires {
	display: none;
}

@media (max-width: 400px) {
	.dapw__nojs {
		flex-direction: column;
	}

	.dapw__nojs .dapw__btn {
		width: 100%;
	}
}
/* Bulle flottante permanente, ancree en bas a droite.
   Elle remplace la bulle historique du Customizer, masquee par le plugin. */
.dapw--bulle {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9990;
	margin: 0;
	max-width: min( 320px, calc( 100vw - 36px ) );
}

.dapw--bulle .dapw__nojs {
	flex-direction: column;
	align-items: flex-end;
}

.dapw-js .dapw--bulle .dapw__js {
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-end;
	gap: 8px;
}

.dapw--bulle .dapw__btn {
	box-shadow: 0 6px 20px rgba( 0, 0, 0, .22 );
}

.dapw--bulle .dapw__btn--principal {
	width: auto;
}

.dapw--bulle .dapw__choix {
	margin: 0;
	padding: 8px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, .18 );
}

.dapw--bulle .dapw__horaires {
	display: none;
}

.dapw--bulle .dapw__changer {
	margin: 0;
	padding: 4px 8px;
	border-radius: 6px;
	background: rgba( 255, 255, 255, .9 );
	text-decoration: none;
	font-size: 12px;
}

@media (max-width: 400px) {
	.dapw--bulle {
		right: 12px;
		bottom: 12px;
	}

	.dapw--bulle .dapw__nojs .dapw__btn {
		width: auto;
	}
}