/* Mobile layout fix for JimmyBet static build */
@media screen and (max-width: 991px) {
    html {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    body.jbx-locked {
        overflow: hidden !important;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    body.useBodyGrid {
        /* On phones the desktop build's internal/grid scroller can stop the
           document before the real footer. Use normal block flow instead. */
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-gap: 0 !important;
        height: auto !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        background-color: #e6e3e8;
    }

    body.useBodyGrid > #headerBar,
    body.useBodyGrid > #footerBar {
        display: none !important;
    }

    body.useBodyGrid > header,
    body.internalScrolling > header {
        grid-row: 1 !important;
        grid-column: 1 !important;
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        z-index: 1000 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background-color: #40015d !important;
    }

    body.useBodyGrid > header .headerContent,
    body.internalScrolling > header .headerContent {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-areas: "headerNav" "ntjScroller" !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.useBodyGrid > header .headerContent nav {
        grid-area: headerNav !important;
        display: grid !important;
        grid-template-areas: "logo details" "tabs tabs" !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    body > header .headerContent nav .headLogo {
        grid-area: logo !important;
        min-width: 0 !important;
        padding: .45rem .5rem .35rem .75rem !important;
    }

    body > header .headerContent nav .headLogo a,
    body > header .headerContent nav .headLogo img {
        width: auto !important;
        max-width: min(13rem, 58vw) !important;
        height: 3.15rem !important;
        object-fit: contain !important;
    }

    body > header .headerContent nav .headDetails {
        grid-area: details !important;
        min-width: 0 !important;
        width: auto !important;
        padding: .45rem .75rem .35rem .25rem !important;
        justify-self: end !important;
    }

    body > header .headerContent nav .headDetails .stateLoggedOut {
        display: grid !important;
        grid-template-columns: auto auto !important;
        gap: .35rem !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body > header .headerContent nav .headDetails .stateLoggedOut .button {
        width: auto !important;
        min-width: 4.25rem !important;
        min-height: 2.25rem !important;
        padding: .35rem .65rem !important;
        font-size: .85rem !important;
        line-height: 1 !important;
    }

    body > header .headerContent nav .headNav {
        grid-area: tabs !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid rgba(253, 253, 253, .18);
    }

    body > header .headerContent nav .headNav .tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        min-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 .25rem !important;
        border: none !important;
    }

    body > header .headerContent nav .headNav .tabs li,
    body.useBodyGrid > header .headerContent nav .headNav .tabs li {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-left: none !important;
        border-right: 1px solid rgba(253, 253, 253, .18) !important;
        border-radius: 0 !important;
    }

    body > header .headerContent nav .headNav .tabs li a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 2.75rem !important;
        padding: 0 .85rem !important;
        color: #fdfdfd !important;
        font-size: .95rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    body.useBodyGrid > header .headerContent .headerNTJScrollSection {
        grid-area: ntjScroller !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        padding: .55rem .75rem !important;
        background-color: #e6e3e8 !important;
    }

    .headerNTJScrollSection .NTJScrollPanel {
        display: grid !important;
        grid-template-columns: auto auto minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: .45rem !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 0 !important;
    }

    .headerNTJScrollSection .NTJScrollPanel #NTJSelector {
        display: grid !important;
        grid-template-columns: repeat(4, 2.35rem) !important;
        gap: .35rem !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: .35rem !important;
        background-color: #202020;
        border-radius: 8px;
    }

    .headerNTJScrollSection .NTJScrollPanel #NTJSelector li {
        width: 2.35rem !important;
        height: 2.35rem !important;
        min-height: 2.35rem !important;
    }

    .headerNTJScrollSection .NTJScrollPanel > a {
        flex: 0 0 auto !important;
        width: 2.35rem !important;
        height: 2.35rem !important;
        min-height: 2.35rem !important;
    }

    .headerNTJScrollSection .NTJScrollPanel #NTJScroller {
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        border: none !important;
    }

    .headerNTJScrollSection .NTJScrollPanel #NTJScroller ul.ntjMenu {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        min-width: 100% !important;
        height: auto !important;
        gap: .5rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .headerNTJScrollSection .NTJScrollPanel #NTJScroller ul.ntjMenu li {
        flex: 0 0 min(13rem, 62vw) !important;
        width: min(13rem, 62vw) !important;
        min-width: min(13rem, 62vw) !important;
        height: 3.35rem !important;
        min-height: 3.35rem !important;
    }

    body.useBodyGrid #leftColumn,
    body.useBodyGrid #rightColumn,
    body.internalScrolling #leftColumnScroller,
    body.internalScrolling #rightColumnScroller {
        display: none !important;
    }

    body.useBodyGrid #mainContent,
    body.internalScrolling > #mainContent {
        grid-row: 2 !important;
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: .75rem !important;
        overflow: visible !important;
    }

    body.useBodyGrid #mainContent #pageContent {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.useBodyGrid #mainContent #pageContent .wc_home .staticContent,
    body.useBodyGrid #mainContent #pageContent .wc_home .staticContent > div,
    #HomeCMSRacing,
    #HomeCMSSport,
    #HomeCMSPromo {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #MainBanners,
    #MainBanners .dynamicWidget,
    .GW_rotatebanner,
    .GW_rotatebanner .GW_rotatebanner_banners,
    .GW_rotatebanner .GW_rotatebanner_banners .GW_rotatebanner_banner {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .GW_rotatebanner {
        height: auto !important;
        aspect-ratio: 1000 / 333;
        margin-bottom: .75rem !important;
    }

    .GW_rotatebanner .GW_rotatebanner_banners .GW_rotatebanner_banner img,
    .promoBlockContainer .promoBlock img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .homePageSelector,
    .widget_ntjracecards > ul.tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .homePageSelector li,
    .widget_ntjracecards > ul.tabs li {
        flex: 0 0 auto !important;
    }

    body.useBodyGrid .widget_nextxraces,
    body.useBodyGrid section.widget_ntj,
    #HomeCMSSport .widget_upcomingmatches,
    .promoBlockContainer {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: .75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    body.useBodyGrid .widget_nextxraces .NextRacePanel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        padding: 0 !important;
    }

    .widget_nextxraces section.widget_nextrace,
    .widget_upcomingmatches .framePanel,
    .framePanel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .widget_nextxraces section.widget_nextrace table {
        table-layout: fixed;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .widget_nextxraces section.widget_nextrace table tr td:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.useBodyGrid > footer,
    body.internalScrolling > footer {
        grid-row: 3 !important;
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: .75rem !important;
        margin: 0 !important;
    }
}

@media screen and (max-width: 430px) {
    body > header .headerContent nav .headLogo a,
    body > header .headerContent nav .headLogo img {
        max-width: 47vw !important;
        height: 2.75rem !important;
    }

    body > header .headerContent nav .headDetails .stateLoggedOut .button {
        min-width: 3.75rem !important;
        padding: .3rem .5rem !important;
        font-size: .78rem !important;
    }

    .headerNTJScrollSection .NTJScrollPanel {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .headerNTJScrollSection .NTJScrollPanel #NTJSelector,
    .headerNTJScrollSection .NTJScrollPanel > a {
        display: none !important;
    }

    .headerNTJScrollSection .NTJScrollPanel #NTJScroller ul.ntjMenu li {
        flex-basis: 74vw !important;
        width: 74vw !important;
        min-width: 74vw !important;
    }
}

@media screen and (max-width: 991px) {
    .headerNTJScrollSection .NTJScrollPanel #NTJScroller ul.ntjMenu:not(.ntjMenu_All) {
        display: none !important;
    }
}

/* Local interactive layer: auth modals, event details and functional Bet Slip */
.jbx-interactive-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(20, 8, 28, .72);
    backdrop-filter: blur(5px);
}

.jbx-interactive-modal.is-visible {
    display: flex;
}

.jbx-interactive-card {
    position: relative;
    width: min(31rem, 100%);
    max-height: min(46rem, calc(100vh - 2.5rem));
    overflow: auto;
    border-radius: 14px;
    background: #fff;
    color: #262626;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.jbx-interactive-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.2rem;
    border-bottom: 1px solid #e7e2ea;
    background: #40015d;
    color: #fff;
}

.jbx-interactive-head h2 {
    margin: 0;
    color: #fff;
    font-family: 'Saira', 'Overpass', sans-serif;
    font-size: 1.35rem;
    line-height: 1.15;
}

.jbx-interactive-close {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.jbx-interactive-body {
    padding: 1.2rem;
}

.jbx-form-grid {
    display: grid;
    gap: .85rem;
}

.jbx-form-row {
    display: grid;
    gap: .35rem;
}

.jbx-form-row label {
    font-weight: 700;
    font-size: .9rem;
}

.jbx-form-row input,
.jbx-form-row select {
    width: 100%;
    min-height: 2.85rem;
    padding: .65rem .75rem;
    border: 1px solid #cbc3cf;
    border-radius: 7px;
    background: #fff;
    color: #262626;
    font: inherit;
    outline: none;
}

.jbx-form-row input:focus,
.jbx-form-row select:focus {
    border-color: #6b168c;
    box-shadow: 0 0 0 3px rgba(107, 22, 140, .12);
}

.jbx-form-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.jbx-check-row {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .86rem;
    line-height: 1.35;
}

.jbx-check-row input {
    margin-top: .12rem;
}

.jbx-modal-actions {
    display: flex;
    gap: .6rem;
    margin-top: 1rem;
}

.jbx-primary-action,
.jbx-secondary-action {
    min-height: 2.7rem;
    padding: .62rem 1rem;
    border-radius: 7px;
    border: 0;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.jbx-primary-action {
    flex: 1;
    background: #8ed000;
    color: #1b1b1b;
}

.jbx-secondary-action {
    background: #ece8ef;
    color: #40015d;
}

.jbx-form-note {
    display: none;
    margin-top: .8rem;
    padding: .7rem .8rem;
    border-radius: 7px;
    background: #f4f1f6;
    color: #4e4056;
    font-size: .86rem;
    line-height: 1.4;
}

.jbx-form-note.is-visible {
    display: block;
}

.jbx-event-meta {
    margin: 0 0 1rem;
    color: #6b6270;
    font-size: .9rem;
}

.jbx-event-selections {
    display: grid;
    gap: .55rem;
}

.jbx-event-selection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: .78rem .85rem;
    border: 1px solid #e0d9e4;
    border-radius: 8px;
    background: #faf9fb;
    color: #2b2730;
    text-align: left;
    cursor: pointer;
}

.jbx-event-selection:hover {
    border-color: #8ed000;
    background: #f7fde9;
}

.jbx-event-selection strong {
    color: #5c087b;
    font-size: 1rem;
}

#CouponBlock .bettingPanel.mainCoupon:not(.empty) .bettingLegs {
    padding: .45rem .55rem .25rem;
}

.jbx-bet-leg {
    position: relative;
    display: grid;
    gap: .45rem;
    margin-bottom: .55rem;
    padding: .7rem .65rem;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #ded9e1;
}

.jbx-bet-leg-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: start;
    gap: .55rem;
}

.jbx-bet-name {
    min-width: 0;
    color: #28242b;
    font-size: .85rem;
    font-weight: 800;
    line-height: 1.25;
}

.jbx-bet-event {
    margin-top: .15rem;
    color: #746c77;
    font-size: .72rem;
    font-weight: 500;
}

.jbx-bet-price {
    min-width: 3.2rem;
    padding: .35rem .45rem;
    border-radius: 5px;
    background: #8ed000;
    color: #1b1b1b;
    font-size: .86rem;
    font-weight: 900;
    text-align: center;
}

.jbx-bet-remove {
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eee9f1;
    color: #5a4f60;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.jbx-bet-stake-row {
    display: grid;
    grid-template-columns: auto minmax(5rem, 7.5rem);
    align-items: center;
    justify-content: end;
    gap: .55rem;
    color: #615967;
    font-size: .76rem;
    font-weight: 700;
}

.jbx-bet-stake {
    width: 100%;
    min-height: 2rem;
    padding: .25rem .45rem;
    border: 1px solid #cec7d2;
    border-radius: 5px;
    background: #fff;
    text-align: right;
    font: inherit;
}

.jbx-placebet-wrap {
    padding: 0 .55rem .6rem;
}

.jbx-placebet {
    width: 100%;
    min-height: 2.55rem;
    border: 0;
    border-radius: 6px;
    background: #8ed000;
    color: #1b1b1b;
    font-weight: 900;
    cursor: pointer;
}

.betlink.jbx-selected-bet {
    box-shadow: 0 0 0 2px #8ed000 inset, 0 0 0 1px #5c087b !important;
}

.jbx-mobile-betslip {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 8000;
    display: none;
    min-height: 3rem;
    padding: .65rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #5c087b;
    color: #fff;
    box-shadow: 0 10px 28px rgba(44, 5, 59, .34);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.jbx-mobile-betslip span {
    display: inline-grid;
    place-items: center;
    min-width: 1.6rem;
    height: 1.6rem;
    margin-left: .45rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: #8ed000;
    color: #1b1b1b;
}

.jbx-mobile-bets {
    display: grid;
    gap: .65rem;
}

.jbx-mobile-bet-row {
    display: grid;
    gap: .45rem;
    padding: .75rem;
    border: 1px solid #e0d9e4;
    border-radius: 8px;
    background: #faf9fb;
}

.jbx-mobile-bet-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .55rem;
    align-items: start;
}

.jbx-mobile-bet-bottom {
    display: grid;
    grid-template-columns: auto 7rem;
    gap: .55rem;
    align-items: center;
    justify-content: end;
}

.jbx-mobile-totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    margin-top: .8rem;
}

.jbx-mobile-total {
    padding: .65rem;
    border-radius: 7px;
    background: #f1edf3;
    font-size: .82rem;
}

.jbx-mobile-total strong {
    display: block;
    margin-top: .2rem;
    color: #5c087b;
    font-size: 1.05rem;
}

@media screen and (max-width: 991px) {
    .jbx-mobile-betslip {
        display: block;
    }

    .jbx-interactive-modal {
        align-items: flex-end;
        padding: .75rem;
    }

    .jbx-interactive-card {
        width: 100%;
        max-height: 82vh;
        border-radius: 14px 14px 8px 8px;
    }
}

@media screen and (max-width: 520px) {
    .jbx-form-inline,
    .jbx-mobile-totals {
        grid-template-columns: 1fr;
    }
}

/* Final overrides: keep the local Bet Slip and auth forms inside their cards. */
#CouponBlock .jbx-bet-stake-row {
    grid-template-columns: auto minmax(0, 7.5rem);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#CouponBlock input.jbx-bet-stake,
.jbx-interactive-modal input.jbx-bet-stake {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 2rem !important;
    min-height: 2rem !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* The source theme forces fixed 16rem widths on typed inputs. Override that
   inside our modal so Login / Join fields remain aligned and full width. */
.jbx-interactive-modal .jbx-form-row input[type="text"],
.jbx-interactive-modal .jbx-form-row input[type="number"],
.jbx-interactive-modal .jbx-form-row input[type="password"],
.jbx-interactive-modal .jbx-form-row input[type="email"],
.jbx-interactive-modal .jbx-form-row input[type="tel"],
.jbx-interactive-modal .jbx-form-row input:not([type]) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 2.85rem !important;
    min-height: 2.85rem !important;
    margin: 0 !important;
}

.jbx-interactive-modal .jbx-form-row,
.jbx-interactive-modal .jbx-form-inline,
.jbx-interactive-modal .jbx-form-grid {
    min-width: 0;
    max-width: 100%;
}

/* Reset the original global h2 styling which otherwise paints a black block
   behind the modal title. */
.jbx-interactive-modal .jbx-interactive-head h2 {
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
}

/* The original site visually hides native checkboxes. In our local auth
   modals they need to remain visible and clickable. */
.jbx-interactive-modal .jbx-check-row input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    position: static !important;
    display: inline-block !important;
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem !important;
    min-height: 1rem !important;
    margin: .12rem 0 0 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    clip: auto !important;
    pointer-events: auto !important;
}

@media screen and (max-width: 520px) {
    #CouponBlock .jbx-bet-stake-row {
        grid-template-columns: auto minmax(0, 6.5rem);
    }
}

/* Mobile footer rebuild: prevent the provider/payment/link sections from
   keeping their desktop grid and overflowing the viewport. */
@media screen and (max-width: 991px) {
    body.useBodyGrid > footer,
    body.internalScrolling > footer,
    body > footer {
        display: block !important;
        position: relative !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 1px !important;
        overflow: visible !important;
        padding: .9rem .8rem 5.75rem !important;
        margin: .75rem 0 0 !important;
        box-sizing: border-box !important;
    }

    body > footer .footerContent,
    body > footer .staticFooter {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body > footer div.footerContent .footerLogoSection {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto !important;
        grid-template-areas:
            "wagerProv"
            "bankProv"
            "downApp" !important;
        gap: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 1.5rem !important;
    }

    body > footer div.footerContent .wageringProv,
    body > footer div.footerContent .bankingProv,
    body > footer div.footerContent .downloadApp {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body > footer div.footerContent h4,
    body > footer div.footerContent .wageringProv h4,
    body > footer div.footerContent .bankingProv h4,
    body > footer div.footerContent .downloadApp h4 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 0 .65rem !important;
        padding: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.25 !important;
    }

    body > footer div.footerContent .wageringProv .LogoImg {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: .6rem !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body > footer div.footerContent .wageringProv .LogoImg > img,
    body > footer div.footerContent .wageringProv .LogoImg > a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 10px !important;
        background: #fdfdfd !important;
        overflow: hidden !important;
    }

    body > footer div.footerContent .wageringProv .LogoImg > img,
    body > footer div.footerContent .wageringProv .LogoImg > a > img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        padding: .38rem !important;
        margin: 0 !important;
        object-fit: contain !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    body > footer div.footerContent .bankingProv > div {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: .65rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body > footer div.footerContent .bankingProv > div > img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        aspect-ratio: 1.35 / 1 !important;
        object-fit: contain !important;
        padding: .45rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        background: #fdfdfd !important;
        border-radius: 10px !important;
    }

    body > footer div.footerContent .downloadApp {
        display: block !important;
        align-self: auto !important;
        text-align: center !important;
    }

    body > footer div.footerContent .downloadApp > div {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .65rem !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body > footer div.footerContent .downloadApp > div > a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body > footer div.footerContent .downloadApp > div img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 4rem !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }

    body > footer div.footerContent .links {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.15rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 1.5rem !important;
    }

    body > footer div.footerContent .links > div,
    body > footer div.footerContent .links > div ul,
    body > footer div.footerContent .links > div ul li {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body > footer div.footerContent .links > div {
        margin: 0 !important;
    }

    body > footer div.footerContent .links div h4 {
        justify-content: flex-start !important;
        text-align: left !important;
        white-space: normal !important;
        font-size: .92rem !important;
        line-height: 1.2 !important;
        margin: 0 0 .55rem !important;
    }

    body > footer div.footerContent .links div ul {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body > footer div.footerContent .links div ul li {
        min-height: 0 !important;
        margin: 0 0 .45rem !important;
        padding: 0 !important;
    }

    body > footer div.footerContent .links div ul li a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        font-size: .83rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    body > footer div.footerContent .legal {
        display: flex !important;
        flex-direction: column !important;
        gap: .6rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        font-size: .78rem !important;
        line-height: 1.4 !important;
    }

    body > footer div.footerContent .legal p,
    body > footer div.footerContent .legal a {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }

    body > footer div.footerContent .legal .gmblMsg {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: .35rem !important;
    }

    body > footer .staticFooter {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: .75rem !important;
        margin: 1rem 0 0 !important;
        padding: 0 !important;
    }

    body > footer .staticFooter .respGambling,
    body > footer .staticFooter .betstopMsg,
    body > footer .staticFooter .sessionTime,
    body > footer .staticFooter .system {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
    }

    body > footer .staticFooter .betstopMsg {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: .65rem !important;
        align-items: center !important;
    }

    body > footer .staticFooter .betstopMsg a,
    body > footer .staticFooter .betstopMsg a img {
        display: block !important;
        max-width: 5rem !important;
        height: auto !important;
    }
}

@media screen and (max-width: 430px) {
    body > footer div.footerContent .wageringProv .LogoImg {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: .5rem !important;
    }

    body > footer div.footerContent .links {
        gap: 1rem .75rem !important;
    }

    body > footer div.footerContent .downloadApp > div img {
        max-height: 3.5rem !important;
    }
}

@media screen and (max-width: 350px) {
    body > footer div.footerContent .wageringProv .LogoImg {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body > footer div.footerContent .links {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body > footer div.footerContent .links > div:nth-child(2) h4,
    body > footer div.footerContent .links > div:nth-child(4) h4,
    body > footer div.footerContent .links > div:nth-child(5) h4 {
        display: none !important;
    }
}

@media screen and (max-width: 991px) {
    body > footer div.footerContent .wageringProv .LogoImg > img {
        background: #fdfdfd !important;
        border-radius: 10px !important;
    }

    body > footer div.footerContent .wageringProv .LogoImg > a > img {
        background: transparent !important;
        border-radius: 0 !important;
    }
}


/* Final mobile flow guard: footer must always remain in the document scroll. */
@media screen and (max-width: 991px) {
    html {
        height: auto !important;
        min-height: 100% !important;
        overflow-y: auto !important;
    }

    body.useBodyGrid:not(.jbx-locked),
    body.internalScrolling.useBodyGrid:not(.jbx-locked) {
        display: block !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: visible !important;
    }

    body.useBodyGrid > #mainContent {
        display: block !important;
        position: relative !important;
        float: none !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    body.useBodyGrid > footer {
        display: block !important;
        position: relative !important;
        inset: auto !important;
        transform: none !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Keep the original desktop grid-template-areas from creating an implicit
   zero-width column in the mobile static footer. */
@media screen and (max-width: 991px) {
    body > footer .staticFooter {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-template-areas: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body > footer .staticFooter > .respGambling,
    body > footer .staticFooter > .betstopMsg,
    body > footer .staticFooter > .sessionTime,
    body > footer .staticFooter > .system {
        display: block !important;
        grid-area: auto !important;
        justify-self: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 0 .75rem !important;
    }

    body > footer .staticFooter > .betstopMsg > div {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    body > footer .staticFooter > .betstopMsg > a {
        display: inline-block !important;
        width: auto !important;
        max-width: 5rem !important;
        margin-top: .5rem !important;
    }
}
