.ophim-ad,
.ophim-ad *,
.ophim-catfish-ad,
.ophim-catfish-ad *,
.ophim-tvc-ad,
.ophim-tvc-ad * {
    box-sizing: border-box;
}

.ophim-ad {
    clear: both;
    max-width: 100%;
    text-align: center;
}

.ophim-ad img,
.ophim-catfish-ad img,
.ophim-tvc-ad img {
    border: 0;
    height: auto;
    max-width: 100%;
}

/* Top banner is intentionally full viewport and sits above the site header. */
.ophim-ad--top-banner,
.lima-top-banner.ophim-ad {
    background: #000;
    font-size: 0;
    line-height: 0;
    margin: 0;
    max-width: none;
    overflow: visible;
    padding: 6px 4px;
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 1001;
}

.ophim-ad--top-banner .lima-banner-item {
    display: inline-block;
    line-height: 0;
    margin: 2px;
    max-width: 300px !important;
    vertical-align: middle;
    width: 300px;
}

.ophim-ad--top-banner .lima-banner-item a,
.ophim-ad--top-banner .lima-banner-item img {
    display: block;
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Top and bottom video banners follow the Lima 300px layout. */
.ophim-ad--top-video,
.ophim-ad--bot-video {
    background: #000;
    display: block !important;
    font-size: 0;
    line-height: 0;
    margin: 4px auto;
    min-height: 12px;
    opacity: 1 !important;
    overflow: hidden;
    padding: 4px;
    position: relative;
    text-align: center;
    visibility: visible !important;
    width: 100%;
    z-index: 5;
}

.lima-video-top .lima-banner-item,
.lima-video-bottom .lima-banner-item {
    display: inline-block;
    line-height: 0;
    margin: 2px;
    max-width: 300px !important;
    vertical-align: middle;
    width: 300px;
}

.lima-video-top .lima-banner-item,
.lima-video-bottom .lima-banner-item,
.lima-video-top .lima-banner-item img,
.lima-video-bottom .lima-banner-item img {
    opacity: 1 !important;
    visibility: visible !important;
}

.lima-video-top .lima-banner-item a,
.lima-video-bottom .lima-banner-item a,
.lima-video-top .lima-banner-item img,
.lima-video-bottom .lima-banner-item img {
    display: block;
    height: auto !important;
    max-width: 100% !important;
}

.ophim-video-ad-player {
    position: relative;
}

/* Catfish stays at the bottom; closing it only hides it until the next scroll. */
.ophim-catfish-ad {
    background: rgba(0, 0, 0, .85);
    bottom: 0;
    left: 0;
    padding: 4px 4px 6px;
    position: fixed;
    width: 100%;
    z-index: 99990;
}

.ophim-catfish-ad.ophim-catfish-is-hidden {
    display: none !important;
}

.ophim-catfish-ad__content {
    font-size: 0;
    line-height: 0;
    margin: 0 auto;
    max-width: 760px;
    overflow: hidden;
    text-align: center;
}

.ophim-catfish-ad__content .lima-banner-item {
    display: inline-block;
    line-height: 0;
    margin: 2px;
    max-width: 49%;
    vertical-align: middle;
    width: calc(50% - 4px);
}

.ophim-catfish-ad__content .lima-banner-item a,
.ophim-catfish-ad__content img {
    display: block;
    height: auto !important;
    max-width: 100% !important;
}

.ophim-catfish-ad__close {
    align-items: center;
    background: #2b2b2b;
    border: 0;
    border-radius: 2px 2px 0 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    font: 700 18px/1 Arial, sans-serif;
    height: 24px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: max(4px, calc((100% - 760px) / 2));
    top: -24px;
    width: 32px;
    z-index: 2;
}

.xxbm-popup-overlay {
    align-items: center;
    background: rgba(0, 0, 0, .85);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 99999;
}

.xxbm-popup-content {
    max-width: 200px !important;
    position: relative;
    text-align: center;
    width: 100%;
}

.xxbm-popup-content .xxbm-item {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}

.xxbm-popup-content .xxbm-item a {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}

.xxbm-popup-content .xxbm-item img,
.xxbm-popup-content .textwidget img {
    border-radius: 6px;
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 100% !important;
    width: 100%;
}

.xxbm-popup-close {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
    color: #000;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    font-weight: bold;
    height: 28px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 0;
    top: -34px;
    user-select: none;
    width: 28px;
}

.ophim-tvc-ad {
    align-items: center;
    background: #000;
    display: flex;
    inset: 0;
    justify-content: center;
    overflow: hidden;
    position: absolute;
    z-index: 100;
}

.ophim-tvc-ad__content {
    height: 100%;
    text-align: center;
    width: 100%;
}

.ophim-tvc-ad__content > a,
.ophim-tvc-ad__content > img,
.ophim-tvc-ad__content > video {
    border: 0;
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.ophim-tvc-ad__content > a > video,
.ophim-tvc-ad__content > a > img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.ophim-tvc-ad__skip {
    background: rgba(0, 0, 0, .78);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 3px;
    bottom: 16px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 12px;
    position: absolute;
    right: 16px;
    z-index: 2;
}

.ophim-tvc-ad__skip[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .ophim-ad--top-banner .lima-banner-item {
        max-width: min(300px, calc(100vw - 16px)) !important;
        width: 300px;
    }

    .lima-video-top .lima-banner-item,
    .lima-video-bottom .lima-banner-item {
        max-width: min(300px, calc(100% - 4px)) !important;
    }

    .ophim-catfish-ad {
        padding: 28px 4px 6px;
    }

    .ophim-catfish-ad__close {
        right: 4px;
        top: 4px;
    }

    .ophim-tvc-ad__skip {
        bottom: 8px;
        right: 8px;
    }
}

@media (max-width: 360px) {
    .ophim-catfish-ad__content .lima-banner-item {
        display: block;
        margin: 2px auto;
        max-width: 100%;
        width: 100%;
    }
}
