/* ==========================================================
   VV Scroll Pins (↑  %  ↓) + menu percentuali
   ========================================================== */

.vv-scrollpins {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  user-select: none;
}

.vv-scrollpins {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.vv-scrollpins:hover {
  opacity: 1;
}

/* IMPORTANT: i click devono funzionare anche sopra overlay */
.vv-scrollpins,
.vv-scrollpins * {
  pointer-events: auto;
}

/* (Se usi .pin altrove, lascio lo stile com'era) */
.vv-scrollpins .pin {
  border: 1px solid #c7d1e2;
  background: #fff;
  border-radius: 10px;
  padding: 6px 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  cursor: pointer;
}

.vv-scrollpins .pin:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

/* SUPER-IMPORTANTE: stile SOLO per i bottoni PIN diretti
   (così i button del menu non vengono schiacciati a 60x60) */
.vv-scrollpins>button {
  width: 60px;
  height: 60px;
  font-size: 36px;
  line-height: 1;
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  background: #fff;
}

/* ancore scroll (se le usi) */
#vv-post-top,
#vv-post-bottom {
  scroll-margin-top: 80px;
}

/* ==========================================================
   Menu percentuali (long-press sul bottone "percent")
   ========================================================== */

.vv-pct-menu {
  position: fixed;
  z-index: 100000;
  padding: 10px;
  border: 1px solid #c7d1e2;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  min-width: 180px;
}

.vv-pct-menu .vv-pct-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #334;
}

.vv-pct-menu button {
  width: 100%;
  height: auto;
  font-size: 16px;
  line-height: 1.2;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #c7d1e2;
  background: #fff;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.vv-pct-menu button+button {
  margin-top: 8px;
}

.vv-pct-menu button:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}

.vv-scrollpins {
  right: 16px;
  bottom: 90px;
  opacity: 0.75;
}

.vv-scrollpins:hover {
  opacity: 1;
}