/* Public advertising slots; each snippet is controlled by a super admin. */
.osv-ad-strip { position: relative; z-index: 1; padding: 14px 0 0; }
.osv-ad-stack { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.osv-ad-card {
    width: 100%; max-width: var(--osv-ad-card-max-width, 1040px); margin: 0 auto; padding: 10px 18px 14px;
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 10px 32px rgba(28, 30, 70, .055); overflow: hidden;
}
.osv-ad-caption { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; }
.osv-ad-stage { position: relative; width: 100%; max-width: var(--osv-banner-width, 728px); height: var(--osv-banner-height, 90px); overflow: hidden; }
.osv-ad-canvas { width: var(--osv-banner-width, 728px); height: var(--osv-banner-height, 90px); transform-origin: top left; }
.osv-ad-stage .bannerflow-slot { display: block; width: 728px; min-width: 728px; min-height: 90px; }
.osv-ad-flexible { max-width: 100%; min-width: 0; width: 100%; display: block; text-align: center; }
.osv-ad-flexible img, .osv-ad-flexible iframe { max-width: 100%; margin-inline: auto; }
.osv-footer-ads { padding-top: 22px; padding-bottom: 10px; }
.main-content.osv-main-after-banner { padding-top: 18px; }
.osv-footer-base {
    display: flex; justify-content: space-between; align-items: center;
    gap: 18px; margin-top: 28px; padding-top: 20px;
    border-top: 1px solid var(--line);
}
.osv-footer-credit { display: flex; flex-wrap: wrap; gap: 5px 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.osv-footer-counter-placeholder { min-height: 51px; }
.osv-counter-box {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    padding: 6px 10px; border: 1px solid var(--line); border-radius: 14px;
    background: var(--card); min-height: 64px; flex: 0 0 auto;
}
.osv-counter-label { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.osv-counter-widget { display: flex; align-items: center; justify-content: center; width: 88px; min-height: 51px; overflow: hidden; }
.osv-counter-widget a, .osv-counter-widget img { display: block; max-width: 88px; }
@media (max-width: 720px) {
    .osv-ad-strip { padding-top: 10px; }
    .osv-ad-card { padding: 9px 10px 11px; border-radius: 14px; }
    .main-content.osv-main-after-banner { padding-top: 12px; }
    .osv-footer-base { flex-direction: column; text-align: center; gap: 14px; }
    .osv-footer-credit { justify-content: center; }
    .osv-counter-box { max-width: 100%; }
}
@media (max-width: 370px) { .osv-counter-box { flex-direction: column; gap: 5px; } }

/* Placement editor and in-content blocks. */
.osv-ad-content { margin: 20px 0; }
.osv-target-editor { display:grid; gap:12px; }
.osv-target-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:12px; }
.osv-target-group { min-width:0; margin:0; padding:12px; border:1px solid var(--line); border-radius:12px; }
.osv-target-group legend { padding:0 6px; font-weight:650; }
.osv-target-check { display:flex !important; align-items:center; gap:9px; padding:7px 0; min-height:36px; cursor:pointer; }
.osv-target-check input[type=checkbox] { flex:0 0 auto; width:18px; height:18px; margin:0; }
.osv-target-check span { flex:1; }
.osv-ad-mode { display:grid; gap:8px; }
.osv-ad-mode input[type=radio] { width:18px; height:18px; flex:0 0 auto; }

.osv-ad-slot-targets { display:grid; gap:8px; }
.osv-ad-slot-targets summary { cursor:pointer; font-weight:600; padding:4px; }
