/*
 * urbexeur : le tiroir du panier, sur toutes les pages du site (sauf la commande). Il s'appuie sur les couleurs et la
 * police du thème (variables de style.css) et sur son bouton (.bouton).
 */

.ua-tiroir {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(420px, 100vw);
	max-width: 100vw;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid var(--2h, #23272B);
	background: var(--bloc, #14171A);
	color: var(--4b, #AEB5BB);
	font-family: var(--police, Arial, sans-serif);
	overflow: hidden;
}
.ua-tiroir[open] { animation: ua-entre .28s cubic-bezier(.2, .7, .3, 1); }
.ua-tiroir::backdrop { background: rgba(5, 6, 7, .66); }
@keyframes ua-entre { from { transform: translateX(32px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ua-tiroir[open] { animation: none; } }
html:has(.ua-tiroir[open]) { overflow: hidden; }

.ua-tiroir-boite { display: flex; flex-direction: column; height: 100%; outline: none; }
.ua-tiroir-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--2h, #23272B); }
.ua-tiroir-titre { margin: 0; color: var(--9b, #F3F5F6); font-size: 17px; font-weight: 600; }
.ua-tiroir-fermer { display: grid; place-items: center; width: 40px; height: 40px; margin: -8px -10px -8px 0; padding: 0; background: none; border: 0; color: var(--9b, #F3F5F6); cursor: pointer; }
.ua-tiroir-fermer:hover { color: var(--signal, #FF5900); }
.ua-tiroir .ua-icone { width: 22px; height: 22px; flex: 0 0 auto; }

.ua-tiroir-contenu { display: flex; flex-direction: column; flex: 1; min-height: 0; transition: opacity .15s; }
.ua-tiroir-contenu.ua-occupe { opacity: .5; pointer-events: none; }
.ua-tiroir-corps { flex: 1; overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.ua-tiroir-ajout { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--9b, #F3F5F6); font-size: 14px; font-weight: 500; }
.ua-tiroir-ajout .ua-icone { width: 18px; height: 18px; color: #3FB27F; }

.ua-tiroir .ua-lignes { margin: 0; padding: 0; list-style: none; }
.ua-tiroir .ua-ligne { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--2h, #23272B); }
.ua-tiroir .ua-ligne:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.ua-tiroir .ua-ligne-neuve { animation: ua-neuve .9s ease-out; }
@keyframes ua-neuve { from { background: rgba(255, 89, 0, .08); } }
.ua-tiroir .ua-ligne-image { display: block; width: 72px; height: 72px; overflow: hidden; background: var(--papier, #0A0B0C); border: 1px solid var(--2h, #23272B); }
.ua-tiroir .ua-ligne-image img { width: 100%; height: 100%; object-fit: cover; }
.ua-tiroir .ua-ligne-nom { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.ua-tiroir .ua-ligne-nom a { color: var(--9b, #F3F5F6); background: none; padding: 0; }
.ua-tiroir .ua-ligne-nom a:hover { color: var(--signal, #FF5900); }
.ua-tiroir .ua-ligne-detail { margin: 4px 0 0; color: var(--2b, #858C93); font-size: 13px; }
.ua-tiroir .ua-ligne-retirer { margin: 6px 0 0; padding: 0; background: none; border: 0; color: var(--2b, #858C93); font: 400 13px/1.4 var(--police, Arial, sans-serif); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ua-tiroir .ua-ligne-retirer:hover { color: var(--9b, #F3F5F6); }
.ua-tiroir .ua-ligne-prix { margin: 0; color: var(--9b, #F3F5F6); font-size: 15px; font-weight: 600; text-align: right; white-space: nowrap; }
.ua-tiroir del { display: block; color: var(--2b, #858C93); font-size: 13px; font-weight: 400; }

.ua-tiroir-pied { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--2h, #23272B); background: var(--bloc, #14171A); }
.ua-tiroir-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 16px; color: var(--9b, #F3F5F6); font-size: 16px; font-weight: 600; }
.ua-tiroir-total strong { font-size: 20px; font-weight: 700; }
.ua-tiroir-total del { display: inline; margin-right: 6px; font-size: 14px; }

.ua-tiroir .ua-express-bouton { min-height: 50px; }
.ua-tiroir .ua-express[hidden] { display: none; }
.ua-tiroir .ua-express-attente .ua-express-bouton { background: linear-gradient(90deg, #E6E9EB 0%, #F3F5F6 50%, #E6E9EB 100%) 0 0 / 200% 100%; animation: ua-lueur 1.4s linear infinite; }
@keyframes ua-lueur { to { background-position: -200% 0; } }
.ua-tiroir .ua-express-erreur { margin: 8px 0 0; color: var(--erreur, #E5484D); font-size: 14px; }
.ua-tiroir .ua-ou, .ua-express-fiche-zone .ua-ou { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--2b, #858C93); font-size: 13px; }
.ua-tiroir .ua-ou::before, .ua-tiroir .ua-ou::after, .ua-express-fiche-zone .ua-ou::before, .ua-express-fiche-zone .ua-ou::after { content: ""; flex: 1; height: 1px; background: var(--2h, #23272B); }
.ua-tiroir .ua-ou[hidden], .ua-express-fiche-zone[hidden] { display: none; }

.ua-tiroir .ua-tiroir-commander { width: 100%; height: 52px; justify-content: center; gap: 10px; }
.ua-tiroir .ua-tiroir-commander::after { display: none; }      /* la flèche du thème : le cadenas suffit */
.ua-tiroir .ua-tiroir-commander .ua-icone { width: 20px; height: 20px; }
.ua-tiroir-suite { display: block; width: 100%; margin: 10px 0 0; padding: 8px; background: none; border: 0; color: var(--2b, #858C93); font: 400 14px/1.4 var(--police, Arial, sans-serif); cursor: pointer; }
.ua-tiroir-suite:hover { color: var(--9b, #F3F5F6); }

.ua-tiroir-vide { padding: 40px 20px; text-align: center; }
.ua-tiroir-vide p { margin: 0 0 20px; color: var(--9b, #F3F5F6); }

/* La fiche d'une carte : le paiement express sous le bouton d'achat. */
.ua-express-fiche-zone { width: 100%; flex-basis: 100%; margin: 4px 0 0; }
.ua-express-fiche .ua-express-bouton { min-height: 50px; }
.ua-express-fiche.ua-express-attente .ua-express-bouton { background: linear-gradient(90deg, #E6E9EB 0%, #F3F5F6 50%, #E6E9EB 100%) 0 0 / 200% 100%; animation: ua-lueur 1.4s linear infinite; }
.ua-express-fiche .ua-express-erreur { margin: 8px 0 0; color: var(--erreur, #E5484D); font-size: 14px; }
.ua-ajout-erreur { margin: 12px 0 0; color: var(--erreur, #E5484D); font-size: 14px; }

@media (max-width: 600px) {
	.ua-tiroir { inset: auto 0 0 0; width: 100vw; height: auto; max-height: 88vh; max-height: 88dvh; border-left: 0; border-top: 1px solid var(--hb, #454B51); }
	.ua-tiroir[open] { animation-name: ua-monte; }
	@keyframes ua-monte { from { transform: translateY(40px); opacity: 0; } }
	.ua-tiroir-boite { height: auto; max-height: inherit; }
	.ua-tiroir-corps { padding: 16px; }
	.ua-tiroir-pied { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
}

/* La vue de nuit d'un lieu, et son cadenas, comme sur la grille des pages locales. */
.ua-tiroir .ua-ligne-image { position: relative; }
.ua-visuel-cadenas { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--signal, #FF5900); color: #0A0B0C; }
.ua-tiroir .ua-visuel-cadenas .ua-icone { width: 12px; height: 12px; stroke-width: 2.2; }

/* Sous le bouton : ce que l'on obtient, pas une sortie. */
.ua-tiroir-gages { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; color: var(--2b, #858C93); font-size: 13px; text-align: center; }
.ua-tiroir-gages .ua-icone { width: 16px; height: 16px; color: var(--signal, #FF5900); }
