.eden-share {
  position: relative;
  z-index: 8;
}

.eden-share-trigger {
  min-height: 44px;
  cursor: pointer;
}

.eden-share-trigger svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

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

.eden-share-menu {
  width: min(310px, calc(100vw - 32px));
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 30;
  color: #18312c;
  background: #fffdf9;
  border: 1px solid rgba(24, 49, 44, 0.16);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(24, 49, 44, 0.22);
}

.eden-share-menu::before {
  content: "";
  width: 16px;
  height: 16px;
  position: absolute;
  top: -9px;
  right: 28px;
  background: #fffdf9;
  border-left: 1px solid rgba(24, 49, 44, 0.16);
  border-top: 1px solid rgba(24, 49, 44, 0.16);
  transform: rotate(45deg);
}

.eden-share-menu-title {
  margin: 3px 8px 8px;
  font: 700 0.76rem/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eden-share-option {
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: 650 0.9rem/1.25 Inter, ui-sans-serif, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}

.eden-share-option:hover:not(:disabled) {
  background: #eef4f0;
}

.eden-share-option:focus-visible,
.eden-share-trigger:focus-visible {
  outline: 3px solid #f2b264;
  outline-offset: 2px;
}

.eden-share-option:disabled {
  color: #73807c;
  cursor: not-allowed;
  opacity: 0.68;
}

.eden-share-icon {
  width: 25px;
  height: 25px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: #146755;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 850;
}

.eden-share-separator {
  height: 1px;
  margin: 8px 10px;
  background: rgba(24, 49, 44, 0.12);
}

.eden-share-preview-note {
  margin: 8px;
  padding: 10px 12px;
  color: #5d6d68;
  background: #f3efe8;
  border-radius: 10px;
  font: 600 0.76rem/1.45 Inter, ui-sans-serif, system-ui, sans-serif;
}

.eden-share-toast {
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  color: #fff;
  background: #18312c;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(24, 49, 44, 0.25);
  font: 700 0.82rem/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
  transform: translateX(-50%);
}

.article-share-top {
  width: max-content;
  max-width: 100%;
  margin: 18px auto 0;
}

.article-share-top .eden-share-trigger,
.article-share-end .eden-share-trigger {
  padding: 0.72rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #164f44;
  background: transparent;
  border: 1px solid rgba(22, 79, 68, 0.65);
  border-radius: 999px;
  font: 650 0.82rem/1.2 Poppins, Inter, sans-serif;
}

.article-share-end {
  width: min(720px, 100%);
  margin: 54px auto 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #18312c;
  background: #f0e9dd;
  border-radius: 18px;
}

.article-share-end p {
  margin: 0;
  font: 600 1rem/1.45 "Source Sans 3", sans-serif;
}

.article-share-end .eden-share-menu {
  top: auto;
  bottom: calc(100% + 12px);
}

.article-share-end .eden-share-menu::before {
  top: auto;
  bottom: -9px;
  border: 0;
  border-bottom: 1px solid rgba(24, 49, 44, 0.16);
  border-right: 1px solid rgba(24, 49, 44, 0.16);
}

@media (max-width: 640px) {
  .eden-share-menu {
    width: auto;
    max-height: calc(100vh - 28px);
    padding: 14px;
    position: fixed;
    inset: auto 14px 14px;
    overflow-y: auto;
    border-radius: 22px;
  }

  .eden-share-menu::before {
    display: none;
  }

  .article-share-end {
    align-items: stretch;
    flex-direction: column;
  }

  .article-share-end .eden-share-trigger {
    width: 100%;
  }

  .article-share-end .eden-share-menu {
    top: auto;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eden-share-trigger,
  .eden-share-option {
    transition: none !important;
  }
}
