.social-media-tab-wrapper-relative {
  position: relative;
}

.social-media-tab-links {
  --social-top: 0px;
  --social-right: 9rem;
  --social-gap: 0.02rem;

  --tab-width: 42px;
  --tab-height: 30px;

  --social-fa-size: 0.95rem;
  --social-ai-size: 0.95rem;
  --social-email-fa-size: 0.9rem;

  --social-text-color: #ffffff;
  --social-bg-start: rgba(255, 255, 255, 0.18);
  --social-bg-start-pct: 0%;
  --social-bg-mid: #267ed1;
  --social-bg-mid-pct: 70%;
  --social-bg-end: #539ce0;
  --social-bg-end-pct: 100%;

  --social-hover-start: rgba(255, 255, 255, 0.24);
  --social-hover-start-pct: 0%;
  --social-hover-mid: #0a5dab;
  --social-hover-mid-pct: 11%;
  --social-hover-end: #14548f;
  --social-hover-end-pct: 100%;

  --social-border-color: rgba(255, 255, 255, 0.32);
  --social-tab-radius: 3px 3px 8px 8px;

  position: absolute;
  top: var(--social-top);
  right: var(--social-right);
  z-index: 2147483000;
  pointer-events: auto;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  gap: var(--social-gap);
  background: transparent;
}

.social-media-tab-links a {
  pointer-events: auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tab-width);
  height: var(--tab-height);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;

  color: var(--social-text-color);
  text-decoration: none;

  background: linear-gradient(
    to bottom,
    var(--social-bg-start) var(--social-bg-start-pct),
    var(--social-bg-mid) var(--social-bg-mid-pct),
    var(--social-bg-end) var(--social-bg-end-pct)
  );

  border: 1px solid var(--social-border-color);
  border-radius: var(--social-tab-radius);

  box-shadow:
    inset 0 1px 0 rgba(8, 53, 109, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.30),
    0 2px 4px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

.social-media-tab-links a::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 2px;
  height: 38%;
  border-radius: 2px 2px 6px 6px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0.06)
  );
  pointer-events: auto;
}

.social-media-tab-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(8, 46, 94, 0.45);
  pointer-events: auto;
}

.social-media-tab-links .fa,
.social-media-tab-links .ai {
  line-height: 1;
  position: relative;
  z-index: 1;
}

.social-media-tab-links .fa {
  font-size: var(--social-fa-size);
}

.social-media-tab-links .ai {
  font-size: var(--social-ai-size);
}

.social-media-tab-links a[aria-label="Email"] .fa {
  font-size: var(--social-email-fa-size);
}

.social-media-tab-links a:hover,
.social-media-tab-links a:focus {
  color: var(--social-text-color);
  background: linear-gradient(
    to bottom,
    var(--social-hover-start) var(--social-hover-start-pct),
    var(--social-hover-mid) var(--social-hover-mid-pct),
    var(--social-hover-end) var(--social-hover-end-pct)
  );
  box-shadow:
    inset 0 1px 0 rgba(8, 53, 109, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.36),
    0 3px 6px rgba(0, 0, 0, 0.22);
  transform: translateY(1px);
}

.social-media-tab-links a:active {
  transform: translateY(-1px);
  box-shadow:
    inset 0 2px 3px rgba(0, 25, 62, 0.24),
    0 1px 2px rgba(0, 0, 0, 0.14);
}
