/* Read-only (sunset) mode: the site bar and the closing notice.
   Used by templates/header_readonly.tpl, templates/footer_readonly.tpl, tmpl/block/header_readonly.php,
   tmpl/block/footer_readonly.php (include/beon_readonly.php). Self-contained: no dependency on styles.css. */

/* sticky on purpose: the game client (game.js fitUnderHeader) fills the window below fixed / sticky bars */
.ro-bar{position:sticky;top:0;z-index:1030;display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;min-height:46px;padding:6px 14px;
    background:var(--bs-body-bg,#fff);color:var(--bs-body-color,#222);border-bottom:1px solid rgba(0,0,0,.12);
    font:15px/1.3 Arial,Helvetica,sans-serif}
html.dark-mode .ro-bar{background:var(--bs-body-bg,#1b1b1b);color:var(--bs-body-color,#eee);border-bottom-color:rgba(255,255,255,.14)}
.ro-bar a{color:inherit;text-decoration:none;white-space:nowrap;padding:6px 8px;border-radius:6px}
.ro-bar a:hover,.ro-bar a.ro-on{background:rgba(0,0,0,.07)}
html.dark-mode .ro-bar a:hover,html.dark-mode .ro-bar a.ro-on{background:rgba(255,255,255,.12)}
.ro-logo{font-weight:bold;font-size:18px}
.ro-spacer{flex:1 1 auto}
.ro-me{opacity:.7;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ro-badge{display:inline-block;min-width:18px;padding:0 5px;border-radius:9px;background:#d9534f;color:#fff;font-size:12px;line-height:18px;text-align:center}
.ro-note{margin:14px 0;padding:10px 14px;border:1px solid rgba(0,0,0,.12);border-radius:8px;font:14px/1.5 Arial,Helvetica,sans-serif}
html.dark-mode .ro-note{border-color:rgba(255,255,255,.14)}
.ro-note p{margin:0 0 6px}
.ro-copy{margin:10px 0;font:13px/1.5 Arial,Helvetica,sans-serif;opacity:.7}
/* comments are shown but not written: the "Фото" attach link is rendered by the comments script anyway */
.comment_headline #attach_file_click{display:none!important}
/* "delete all" block on the diary and the messages pages */
.ro-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:14px 0}
.ro-actions form{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0}
.ro-btn-danger{display:inline-block;padding:10px 18px;border:0;border-radius:8px;background:#c0392b;color:#fff;
    font:bold 15px/1.3 Arial,Helvetica,sans-serif;cursor:pointer;text-decoration:none}
.ro-btn-danger:hover{background:#a93226;color:#fff;text-decoration:none}
.ro-btn-danger[disabled]{opacity:.45;cursor:default}
.ro-status{font:14px/1.4 Arial,Helvetica,sans-serif;opacity:.8}
.ro-actions a.ro-link-danger{color:#e05a4b !important;font:15px/1.3 Arial,Helvetica,sans-serif}
/* messages page (new UI, js/im_v2.js) in read-only mode: no composing, likes, pokes, game invites, old UI */
.imv2-readonly #imv2-new,.imv2-readonly #imv2-new-2,.imv2-readonly #imv2-composer,.imv2-readonly #imv2-poke-btn,
.imv2-readonly #imv2-game-invite,.imv2-readonly .imv2-like,#imv2.imv2-readonly ~ .imv2-old-link{display:none!important}
.imv2-ro-all{padding:10px 12px;border-top:1px solid rgba(0,0,0,.1)}
/* after the upload wipe (html.beon-wiped, set by the read-only header): voice and video players point at files that are gone */
html.beon-wiped .vm-wrap,html.beon-wiped .cv-wrap{display:none}
html.beon-wiped .beon-file-gone{display:inline-block;font:13px/1.4 Arial,Helvetica,sans-serif;opacity:.65;font-style:italic}
@media (max-width:640px){.ro-me{display:none}.ro-bar{gap:2px 8px;padding:6px 8px}}
