.detail-header-actions .detail-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 96px;
  white-space: nowrap;
}

.detail-share-button svg {
  flex: 0 0 auto;
}

.detail-share-button.is-success {
  border-color: #d0ad18;
  background: #fff8cf;
}

/* The in-content share control is a button, while the other actions are links.
   Give it the same explicit styling instead of Safari's native button look. */
.contact-actions > [data-detail-share] {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .8rem;
  overflow-wrap: anywhere;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.contact-actions > [data-detail-share]:hover {
  background: #f2f1ed;
}

.contact-actions > [data-detail-share]:focus-visible {
  outline: 3px solid #397ee8;
  outline-offset: 3px;
}

.contact-actions > [data-detail-share].is-success {
  background: #fff8cf;
}

@media (max-width: 540px) {
  .detail-header-actions .detail-share-button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 14px;
  }

  .detail-share-button [data-detail-share-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

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