/* ═══════════════════════════════════════════════════════════════════════════
   Avis de l'UE sur la garantie légale de conformité
   Voir inc/legal-guarantee.php et assets/js/uc-legal-guarantee.js.
   L'image officielle ne se retouche pas : elle garde ses proportions et, dans
   la modale, au moins 560 px de large (texte vers 12 px) pour rester lisible
   « à la taille d'affichage par défaut » (guide de la Commission) : sur mobile,
   elle défile aussi en largeur, et « Ouvrir l'avis en grand » reste proposé.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Phrase « vos droits » */
.uc-legal-guarantee-trigger {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-size: .875rem;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.uc-legal-guarantee-trigger svg {
	flex: none;
}

.uc-legal-guarantee-trigger:focus-visible {
	outline: 3px solid #1D4FD8;
	outline-offset: 2px;
}

/* Fiche produit : sous le widget « livraison gratuite / 14 jours ». */
.uc-legal-guarantee-trigger--product {
	margin: .25rem 0 1rem;
	color: #0A0A0B;
}

/* Commande : sous le bouton « Commander ». */
.uc-legal-guarantee-trigger--checkout {
	margin-top: 1rem;
	color: #0A0A0B;
}

/* Pied de page : bandeau entre les colonnes et le copyright (fond noir). */
.uc-legal-guarantee-bar {
	padding: 1rem 0;
	border-top: 1px solid rgba(255, 255, 255, .15);
	background-color: #000;
}

/* Spécificité pour passer devant « footer.site-footer a:not(.button) » (Customizer). */
.site .uc-legal-guarantee-bar .uc-legal-guarantee-trigger {
	color: #c1c1c1;
}

.site .uc-legal-guarantee-bar .uc-legal-guarantee-trigger:hover {
	color: #fff;
}

/* Dans une div à part : .col-full porte un clearfix (::before / ::after) qui
   ferait deux éléments vides en flex. */
.uc-legal-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 2rem;
}

.uc-legal-cookies {
	padding: 0;
	border: 0;
	background: none;
	color: #c1c1c1;
	font: inherit;
	font-size: .875rem;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.uc-legal-cookies:hover {
	color: #fff;
}

.uc-legal-cookies:focus-visible {
	outline: 3px solid #1D4FD8;
	outline-offset: 2px;
}

/* Modale */
.uc-legal-guarantee {
	width: min(100% - 2rem, 46rem);
	max-height: min(100dvh - 2rem, 64rem);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: #0A0A0B;
	box-shadow: 0 24px 60px -20px rgba(10, 10, 11, .45);
	overflow: hidden;
}

.uc-legal-guarantee[open] {
	display: flex;
	flex-direction: column;
}

.uc-legal-guarantee::backdrop {
	background: rgba(10, 10, 11, .55);
}

.uc-legal-guarantee__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .75rem .75rem .75rem 1.25rem;
	border-bottom: 1px solid #D9DCE2;
}

.uc-legal-guarantee__title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
}

.uc-legal-guarantee__close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #0A0A0B;
	cursor: pointer;
}

.uc-legal-guarantee__close:hover {
	background: #F4F5F7;
}

.uc-legal-guarantee :focus-visible {
	outline: 3px solid #1D4FD8;
	outline-offset: 2px;
}

.uc-legal-guarantee__body {
	overflow: auto;
	overscroll-behavior: contain;
	padding: 1rem 1.25rem 1.25rem;
}

.uc-legal-guarantee__notice {
	margin: 0;
}

.uc-legal-guarantee__notice img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #D9DCE2;
}

.uc-legal-guarantee__body .uc-legal-guarantee__notice img {
	min-width: 560px;
}

.uc-legal-guarantee__links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	margin-top: .75rem;
	font-size: .875rem;
}

.uc-legal-guarantee__links a {
	color: #1D4FD8;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Dans une page (shortcode) : largeur de lecture. */
.uc-legal-guarantee-inline {
	max-width: 46rem;
	margin: 1.5rem 0;
}

@media (max-width: 600px) {
	.uc-legal-guarantee {
		width: 100%;
		max-width: none;
		max-height: 100dvh;
		height: 100dvh;
		border-radius: 0;
	}

	.uc-legal-guarantee__body {
		padding: .75rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.uc-legal-guarantee[open] {
		animation: uc-lg-in .22s cubic-bezier(.2, .8, .2, 1);
	}
}

@keyframes uc-lg-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(.98);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media print {
	.uc-legal-guarantee-bar,
	.uc-legal-guarantee-trigger,
	.uc-legal-cookies {
		display: none;
	}
}
