.share-page-sheet {
  position: fixed;
  z-index: 44;
  left: 50%;
  bottom: calc(var(--safe-bottom, 0px) + 12px);
  width: min(92vw, 420px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  overflow: hidden;
}

.share-page-sheet.show {
  pointer-events: auto;
}

.share-page-sheet-body {
  padding: 4px 18px 18px;
}

.share-page-sheet-lead {
  margin: 0 0 14px;
  color: #6d7480;
  font-size: 13px;
  line-height: 1.45;
}

.share-page-duration {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.share-page-duration button {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #f8f9fb;
  color: #3a4048;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.share-page-duration button.is-active {
  border-color: #18181b;
  background: #18181b;
  color: #fff;
}

.share-page-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6f7f9;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.share-page-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.share-page-toggle .offer-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 44px;
  border-radius: 20px;
  background: #cbc8c0;
  transition: 0.2s;
}

.share-page-toggle .offer-switch::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}

.share-page-toggle input:checked + .offer-switch {
  background: #18181b;
}

.share-page-toggle input:checked + .offer-switch::after {
  left: 21px;
}

.share-page-submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: #18181b;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

.share-page-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.share-page-visitor-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ececec;
}

.share-page-visitor-meta {
  margin: 0 0 10px;
  color: #6d7480;
  font-size: 12px;
  line-height: 1.4;
}

.share-page-visitor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share-page-visitor-actions button {
  min-height: 40px;
  border: 1px solid #dfe3ea;
  border-radius: 12px;
  background: #fff;
  color: #18181b;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.share-page-visitor-actions button.is-primary {
  border-color: #18181b;
  background: #18181b;
  color: #fff;
}

.share-links-empty {
  margin: 0;
  padding: 18px 4px;
  color: #8a8f96;
  font-size: 14px;
  text-align: center;
}

.share-links-card {
  padding: 12px;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  background: #fafbfc;
}

.share-links-card + .share-links-card {
  margin-top: 8px;
}

.share-links-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.share-links-card-head strong {
  font-size: 14px;
}

.share-links-card-expiry {
  color: #6d7480;
  font-size: 12px;
  font-weight: 650;
}

.share-links-card-meta {
  margin: 6px 0 10px;
  color: #6d7480;
  font-size: 12px;
}

.share-links-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share-links-card-actions button {
  min-height: 36px;
  border: 1px solid #dfe3ea;
  border-radius: 11px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.share-links-card-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}

.share-link-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f2f4f7;
}

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

.share-link-gate-card {
  width: min(100%, 340px);
  padding: 28px 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(22, 27, 34, 0.1);
  text-align: center;
}

.share-link-gate-card p {
  margin: 0 0 18px;
  color: #3a4048;
  font-size: 17px;
  line-height: 1.45;
}

.share-link-gate-card button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: #18181b;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

html.is-share-link-gate .app {
  visibility: hidden;
  pointer-events: none;
}

html:not(.share-page-light) #visitorMeDrawer.is-share-page-view .circle-reaction-bar,
html:not(.share-page-light) #visitorMeDrawer.is-share-page-view .circle-comments,
html:not(.share-page-light) #visitorMeDrawer.is-share-page-view .circle-link-request-actions,
html:not(.share-page-light) #visitorMeDrawer.is-share-page-view [data-circle-edit],
html:not(.share-page-light) #visitorMeDrawer.is-share-page-view .circle-comment-compose,
html:not(.share-page-light) #visitorMeDrawer.is-share-page-view .circle-bomb {
  display: none !important;
}

html.share-page-light #visitorMeDrawer.is-share-page-view .circle-link-request-actions,
html.share-page-light #visitorMeDrawer.is-share-page-view [data-circle-edit],
html.share-page-light #visitorMeDrawer.is-share-page-view .circle-comment-compose,
html.share-page-light #visitorMeDrawer.is-share-page-view .circle-bomb {
  display: none !important;
}

#visitorMeDrawer.is-share-page-view .circle-private-post {
  pointer-events: auto;
}

@media (max-width: 599px) {
  html.is-spectator:not(.is-authed) #visitorMeDrawer.is-share-page-view {
    width: 100%;
    max-width: none;
    inset: 0;
    padding-top: calc(10px + var(--safe-top, 0px) + 38px);
    box-shadow: none;
  }

  html.is-spectator:not(.is-authed) #visitorMeDrawer.is-share-page-view.show {
    transform: translateX(0);
  }

  html.is-spectator:not(.is-authed):has(#visitorMeDrawer.is-share-page-view.show) .app > :not(#visitorMeDrawer) {
    visibility: hidden;
    pointer-events: none;
  }

  html.is-spectator:not(.is-authed) #visitorMeDrawer.is-share-page-view .me-name-card {
    margin-top: 8px;
  }
}
