/* 2028 Dem/GOP national primary Mediavine: class-only wells. v=20260901b */

.pm-tx-ad-band {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
    text-align: center;
}

@media (max-width: 767px) {
    body.primary-2028-approval-format .pm-tx-ad-band[data-pm-p28-place="above-table"] {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
        pointer-events: none !important;
    }
}

body.primary-2028-approval-format .pm-tx-ad-band.pm-tx-ad-band--desktop .pm-ad-slot {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 250px !important;
    height: 250px !important;
    max-height: 250px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.primary-2028-approval-format .pm-tx-ad-band.pm-tx-ad-band--desktop .mv-ad-box,
body.primary-2028-approval-format .pm-tx-ad-band.pm-tx-ad-band--desktop [id^="mvp-"] {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: 100%;
    margin: auto !important;
    overflow: hidden;
    align-self: center;
}
body.primary-2028-approval-format .pm-tx-ad-band.pm-tx-ad-band--desktop iframe,
body.primary-2028-approval-format .pm-tx-ad-band.pm-tx-ad-band--desktop img {
    display: block !important;
    float: none !important;
    margin: auto !important;
    align-self: center;
    max-width: 100%;
    max-height: 100%;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    body.primary-2028-approval-format .pm-tx-ad-band[data-pm-p28-place="page-top"] {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
        margin: 0 !important;
        padding: 16px 0 !important;
        border: 0;
        background: transparent;
        min-height: calc(250px + 32px) !important;
        height: calc(250px + 32px) !important;
        max-height: calc(250px + 32px) !important;
        overflow: hidden;
        text-align: center;
        pointer-events: auto;
    }
}

@media (min-width: 768px) {
    body.primary-2028-approval-format main.mv-content {
        overflow: visible;
    }
    body.primary-2028-approval-format .pm-tx-ad-band.pm-tx-ad-band--desktop {
        position: relative;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        margin: 0;
        background: #0b0e13;
        border-top: none;
        border-bottom: 1px solid rgb(30 41 55 / 0.8);
        padding: 16px 1.5rem !important;
        min-height: calc(250px + 32px) !important;
        height: calc(250px + 32px) !important;
        max-height: calc(250px + 32px) !important;
        overflow: hidden;
        text-align: center;
        pointer-events: auto;
        opacity: 1;
    }
    body.primary-2028-approval-format .pm-tx-ad-band[data-pm-p28-place="above-table"] {
        border-top: 1px solid rgb(30 41 55 / 0.8) !important;
        border-bottom: 1px solid rgb(30 41 55 / 0.8) !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    /*
     * 2.5rem content gap above and below the table well (same as GE polling mid well).
     * Beat padding-top:0 / margin-top:-14px in primary-2028-approval-format.css.
     */
    body.primary-2028-approval-format main > section.et-2028-primary-key-below-chart:has(+ .pm-tx-ad-band[data-pm-p28-place="above-table"]) {
        margin-bottom: 0 !important;
    }
    body.primary-2028-approval-format main > section.et-2028-primary-key-below-chart:has(+ .pm-tx-ad-band[data-pm-p28-place="above-table"]) > div {
        padding-bottom: 2.5rem !important;
    }
    body.primary-2028-approval-format .pm-tx-ad-band[data-pm-p28-place="above-table"] + section:has(#pollsTableShell) > div {
        padding-top: 2.5rem !important;
        margin-top: 0 !important;
    }
    body.primary-2028-approval-format .pm-tx-ad-band[data-pm-p28-place="above-table"] + section:has(#pollsTableShell) .state-polls-shell {
        margin-top: 0 !important;
    }
    @media (min-width: 1024px) {
        body.primary-2028-approval-format .pm-tx-ad-band.pm-tx-ad-band--desktop {
            padding-left: 2.5rem !important;
            padding-right: 2.5rem !important;
        }
    }
    @media (min-width: 1280px) {
        body.primary-2028-approval-format .pm-tx-ad-band.pm-tx-ad-band--desktop {
            padding-left: 3.5rem !important;
            padding-right: 3.5rem !important;
        }
    }
}
