.oto-header-cart {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-inline-start: auto;
    border-radius: 8px;
    color: #102737;
    text-decoration: none;
}
.oto-header-cart:hover { background: #edf4ff; }
.oto-header-cart:focus-visible { outline: 2px solid #164cd1; outline-offset: 1px; }
.oto-header-cart .icon { width: 23px; height: 23px; }
.oto-logo-fallback[hidden], [data-oto-header-logo][hidden] { display: none !important; }

@media (max-width: 720px) {
    html body.oto-legacy-store .top .header:has(.oto-mobile-menu) {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        grid-template-areas: "menu logo cart" "search search search";
        align-items: center;
        gap: 7px 8px;
        min-height: 0 !important;
        padding-block: 7px 10px !important;
    }
    .oto-legacy-store .top .oto-mobile-menu { grid-area: menu; }
    html body.oto-legacy-store .top .header .oto-product-logo {
        grid-area: logo;
        justify-self: center;
        justify-content: center;
        min-width: 0 !important;
        width: auto !important;
        max-width: 100% !important;
        height: 44px !important;
        min-height: 0 !important;
        margin: 0 !important;
        text-align: center;
        white-space: nowrap;
        font: 800 clamp(1rem, 5vw, 1.42rem)/1.1 Geist, system-ui, sans-serif !important;
    }
    html body.oto-legacy-store .top .header .oto-product-logo img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }
    .oto-legacy-store .top .oto-header-cart { grid-area: cart; }
    html body.oto-legacy-store .top .header form.search {
        grid-area: search;
        min-width: 0;
        width: 100% !important;
        margin: 0 !important;
    }
    html body.oto-legacy-store .top .header > .links { display: none !important; }
    .oto-legacy-store .oto-mobile-menu nav {
        top: var(--oto-menu-top, calc(62px + env(safe-area-inset-top, 0px)));
    }
}

html body .site-footer .footer-site-logo[hidden],
html body .site-footer .oto-footer-logo-fallback[hidden] { display: none !important; }

@media (max-width: 720px) {
    html body.oto-legacy-store .top .header .oto-product-logo.has-site-logo {
        width: min(100%, var(--oto-logo-width, 240px)) !important;
        height: max(56px, min(74px, var(--oto-logo-height, 64px))) !important;
    }
}

html body footer.site-footer .foot-intro .oto-footer-logo {
    box-sizing: border-box;
    max-width: min(100%, 280px) !important;
    padding: 0;
    background: transparent !important;
}

.oto-header-cart .oto-cart-icon { width: 26px; height: 26px; }
.oto-mobile-dock [data-oto-cart] .oto-cart-icon { width: 19px; height: 19px; }
html body .final-detail .ref-actions .bm-add-cart .oto-cart-icon,
html body .catalog .hkn-card-cart .oto-cart-icon {
    width: 19px;
    height: 19px;
    flex: none;
    vertical-align: middle;
}
html body .final-detail .ref-actions .bm-add-cart .oto-cart-icon { margin-inline-end: 5px; }
.oto-cart-summary-label .oto-cart-icon {
    width: 17px;
    height: 17px;
    vertical-align: middle;
    margin-inline-end: 3px;
}
