/* Panier : icône de l'en-tête, notification d'ajout au panier, messages WooCommerce. */

/* Icône panier de l'en-tête (élément fc23e80 de l'en-tête Elementor n° 10706) ------------------
   Masquée par défaut ; visible dans la boutique, ou partout quand le panier n'est pas vide. */

.elementor-10706 .elementor-element.elementor-element-fc23e80 {
	display: none !important;
}

body.diptyk-boutique .elementor-10706 .elementor-element.elementor-element-fc23e80,
html.diptyk-panier-plein .elementor-10706 .elementor-element.elementor-element-fc23e80 {
	display: block !important;
}

.diptyk-panier {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: #000;
	text-decoration: none;
}

.diptyk-panier:hover,
.diptyk-panier:focus-visible {
	color: #ba125b;
}

.diptyk-panier__icone {
	display: block;
}

.diptyk-panier__nombre {
	position: absolute;
	top: -6px;
	right: -9px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: #ba125b;
	color: #fff;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 17px;
	text-align: center;
	box-sizing: border-box;
}

.diptyk-panier__nombre[hidden] {
	display: none;
}

/* Notification d'ajout au panier ---------------------------------------------------------------- */

.diptyk-toast {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 99999;
	width: 360px;
	max-width: calc(100vw - 32px);
	padding: 18px;
	border-top: 3px solid #ba125b;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	color: #000;
	box-sizing: border-box;
	opacity: 0;
	transform: translateX(24px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.diptyk-toast.is-visible {
	opacity: 1;
	transform: none;
}

.diptyk-toast .diptyk-toast__fermer {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: #555;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 22px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.diptyk-toast .diptyk-toast__fermer:hover {
	color: #000;
}

.diptyk-toast .diptyk-toast__ok {
	margin: 0 0 12px;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ba125b;
}

.diptyk-toast__produit {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-bottom: 16px;
}

.diptyk-toast .diptyk-toast__image {
	flex: none;
	width: 64px;
	height: 64px;
	object-fit: cover;
}

.diptyk-toast .diptyk-toast__nom {
	margin: 0 0 4px;
	font-family: "EB Garamond", Garamond, serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.15;
}

.diptyk-toast .diptyk-toast__details {
	margin: 0;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.35;
	color: #555;
}

.diptyk-toast .diptyk-toast__prix {
	margin: 4px 0 0;
	font-family: "EB Garamond", Garamond, serif;
	font-size: 17px;
	font-weight: 700;
	color: #ba125b;
}

.diptyk-toast__prix .amount {
	color: inherit;
}

.diptyk-toast__boutons {
	display: flex;
	gap: 10px;
}

.diptyk-toast .diptyk-toast__panier,
.diptyk-toast .diptyk-toast__continuer {
	flex: 1;
	margin: 0;
	padding: 10px 8px;
	border: 1.5px solid #ba125b;
	border-radius: 4px;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.diptyk-toast .diptyk-toast__panier {
	background: #ba125b;
	color: #fff;
}

.diptyk-toast .diptyk-toast__panier:hover,
.diptyk-toast .diptyk-toast__panier:focus-visible {
	background: #990e4a;
	color: #fff;
}

.diptyk-toast .diptyk-toast__continuer {
	background: #fff;
	color: #ba125b;
}

.diptyk-toast .diptyk-toast__continuer:hover,
.diptyk-toast .diptyk-toast__continuer:focus-visible {
	background: #ba125b;
	color: #fff;
}

/* Téléphone : en bas de l'écran, sur toute la largeur. */
@media (max-width: 767px) {
	.diptyk-toast {
		top: auto;
		right: 16px;
		bottom: 16px;
		left: 16px;
		width: auto;
		max-width: none;
		transform: translateY(24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.diptyk-toast {
		transition: none;
		transform: none;
	}
}

/* Messages WooCommerce (panier, commande, erreurs…) dans le style Diptyk ------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 0;
	border-top: 3px solid #ba125b;
	border-radius: 0;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	color: #000;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.5;
	list-style: none;
}

.woocommerce-info,
.wc-block-components-notice-banner.is-info {
	border-top-color: #555;
}

.woocommerce-error,
.wc-block-components-notice-banner.is-error {
	border-top-color: #b32d2e;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}

.woocommerce-error li {
	margin: 0;
	padding: 0;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button,
.wc-block-components-notice-banner .wc-forward {
	float: right;
	margin: -4px 0 0 16px;
	padding: 8px 14px;
	border: 1.5px solid #ba125b;
	border-radius: 4px;
	background: #fff;
	color: #ba125b;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover,
.wc-block-components-notice-banner .wc-forward:hover {
	background: #ba125b;
	color: #fff;
}

.wc-block-components-notice-banner > svg {
	display: none;
}

/* Panier vide ------------------------------------------------------------------------------------ */

.diptyk-panier-vide {
	max-width: 640px;
	margin: 0 auto;
	padding: clamp(32px, 5vw, 64px) 0 0;
	text-align: center;
}

.diptyk-panier-vide .diptyk-panier-vide__surtitre {
	margin: 0 0 10px;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ba125b;
}

.diptyk-panier-vide .diptyk-panier-vide__titre {
	margin: 0 0 16px;
	font-family: "EB Garamond", Garamond, serif;
	font-size: clamp(32px, 3.4vw, 48px);
	font-weight: 700;
	line-height: 1.1;
	color: #000;
}

.diptyk-panier-vide .diptyk-panier-vide__texte {
	margin: 0 0 28px;
	font-family: "EB Garamond", Garamond, serif;
	font-size: 19px;
	line-height: 1.55;
	color: #000;
}

.diptyk-panier-vide__boutons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.diptyk-panier-vide .diptyk-panier-vide__bouton {
	display: inline-block;
	min-width: 220px;
	padding: 12px 24px;
	border: 2px solid #ba125b;
	border-radius: 4px;
	background: #ba125b;
	color: #fff;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.diptyk-panier-vide .diptyk-panier-vide__bouton:hover,
.diptyk-panier-vide .diptyk-panier-vide__bouton:focus-visible {
	background: #990e4a;
	border-color: #990e4a;
	color: #fff;
}

.diptyk-panier-vide .diptyk-panier-vide__bouton--contour {
	background: #fff;
	color: #ba125b;
}

.diptyk-panier-vide .diptyk-panier-vide__bouton--contour:hover,
.diptyk-panier-vide .diptyk-panier-vide__bouton--contour:focus-visible {
	background: #ba125b;
	border-color: #ba125b;
	color: #fff;
}

/* Derniers numéros sous le message : 4 colonnes (2 sur téléphone). */
.wp-block-woocommerce-empty-cart-block .diptyk-kiosque,
.woocommerce-cart .diptyk-panier-vide + .diptyk-section .diptyk-kiosque {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 767px) {
	.wp-block-woocommerce-empty-cart-block .diptyk-kiosque,
	.woocommerce-cart .diptyk-panier-vide + .diptyk-section .diptyk-kiosque {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.diptyk-panier-vide .diptyk-panier-vide__bouton {
		width: 100%;
	}
}

/* Panier classique : le bouton « Retour à la boutique » fait doublon avec nos boutons. */
.woocommerce-cart .return-to-shop {
	display: none;
}
