/* Config 'header': the promo pages' bar (template-parts/promo-codes/header.php and its header.css), the same as on
   /promo-code/: on the hero, 1312px wide and centred on desktop, the fixed bar with the round button on phones */
.sales-page--bar {
    position: relative;
}

/* no site menu: the page starts at the top (the theme keeps 110px for the menu) */
.site-content:has(> .sales-page--bar) {
    margin-top: 0;
}

/* this template's generated styles size every <header> as the site menu (1240px, zoom .8): the bar at its own size,
   the whole width */
.sales-page--bar .promo-header {
    max-width: none;
    margin: 0;
    zoom: 1;
}

/* desktop: the logo and the button on the hero's 1289px grid (the copy's left edge, the phone's right one) */
@media (min-width: 992px) {
    .sales-page--bar .promo-header {
        padding-right: 0;
        padding-left: 0;
    }

    .sales-page--bar .promo-header__inner {
        width: min(1289px, 100% - 48px);
        max-width: none;
        margin: 0 0 0 max(24px, 50% - 646px);
    }
}

/* the label in capitals, as /promo-code/'s "GO TO ZEN.COM" (the copy keeps the design's case) */
.sales-page--bar .promo-header__cta-label {
    text-transform: uppercase;
}
