/* DeviceSite responsive header */
.dsh-header-wrap,
.dsh-header-wrap *,
.dsh-side-menu,
.dsh-side-menu *,
.dsh-menu-backdrop {
    box-sizing: border-box;
}

.dsh-header-wrap a,
.dsh-side-menu a { text-decoration: none; }

.dsh-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: linear-gradient(135deg, #06142d, #082a59 55%, #0d4c9a);
    border-bottom: 1px solid rgba(100,170,245,.25);
    box-shadow: 0 5px 22px rgba(12,55,105,.16);
    font-family: Arial, Helvetica, sans-serif;
}

.dsh-header-inner {
    width: 100%;
    min-height: 82px;
    padding: 12px 4%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.dsh-brand { flex: 0 0 auto; min-width: 0; }
.dsh-logo-link { display: inline-flex; align-items: center; max-width: 230px; }
.dsh-logo-link img { display: block; width: auto; max-width: 210px; max-height: 58px; object-fit: contain; }
.dsh-site-name { color: #fff; font-size: 25px; font-weight: 800; letter-spacing: -.5px; }


.dsh-desktop-search {
    flex: 0 1 420px;
    width: 100%;
    max-width: 420px;
    min-width: 180px;
    margin-left: auto;
}


.dsh-search { position: relative; width: 100%; min-width: 0; }
.dsh-search-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 4px 5px 4px 16px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
}
.dsh-search-input,
.dsh-search-input:focus {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    margin: 0 !important;
    padding: 8px 10px 8px 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #202938 !important;
    font: inherit;
    font-size: 15px !important;
}
.dsh-search-input::placeholder { color: #8993a2; opacity: 1; }
.dsh-search-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 17px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #c81e1e !important;
    color: #fff !important;
    font: inherit;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
}
.dsh-search-button:hover,
.dsh-search-button:focus { background: #a91419 !important; color: #fff !important; }
.dsh-search-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.dsh-search-results {
    display: none;
    position: absolute;
    z-index: 1200;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    max-height: 340px;
    overflow-y: auto;
    border: 1px solid #e2e7ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(12,27,48,.2);
}
.dsh-search .device-finder-result {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 60px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
    color: #202938;
    text-align: left;
    text-decoration: none;
    font-size: 14px;
}
.dsh-search .device-finder-result:last-child { border-bottom: 0; }
.dsh-search .device-finder-result:hover,
.dsh-search .device-finder-result:focus { background: #f1f6fb; color: #142f50; outline: 0; }
.dsh-search .device-finder-result img { flex: 0 0 46px; width: 46px; height: 46px; margin: 0; object-fit: contain; }
.dsh-search .device-finder-result-title { min-width: 0; overflow-wrap: anywhere; }
.dsh-search .device-finder-empty { padding: 13px; color: #697586; font-size: 13px; }
.dsh-search-message { display: none; }

.dsh-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.dsh-mobile-search-toggle { display: none; }
.dsh-menu-toggle,
.dsh-mobile-search-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(180,215,250,.45);
    border-radius: 9px;
    background: rgba(3,23,48,.45);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.dsh-menu-toggle { display: flex; flex-direction: column; gap: 5px; }
.dsh-menu-toggle span { display: block; width: 21px; height: 2px; border-radius: 2px; background: #fff; }
.dsh-mobile-search-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.dsh-bottom-nav {
    position: relative;
    z-index: 990;
    width: 100%;
    background: #f3f6fa;
    border-bottom: 1px solid #dfe5ec;
}
.dsh-bottom-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 48px;
    padding: 0 4%;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
}
.dsh-bottom-nav-inner::-webkit-scrollbar { display: none; }
.dsh-bottom-nav-inner a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border-right: 1px solid #e1e6ed;
    color: #26384d;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.dsh-bottom-nav-inner a:first-child { padding-left: 0; }
.dsh-bottom-nav-inner a:hover { color: #c81e1e; }

.dsh-mobile-search { display: none; }
.dsh-mobile-search[hidden] { display: none !important; }

.dsh-menu-backdrop {
    position: fixed;
    z-index: 1998;
    inset: 0;
    background: rgba(5,14,27,.58);
}
.dsh-menu-backdrop[hidden] { display: none !important; }
.dsh-side-menu {
    position: fixed;
    z-index: 1999;
    top: 0;
    right: 0;
    width: min(390px, 88vw);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -12px 0 35px rgba(0,0,0,.2);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
    font-family: Arial, Helvetica, sans-serif;
}
.dsh-side-menu.is-open { transform: translateX(0); visibility: visible; }
.dsh-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 76px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #06142d, #0d4c9a);
    color: #fff;
}
.dsh-side-title { min-width: 0; color: #fff; font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.dsh-menu-close {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.dsh-menu-close svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dsh-side-content { flex: 1 1 auto; overflow-y: auto; padding: 12px 18px 22px; }
.dsh-side-link {
    display: block;
    padding: 14px 5px;
    border-bottom: 1px solid #edf0f3;
    color: #26384d;
    font-size: 15px;
    font-weight: 700;
}
.dsh-side-link:hover { color: #c81e1e; }
.dsh-side-section-title {
    margin: 22px 0 11px;
    padding-bottom: 9px;
    border-bottom: 2px solid #e7edf3;
    color: #b51219;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.dsh-brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dsh-brand-grid a {
    display: block;
    padding: 11px 12px;
    border: 1px solid #e5eaf0;
    border-radius: 7px;
    background: #f8fafc;
    color: #26384d;
    font-size: 14px;
    font-weight: 700;
}
.dsh-brand-grid a:hover { border-color: #c81e1e; color: #c81e1e; }
.dsh-side-footer { padding: 15px 20px; border-top: 1px solid #e8edf2; color: #7b8795; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
body.dsh-menu-open { overflow: hidden; }

@media (min-width: 768px) {
    .dsh-mobile-search { display: none !important; }
}

@media (max-width: 767px) {
    .dsh-header-inner { min-height: 50px; padding: 9px 4%; gap: 12px; }
    .dsh-logo-link img { max-width: 125px; max-height: 48px; }
    .dsh-site-name { font-size: 21px; }
    .dsh-desktop-search { display: none; }
    .dsh-header-actions { margin-left: auto; gap: 8px; }
    .dsh-mobile-search-toggle { display: inline-flex; }
    .dsh-menu-toggle, .dsh-mobile-search-toggle { width: 42px; height: 42px; }
    .dsh-mobile-search:not([hidden]) {
        position: relative;
        z-index: 1001;
        display: block;
        padding: 12px 4% 15px;
        background: #082a59;
        border-top: 1px solid rgba(255,255,255,.14);
    }
    .dsh-mobile-search .dsh-search-field { min-height: 46px; padding-left: 11px; }
    .dsh-mobile-search .dsh-search-input { font-size: 14px !important; }
    .dsh-mobile-search .dsh-search-button { min-height: 36px; padding: 0 13px !important; }
    .dsh-mobile-search .dsh-search-results { top: calc(100% + 6px); }
    .dsh-bottom-nav-inner { min-height: 50px; padding: 0 4%; }
    .dsh-bottom-nav-inner a { min-height: 44px; padding: 0 14px; font-size: 13px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dsh-header-inner { padding-left: 3%; padding-right: 3%; gap: 18px; }
    .dsh-logo-link img { max-width: 165px; }
    .dsh-desktop-search { max-width: 500px; }
    .dsh-bottom-nav-inner { padding-left: 3%; padding-right: 3%; }
}


/* Revision: restore original header colours and keep mobile search icon bare. */
.dsh-header {
    background: #001e28 !important;
    border-bottom: 2px solid #c80037 !important;
    box-shadow: 0 5px 20px rgba(20, 65, 110, 0.06) !important;
}
.dsh-mobile-search-toggle,
.dsh-mobile-search-toggle:hover,
.dsh-mobile-search-toggle:focus {
    display: none;
    width: 30px !important;
    height: 35px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
}
.dsh-mobile-search-toggle svg {
    width: 23px !important;
    height: 23px !important;
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 2 !important;
}
.dsh-mobile-search {
    display: none;
}
.dsh-mobile-search:not([hidden]) {
    display: block;
    position: relative;
    z-index: 1001;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
}
.dsh-mobile-search .dsh-search-field {
    min-height: 46px;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
}
@media (max-width: 767px) {
    .dsh-mobile-search-toggle,
    .dsh-mobile-search-toggle:hover,
    .dsh-mobile-search-toggle:focus {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    .dsh-mobile-search:not([hidden]) {
        padding: 0 !important;
        background: transparent !important;
    }
    .dsh-mobile-search .dsh-search-field {
        min-height: 44px;
        padding: 3px 5px 3px 12px;
    }
    .dsh-mobile-search .dsh-search-results {
        top: 100%;
        left: 0;
        right: 0;
        border-radius: 0 0 8px 8px;
    }
}


/* Revision: side drawer matches the site header and opens from the left. */
.dsh-side-menu {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-105%) !important;
    transition: transform .28s ease, visibility .28s ease;
}
.dsh-side-menu.is-open {
    transform: translateX(0) !important;
}
.dsh-side-header {
    min-height: 82px !important;
    height: 82px !important;
    padding: 12px 4% !important;
    background: #001e28 !important;
    border-bottom: 2px solid #c80037 !important;
}
.dsh-menu-close,
.dsh-menu-close:hover,
.dsh-menu-close:focus {
    background: #c80037 !important;
    border: 1px solid #c80037 !important;
    color: #fff !important;
}
.dsh-menu-close:hover,
.dsh-menu-close:focus {
    background: #a91419 !important;
    border-color: #a91419 !important;
}
.dsh-mobile-search .dsh-search-field {
    border-radius: 0 !important;
}
@media (max-width: 767px) {
    .dsh-side-header {
        min-height: 50px !important;
        height: 75px !important;
        padding: 9px 4% !important;
    }
}


/* Final correction: drawer close control mirrors the hamburger control. */
.dsh-menu-close,
.dsh-menu-close:hover,
.dsh-menu-close:focus {
    display: flex !important;
    flex: 0 0 46px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
    border: 1px solid rgba(180,215,250,.45) !important;
    border-radius: 9px !important;
    outline: 0 !important;
    background: #ffffff12 !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer;
}
.dsh-menu-close:hover,
.dsh-menu-close:focus {
    background: #ffffff12 !important;
    border-color: rgba(180,215,250,.45) !important;
}
.dsh-menu-close svg {
    display: block;
    width: 21px !important;
    height: 21px !important;
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
}
.dsh-mobile-search .dsh-search-field,
.dsh-mobile-search .dsh-search-field:focus-within {
    border-radius: 0 !important;
}
@media (max-width: 767px) {
    .dsh-menu-close,
    .dsh-menu-close:hover,
    .dsh-menu-close:focus {
        flex-basis: 42px !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 9px !important;
    }
}


/* Search layout correction: desktop/tablet show only the input and button;
   mobile dropdown is the only outer search container. */
.dsh-desktop-search .dsh-search-field,
.dsh-mobile-search .dsh-search-field {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.dsh-desktop-search .dsh-search-input,
.dsh-mobile-search .dsh-search-input,
.dsh-desktop-search .dsh-search-input:focus,
.dsh-mobile-search .dsh-search-input:focus {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 10px !important;
    outline: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #202938 !important;
}
.dsh-desktop-search .dsh-search-button,
.dsh-mobile-search .dsh-search-button,
.dsh-desktop-search .dsh-search-button:hover,
.dsh-mobile-search .dsh-search-button:hover,
.dsh-desktop-search .dsh-search-button:focus,
.dsh-mobile-search .dsh-search-button:focus {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 18px !important;
    border-radius: 50px !important;
}
.dsh-mobile-search,
.dsh-mobile-search:not([hidden]) {
    border-radius: 0 !important;
}
@media (min-width: 768px) {
    .dsh-header-inner {
        min-height: 82px;
        height: auto;
    }
    .dsh-desktop-search {
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .dsh-desktop-search {
        max-width: 330px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
}
@media (max-width: 767px) {
    .dsh-mobile-search:not([hidden]) {
        border-radius: 0 !important;
    }
    .dsh-mobile-search .dsh-search-field {
        min-height: 0 !important;
        padding: 0 4% !important;
        gap: 8px !important;
    }
    .dsh-mobile-search .dsh-search-input,
    .dsh-mobile-search .dsh-search-input:focus {
        min-height: 42px !important;
        height: 42px !important;
    }
    .dsh-mobile-search .dsh-search-button {
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 14px !important;
    }
}


/* Corrected search structure:
   The Device Finder outer card class is intentionally not used in the header.
   Desktop/tablet have no search wrapper card; mobile alone has a full-width
   dropdown panel. The input and Find button remain individually rounded. */
.dsh-desktop-search,
.dsh-desktop-search .dsh-search,
.dsh-mobile-search,
.dsh-mobile-search .dsh-search {
    min-height: 0 !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dsh-desktop-search .dsh-search-field,
.dsh-mobile-search .dsh-search-field {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dsh-desktop-search .dsh-search-input,
.dsh-mobile-search .dsh-search-input,
.dsh-desktop-search .dsh-search-input:focus,
.dsh-mobile-search .dsh-search-input:focus {
    border: 1px solid #e2e2e2 !important;
    border-radius: 10px !important;
    background: #fff !important;
}

.dsh-desktop-search .dsh-search-button,
.dsh-mobile-search .dsh-search-button,
.dsh-desktop-search .dsh-search-button:hover,
.dsh-mobile-search .dsh-search-button:hover,
.dsh-desktop-search .dsh-search-button:focus,
.dsh-mobile-search .dsh-search-button:focus {
    border-radius: 50px !important;
}

@media (min-width: 768px) {
    .dsh-header-inner {
        min-height: 82px !important;
        height: 82px !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    .dsh-desktop-search {
        display: block !important;
        padding: 0 !important;
    }
    .dsh-desktop-search .dsh-search-field {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dsh-header-inner {
        min-height: 82px !important;
        height: 82px !important;
    }
    .dsh-desktop-search {
        max-width: 330px !important;
        min-width: 0 !important;
    }
}

@media (max-width: 767px) {
    /* This is the full-width mobile dropdown panel, not the input wrapper. */
    .dsh-mobile-search,
    .dsh-mobile-search:not([hidden]) {
        display: block;
        width: 100% !important;
        margin: 0 !important;
        padding: 12px 4% 15px !important;
        border: 0 !important;
        border-top: 1px solid rgba(255,255,255,.14) !important;
        border-radius: 0 !important;
        background: #001e28 !important;
        box-shadow: none !important;
    }
    .dsh-mobile-search .dsh-search {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .dsh-mobile-search .dsh-search-field {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .dsh-mobile-search .dsh-search-input,
    .dsh-mobile-search .dsh-search-input:focus {
        min-height: 42px !important;
        height: 42px !important;
        border: 1px solid #e2e2e2 !important;
        border-radius: 50px !important;
    }
    .dsh-mobile-search .dsh-search-button,
    .dsh-mobile-search .dsh-search-button:hover,
    .dsh-mobile-search .dsh-search-button:focus {
        min-height: 42px !important;
        height: 42px !important;
        border-radius: 50px !important;
    }
}


/* Search icon sits inside the input's own rounded field on every screen size. */
.dsh-search .dsh-search-field {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dsh-search .dsh-search-input,
.dsh-search .dsh-search-input:focus {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 50px 0 18px !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 50px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.dsh-search .dsh-search-icon {
    position: absolute !important;
    z-index: 3 !important;
    top: 50% !important;
    right: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50px;
    background: #a91419 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transform: translateY(-50%) !important;
}

.dsh-search .dsh-search-icon svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.dsh-search .dsh-search-icon:focus-visible {
    outline: 2px solid #c80037 !important;
    outline-offset: 2px !important;
}

.dsh-search .dsh-search-button {
    display: none !important;
}

@media (max-width: 767px) {
    .dsh-mobile-search .dsh-search-input,
    .dsh-mobile-search .dsh-search-input:focus {
        min-height: 45px !important;
        height: 45px !important;
        padding-right: 48px !important;
        border-radius: 10px !important;
    }
    .dsh-mobile-search .dsh-search-icon {
        right: 14px !important;
    }
}
