.timeline-overlay :is(.timeline-popup,.tg-dialog) .site-share-button {position:absolute;top:8px;right:54px;display:flex;align-items:center;gap:5px;height:44px;box-sizing:border-box;padding:5px 9px;border:0;border-radius:7px;background:transparent;color:#fff;font:600 12px/1 Helvetica,Arial,sans-serif;letter-spacing:.04em;cursor:pointer;}
.site-share-button svg {width:17px;height:17px;fill:currentColor;stroke:none;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;}
.timeline-overlay :is(.timeline-popup,.tg-dialog) h2 {padding-right:95px;}
.timeline-overlay :is(.timeline-popup,.tg-dialog) .site-share-panel {position:absolute;z-index:20;top:56px;right:20px;box-sizing:border-box;width:min(210px,calc(100% - 40px));padding:10px;border:0;border-radius:12px;background:rgb(var(--timeline-year-rgb));color:#fff;box-shadow:0 12px 40px #0009;font:15px/1.45 Helvetica,Arial,sans-serif;}
.site-share-panel[hidden]{display:none!important;}
.timeline-overlay .site-share-panel p{margin:8px 0 12px;font:14px/1.45 Helvetica,Arial,sans-serif;}
.site-share-panel input {box-sizing:border-box;width:100%;padding:9px;margin-bottom:12px;border:1px solid #777;border-radius:5px;background:#303030;color:#eee;font:13px Helvetica,Arial,sans-serif;}
.timeline-overlay .site-share-panel button{position:static;display:block;width:100%;height:auto;padding:10px 14px;margin-top:0;border:0;border-radius:6px;background:transparent;color:#fff;font:600 14px/1.4 Helvetica,Arial,sans-serif;cursor:pointer;}
.site-share-status:empty{display:none;}
.site-share-button:focus-visible,.site-share-panel button:focus-visible,.site-share-panel input:focus-visible {outline:3px solid #ffe66a;outline-offset:3px;}

.timeline-overlay .site-share-panel button:hover{background:#ffffff20;}

.timeline-overlay :is(.timeline-popup-close,.tg-close) {display:flex;align-items:center;justify-content:center;line-height:1;padding:0;}

/* Align the visible arrow and uppercase text with the optical centre of ×. */
.site-share-button > svg,.site-share-button > span {transform:translateY(3px);}
