.rp-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
}

.rp-share-sheet.is-open {
  display: block;
}

.rp-share-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.56);
  cursor: pointer;
}

.rp-share-sheet__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  margin: min(12vh, 72px) auto 0;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  box-shadow: 0 24px 72px rgba(15, 23, 42, 0.22);
  padding: 22px;
  color: #0f172a;
}

.rp-share-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.rp-share-sheet__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}

.rp-share-sheet__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.rp-share-sheet__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.rp-share-sheet__close:hover {
  border-color: #0f766e;
  color: #0f766e;
}

.rp-share-sheet__summary {
  margin: 16px 0 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.rp-share-sheet__url {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.rp-share-sheet__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rp-share-sheet__action,
.rp-share-sheet__secondary {
  appearance: none;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px;
  background: #ffffff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: none !important;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.rp-share-sheet__action:hover,
.rp-share-sheet__secondary:hover,
.rp-share-sheet__secondary--link:hover {
  border-color: #0f766e !important;
  color: #0f766e !important;
  -webkit-text-fill-color: currentColor !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
}

.rp-share-sheet__footer {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.rp-share-sheet__secondary {
  flex: 1 1 0;
}

.rp-share-sheet__status {
  min-height: 20px;
  margin: 14px 2px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
}

.rp-share-sheet__status[data-tone="success"] {
  color: #15803d;
}

.rp-share-sheet__status[data-tone="error"] {
  color: #b91c1c;
}

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

@media (max-width: 640px) {
  .rp-share-sheet__dialog {
    width: calc(100vw - 24px);
    margin-top: 48px;
    padding: 18px;
    border-radius: 18px;
  }

  .rp-share-sheet__actions {
    grid-template-columns: 1fr;
  }

  .rp-share-sheet__footer {
    flex-direction: column;
  }
}
