@media (min-width: 1240px) {
    html[data-dd-header-focus] #Top_bar #menu .dd-header-key-open > ul.sub-menu {
        display: block !important;
        opacity: 1 !important;
    }
}
@media (min-width: 1240px) and (hover: none) and (pointer: coarse) {
    html[data-dd-header-focus] #Top_bar #menu .menu-main > li.menu-item-has-children { position: relative; }
    html[data-dd-header-focus] #Top_bar #menu .menu-main > li.menu-item-has-children > a:first-child { padding-right: 32px; }
    html[data-dd-header-focus] #Top_bar #menu .menu-main > li.menu-item-has-children > a:first-child::after { pointer-events: none; }
    html[data-dd-header-focus] #Top_bar #menu .menu-main > li > a.menu-toggle {
        position: absolute;
        z-index: 2;
        display: grid;
        place-items: center;
        inset: 0 0 auto auto;
        width: 32px;
        height: 48px;
        margin: 0;
        padding: 0;
        color: inherit;
        visibility: visible;
    }
    html[data-dd-header-focus] #Top_bar #menu .menu-main > li > a.menu-toggle::after {
        content: "▾";
        position: static;
        width: auto;
        height: auto;
        background: none;
        opacity: 1;
    }
    html[data-dd-header-focus] #Top_bar #menu .menu-main > li:not(.dd-header-key-open) > ul.sub-menu { display: none !important; }
}
@media (max-width: 369px) {
    html[data-dd-header-focus] #Side_slide {
        max-width: 100vw;
        box-sizing: border-box;
    }
    /* The native 370px drawer otherwise shifts the page beyond a 320px touch viewport. */
    html[data-dd-header-focus] body.side-slide-is-open {
        left: 0 !important;
    }
}

/* Restore readable text while BeTheme shows the magazine header's tablet banner. */
@media (min-width: 768px) and (max-width: 1239px) {
    body.header-magazine #Top_bar .banner_wrapper > p:has(> img.tick:nth-of-type(3)) {
        color: #fff;
    }
}

/* Fit the three delivery messages between the existing logo and cart controls. */
@media (min-width: 768px) and (max-width: 959px) {
    body.header-magazine #Top_bar .banner_wrapper:has(> p > img.tick:nth-of-type(3)) {
        right: 224px;
        width: auto;
        height: auto;
        top: 50%;
        transform: translateY(-50%);
    }
    body.header-magazine #Top_bar .banner_wrapper > p:has(> img.tick:nth-of-type(3)) {
        display: grid;
        grid-template-columns: max-content auto;
        align-items: center;
        column-gap: 4px;
        margin: 0;
    }
}
