/* =========================================================
   EPOS Direct - global layout fixes (loaded from default_head_blocks.xml)

   Horizontal overflow fix: between 768px and ~1244px the header/footer
   .container elements fill the viewport with 0 padding, so Bootstrap .row
   negative margins (-15px) pushed the rows past the viewport edge and made
   the page scroll sideways by 15-32px. Rows in these containers get zero
   side margins only in that range (the column padding still provides the
   gutter). Above 1244px the container is centred with room to spare and
   below 768px the container already has 15px padding, so nothing changes.
   ========================================================= */

@media (min-width: 768px) and (max-width: 1244px) {
    .page-header .header-top-lay,
    .page-header .header-center-layout,
    .block-footer-bottom .container > .row {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Footer copyright row: its wrapper has 0 padding at every width up to 1244px */
@media (max-width: 1244px) {
    .footer-copyright > .main1.row {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Long footer e-mail address must wrap instead of widening the page */
.email-ftr-con a {
    overflow-wrap: anywhere;
    word-break: break-word;
}
