
#rbTimezoneControl {
    position: fixed;
    right: 16px;
    bottom: 90px;
    z-index: 10000;
    font-family: inherit;
}

#rbTimezoneControl .rb-timezone-button {
    background: #18251f;
    color: #f1f5f2;
    border: 1px solid #496052;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

#rbTimezoneControl .rb-timezone-panel {
    position: absolute;
    bottom: 40px;
    right: 0;
    width: 240px;
    padding: 14px;
    border: 1px solid #496052;
    border-radius: 10px;
    background: #18251f;
    color: #f1f5f2;
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

#rbTimezoneControl .rb-timezone-panel[hidden] {
    display: none !important;
}

#rbTimezoneControl label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

#rbTimezoneControl select {
    width: 100%;
    padding: 8px;
    background: #101a15;
    color: #f1f5f2;
    border: 1px solid #496052;
    border-radius: 6px;
    font-size: 12px;
}

#rbTimezoneControl small {
    display: block;
    margin-top: 9px;
    font-size: 10px;
    opacity: .75;
}

@media (max-width: 700px) {
    #rbTimezoneControl {
        right: 10px;
        bottom: 82px;
    }
}

#rbTimezoneControl.rb-tz-in-footer {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 5;
    display: block;
    width: max-content;
    margin: 14px auto 0;
}

#rbTimezoneControl.rb-tz-in-footer .rb-timezone-button {
    background: transparent;
    color: inherit;
    border-color: rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

#rbTimezoneControl.rb-tz-in-footer .rb-timezone-panel {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: left;
}


/* RB_HOME_STAGE3B2_V1 */

#homeTopLayoutV4 {
    width: calc(100% - 32px) !important;
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    min-width: 0;
}

#homeTopLayoutV4 > #rbHomepageNext5 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* The offer is hidden until account visibility is resolved. */

#homeDayPassCard[data-rb-account-pending="1"] {
    display: none !important;
}



/* RB_NEXT5_STATIC_ALIGNMENT_V1 */

#rbHomepageNext5 {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 960px;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center;
    justify-self: center;
    min-width: 0;
}

#homeTopLayoutV4 > #rbHomepageNext5 {
    width: 100%;
    max-width: 960px;
    margin-left: auto !important;
    margin-right: auto !important;
}

#rbHomepageNext5 .rb-n5-list {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    min-width: 0;
}

@media (max-width: 600px) {
    #rbHomepageNext5 {
        width: calc(100% - 24px);
    }

    #homeTopLayoutV4 > #rbHomepageNext5 {
        width: 100%;
    }
}




/* RB_HOMEPAGE_STAGE3B1 */

/* Match the existing five-column desktop race layout. */

#homeTopLayoutV4 #rbHomepageNext5 .rb-n5-list {
    min-height: 74px !important;
}

#homeTopLayoutV4 #rbHomepageNext5 .rb-n5-empty {
    grid-column: 1 / -1;
    box-sizing: border-box;
}

/* Existing mobile layout: two columns, three rows.
   Three 68px rows plus two 8px gaps = 220px. */

@media (max-width: 700px) {

    #homeTopLayoutV4 #rbHomepageNext5 .rb-n5-list {
        min-height: 220px !important;
    }

}

/* Keep compact navigation buttons in their existing style. */

#rbCompactHomeTools {
    width: 100%;
    max-width: 960px;
    box-sizing: border-box;
    margin: 10px auto 4px;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}

#rbCompactHomeTools button {
    min-height: 55px;
    box-sizing: border-box;
}

@media (max-width: 650px) {

    #rbCompactHomeTools {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    #rbCompactHomeTools button {
        min-height: 48px;
    }

}

/* Prevent homepage tools appearing on secondary pages. */

body.brain-bets-page-view #rbCompactHomeTools,
body.rb-n5-detail-view #rbCompactHomeTools,
body.rb-n5-race-view #rbCompactHomeTools,
body:has(#racePage.visible) #rbCompactHomeTools,
body:has(#horsePage.visible) #rbCompactHomeTools,
body:has(#jockeyPage.visible) #rbCompactHomeTools,
body:has(#trainerPage.visible) #rbCompactHomeTools {
    display: none !important;
}




/* Apply existing final-design visibility before body parsing. */

main > section.hero,
#homeRedesignHero,
#homeRedesignNextBetHeading,
#homeStrategyProducts,
#rbHomeValueStrip,
#nextJumpContainer {
    display: none !important;
}

#homeTopLayoutV4 {
    margin-top: 12px;
}

#homeTopLayoutV4 #homeTopV4Ask {
    margin-top: 0;
}

#homeTopV4Ask #dailyBetsLaunch {
    display: none !important;
}

#homeTopLayoutV4 #rbHomepageNext5 .rb-n5-list {
    min-height: 74px;
}

/* Preserve secondary-page visibility rules. */

body.brain-bets-page-view #homeTopLayoutV4,
body.about-page-view #homeTopLayoutV4,
body.horse-search-page-view #homeTopLayoutV4,
body.trainer-jockey-page-view #homeTopLayoutV4,
body.jockey-profile-view #homeTopLayoutV4,
body.trainer-profile-view #homeTopLayoutV4,
body:has(#racePage.visible) #homeTopLayoutV4,
body:has(#horsePage.visible) #homeTopLayoutV4,
body:has(#jockeyPage.visible) #homeTopLayoutV4,
body:has(#trainerPage.visible) #homeTopLayoutV4 {
    display: none !important;
}

