.social-share {
  position: relative;
  display: inline-flex;
}

.social-share__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fff;
  color: var(--brand-deep);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.social-share__toggle:hover,
.social-share__toggle:focus-visible {
  border-color: var(--brand-accent);
  background: var(--brand-accent-soft);
  outline: none;
}

.social-share__icon {
  font-size: 19px;
  line-height: 1;
}

.social-share__menu {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: calc(100% + 8px);
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 59, 52, .16);
}

.social-share__menu[hidden] {
  display: none;
}

.social-share__action {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--brand-deep);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.social-share__action:hover,
.social-share__action:focus-visible {
  background: var(--brand-accent-soft);
  outline: none;
}

@media (max-width: 680px) {
  .social-share__menu {
    right: auto;
    left: 0;
  }
}

.social-share-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 32, 28, .62);
}

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

.social-share-modal__dialog {
  width: min(100%, 560px);
  max-height: min(720px, 90vh);
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(10, 32, 28, .24);
}

.social-share-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.social-share-modal__header h2 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 20px;
  line-height: 1.2;
}

.social-share-modal__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--brand-deep);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.social-share-modal__close:hover,
.social-share-modal__close:focus-visible {
  background: var(--brand-accent-soft);
  outline: none;
}

.social-share-modal__body {
  padding: 20px;
}

.social-share-modal__hint {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.social-share-modal__text {
  display: block;
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--brand-deep);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}

.social-share-modal__copy {
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-deep);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.social-share-modal__copy:hover,
.social-share-modal__copy:focus-visible {
  border-color: var(--brand-accent);
  background: var(--brand-accent-soft);
  outline: none;
}

.social-share-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-share-modal__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fff;
  color: var(--brand-deep);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.social-share-modal__action--whatsapp {
  border-color: #b8e6c9;
  background: #eaf9ef;
  color: #176b3a;
}

.social-share-modal__action--facebook {
  border-color: #b9d5f7;
  background: #edf5ff;
  color: #1559a6;
}

.social-share-modal__action:hover,
.social-share-modal__action:focus-visible {
  filter: brightness(.97);
  outline: 2px solid var(--brand-accent-soft);
  outline-offset: 1px;
}