/* Compact, accessible share menu anchored to wpForo's existing link icon. */
.ledger-share-popover[hidden]{display:none!important}
.ledger-share-popover {
  position:fixed; z-index:2147483000; width:min(310px,calc(100vw - 24px)); box-sizing:border-box;
  padding:14px; border:1px solid #60765c; border-top:2px solid #d5b46a; border-radius:11px;
  background:#142d23; color:#f1ebdd; box-shadow:0 16px 50px rgba(0,0,0,.55);
  font:13px/1.35 system-ui,-apple-system,'Segoe UI',sans-serif;
}
.ledger-share-popover *{box-sizing:border-box}
.ledger-share-popover__heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.ledger-share-popover__heading strong{font:600 14px Georgia,serif;color:#ead4a1}
.ledger-share-popover__close{appearance:none;border:0;background:transparent;color:#e7d9bb;cursor:pointer;padding:5px;border-radius:5px;line-height:0}
.ledger-share-popover__close svg{width:17px;height:17px}
.ledger-share-popover__choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.ledger-share-popover__choices a,.ledger-share-popover__choices button{
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  min-width:0;min-height:68px;margin:0;padding:8px 2px!important;border:1px solid #345342!important;
  border-radius:8px!important;background:#1d3c2e!important;color:#f1ebdd!important;
  font:500 11px/1.25 system-ui,sans-serif!important;text-decoration:none!important;cursor:pointer;
}
.ledger-share-popover__choices a:hover,.ledger-share-popover__choices button:hover,
.ledger-share-popover__choices a:focus-visible,.ledger-share-popover__choices button:focus-visible,
.ledger-share-popover__close:focus-visible{
  background:#2f5940!important;outline:2px solid #d5b46a!important;outline-offset:1px
}
.ledger-share-popover__choices span{display:flex;align-items:center;justify-content:center;width:26px;height:26px;color:#e5ca8a}
.ledger-share-popover__choices span svg{display:block;width:22px;height:22px}
.ledger-share-popover__feedback{color:#d5b46a;font-size:11px;margin:8px 0 0;min-height:0}
.ledger-share-popover__feedback:empty{display:none}
/* The old appended full-width sharing bar should not appear (legacy cache guard). */
body.ledger-site .ledger-topic-sharing{display:none!important}
@media(max-width:520px){
 .ledger-share-popover{bottom:12px;left:12px!important;right:12px;top:auto!important;width:auto;max-width:none}
 .ledger-share-popover__choices a,.ledger-share-popover__choices button{min-height:72px}
}

/* wpForo popup fallback: styles follow the actual native Share Urls panel. */
.ledger-native-share-upgraded,
.ledger-native-share-upgraded .ledger-native-share-options{
  background:#162f24!important;color:#f1ebdd!important;border-color:#627b62!important;
}
.ledger-native-share-upgraded{box-shadow:0 24px 80px rgba(0,0,0,.55)!important;padding:20px!important;max-height:85vh;overflow:auto}
.ledger-native-share-upgraded .ledger-original-share-field{display:none!important}
.ledger-native-share-upgraded .ledger-native-share-options{position:relative;z-index:2;padding:4px 0 0!important}
.ledger-native-share-options h3{font:600 19px/1.3 Georgia,serif!important;color:#f1ebdd!important;margin:0 0 14px!important}
.ledger-native-share-options .ledger-share-popover__choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ledger-native-share-options .ledger-share-popover__choices a,
.ledger-native-share-options .ledger-share-popover__choices button{min-height:85px!important;font-size:12px!important}
.ledger-native-share-upgraded .ledger-native-share-title{color:#e8cd90!important}
@media(max-width:480px){.ledger-native-share-upgraded{padding:12px!important}.ledger-native-share-options .ledger-share-popover__choices{gap:6px}}

.ledger-native-share-upgraded :is([class*="close"], [aria-label*="close" i]){background:#284c39!important;color:#f0d49b!important;border:1px solid #58735d!important;border-radius:5px!important;cursor:pointer!important}
/* 1.3.5: keep the icon grid at the TOP of wpForo's dialog, regardless of
   legacy label/row markup or dark-theme input contrast. */
.ledger-native-share-upgraded .ledger-original-share-field{display:none!important}
.ledger-native-share-upgraded .ledger-native-share-options{display:block!important;width:100%!important;max-width:100%!important;margin:8px 0 4px!important;clear:both!important;visibility:visible!important;opacity:1!important}
.ledger-native-share-upgraded .ledger-share-popover__choices{margin:0!important;padding:0!important}
.ledger-native-share-upgraded{overflow-y:auto!important;max-height:min(85vh,680px)!important}
