/* Popular Brands: manual horizontal browsing, with no autoplay. */
body.emh-brand-style .emh-popular-brands {
    clear: both;
    background: #fff;
    border-top: 1px solid #e1e9ef;
    padding: 36px 20px 38px;
}
.emh-brands-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
body.emh-brand-style #emh-popular-heading {
    color: var(--emh-navy); font-size: 30px; font-weight: 600; line-height: 1.2; margin: 0 0 8px;
}
.emh-brands-inner > p { color: #687785; font-size: 16px; margin: 0 0 26px; }
.emh-brands-carousel { position: relative; padding: 0 42px; }
.emh-brands-track {
    display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 8px 0 12px;
    list-style: none; margin: 0; -webkit-overflow-scrolling: touch;
}
.emh-brands-track li { flex: 0 0 calc((100% - 120px) / 6); min-width: 0; scroll-snap-align: start; }
.emh-brands-track a {
    display: flex; height: 76px; padding: 8px; align-items: center; justify-content: center;
    border: 1px solid transparent; border-radius: 6px; color: #173b55; text-decoration: none;
}
.emh-brands-track img { width: 100%; height: 60px; max-width: 170px; object-fit: contain; border: 0 !important; }
.emh-brands-track span { font-size: 19px; font-weight: 700; line-height: 1.2; }
.emh-brands-track a:hover { background: #f5f7fa; border-color: #cbdce7; }
.emh-brands-track a:focus-visible, .emh-brands-track:focus-visible,
.emh-brands-arrow:focus-visible { outline: 2px solid #176da5; outline-offset: 3px; }
.emh-brands-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px;
    padding: 0; border: 1px solid #cbdce7; border-radius: 50%; background: #eef5fa;
    color: #173b55; font-size: 28px; line-height: 1; cursor: pointer;
}
.emh-brands-prev { left: 0; } .emh-brands-next { right: 0; }
.emh-brands-arrow[hidden] { display: none; }
.emh-brands-arrow:disabled { opacity: .35; cursor: default; }

/* Restyle existing Storefront widgets after their content is reorganized. */
body.emh-brand-style #colophon.emh-footer-ready {
    background: var(--emh-navy); color: #fff; padding: 36px 0 20px;
}
body.emh-brand-style #colophon.emh-footer-ready > .col-full {
    max-width: 1200px; padding: 0 24px; box-sizing: border-box;
}
body.emh-brand-style #colophon.emh-footer-ready .footer-widgets {
    display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr);
    gap: 40px; margin: 0; padding: 0 0 28px; border: 0;
}
#colophon.emh-footer-ready .footer-widgets::before,
#colophon.emh-footer-ready .footer-widgets::after { display: none; }
body.emh-brand-style #colophon.emh-footer-ready .footer-widgets > .block {
    width: auto; float: none; margin: 0; min-width: 0;
}
#colophon.emh-footer-ready .footer-widgets .widget { margin: 0 0 16px; }
#colophon.emh-footer-ready .footer-widgets .widget:last-child { margin-bottom: 0; }
#colophon.emh-footer-ready .footer-widgets ul:not(.wp-block-social-links) {
    padding: 0; margin: 0; list-style: none;
}
#colophon.emh-footer-ready .footer-widgets li { padding: 0; margin: 0 0 7px; font-size: 16px; line-height: 1.65; }
#colophon.emh-footer-ready .footer-widgets li::before { display: none; }
#colophon.emh-footer-ready .footer-widgets li:first-child > strong {
    display: block; font-size: 19px; font-weight: 600; margin: 0 0 16px; color: #fff;
}
body.emh-brand-style #colophon.emh-footer-ready .footer-widgets a {
    color: #e5f0f8; text-decoration: none; text-underline-offset: 3px; overflow-wrap: anywhere;
}
body.emh-brand-style #colophon.emh-footer-ready .footer-widgets a:hover { color: #fff; text-decoration: underline; }
#colophon.emh-footer-ready .footer-widgets a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
#colophon.emh-footer-ready .emh-footer-brandrow { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }
#colophon.emh-footer-ready .emh-footer-brandrow .widget_media_image { flex: 0 0 90px; margin: 0; }
#colophon.emh-footer-ready .emh-footer-brandrow figure {
    width: 90px; margin: 0; padding: 10px; background: #fff; border-radius: 8px;
}
#colophon.emh-footer-ready .emh-footer-brandrow img { width: 70px !important; height: auto !important; margin: 0 auto; border: 0 !important; }
#colophon.emh-footer-ready .emh-footer-brandrow figcaption { display: none; }
body.emh-brand-style #colophon.emh-footer-ready .emh-footer-business { color: #fff; font-size: 23px; font-weight: 600; line-height: 1.25; margin: 0; }
#colophon.emh-footer-ready .emh-footer-description { font-size: 16px; line-height: 1.6; color: #e5f0f8; margin: 0 0 18px; }
body.emh-brand-style #colophon.emh-footer-ready a.emh-ebay-store {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 14px;
    background: #fff; color: #173b55; border-radius: 6px; font-size: 14px; font-weight: 600;
    text-decoration: none; max-width: 100%; box-sizing: border-box; margin-bottom: 18px;
}
#colophon.emh-footer-ready a.emh-ebay-store img { width: 62px; height: 28px; flex-shrink: 0; object-fit: contain; border: 0 !important; }
#colophon.emh-footer-ready a.emh-ebay-store:hover { background: #eef5fa; }
#colophon.emh-footer-ready .wp-block-social-links { justify-content: flex-start; gap: 12px; margin: 0; }
#colophon.emh-footer-ready .wp-block-social-links .wp-social-link { background: #fff; color: #173b55; font-size: 22px; margin: 0; }
body.emh-brand-style #colophon.emh-footer-ready .wp-block-social-links a { color: #173b55; padding: 8px; }
#colophon.emh-footer-ready .emh-footer-contact-link { display: inline-block; margin-top: 6px; font-size: 16px; }
body.emh-brand-style #colophon.emh-footer-ready .site-info {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    padding: 18px 0 0; border-top: 1px solid #537086; color: #e5f0f8; font-size: 14px;
}
#colophon.emh-footer-ready .emh-footer-payments { margin: 0; }
#colophon.emh-footer-ready .emh-footer-payments figure { margin: 0; padding: 8px 12px; background: #fff; border-radius: 5px; }
#colophon.emh-footer-ready .emh-footer-payments img { width: 210px !important; height: auto !important; margin: 0; border: 0 !important; }
@media (max-width: 1000px) {
    .emh-brands-track li { flex-basis: calc((100% - 72px) / 4); }
    body.emh-brand-style #colophon.emh-footer-ready .footer-widgets { gap: 24px; }
    #colophon.emh-footer-ready .emh-footer-brandrow { flex-wrap: wrap; }
}
@media (max-width: 700px) {
    body.emh-brand-style .emh-popular-brands { padding: 26px 14px; }
    body.emh-brand-style #emh-popular-heading { font-size: 25px; }
    .emh-brands-inner > p { margin-bottom: 16px; }
    .emh-brands-carousel { padding: 0 30px; }
    .emh-brands-arrow { width: 28px; height: 28px; }
    .emh-brands-track { gap: 16px; }
    .emh-brands-track li { flex-basis: calc((100% - 16px) / 2); }
    body.emh-brand-style #colophon.emh-footer-ready .footer-widgets { grid-template-columns: 1fr; gap: 28px; }
    #colophon.emh-footer-ready .emh-footer-brandrow { flex-wrap: nowrap; }
    body.emh-brand-style #colophon.emh-footer-ready .site-info { align-items: flex-start; flex-direction: column; }
    body.emh-brand-style #colophon.emh-footer-ready { padding-bottom: 80px; }
}
