.sa-share {
  --sa-share-ink: #233b32;
  --sa-share-muted: #526158;
  --sa-share-border: #d8c9a3;
  box-sizing: border-box;
  width: min(calc(100% - 2rem), 70rem);
  max-width: 70rem;
  margin: clamp(1.5rem, 4vw, 3rem) auto;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid var(--sa-share-border);
  border-radius: 0.65rem;
  background: #fbf6e9;
  color: var(--sa-share-ink);
  font-family: inherit;
  text-align: left;
}

.sa-share *,
.sa-share *::before,
.sa-share *::after {
  box-sizing: border-box;
}

.sa-share [hidden] {
  display: none !important;
}

.sa-share .sa-share__title {
  margin: 0;
  color: var(--sa-share-ink);
  font: inherit;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
}

.sa-share .sa-share__description {
  margin: 0.45rem 0 0;
  color: var(--sa-share-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.sa-share__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.sa-share .sa-share__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid #b8ac8b;
  border-radius: 0.35rem;
  background: #fffdf6;
  color: var(--sa-share-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.sa-share .sa-share__action:hover {
  background: #efe5cc;
  color: var(--sa-share-ink);
  text-decoration: none;
}

.sa-share .sa-share__action:disabled {
  opacity: 0.65;
  cursor: wait;
}

.sa-share :is(a, button, input):focus-visible {
  outline: 3px solid #8b682a;
  outline-offset: 3px;
}

.sa-share__fallback {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

.sa-share .sa-share__fallback-label {
  display: block;
  margin: 0;
  color: var(--sa-share-ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.sa-share .sa-share__fallback-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid #b8ac8b;
  border-radius: 0.3rem;
  background: #fffdf6;
  color: var(--sa-share-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.sa-share .sa-share__status {
  margin: 0.65rem 0 0;
  color: var(--sa-share-ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sa-share .sa-share__status:empty {
  margin: 0;
}

.sa-share .sa-share__follow {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sa-share .sa-share__follow a {
  color: var(--sa-share-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 30rem) {
  .sa-share .sa-share__action {
    flex: 1 1 calc(50% - 0.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-share .sa-share__action {
    transition: none;
  }
}

@media print {
  .sa-share {
    display: none !important;
  }
}
