/* v80.8.15: one share icon in the reader toolbar, with a non-layout-shifting
 * popup. Reuses the share service icons and theme tokens already deployed. */
#rw802-reader #rw815-share-open {flex:0 0 auto}
#rw802-reader .rw815-share-overlay[hidden] {display:none!important}
#rw802-reader .rw815-share-overlay {
  position:fixed; inset:0; z-index:2147483000; display:grid; place-items:center;
  box-sizing:border-box; padding:16px; isolation:isolate;
}
#rw802-reader .rw815-share-backdrop {
  position:absolute; inset:0; width:100%; height:100%; margin:0; border:0;
  padding:0; background:rgba(5,8,14,.78); cursor:default;
}
#rw802-reader .rw815-share-dialog {
  position:relative; z-index:1; box-sizing:border-box;
  width:min(760px,100%); max-height:calc(100dvh - 32px); overflow-y:auto;
  overscroll-behavior:contain; border:1px solid var(--border,#3b4250);
  border-radius:16px; color:var(--text,#f0eff4); background:var(--surface,#1d222c);
  box-shadow:0 20px 80px rgba(0,0,0,.55); padding:clamp(14px,2.2vw,24px);
}
#rw802-reader .rw815-share-head {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
#rw802-reader .rw815-share-head h2 {margin:0;color:inherit;font-size:1.15rem;font-weight:700;line-height:1.4}
#rw802-reader .rw815-share-close {
  flex:0 0 auto;width:38px;height:38px;display:grid;place-items:center;
  border:1px solid var(--border,#3b4250);border-radius:50%;cursor:pointer;
  background:var(--raised,#292e39);color:inherit;font:inherit;font-size:1.6rem;line-height:1;
}
#rw802-reader .rw815-share-close:hover {border-color:var(--accent,#cfa6e5)}
#rw802-reader .rw815-share-close:focus-visible,
#rw802-reader #rw815-share-open:focus-visible {
  outline:2px solid var(--accent,#cfa6e5);outline-offset:3px;
}
/* Keep the existing v80.8.14 public/private warning and social share panel.
 * Hide its second disclosure button only INSIDE the reader popup. */
#rw802-reader .rw815-share-overlay .rw814-spread-share {width:100%;max-width:none;margin:0}
#rw802-reader .rw815-share-overlay .rw812-share {margin:0;max-width:none}
#rw802-reader .rw815-share-overlay .rw812-share-toggle {display:none!important}
#rw802-reader .rw815-share-overlay .rw812-share-panel {
  margin:0;padding:0;border:0;box-shadow:none;background:transparent;
}
#rw802-reader .rw815-share-overlay .rw812-destinations {grid-template-columns:repeat(auto-fit,minmax(118px,1fr))}
@media(max-width:560px) {
  #rw802-reader .rw815-share-overlay {padding:8px}
  #rw802-reader .rw815-share-dialog {max-height:calc(100dvh - 16px);padding:14px;border-radius:12px}
  #rw802-reader .rw815-share-overlay .rw812-destinations {grid-template-columns:repeat(2,minmax(0,1fr))}
}
