.sharing-buttons {
  position: relative;
  display: inline-block;
}

.toggle-sharing {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background: var(--green);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 2;
  position: relative;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  padding: 0;
  min-height: auto;
}

.toggle-sharing i{
  color: white;
  position: relative;
  top: 1px;
  font-size: 2.4rem;
}

.toggle-sharing:hover i{
  color: var(--green);
}

.sharing_list {
  position: absolute;
  top: 0;
  left: 0;
}

.share-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: translate(0, 0);
  opacity: 0;
  pointer-events: none;
  background-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Activate animation */
.sharing-buttons.active .share-icon {
  opacity: 1;
  pointer-events: auto;
}

.a2a_s_link {
  background-color: #4caf50;
}

/* .sharing-buttons.active {
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translate(14px, 26px);
} */
span.a2a_svg.a2a_s__default {
  height: 26px;
  width: 26px;
  background: transparent !important;
}

.sharing-buttons {
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.sharing-buttons .share-icon i{
  color: #fff;
  font-size: 1.8rem;
}
/* Fly-out transforms (adjust distances as needed) */
.sharing-buttons.active .a2a_button_copy_link {
  transform: translate(-15px, -50px);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.sharing-buttons.active .a2a_button_facebook {
  transform: translate(40px, -50px); 
  transition: transform 0.5s ease, opacity 0.5s ease;
  background: #1877F2;
}

.sharing-buttons.active .a2a_button_email {
  transform: translate(65px, 45px);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.sharing-buttons.active .a2a_button_x {
  transform: translate(70px, -5px);
  transition: transform 0.5s ease, opacity 0.5s ease;
  background: #1DA1F2;
}
.sharing-buttons.active .share-icon:hover {
  filter: brightness(1.2);
}

.sharing-buttons.active .a2a_button_instagram {
  transform: translate(15px, 70px);
  transition: transform 0.5s ease, opacity 0.5s ease;
  background: #f09433; 
  background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
  background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f09433', endColorstr='#bc1888',GradientType=1 );
}

/* Hide both by default */
.mobile-share {
  display: none;
}

.desktop-share {
  display: inline-block;
}

.sharing-buttons .mobile-share a.addtoany_share i{
  color: var(--green);
  font-size: 2.4rem;
}
.sharing-buttons .a2a_button_copy_link.custom-copy-link span.a2a_svg svg {
    display: none;
}
.sharing-buttons .a2a_button_copy_link.custom-copy-link span.a2a_svg.a2a_s_link {
    height: 20px;
    width: 10px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(48deg);
    position: relative;
    top: -1px;
}
/* Show mobile version and hide desktop when screen is less than 768px */
@media (max-width: 655px) {
  .mobile-share {
    display: block;
  }

  .desktop-share {
    display: none;
  }

  #a2a_overlay.a2a_overlay {
    background: rgba(0,0,0,.5);
    backdrop-filter: none;
  }

  .a2a_menu.a2a_full{
    background: var(--blue);
    width: calc(100% - 4rem);
    margin:0 2rem;
  }

  .a2a_menu.a2a_full a, .a2a_menu.a2a_full a.a2a_i:visited {
    color: #fff;
  }

  .a2a_menu.a2a_full a.a2a_i:hover, .a2a_menu.a2a_full a.a2a_i:focus, .a2a_menu.a2a_full a.a2a_i:active{
    background: var(--white);
    color: var(--blue);
  }

  .a2a_menu.a2a_full a.a2a_i:hover span svg path, .a2a_menu.a2a_full a.a2a_i:focus span svg path, .a2a_menu.a2a_full a.a2a_i:active span svg path{
    fill: var(--blue);
  }

  .a2a_menu.a2a_full .a2a_full_footer > a{
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .a2a_menu.a2a_full .a2a_menu_find_container{
    background: var(--white);
  }
}