/* Base variables */
.share-buttons{
  --ax-size: 40px;
  --ax-gap: .6rem;
  --ax-radius: 999px;
  --ax-pad-x: clamp(0.6rem, 0.8rem, 1rem);
  display:flex;
  flex-wrap:wrap;
  gap: var(--ax-gap);
  align-items:center;
}
.share-buttons.is-center{ justify-content:center; }
.share-buttons.is-right{ justify-content:flex-end; }

.share-counter-total{
  font-weight:700;
  margin-right:.25rem;
  padding:0 .5rem;
  min-width: calc(var(--ax-size) * .9);
  height: var(--ax-size);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: var(--ax-radius);
  background: rgba(0,0,0,.06);
  color:#222;
  border:1px solid rgba(0,0,0,.08);
}

/* Button */
.share-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5ch;
  min-width: var(--ax-size);
  height: var(--ax-size);
  padding: 0 var(--ax-pad-x);
  border-radius: var(--ax-radius);
  text-decoration:none;
  font-weight:600;
  line-height:1;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease, color .2s;
  border: 1px solid transparent;
}
.share-btn .share-ico svg{ display:block; }
.share-btn.with-label .share-text{ font-size: clamp(.85rem,.9rem,1rem); }
.share-btn .share-count{
  margin-left:.4ch;
  font-size:.85rem;
  opacity:.85;
}

/* Themes */
.theme-metal .share-btn{
  background: linear-gradient(145deg, #b87333, #d8904c);
  color:#fff;
  border-color:#915a2c;
  box-shadow: 2px 2px 5px rgba(0,0,0,.3), inset -2px -2px 4px rgba(255,255,255,.2);
}
.theme-metal .share-btn:hover{
  background: linear-gradient(145deg, #d8904c, #b87333);
  transform: translateY(-1px);
  box-shadow: 2px 4px 8px rgba(0,0,0,.4);
}
.theme-minimal .share-btn{
  background:#f2f2f2;
  color:#222;
  border-color: rgba(0,0,0,.08);
}
.theme-minimal .share-btn:hover{
  background:#fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.theme-outline .share-btn{
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.theme-outline .share-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.theme-auto{ color: inherit; }
.theme-auto .share-btn{
  color: color-mix(in srgb, currentColor 96%, black 4%);
  background: color-mix(in srgb, currentColor 14%, white 86%);
  border-color: color-mix(in srgb, currentColor 40%, transparent 60%);
}
.theme-auto .share-btn:hover{
  background: color-mix(in srgb, currentColor 22%, white 78%);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* Responsive */
@media (max-width:480px){
  .share-btn{ --ax-size: calc(var(--ax-size) - 4px); padding: 0 .6rem; }
  .share-btn.with-label .share-text{ font-size:.85rem; }
}
