/*!
 * Democratic Votation — menu Partager et QR code (kit commun des extensions Tepee).
 * Licence GPL-2.0-or-later.
 */

/* ------------------------------ Partager ------------------------------ */
.dvote-share { position: relative; display: inline-flex; }
.dvote-share__btn { display: inline-flex; align-items: center; gap: 8px; }
.dvote-share__icon { width: 1.15em; height: 1.15em; flex: none; }
.dvote-share .dvote-share__menu {
	position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; min-width: 220px; max-width: min(320px, 86vw);
	display: flex; flex-direction: column; gap: 2px; padding: 8px;
	background: var(--dvote-surface, #fff); color: var(--dvote-ink, #0f172a);
	border: 1px solid var(--dvote-line, #e5e7eb); border-radius: var(----dvote-r-s, 10px);
	box-shadow: 0 16px 40px -12px rgba(15, 23, 42, .28);
	font-size: calc(var(--dvote-fs, 16px) * 0.875); text-align: left;
}
.dvote-share.is-end .dvote-share__menu { left: auto; right: 0; }
.dvote-share .dvote-share__menu[hidden] { display: none; }
.dvote-share .dvote-share__title { padding: 4px 8px 6px; font-size: .8em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dvote-muted, #64748b); }
.dvote-share .dvote-share__item {
	-webkit-appearance: none; appearance: none; box-sizing: border-box; min-height: 0; min-width: 0;
	display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; padding: 8px 10px; margin: 0;
	font-weight: 400; letter-spacing: normal; text-transform: none; box-shadow: none;
	border: 0; border-radius: calc(var(----dvote-r-s, 10px) * .7); background: transparent; color: inherit;
	font: inherit; line-height: 1.3; text-align: left; text-decoration: none !important; cursor: pointer;
}
.dvote-share .dvote-share__item:hover, .dvote-share .dvote-share__item:focus-visible { background: var(--dvote-soft, #eff6ff); color: var(--dvote-accent-ink, #1d4ed8); outline: none; }
.dvote-share .dvote-share__item:focus-visible { box-shadow: 0 0 0 2px var(--dvote-accent, #2563eb); }
.dvote-share .dvote-share__item .dvote-share__icon { color: var(--dvote-accent-ink, #1d4ed8); }
.dvote-share .dvote-share__item.is-done { color: var(--dvote-ok, #15803d); }
.dvote-share .dvote-share__tiles { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 4px 4px; }
.dvote-share .dvote-share__item.is-tile {
	width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%;
	background: color-mix(in srgb, var(--dvote-tile, var(--dvote-accent, #2563eb)) 12%, transparent);
}
.dvote-share .dvote-share__item.is-tile .dvote-share__icon { width: 20px; height: 20px; color: var(--dvote-tile, var(--dvote-accent-ink, #1d4ed8)); }
.dvote-share .dvote-share__item.is-tile .dvote-share__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dvote-share .dvote-share__item.is-tile:hover, .dvote-share .dvote-share__item.is-tile:focus-visible { background: color-mix(in srgb, var(--dvote-tile, var(--dvote-accent, #2563eb)) 22%, transparent); }
.dvote-share .dvote-share__item.is-tile.is-done { box-shadow: 0 0 0 2px var(--dvote-ok, #15803d); }
.dvote-share .dvote-share__menu.is-tiles { min-width: 0; }
.dvote-share__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------ QR code ------------------------------ */
.dvote-qr { display: block; width: 100%; height: auto; }
