.spr-share {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.spr-share-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe2d9;
  border-radius: var(--capsule-radius, 999px);
  background: #fff;
  color: #171914;
  cursor: pointer;
}

.spr-share-button[hidden] { display: none; }
.spr-share-button:hover { border-color: #aab0a3; background: #f4f5f2; }
.spr-share-button:focus-visible, .spr-share-close:focus-visible, .spr-share-dialog input:focus-visible {
  outline: 2px solid #171914;
  outline-offset: 3px;
}

.spr-share-status {
  position: absolute;
  z-index: 15;
  inset-block-start: calc(100% + 6px);
  inset-inline-end: 0;
  width: max-content;
}

.spr-share-status:not(:empty) {
  padding: 6px 11px;
  border-radius: var(--capsule-radius, 999px);
  background: var(--capsule-active, #0a0a0a);
  color: var(--capsule-active-text, #fff);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.spr-share-dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  box-sizing: border-box;
  width: min(400px, calc(100% - 32px));
  height: fit-content;
  margin: auto;
  padding: 22px;
  border: 1px solid #dfe2d9;
  border-radius: 20px;
  background: #fff;
  color: #171914;
  box-shadow: 0 20px 60px rgba(20, 25, 15, .17);
  text-align: left;
}

.spr-share-dialog:not([open]) { display: none; }
.spr-share-dialog::backdrop { background: rgba(10, 10, 10, .42); }
.spr-share-dialog h2 { margin: 0 0 14px; color: inherit; font: 650 1.25rem/1.3 var(--font-sans, system-ui); }
.spr-share-dialog label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 600; }
.spr-share-dialog input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #dfe2d9;
  border-radius: 10px;
  background: #f4f5f2;
  color: #171914;
  font: inherit;
}
.spr-share-dialog p { margin: 12px 0 16px; color: #555c50; font-size: .875rem; line-height: 1.5; }
.spr-share-close {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border: 0;
  border-radius: var(--capsule-radius, 999px);
  background: var(--capsule-active, #0a0a0a);
  color: var(--capsule-active-text, #fff);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
