/*
 * Ces styles sont volontairement sobres et s'appuient sur `inherit` pour la
 * typographie, ainsi que sur la classe `.button` déjà stylée par TheGem/
 * WooCommerce pour les boutons. Ajustez les couleurs (variables ci-dessous)
 * pour coller exactement à la charte du site une fois testé en conditions
 * réelles.
 */

.pgm-public-app {
	--pgm-border: #e2e2e2;
	--pgm-bg-muted: #f7f7f7;
	--pgm-accent: #1a1a1a;
	font-family: inherit;
	color: inherit;
	max-width: 100%;
}

.pgm-public-login {
	max-width: 420px;
	margin: 40px auto;
	text-align: center;
}

.pgm-public-login input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--pgm-border);
	border-radius: 2px;
	font-size: 15px;
}

.pgm-public-error {
	color: #b32d2e;
	min-height: 1.2em;
}

.pgm-public-welcome {
	padding: 48px 32px;
	margin-bottom: 32px;
	background: #fff;
	text-align: center;
	position: relative;
}

.pgm-public-welcome-inner {
	max-width: 600px;
	margin: 0 auto;
}

.pgm-public-welcome-greeting {
	font-size: 22px;
	font-weight: 300;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 20px;
}

.pgm-public-welcome-divider {
	width: 44px;
	height: 2px;
	background: #1fae63;
	margin: 0 auto 22px;
}

#pgm-public-welcome-body {
	font-size: 14px;
	line-height: 1.8;
	color: #444;
	white-space: pre-line;
	margin: 0 0 26px;
}

.pgm-public-logout-link {
	position: absolute;
	top: 18px;
	right: 24px;
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: #999;
	border-bottom: 1px solid #ccc;
	padding-bottom: 2px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.pgm-public-logout-link:hover {
	color: #000;
	border-color: #000;
}

.pgm-public-body {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 32px;
	align-items: start;
}

@media (max-width: 782px) {
	.pgm-public-body {
		grid-template-columns: 1fr;
	}
}

.pgm-public-folders-col {
	position: sticky;
	top: 20px;
}

@media (max-width: 782px) {
	.pgm-public-folders-col {
		position: static;
	}
}

.pgm-public-folders {
	border-right: 1px solid var(--pgm-border);
	padding-right: 16px;
}

.pgm-public-folder-row {
	padding: 12px 14px 12px 10px;
	cursor: pointer;
	border-radius: 3px;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 44px;
	box-sizing: border-box;
}

.pgm-public-folder-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Badge à double cadre (façon "pages empilées") autour du nombre de
   photos. Deux éléments distincts avec un ordre d'empilement EXPLICITE
   (z-index positifs, jamais négatifs) : le cadre arrière (::before du
   conteneur) reste toujours strictement derrière le cadre avant, qui
   porte le chiffre — centré via flex, sur un élément dédié plutôt que
   sur le conteneur lui-même. Taille en min-width (pas fixe) : accueille
   un nombre à un, deux ou trois chiffres sans jamais couper le texte. */
.pgm-public-folder-count {
	position: relative;
	display: inline-flex;
	flex: none;
	margin: 6px 6px 2px 0;
}

.pgm-public-folder-count::before {
	content: '';
	position: absolute;
	top: -4px;
	right: -4px;
	bottom: 4px;
	left: 4px;
	box-sizing: border-box;
	border: 1.5px solid currentColor;
	border-radius: 5px;
	background: #fff;
	z-index: 1;
}

.pgm-public-folder-count-inner {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	min-width: 30px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: #333;
	background: #fff;
	border: 1.5px solid currentColor;
	border-radius: 5px;
	padding: 0 6px;
}

.pgm-public-folder-row:hover {
	background: var(--pgm-bg-muted);
}

.pgm-public-folder-row.is-active {
	background: var(--pgm-accent);
	color: #fff;
}

/* Sur fond sombre (dossier actif), le badge plein blanc casse le style
   "double cadre en traits fins" — fond assorti à la ligne, traits et
   chiffre en blanc (border et texte suivent tous deux "color" via
   currentColor). */
.pgm-public-folder-row.is-active .pgm-public-folder-count::before,
.pgm-public-folder-row.is-active .pgm-public-folder-count-inner {
	background: var(--pgm-accent);
	color: #fff;
}

.pgm-public-folder-children {
	margin-left: 14px;
}

.pgm-public-select-all {
	margin-bottom: 16px;
	font-size: 17px;
	font-weight: 600;
}

.pgm-public-select-all label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.pgm-public-select-all input[type="checkbox"] {
	width: 22px;
	height: 22px;
	cursor: pointer;
}

.pgm-public-loading {
	font-size: 13px;
	color: #8c8f94;
	padding: 20px 0;
}

#pgm-public-photos-sentinel {
	height: 1px;
}

#pgm-public-photos-more {
	display: block;
	margin: 20px auto 0;
}

.pgm-public-photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 32px;
}

.pgm-public-photo-card {
	position: relative;
	border: 1px solid var(--pgm-border);
	border-radius: 3px;
	overflow: hidden;
	background: var(--pgm-bg-muted);
}

.pgm-public-photo-card img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
}

.pgm-public-photo-noThumb {
	width: 100%;
	height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 12px;
	color: #8c8f94;
	background: var(--pgm-bg-muted);
	padding: 8px;
	box-sizing: border-box;
}

.pgm-public-photo-card .pgm-public-photo-select {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 20px;
	height: 20px;
}

.pgm-public-photo-card .pgm-public-photo-name {
	font-size: 11px;
	padding: 6px 8px;
	word-break: break-all;
}

.pgm-public-photo-card .pgm-public-photo-sizes {
	padding: 0 8px 8px;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.pgm-public-photo-card .pgm-public-photo-sizes span {
	font-size: 13px;
	color: #000000;
	font-weight: 600;
	line-height: 1.4;
}

/* Fausse "photo" promotionnelle en fin de dossier (offre "Encore plus de photos") */

.pgm-more-photos-visual {
	width: 100%;
	height: 150px;
	background-image: url('../img/more-photos.webp');
	background-size: cover;
	background-position: center;
	cursor: pointer;
}

.pgm-public-alt-login {
	font-size: 13px;
	margin-top: 16px;
}

/* Lightbox */

.pgm-public-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pgm-public-lightbox img {
	max-width: 88vw;
	max-height: 88vh;
	object-fit: contain;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.pgm-public-lightbox button {
	position: absolute;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
}

.pgm-lightbox-close {
	top: 20px;
	right: 20px;
}

.pgm-lightbox-prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.pgm-lightbox-next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.pgm-lightbox-download {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.95);
	color: #222;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.pgm-public-photo-card img {
	cursor: zoom-in;
}

/* Panneau de commande de tirages */

.pgm-order-panel {
	margin-bottom: 56px;
}

.pgm-order-panel--footer {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid var(--pgm-border);
	margin-bottom: 0;
}

.pgm-order-note {
	font-size: 12px;
	color: #666;
	margin-top: 14px;
}

.pgm-order-grid {
	display: grid;
	grid-template-columns: 1fr; /* petits smartphones : 1 par ligne, pour le haut et le bas */
	grid-auto-rows: auto;
	column-gap: 48px;
	row-gap: 102px;
	margin: 42px 0 10px;
}

/* Tablette en horizontal / grand smartphone : le bloc du haut passe à 2 par
   ligne. Le bloc du bas reste à 1 (davantage de place pour l'image). */
@media (min-width: 600px) {
	#pgm-public-offers .pgm-order-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Grand écran (bureau) : le bloc du bas passe à 2 par ligne (cases plus
   grandes, pour profiter pleinement de l'image dans toute sa largeur et sa
   hauteur) — le bloc du haut reste à 2 par ligne aussi, comme dès la
   tablette, pour rester plus aéré. */
@media (min-width: 1024px) {
	.pgm-order-panel--footer .pgm-order-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	/* Bloc du haut : 3 colonnes (plus compact en largeur), mais on garde la
	   hauteur plus généreuse plutôt que de la réduire avec le ratio — le fond
	   (cover) se recadre sur les côtés au lieu d'aplatir la case. */
	#pgm-public-offers .pgm-order-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	#pgm-public-offers .pgm-order-tile {
		aspect-ratio: unset;
		height: 180px;
	}
}

.pgm-order-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	aspect-ratio: 3.8 / 1; /* proche du ratio des bandeaux panoramiques (image de fond) */
	min-height: 90px;
	border-radius: 0;
	overflow: visible; /* le titre déborde volontairement au-dessus de la case */
	padding: 18px;
	box-sizing: border-box;
	color: #fff;
}

/* Masque dédié au recadrage de la photo (coins arrondis + zoom au survol) —
   séparé de la case elle-même, qui doit rester en overflow visible pour
   laisser déborder le titre. */
.pgm-order-photo-mask {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 0;
	z-index: 0;
}

/* Voile blanc translucide par-dessus la photo grisée, tant que l'offre
   n'est pas débloquée — disparaît en fondu une fois le seuil atteint. */
.pgm-order-photo-mask::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.4);
	transition: opacity 0.8s ease;
	pointer-events: none;
}

.pgm-order-tile.is-unlocked .pgm-order-photo-mask::after,
.pgm-order-tile--download .pgm-order-photo-mask::after {
	opacity: 0;
}

/* Couche de fond : permet de zoomer la photo au survol sans agrandir la
   case elle-même (donc sans chevaucher les voisines), et de la griser tant
   que l'offre n'est pas débloquée. */
.pgm-order-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: grayscale(1);
	transition: transform 0.6s ease, filter 0.8s ease;
}

/* Pas de notion de "déblocage" pour la case téléchargement : toujours en couleur. */
.pgm-order-tile--download .pgm-order-bg {
	filter: grayscale(0);
}

.pgm-order-tile.is-unlocked .pgm-order-bg {
	filter: grayscale(0);
}

.pgm-order-tile:hover .pgm-order-bg {
	transform: scale(1.15);
	filter: grayscale(1) brightness(1.08);
}

.pgm-order-tile--download:hover .pgm-order-bg,
.pgm-order-tile.is-unlocked:hover .pgm-order-bg {
	filter: grayscale(0) brightness(1.08);
}

/* Fonds de substitution en attendant de vraies photos produit */
.pgm-order-tile[data-id="fine_art"] .pgm-order-bg {
	background-image: linear-gradient(135deg, #6b4226, #a9744f);
}
.pgm-order-tile[data-id="framing_glass"] .pgm-order-bg {
	background-image: linear-gradient(135deg, #34495e, #5d7a99);
}
.pgm-order-tile[data-id="framing_box"] .pgm-order-bg {
	background-image: linear-gradient(135deg, #2c3e50, #4a4a4a);
}
.pgm-order-tile[data-id="poster"] .pgm-order-bg {
	background-image: linear-gradient(135deg, #8a6d3b, #c2a469);
}
.pgm-order-tile[data-id="book"] .pgm-order-bg {
	background-image: linear-gradient(135deg, #7f5a83, #9c6b98);
}

/* Titre : bandeau blanc pleine largeur, centré, à cheval sur le bord haut de
   la case (moitié au-dessus, moitié sur la photo) — un léger dégradé
   d'opacité (100% en haut, 80% en bas) laisse deviner la photo dans le pied
   du bandeau. */
.pgm-order-tile > h4 {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	margin: 0;
	z-index: 2;
	transform: translateY(-95%);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 14px;
	border-top: 2px solid #000;
	border-left: 2px solid #000;
	border-right: 2px solid #000;
	font-size: 15px;
	line-height: 1.3;
	color: #000;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 100%);
}

/* Pastille verte devant le titre : offres débloquées (le seuil de photos est
   atteint — inclut "Encore plus de photos", toujours débloquée), et
   systématiquement sur "Téléchargement" (toujours disponible, pas de seuil). */
.pgm-order-tile.is-unlocked > h4::before,
.pgm-order-tile--download > h4::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #1fae63;
}

.pgm-order-info {
	position: relative;
	z-index: 1;
	padding-top: 4px; /* le titre ne chevauche plus que très légèrement la case */
}

.pgm-order-check {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #1fae63;
}

.pgm-order-info {
	padding-right: 30px;
	padding-bottom: 42px;
	flex: 1 1 auto;
}

/* Pastille de texte : un fond translucide derrière chaque ligne pour rester
   lisible quelle que soit la clarté de l'image de fond de la case. Deux
   variantes prêtes à l'emploi ; --dark est utilisée ici puisque le texte
   des cases est clair, --light reste disponible pour un texte sombre sur
   fond clair ailleurs si besoin. */
.pgm-text-chip {
	display: inline-block;
	max-width: 100%;
	padding: 2px 7px;
	line-height: 1.3;
	border-radius: 0;
}

.pgm-text-chip--dark {
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
}

.pgm-text-chip--light {
	background: rgba(255, 255, 255, 0.7);
	color: #000;
}

.pgm-order-info h4 {
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 1.3;
}

.pgm-order-info p {
	margin: 0 0 3px;
	font-size: 12px;
	opacity: 0.9;
}

.pgm-order-info p:last-child {
	margin-bottom: 0;
}

.pgm-order-desc {
	text-align: center;
}

.pgm-order-meta {
	font-size: 11px !important;
	opacity: 0.75 !important;
}

.pgm-order-unlock {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	text-align: center;
	font-size: 18px !important;
	font-weight: 600;
	opacity: 1 !important;
	max-width: calc(100% - 24px);
}

/* Bouton autonome (offres sans seuil de sélection, ex. "Encore plus de
   photos") : centré en bas, comme avant. */
.pgm-order-btn--standalone {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	height: 32px;
	line-height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	background: #000;
	color: #fff;
	border: 1px solid #000;
	border-radius: 2px;
	padding: 7px 14px;
	box-sizing: border-box;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
}

.pgm-order-btn--standalone::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #1fae63;
}

/* Offres liées à un seuil, une fois débloquées : un seul bloc au style de
   bouton, en deux colonnes — nombre de photos sélectionnées à gauche,
   Commander à droite. Un seul état visible à la fois (l'indication "il en
   manque" est masquée dès que ce bloc apparaît), donc plus aucun texte ne
   peut se chevaucher, même sur petit écran. */
.pgm-order-action {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	width: max-content;
	max-width: calc(100% - 16px);
	height: 40px;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 0 0 1px #000;
}

.pgm-order-count,
.pgm-order-action .pgm-order-btn {
	background: #000;
	color: #fff;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.pgm-order-count {
	flex: none;
	flex-direction: column;
	gap: 1px;
	font-size: 10px;
	line-height: 1.25;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
	border-right: 1px solid rgba(255, 255, 255, 0.25);
	padding: 4px 8px;
}

.pgm-order-action .pgm-order-btn {
	flex: none;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.02em;
	gap: 7px;
	white-space: nowrap;
	cursor: pointer;
	border: none;
	padding: 0 8px;
}

.pgm-order-action .pgm-order-btn::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #1fae63;
}

/* Case dédiée au téléchargement : même aspect que les autres cases, juste
   un fond neutre (pas de photo produit) et deux boutons côte à côte. */
.pgm-order-tile--download .pgm-order-bg {
	background-image: linear-gradient(135deg, #4a4a4a, #1f1f1f);
}

.pgm-order-download-buttons {
	position: absolute;
	bottom: 8px;
	left: 12px;
	right: 12px;
	z-index: 2;
	display: flex;
	justify-content: space-evenly;
}

.pgm-order-download-buttons .button {
	flex: 0 0 auto;
	width: 46%;
	max-width: 165px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	white-space: normal;
	text-align: center;
	text-transform: none;
	height: 58px !important;
	line-height: 19px !important;
	box-sizing: border-box !important;
	font-size: 17px !important;
	padding: 6px 8px !important;
}

/* Encart du haut : cases plus étroites (3 par ligne sur grand écran), donc
   boutons de téléchargement plus petits et plus bas, pour ne jamais
   chevaucher le titre au-dessus. */
#pgm-public-offers .pgm-order-download-buttons {
	bottom: 4px;
}

#pgm-public-offers .pgm-order-download-buttons .button {
	width: 48%;
	max-width: 130px;
	height: 58px !important;
	line-height: 19px !important;
	font-size: 17px !important;
	padding: 6px 6px !important;
}

/* Pastille verte : systématique sur "Télécharger tout" (toujours
   disponible), et sur "Télécharger la sélection" dès qu'au moins une photo
   est sélectionnée (le bouton n'est alors plus désactivé). */
.pgm-public-download-all::before,
.pgm-public-download-selection:not(:disabled)::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #1fae63;
}

/* Bandeau promo / urgence */

.pgm-promo-banner {
	background: #fff4e5;
	border: 1px solid #f0c987;
	border-radius: 4px;
	padding: 14px 18px;
	margin-bottom: 48px;
	font-size: 14px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	justify-content: space-between;
}

.pgm-promo-banner .pgm-promo-code {
	font-weight: 700;
	background: #222;
	color: #fff;
	padding: 3px 10px;
	border-radius: 3px;
	letter-spacing: 0.05em;
}

.pgm-promo-banner .pgm-promo-countdown {
	font-size: 12px;
	color: #8a5a00;
	font-weight: 600;
}

/* Blocs promotionnels — colonne de gauche (répétés) et pied de page (grands) */

.pgm-sidebar-promos {
	margin-top: 28px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pgm-promo-block {
	border: 1px solid var(--pgm-border);
	border-radius: 4px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: block;
	background: var(--pgm-bg-muted);
	transition: box-shadow 0.15s ease;
}

.pgm-promo-block:hover {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pgm-sidebar-promos .pgm-promo-block img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	display: block;
}

.pgm-sidebar-promos .pgm-promo-block-body {
	padding: 10px 12px;
}

.pgm-sidebar-promos .pgm-promo-block-body h5 {
	margin: 0 0 4px;
	font-size: 13px;
}

.pgm-sidebar-promos .pgm-promo-block-body p {
	margin: 0;
	font-size: 12px;
	color: #666;
}

.pgm-footer-promos {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid var(--pgm-border);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 782px) {
	.pgm-footer-promos {
		grid-template-columns: 1fr;
	}
}

.pgm-footer-promos .pgm-promo-block img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.pgm-footer-promos .pgm-promo-block-body {
	padding: 18px;
}

.pgm-footer-promos .pgm-promo-block-body h5 {
	margin: 0 0 8px;
	font-size: 19px;
}

.pgm-footer-promos .pgm-promo-block-body p {
	margin: 0;
	font-size: 14px;
	color: #555;
}

/* Bouton de copie du code promo (dans le texte d'accueil) */

.pgm-promo-code-copy {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #111;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 6px 14px 6px 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.4;
	cursor: pointer;
	vertical-align: -8px;
	position: relative;
	transition: background-color 0.2s ease;
}

.pgm-promo-code-copy:hover {
	background: #1fae63;
}

.pgm-promo-code-copy-icon,
.pgm-promo-code-copy-check {
	width: 17px;
	height: 17px;
	fill: currentColor;
	flex: none;
}

.pgm-promo-code-copy-check {
	display: none;
}

.pgm-promo-code-copy.is-copied {
	background: #1fae63;
}

.pgm-promo-code-copy.is-copied .pgm-promo-code-copy-icon {
	display: none;
}

.pgm-promo-code-copy.is-copied .pgm-promo-code-copy-check {
	display: block;
}

.pgm-promo-code-copy::after {
	content: attr(data-copied-label);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(-6px);
	background: #111;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 3px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.pgm-promo-code-copy.is-copied::after {
	opacity: 1;
}

/* Sélecteur de galerie (invités reliés à plusieurs séries) */

.pgm-public-gallery-switcher {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 0 0 32px;
}

.pgm-gallery-switch-btn {
	background: #fff;
	border: 1px solid #999;
	color: #333;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 8px 18px;
	border-radius: 3px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pgm-gallery-switch-btn:hover {
	border-color: #000;
	color: #000;
}

.pgm-gallery-switch-btn.is-active {
	background: #111;
	color: #fff;
	border-color: #111;
}
