/* B2deHands header 1.2 */

body:has(.b2-header) #masthead {
    display: none !important;
}

body:has(.b2shop) .entry-hero,
body:has(.b2shop) .entry-header {
    display: none !important;
}

body:has(.b2-header) .content-area {
    margin-top: 24px !important;
}

.b2-header {
    background: #fff;
    color: #14263b;
    position: relative;
    z-index: 20;
}

.b2-header * {
    box-sizing: border-box;
}

.b2-topbar {
    background: #14263b;
    color: #fff;
    text-align: center;
    font-size: 13px;
    padding: 8px 15px;
}

.b2-header-main {
    max-width: var(--global-content-width,1290px);
    margin: auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.b2-logo {
    flex-shrink: 0;
    color: #18568e;
    text-decoration: none;
    font-size: 24px;
}

.b2-logo img {
    width: 185px;
    max-height: 85px;
    object-fit: contain;
}

.b2-search {
    display: flex;
    flex: 1;
    min-width: 0;
    margin: 0;
}

.b2-search input[type="search"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 1px solid #dce2e8;
    border-radius: 7px 0 0 7px;
    background: #f3f5f7;
    padding: 13px 15px;
    font-size: 15px;
}

.b2-search button {
    background: #267bc2;
    color: white;
    border: 0;
    border-radius: 0 7px 7px 0;
    padding: 12px 18px;
}

.b2-header svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.b2-header-actions {
    display: flex;
    gap: 24px;
}

.b2-header-actions a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #14263b;
    text-decoration: none;
    white-space: nowrap;
}

.b2-header-actions a:hover {
    color: #267bc2;
}

.b2-navigation {
    background: #14263b;
    color: white;
}

.b2-nav-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: var(--global-content-width,1290px);
    margin: auto;
    padding: 0 24px;
    gap: 6px;
}

.b2-nav-inner > a,
.b2-more summary {
    display: block;
    padding: 15px 20px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.b2-nav-inner > a:hover,
.b2-more summary:hover {
    background: #267bc2;
}

.b2-more {
    position: relative;
}

.b2-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: white;
    box-shadow: 0 8px 25px #14263b25;
    border-radius: 0 0 8px 8px;
    z-index: 100;
}

.b2-dropdown a {
    display: block;
    padding: 12px 18px;
    color: #14263b;
    text-decoration: none;
}

.b2-dropdown a:hover {
    background: #f3f5f7;
    color: #267bc2;
}

@media (max-width: 768px) {
    .b2-header-main {
        flex-wrap: wrap;
        gap: 15px;
        padding: 12px 16px;
    }

    .b2-logo img {
        width: 145px;
    }

    .b2-header-actions {
        margin-left: auto;
        gap: 15px;
    }

    .b2-search {
        order: 3;
        flex-basis: 100%;
    }

    .b2-nav-inner {
        padding: 0 8px;
        gap: 0;
    }

    .b2-nav-inner > a,
    .b2-more summary {
        padding: 11px 10px;
        font-size: 13px;
    }
}
