.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

body.share-sheet-open {
  overflow: hidden;
}

.share-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgb(15 23 42 / 45%);
  cursor: pointer;
}

.share-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 1rem);
  background: var(--color-surface, #fff);
  box-shadow: 0 16px 48px rgb(15 23 42 / 18%);
}

.share-sheet-title {
  margin: 0 2rem 0.35rem 0;
  font-size: 1.1rem;
  color: var(--color-text);
}

.share-sheet-intro {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  word-break: break-word;
}

.share-sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.share-sheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.2rem;
  border-radius: var(--radius-sm, 0.5rem);
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.share-sheet-item:hover,
.share-sheet-item:focus-visible {
  background: var(--color-primary-soft, #f1f5f9);
  outline: none;
}

.share-sheet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #fff;
}

.share-sheet-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.share-sheet-icon--whatsapp {
  background: #25d366;
}

.share-sheet-icon--messenger {
  background: linear-gradient(135deg, #00b2ff, #006aff);
}

.share-sheet-icon--facebook {
  background: #1877f2;
}

.share-sheet-icon--x {
  background: #0f172a;
}

.share-sheet-copy,
.share-sheet-system {
  width: 100%;
}

.share-sheet-system {
  margin-top: 0.5rem;
}

.share-sheet-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  text-align: center;
}

.share-sheet-feedback {
  min-height: 1.25rem;
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--color-success, #15803d);
}

@media (max-width: 360px) {
  .share-sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
