/* TOCLIC Offres & Relances – site */

/* Bandeau */
.tco-banner {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	right: 0;
	left: 0;
	z-index: 99990;
	box-sizing: border-box;
	padding: 10px 16px;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
	text-align: center;
}
.tco-banner[hidden] { display: none; }
/* La page descend de la hauteur du bandeau ; le menu fixe est décalé par le script. */
html.tco-has-banner body { padding-top: var(--tco-banner-h, 40px); }
.tco-banner a { text-decoration: underline; text-underline-offset: 2px; }

/* Pop-up */
.tco-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.tco-popup[hidden] { display: none; }
.tco-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}
.tco-popup__box {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	animation: tco-pop .25s ease-out;
}
@keyframes tco-pop {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.tco-popup__box { animation: none; }
}
.tco-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: #222;
	font-size: 24px;
	line-height: 36px;
	cursor: pointer;
}
.tco-popup__img { display: block; width: 100%; height: auto; }
.tco-popup__content { padding: 20px 24px 24px; text-align: center; }
.tco-popup__title { margin: 0 0 8px; font-size: 22px; font-weight: 700; line-height: 1.25; color: #222; }
.tco-popup__text { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: #444; }
.tco-popup__text p:last-child { margin-bottom: 0; }
.tco-popup__btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 4px;
	background: #C8811A;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
}
.tco-popup-open body { overflow: hidden; }

/* Barre de progression */
.tco-progress {
	margin: 0 0 24px;
	padding: 16px 18px;
	border: 1px solid #ece6dc;
	border-radius: 8px;
	background: #fbf8f3;
}
.tco-progress__message {
	margin: 0 0 12px !important;
	font-size: 15px;
	font-weight: 600;
	color: #222;
}
.tco-progress__track {
	position: relative;
	height: 10px;
	border-radius: 5px;
	background: #e7dfd2;
}
.tco-progress__bar {
	height: 100%;
	border-radius: 5px;
	background: var(--tco-progress-color, #C8811A);
	transition: width .4s ease;
}
.tco-progress__step {
	position: absolute;
	top: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #cfc4b3;
}
.tco-progress__step:last-child { margin-left: -12px; }
.tco-progress__step.is-reached { background: var(--tco-progress-color, #C8811A); }
.tco-progress__labels {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 12px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
	font-size: 13px;
	color: #777;
}
.tco-progress__labels li { margin: 0 !important; }
.tco-progress__labels li.is-reached { color: #222; }
.tco-progress__labels li.is-reached::before { content: "✓ "; color: var(--tco-progress-color, #C8811A); font-weight: 700; }
.widget_shopping_cart .tco-progress { margin: 0 0 12px; padding: 10px 12px; }

/* Commande */
.tco-email-notice { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: #777; }
.tco-marketing-consent { margin: 12px 0; }

/* Étoiles (note moyenne), indépendantes de la police d'icônes du thème */
.tco-stars {
	display: inline-block;
	width: 92px;
	height: 18px;
	vertical-align: middle;
	background: linear-gradient(90deg, #fbb416 calc(var(--tco-rating, 0) / 5 * 100%), #d9cdbd 0);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 22'%3E%3Cpath d='M11.5 1l3.1 6.4 7 1-5.1 4.9 1.2 7-6.2-3.3-6.2 3.3 1.2-7L1.4 8.4l7-1z'/%3E%3C/svg%3E") left center / 18.4px 18px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 22'%3E%3Cpath d='M11.5 1l3.1 6.4 7 1-5.1 4.9 1.2 7-6.2-3.3-6.2 3.3 1.2-7L1.4 8.4l7-1z'/%3E%3C/svg%3E") left center / 18.4px 18px repeat-x;
}
ul.products li.product .tco-stars { display: block; margin: 4px auto; }

/* Prix au kilo dans les listes de produits */
.tco-perkg-loop { display: block; margin-top: 2px; text-align: center; color: #6b615a; font-size: 12.5px; font-weight: 400; line-height: 1.4; }

/* Produits suggérés (fiche produit et panier) */
.tco-xsell {
	margin: 20px 0 0;
	padding: 16px 18px;
	border: 1px solid #ece4da;
	border-radius: 12px;
	background: #fff;
	text-align: left;
}
.tco-xsell__title { margin: 0 0 10px !important; padding: 0 !important; color: #1f1a17; font-size: 15px; font-weight: 700; line-height: 1.4; }
.tco-xsell__list { display: grid; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.tco-xsell__item { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.tco-xsell__item::before { display: none !important; }
.tco-xsell__thumb { flex: 0 0 56px; }
.tco-xsell__thumb img { display: block; width: 56px !important; height: 56px !important; object-fit: cover; border-radius: 8px; }
.tco-xsell__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tco-xsell__name { color: #1f1a17 !important; font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none !important; }
.tco-xsell__price { color: #6b615a; font-size: 13px; }
.tco-xsell__price .screen-reader-text { display: none; }
.tco-xsell__btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 84px;
	white-space: nowrap;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid #fbb416;
	border-radius: 10px;
	background: #fbb416;
	color: #1f1a17 !important;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none !important;
	box-sizing: border-box;
	transition: filter .15s;
}
.tco-xsell__btn:hover { filter: brightness(.95); }
.tco-xsell__btn--ghost { border-color: #1f1a17; background: #fff; }
.tco-xsell__btn.loading { opacity: .6; pointer-events: none; }
.tco-xsell__btn.added { border-color: #1e6b32; background: #e3f4e6; }
.tco-xsell__btn::after { display: none !important; }
.tco-xsell .added_to_cart { display: none !important; }
/* Téléphone : bouton raccourci (« Ajouter ») pour laisser la place au nom du produit. */
@media (max-width: 560px) {
	.tco-xsell__btn-more { display: none; }
	.tco-xsell__btn { min-width: 0; padding: 0 16px; }
}
@media (min-width: 761px) {
	.tco-xsell--cart .tco-xsell__list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* Panier : produits complémentaires en petites cartes, bouton court pour laisser la place au nom. */
.tco-xsell--cart .tco-xsell__btn-more { display: none; }
.tco-xsell--cart .tco-xsell__btn { min-width: 0; padding: 0 16px; }
.tco-xsell--cart .tco-xsell__name { overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (min-width: 761px) {
	.tco-xsell--cart .tco-xsell__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.tco-xsell--cart .tco-xsell__item { padding: 10px 12px 10px 10px !important; border: 1px solid #ece4da; border-radius: 12px; background: #fff; }
}
@media (min-width: 761px) and (max-width: 1200px) {
	.tco-xsell--cart .tco-xsell__list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
