.share-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
  vertical-align: middle;
}

.share-trigger {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  color: #17233f;
  background: #fff;
  border: 1px solid #dce2eb;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.share-trigger:hover {
  border-color: #b9c4d4;
}

.share-whatsapp-trigger {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  color: #176b3a;
  background: #eff9f2;
  border: 1px solid #b9e1c5;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.share-whatsapp-trigger:hover {
  color: #10582d;
  background: #e2f4e8;
  border-color: #8fcda2;
}

.share-trigger:focus-visible,
.share-whatsapp-trigger:focus-visible,
.share-menu button:focus-visible,
.share-menu a:focus-visible {
  outline: 3px solid rgba(199, 44, 69, .28);
  outline-offset: 2px;
}

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

.share-whatsapp-trigger svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.share-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 30;
  width: min(320px, calc(100vw - 28px));
  min-width: min(174px, calc(100vw - 28px));
  box-sizing: border-box;
  display: grid;
  gap: 2px;
  padding: 7px;
  background: #fff;
  border: 1px solid #dce2eb;
  border-radius: 11px;
  box-shadow: 0 12px 28px rgba(17, 31, 58, .16);
}

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

.share-ai-caption {
  display: grid;
  gap: 6px;
  padding: 4px 4px 10px;
  margin-bottom: 3px;
  border-bottom: 1px solid #e8ecf2;
}

.share-ai-caption__title {
  margin: 0 0 2px;
  color: #182237;
  font-size: 12px;
  font-weight: 750;
}

.share-ai-caption label {
  color: #556176;
  font-size: 11px;
  font-weight: 650;
}

.share-ai-caption select,
.share-ai-caption textarea {
  width: 100%;
  box-sizing: border-box;
  color: #182237;
  background: #fff;
  border: 1px solid #dce2eb;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
}

.share-ai-caption select {
  min-height: 35px;
  padding: 5px 8px;
}

.share-ai-caption textarea {
  min-height: 90px;
  padding: 8px;
  line-height: 1.45;
  resize: vertical;
}

.share-ai-caption select:focus-visible,
.share-ai-caption textarea:focus-visible {
  outline: 3px solid rgba(199, 44, 69, .22);
  outline-offset: 1px;
  border-color: #c72c45;
}

.share-ai-caption button {
  justify-self: start;
}

.share-ai-caption__status {
  margin: 0;
  color: #286045;
  font-size: 11px;
  line-height: 1.45;
}

.share-ai-caption__status:empty {
  display: none;
}

.share-menu button[hidden],
.share-menu a[hidden],
.share-menu textarea[hidden] {
  display: none !important;
}

.share-menu button,
.share-menu a {
  min-height: 37px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  color: #182237;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.share-menu button:hover,
.share-menu a:hover {
  color: #a91f37;
  background: #fff3f5;
}

.share-status {
  max-width: 260px;
  margin: 2px 4px 0;
  color: #286045;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.share-status:empty {
  display: none;
}

.share-status--error {
  color: #a91f37;
}

.share-control.is-open {
  z-index: 31;
}

.chapter-profile > .share-control {
  margin-top: 8px;
}

.circle-card__header > .share-control {
  margin-left: auto;
}

.update-actions,
.featured-event-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.update-actions .button,
.featured-event-card__actions .button {
  margin-top: 0;
}

.franchise-card > .share-control,
.region-card > .share-control,
.tool-card > .share-control {
  margin-top: 10px;
}

.tool-card__actions > .share-control {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card__actions > .share-control .share-trigger,
.tool-card__actions > .share-control .share-whatsapp-trigger {
  width: 100%;
}

.zone-card > .share-control {
  margin-top: 4px;
}

.zone-card,
.circle-card,
.chapter-profile,
.franchise-card,
.region-card,
.tool-card,
.update-card,
.featured-event-card {
  scroll-margin-top: 92px;
}

@media (max-width: 600px) {
  .share-menu {
    min-width: 162px;
  }
}
