.vd-share-trigger {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--vd-radius-xs);
  background: transparent;
  color: var(--vd-primary);
  cursor: pointer;
}

.vd-share-trigger:hover {
  background: var(--vd-primary-soft);
  color: var(--vd-primary-hover);
}

.vd-share-trigger:focus-visible {
  outline: 2px solid var(--vd-primary);
  outline-offset: 2px;
}

.vd-library-practices > .vd-section__header {
  align-items: center;
}

@media (max-width: 760px), (pointer: coarse) {
  .vd-share-trigger {
    width: 44px;
    height: 44px;
  }
}

.vd-share-dialog {
  width: min(30rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  box-sizing: border-box;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid var(--vd-border);
  border-radius: 12px;
  background: var(--vd-surface);
  color: var(--vd-text);
}

.vd-share-dialog::backdrop {
  background: rgb(25 33 43 / 48%);
}

.vd-share-dialog__header,
.vd-share-dialog__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.vd-share-dialog__header {
  justify-content: space-between;
}

.vd-share-dialog__header h2 {
  margin: 0;
}

.vd-share-dialog__header button {
  min-width: 44px;
  font-size: 1.25rem;
}

.vd-share-dialog__title {
  margin: 8px 0 16px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.vd-share-dialog__actions {
  margin-top: 12px;
}

.vd-share-dialog__status {
  margin: 8px 0 0;
  min-height: 1.4em;
}

.vd-collection-share {
  display: flex;
  justify-content: flex-end;
  max-width: 72rem;
  margin-inline: auto;
  padding: 8px 16px;
}
