/* bwib-38 L4 - the store badges in every footer and in the phone menu.
   js/config.js puts data-app-os (ios|android|desktop) and data-app-lang (bg|en) on <html> before first paint;
   with no JavaScript both badges show, in Bulgarian. Official badge artwork lives in /img/app-badges/. */
.ft-app{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;margin-top:clamp(28px,4vw,44px)}
.menu-app{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-top:26px}
.ab{display:inline-flex;align-items:center;justify-content:center;height:44px;line-height:0}
.ab img{display:block;height:44px;width:auto}
/* the Google Play artwork carries its own transparent margin, so it is drawn larger to match the Apple badge */
.ab--play img{height:58px;margin:-7px 0}
.ab--play{height:44px}
.ab:focus-visible,.ab-qr:focus-visible{outline:2px solid var(--rose-ink,#c31851);outline-offset:3px;border-radius:8px}
.ab .ab-en,html[data-app-lang="en"] .ab .ab-bg{display:none}
html[data-app-lang="en"] .ab .ab-en{display:block}
html[data-app-os="ios"] .ab--play,html[data-app-os="android"] .ab--ios{display:none}
.ab-qr{display:none;align-items:center;gap:12px;color:var(--ink2,#5b4d57);font-size:13px;line-height:1.35;text-decoration:none}
.ab-qr img{display:block;width:88px;height:88px;border:1px solid var(--line,rgba(30,21,32,.14));border-radius:8px}
html[data-app-os="desktop"] .ab-qr{display:inline-flex}
@media (max-width:760px){html[data-app-os="desktop"] .ab-qr{display:none}}
/* the admin switch "show the badges" (site settings, appLinks.showBadges) */
html[data-app-show="0"] .ab,html[data-app-show="0"] .ab-qr{display:none!important}

/* bwib-38 L8 - the VIP DIAMOND mark at a picture's corner (img/vip-diamond.svg). Only a VIP DIAMOND member
   gets the wrapper or the image; every other tier is drawn exactly as before. */
.bw-avw{position:relative;display:inline-flex;flex:0 0 auto;vertical-align:middle}
.bw-diamond{position:absolute;right:-4px;bottom:-4px;width:18px;height:18px;z-index:2;pointer-events:none;filter:drop-shadow(0 1px 1px rgba(30,21,32,.35))}
.m-photo,.mw-prof__photo{position:relative}
.m-photo>.bw-diamond,.mw-prof__photo>.bw-diamond{position:absolute;right:9%;bottom:9%;width:30px !important;height:30px !important;aspect-ratio:auto;background:none !important;border-radius:0 !important;margin:0;object-fit:contain}
.evl-pb-f .bw-diamond,.evl-stack .bw-diamond,.mc-avatar--sm+.bw-diamond{width:12px;height:12px;right:-3px;bottom:-3px}
