/*! JF Share Buttons v1.0.0 | GPL-2.0-or-later */
.jfs {
  --jfs-h: 40px;
  --jfs-gap: 8px;
  --jfs-font: 14px;
  margin: 1.8em 0;
  font-family: inherit;
  line-height: 1;
}
.jfs *, .jfs *::before, .jfs *::after { box-sizing: border-box; }
.jfs [hidden] { display: none !important; }
.jfs .jfs-heading {
  margin: 0 0 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}
.jfs .jfs-list { display: flex; flex-wrap: wrap; gap: var(--jfs-gap); margin: 0; padding: 0; }
.jfs-align-center .jfs-list { justify-content: center; }
.jfs-align-center .jfs-heading { text-align: center; }

/* Buttons: reset theme link and button styles first */
.jfs a.jfs-btn, .jfs button.jfs-btn {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--jfs-h);
  min-width: var(--jfs-h);
  padding: 0 calc(var(--jfs-h) * .38);
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: var(--jfs-font);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.jfs .jfs-list > .jfs-btn svg { display: block; flex: none; width: calc(var(--jfs-h) * .46); height: calc(var(--jfs-h) * .46); }
.jfs .jfs-list > .jfs-btn:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.jfs .jfs-list > .jfs-btn:hover { transform: translateY(-1px); }
.jfs .jfs-list > .jfs-btn:active { transform: scale(.96); }

.jfs .jfs-whatsapp { --c: #25d366; }
.jfs .jfs-facebook { --c: #1877f2; }
.jfs .jfs-x        { --c: #0f1419; }
.jfs .jfs-telegram { --c: #26a5e4; }
.jfs .jfs-linkedin { --c: #0a66c2; }
.jfs .jfs-email    { --c: #6b7280; }
.jfs .jfs-copy     { --c: #374151; }
.jfs .jfs-native   { --c: #4b5563; }

/* Styles */
.jfs-style-brand .jfs-list > .jfs-btn { background: var(--c); border-color: var(--c); color: #fff; }
.jfs-style-brand .jfs-list > .jfs-btn:hover { box-shadow: 0 4px 12px -4px var(--c); color: #fff; }
.jfs-style-outline .jfs-list > .jfs-btn { background: transparent; border-color: var(--c); color: var(--c); }
.jfs-style-outline .jfs-list > .jfs-btn:hover { background: var(--c); color: #fff; }
.jfs-style-minimal .jfs-list > .jfs-btn { background: rgba(127, 127, 127, .13); color: inherit; }
.jfs-style-minimal .jfs-list > .jfs-btn:hover { background: var(--c); border-color: var(--c); color: #fff; }

/* Shapes */
.jfs-shape-rounded .jfs-list > .jfs-btn { border-radius: calc(var(--jfs-h) * .22); }
.jfs-shape-pill .jfs-list > .jfs-btn, .jfs-shape-circle .jfs-list > .jfs-btn { border-radius: 999px; }
.jfs-shape-square .jfs-list > .jfs-btn { border-radius: 0; }

/* Sizes */
.jfs-size-small  { --jfs-h: 32px; --jfs-font: 13px; --jfs-gap: 6px; }
.jfs-size-medium { --jfs-h: 40px; --jfs-font: 14px; }
.jfs-size-large  { --jfs-h: 48px; --jfs-font: 15.5px; --jfs-gap: 10px; }

/* Icons only */
.jfs-labels-hide .jfs-label, .jfs-shape-circle .jfs-label { display: none; }
.jfs-labels-hide .jfs-list > .jfs-btn, .jfs-shape-circle .jfs-list > .jfs-btn { width: var(--jfs-h); padding: 0; }

/* Auto labels: icons only when the space is narrow */
.jfs-inline.jfs-labels-auto { container-type: inline-size; }
@container (max-width: 560px) {
  .jfs-labels-auto .jfs-label { display: none; }
  .jfs-labels-auto .jfs-list > .jfs-btn { width: var(--jfs-h); padding: 0; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 600px) {
    .jfs-labels-auto .jfs-label { display: none; }
    .jfs-labels-auto .jfs-list > .jfs-btn { width: var(--jfs-h); padding: 0; }
  }
}

/* "Link copied!" bubble */
.jfs .jfs-list > .jfs-btn.jfs-done::after {
  content: attr(data-done);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 9px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  animation: jfs-pop .18s ease-out;
}
.jfs-floating .jfs-list > .jfs-btn.jfs-done::after { bottom: auto; top: 50%; left: calc(100% + 8px); transform: translateY(-50%); }
@keyframes jfs-pop { from { opacity: 0; } to { opacity: 1; } }

/* Floating side bar (wide screens) */
.jfs.jfs-floating {
  position: fixed;
  left: 16px;
  top: 50%;
  z-index: 9990;
  display: none;
  margin: 0;
  transform: translateY(-50%);
}
.jfs-floating .jfs-list { flex-direction: column; gap: 6px; }
@media (min-width: 1200px) { .jfs.jfs-floating { display: block; } }

/* Phone share bar */
.jfs.jfs-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  display: none;
  margin: 0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, .12);
  transform: translateY(110%);
  transition: transform .28s ease;
}
.jfs.jfs-mobile.jfs-show { transform: none; }
.jfs-mobile .jfs-list { flex-wrap: nowrap; gap: 6px; }
.jfs-mobile .jfs-list > .jfs-btn { flex: 1 1 0; width: auto !important; }
@media (max-width: 767px) { .jfs.jfs-mobile { display: block; } }
@media print { .jfs { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .jfs .jfs-list > .jfs-btn, .jfs.jfs-mobile { transition: none; }
  .jfs .jfs-list > .jfs-btn:hover { transform: none; }
}
