.share-pop {
  --sp-color: #6b1a45;          /* burgundy */
  --sp-bg: #ffffff;
  --sp-hover: #f3ecef;
  --sp-gap: 8px;

  position: relative;
  display: inline-block;
}

/* Trigger */
.share-pop__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sp-color);
  font: inherit;
  font-size: 1.125rem;
  cursor: pointer;
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-weight: 600;
  line-height: var(--e-global-typography-text-line-height);
}

.share-pop__toggle:hover,
.share-pop__toggle:focus {
  background: none;
  color: var(--sp-color);
}

.share-pop__toggle:focus-visible {
  outline: 2px solid var(--sp-color);
  outline-offset: 3px;
}

.share-pop__toggle-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Panel */
.share-pop__panel {
  position: absolute;
  top: calc(100% + var(--sp-gap));
  left: 0;
  z-index: 999;
  min-width: 210px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--sp-bg);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  animation: share-pop-in .15s ease-out;
}

.share-pop__panel[hidden] {
  display: none;
}

.share-pop__panel li {
  margin: 0;
  padding: 0;
}

/* Flip modifiers (set by JS) */
.share-pop.is-above .share-pop__panel {
  top: auto;
  bottom: calc(100% + var(--sp-gap));
}

.share-pop.is-end .share-pop__panel {
  left: auto;
  right: 0;
}

/* Links */
.share-pop__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px;
  border-radius: 4px;
  color: var(--sp-color);
  text-decoration: none;
  transition: background-color .15s;
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    line-height: var(--e-global-typography-text-line-height);
}

.share-pop__link:hover {
  background: var(--sp-hover);
  color: var(--sp-color);
}

.share-pop__link:focus-visible {
  outline: 2px solid var(--sp-color);
  outline-offset: 1px;
}

.share-pop__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 3px;
  background: var(--sp-color);
}

.share-pop__icon svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

@keyframes share-pop-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .share-pop__panel { animation: none; }
}
