/* CSS for Social Share component */
.phantom-better-social-sharing a {
  cursor: pointer;
}

.phantom-better-social-sharing .label {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.phantom-better-social-sharing a {
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  transition: 0.2s ease;
  margin-right: 8px;

  svg {
    width: 32px;
    height: 32px;
    display: block;
    /* The glyph. `--accent-text` is what the Branding setting declares as
       readable ON the accent (#000 here), so the pair stays legible if a
       site's accent is ever a dark colour. */
    path,
    rect {
      fill: var(--accent-text, #000);
    }

    /* The plate behind it: the site's accent, not Bootstrap's --bs-primary,
       which is #000 and rendered every share row black on every site.
       ⚠️ Matched on the class ALONE, never `path.background` — linkedin-square
       draws its plate as a <rect> and was the one icon left black. */
    .background {
      fill: var(--accent, var(--bs-primary));
    }
  }
}

.phantom-better-social-sharing a:hover {
  opacity: 0.8;
}

.social-sharing-buttons-popup {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
  margin-bottom: 5px;
}

.social-sharing-buttons-popup.visible {
  display: block;
  width: 123px;
  bottom: 0;
  position: absolute;
  top: 40px;
  left: 19px;
}
