:root {
    --w4b-orange: #fe4f14;
    --w4b-navy: #435268;
    --w4b-navy-dark: #344154;
    --w4b-white: #ffffff;
    --w4b-header-offset: 126px;
}

body.w4b-custom-store-header-active {
    padding-top: var(--w4b-header-offset) !important;
}

body.w4b-custom-store-header-active #header-outer,
body.w4b-custom-store-header-active #header-secondary-outer,
body.w4b-custom-store-header-active #header-space,
body.w4b-custom-store-header-active .woocommerce-store-notice,
body.w4b-custom-store-header-active p.demo_store {
    display: none !important;
}

.w4b-store-header,
.w4b-store-header * {
    box-sizing: border-box;
}

.w4b-store-header {
    position: fixed;
    z-index: 99990;
    top: 0;
    right: 0;
    left: 0;
    color: var(--w4b-white);
    font-family: "Open Sans", Arial, sans-serif;
    line-height: 1.35;
}

html.wp-toolbar .w4b-store-header,
body.admin-bar .w4b-store-header {
    top: 32px;
}

.w4b-header-container {
    width: min(100% - 36px, 1480px);
    margin-inline: auto;
}

.w4b-announcement {
    min-height: 42px;
    background: var(--w4b-orange);
    color: var(--w4b-white);
    transition: margin .2s ease, opacity .2s ease;
}

.w4b-announcement[hidden] {
    display: none;
}

.w4b-announcement-inner {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 42px;
}

.w4b-announcement a,
.w4b-announcement a:hover,
.w4b-announcement a:focus {
    color: var(--w4b-white);
    text-decoration: none;
}

.w4b-announcement-offer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 13px;
    letter-spacing: .035em;
    text-align: center;
}

.w4b-announcement-offer strong {
    padding-bottom: 1px;
    border-bottom: 1px solid currentColor;
    white-space: nowrap;
}

.w4b-store-header svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.w4b-announcement-close,
.w4b-icon-button,
.w4b-nav-dropdown > button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.w4b-announcement-close {
    position: absolute;
    right: 0;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
}

.w4b-announcement-close:hover,
.w4b-announcement-close:focus-visible {
    background: rgba(255, 255, 255, .17);
}

.w4b-main-header {
    position: relative;
    min-height: 84px;
    background: var(--w4b-navy);
    box-shadow: 0 6px 18px rgba(16, 25, 38, .18);
}

.w4b-main-header-inner {
    min-height: 84px;
    display: grid;
    grid-template-columns: 164px minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
}

.w4b-logo {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
}

.w4b-logo img {
    display: block;
    width: 154px;
    max-height: 68px;
    object-fit: contain;
}

.w4b-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.2vw, 24px);
    min-width: 0;
}

.w4b-desktop-nav > a,
.w4b-desktop-nav > .w4b-disabled-link,
.w4b-nav-dropdown > button {
    color: var(--w4b-white);
    font-size: clamp(11px, .88vw, 14px);
    font-weight: 700;
    letter-spacing: .025em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.w4b-desktop-nav > a,
.w4b-nav-dropdown > button {
    position: relative;
    padding: 31px 0;
}

.w4b-desktop-nav > a::after,
.w4b-nav-dropdown > button::after {
    position: absolute;
    right: 0;
    bottom: 21px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--w4b-orange);
    transform: scaleX(0);
    transition: transform .18s ease;
}

.w4b-desktop-nav > a:hover::after,
.w4b-desktop-nav > a:focus-visible::after,
.w4b-nav-dropdown > button:hover::after,
.w4b-nav-dropdown > button:focus-visible::after,
.w4b-nav-dropdown.is-open > button::after {
    transform: scaleX(1);
}

.w4b-disabled-link {
    opacity: .48;
    cursor: not-allowed;
}

.w4b-desktop-nav .w4b-installer-link {
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 4px;
}

.w4b-desktop-nav .w4b-installer-link::after {
    display: none;
}

.w4b-desktop-nav .w4b-installer-link:hover,
.w4b-desktop-nav .w4b-installer-link:focus-visible {
    border-color: var(--w4b-orange);
    background: var(--w4b-orange);
}

.w4b-nav-dropdown {
    position: relative;
}

.w4b-nav-dropdown > button {
    display: flex;
    align-items: center;
    gap: 3px;
}

.w4b-nav-dropdown > button svg {
    width: 15px;
    height: 15px;
    transition: transform .18s ease;
}

.w4b-nav-dropdown.is-open > button svg {
    transform: rotate(180deg);
}

.w4b-brand-menu {
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    display: none;
    min-width: 190px;
    padding: 10px;
    border-top: 3px solid var(--w4b-orange);
    background: var(--w4b-white);
    box-shadow: 0 16px 40px rgba(16, 25, 38, .24);
    transform: translateX(-50%);
}

.w4b-nav-dropdown.is-open .w4b-brand-menu {
    display: grid;
}

.w4b-brand-menu a {
    padding: 9px 12px;
    color: var(--w4b-navy-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.w4b-brand-menu a:hover,
.w4b-brand-menu a:focus-visible {
    background: #f2f4f6;
    color: var(--w4b-orange);
}

.w4b-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.w4b-phone-action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    margin-right: 5px;
    padding: 8px 10px;
    border-radius: 4px;
    color: var(--w4b-white);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.w4b-phone-action svg {
    width: 18px;
    height: 18px;
}

.w4b-phone-action:hover,
.w4b-phone-action:focus-visible {
    background: rgba(255, 255, 255, .12);
    color: var(--w4b-white);
}

.w4b-icon-button {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--w4b-white);
    text-decoration: none;
}

.w4b-icon-button:hover,
.w4b-icon-button:focus-visible {
    background: rgba(255, 255, 255, .12);
    color: var(--w4b-white);
}

.w4b-cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid var(--w4b-navy);
    border-radius: 9px;
    background: var(--w4b-orange);
    color: var(--w4b-white);
    font-size: 10px;
    font-weight: 700;
}

.w4b-menu-toggle {
    display: none;
}

.w4b-search-panel {
    position: absolute;
    right: 0;
    left: 0;
    padding: 15px 18px;
    border-top: 1px solid rgba(255,255,255,.12);
    background: var(--w4b-navy-dark);
    box-shadow: 0 12px 20px rgba(16, 25, 38, .18);
}

.w4b-search-panel[hidden] {
    display: none;
}

.w4b-search-panel form {
    display: flex;
    width: min(100%, 780px);
    margin: 0 auto;
}

.w4b-search-panel input[type="search"] {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 4px 0 0 4px;
    background: var(--w4b-white);
    color: #1f2937;
    font: 15px "Open Sans", Arial, sans-serif;
}

.w4b-search-panel button {
    display: flex;
    min-width: 120px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: var(--w4b-orange);
    color: var(--w4b-white);
    font: 700 13px "Open Sans", Arial, sans-serif;
    text-transform: uppercase;
    cursor: pointer;
}

.w4b-mobile-menu,
.w4b-menu-backdrop {
    display: none;
}

.w4b-skip-link {
    position: fixed;
    z-index: 100002;
    top: -100px;
    left: 12px;
    padding: 10px 14px;
    background: #fff;
    color: #111;
}

.w4b-skip-link:focus {
    top: 12px;
}

@media (max-width: 1240px) {
    .w4b-main-header-inner {
        grid-template-columns: 150px minmax(0, 1fr) auto;
        gap: 15px;
    }
    .w4b-desktop-nav {
        gap: 12px;
    }
    .w4b-desktop-nav > a,
    .w4b-desktop-nav > .w4b-disabled-link,
    .w4b-nav-dropdown > button {
        font-size: 11px;
    }
    .w4b-account-link {
        display: none;
    }
    .w4b-phone-action {
        width: 42px;
        justify-content: center;
        margin-right: 0;
        padding: 0;
        border-radius: 50%;
    }
    .w4b-phone-action span { display: none; }
}

@media (max-width: 1060px) {
    :root { --w4b-header-offset: 112px; }
    .w4b-desktop-nav { display: none; }
    .w4b-main-header { min-height: 70px; }
    .w4b-main-header-inner {
        min-height: 70px;
        grid-template-columns: 1fr auto;
    }
    .w4b-logo img {
        width: 137px;
        max-height: 58px;
    }
    .w4b-account-link,
    .w4b-menu-toggle {
        display: grid;
    }
    .w4b-mobile-menu {
        position: fixed;
        z-index: 100003;
        top: 0;
        right: 0;
        bottom: 0;
        display: block;
        width: min(88vw, 390px);
        padding: 22px;
        overflow-y: auto;
        background: var(--w4b-navy-dark);
        box-shadow: -15px 0 45px rgba(12, 20, 30, .35);
        transform: translateX(0);
    }
    .w4b-mobile-menu[hidden] { display: none; }
    .w4b-menu-backdrop {
        position: fixed;
        z-index: 100002;
        inset: 0;
        display: block;
        background: rgba(9, 15, 24, .62);
    }
    .w4b-menu-backdrop[hidden] { display: none; }
    .w4b-mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255,255,255,.15);
        font-size: 19px;
        text-transform: uppercase;
    }
    .w4b-mobile-menu nav {
        display: grid;
        padding: 12px 0 20px;
    }
    .w4b-mobile-menu nav > a,
    .w4b-mobile-menu nav > span,
    .w4b-mobile-menu summary {
        display: block;
        padding: 13px 4px;
        border-bottom: 1px solid rgba(255,255,255,.1);
        color: var(--w4b-white);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .025em;
        text-decoration: none;
        text-transform: uppercase;
    }
    .w4b-mobile-menu summary { cursor: pointer; }
    .w4b-mobile-menu details div {
        display: grid;
        padding: 7px 0 7px 16px;
        background: rgba(255,255,255,.045);
    }
    .w4b-mobile-menu details div a {
        padding: 9px 4px;
        color: rgba(255,255,255,.85);
        font-size: 13px;
        text-decoration: none;
    }
    .w4b-mobile-disabled { opacity: .48; }
    .w4b-mobile-installer {
        margin-top: 14px;
        border: 1px solid var(--w4b-orange) !important;
        border-radius: 4px;
        background: var(--w4b-orange);
        text-align: center;
    }
    .w4b-mobile-contact {
        display: grid;
        gap: 12px;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,.15);
    }
    .w4b-mobile-contact a {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--w4b-white);
        font-size: 13px;
        text-decoration: none;
        word-break: break-word;
    }
    body.w4b-menu-open { overflow: hidden; }
}

@media (max-width: 782px) {
    html.wp-toolbar .w4b-store-header,
    body.admin-bar .w4b-store-header { top: 46px; }
}

@media (max-width: 680px) {
    :root { --w4b-header-offset: 108px; }
    .w4b-header-container { width: min(100% - 22px, 1480px); }
    .w4b-announcement-inner {
        min-height: 38px;
        padding-inline: 32px;
    }
    .w4b-announcement-offer {
        display: block;
        min-width: 0;
        overflow: hidden;
        font-size: 10px;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .w4b-announcement-offer strong { margin-left: 7px; }
    .w4b-main-header,
    .w4b-main-header-inner { min-height: 70px; }
    .w4b-logo img { width: 125px; }
    .w4b-icon-button { width: 38px; height: 38px; }
    .w4b-account-link { display: none; }
    .w4b-search-panel button { min-width: 48px; }
    .w4b-search-panel button span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .w4b-store-header *,
    .w4b-store-header *::before,
    .w4b-store-header *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
