.ofam-slot {
    box-sizing: border-box;
    width: 100%;
    margin: 1.25rem auto;
    clear: both;
}

.ofam-label {
    display: block;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #767676;
    margin-bottom: 4px;
    user-select: none;
}

.ofam-box {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: var(--ofam-max-w, 100%);
    min-height: var(--ofam-min-h, 0px);
    overflow: clip;
}

.ofam-box ins.adsbygoogle,
.ofam-lazy-target ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

.ofam-align-center { text-align: center; }
.ofam-align-center .ofam-box { margin-left: auto; margin-right: auto; }
.ofam-align-left { text-align: left; }
.ofam-align-left .ofam-box { margin-left: 0; margin-right: auto; }
.ofam-align-right { text-align: right; }
.ofam-align-right .ofam-box { margin-left: auto; margin-right: 0; }

.ofam-banner-link { display: inline-block; line-height: 0; max-width: 100%; text-decoration: none; }
.ofam-banner-img { display: block; max-width: 100%; height: auto; }
.ofam-lazy-target { display: block; width: 100%; }

@media (max-width: 1024px) {
    .ofam-device-desktop { display: none !important; }
}

@media (min-width: 1025px) {
    .ofam-device-mobile { display: none !important; }

    .ofam-container-stretch {
        align-items: stretch !important;
    }

    .ofam-col-stretch {
        display: flex !important;
        align-self: stretch !important;
    }

    .ofam-wrap-stretch {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
    }

    .ofam-sticky-widget.is-sticky-active,
    .ofam-sticky-rail.is-sticky-active {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: var(--ofam-sticky-top, 90px) !important;
        z-index: 10 !important;
    }
}

.ofam-overflow-clip { overflow: clip !important; }

.ofam-anchor {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990;
    display: none; justify-content: center; align-items: flex-end;
    padding: 6px 12px; background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.14); box-sizing: border-box;
}
.ofam-anchor.is-visible { display: flex; }
.ofam-anchor-inner { position: relative; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
.ofam-anchor .ofam-slot { margin: 0; }
.ofam-anchor-close {
    position: absolute; top: -30px; right: 0; width: 28px; height: 28px; padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 50%; background: #fff; color: #222;
    font-size: 18px; line-height: 26px; text-align: center; cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}
.ofam-preview-box {
    box-sizing: border-box; width: 100%; min-height: var(--ofam-min-h, 90px);
    padding: 12px 16px; border: 2px dashed #2271b1; border-radius: 4px;
    background: #f0f6fc; color: #1d2327; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
    font: 500 13px/1.4 system-ui, -apple-system, sans-serif;
}
.ofam-preview-box span { font-size: 11px; color: #50575e; }
