/*
 * We Buy Key Fobs - Universal Theme
 * Phase 1: approved universal header/navigation + footer styles only.
 *
 * Do not add page-specific content styles here during the initial PHP
 * header/footer migration. Existing page CSS should remain in place until
 * the universal includes are fully tested.
 */


/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.wbkf-nav-topbar {
    background: #fff9e7;
    border-bottom: 1px solid #f0df98;
    color: #625a37;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: .78rem;
    font-weight: 700;
}

.wbkf-nav-wrap {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}

.wbkf-nav-topbar .wbkf-nav-wrap {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wbkf-nav-topbar a {
    color: #173f11;
    text-decoration: none;
    font-weight: 800;
}

.wbkf-nav-header * {
    box-sizing: border-box;
}

.wbkf-nav-header ul {
    list-style: none;
}

.wbkf-nav-header {
    position: relative;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #dde3d9;
    font-family: 'Open Sans', Arial, sans-serif;
}

.wbkf-nav-row {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.wbkf-nav-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    flex: 0 0 auto;
}

.wbkf-nav-logo-link {
    display: block;
    line-height: 0;
    flex: 0 0 auto;
}

.wbkf-nav-logo-link img {
    display: block;
    width: 225px;
    max-width: 42vw;
    height: auto;
    object-fit: contain;
}

.wbkf-nav-divider {
    display: block;
    width: 1px;
    height: 48px;
    background: #d8ddd5;
    flex: 0 0 1px;
}

.wbkf-nav-kfk {
    display: block;
    width: auto;
    height: 54px;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    flex: 0 0 auto;
}

.wbkf-nav-desktop {
    display: none;
}

.wbkf-nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.wbkf-nav-list > li > a,
.wbkf-nav-more > button {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 11px;
    border: 0;
    background: transparent;
    color: #30342f;
    text-decoration: none;
    font: 800 .92rem/1 'Open Sans', Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.wbkf-nav-list > li > a:hover,
.wbkf-nav-more > button:hover,
.wbkf-nav-list > li > a[aria-current="page"] {
    color: #173f11;
}

.wbkf-nav-list > li > a[aria-current="page"] {
    box-shadow: inset 0 -3px #ffc628;
}

.wbkf-nav-list .wbkf-nav-shipping > a {
    margin-left: 4px;
    padding: 0 17px;
    border-radius: 6px;
    background: #173f11;
    color: #fff;
    box-shadow: none;
}

.wbkf-nav-list .wbkf-nav-shipping > a:hover {
    background: #245b1b;
    color: #fff;
}

.wbkf-nav-more {
    position: relative;
}

.wbkf-nav-more > button::after {
    content: '▾';
    font-size: .68rem;
    margin-left: 6px;
}

.wbkf-nav-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 43px;
    min-width: 242px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid #dde3d9;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(23, 63, 17, .10);
}

.wbkf-nav-more:hover .wbkf-nav-dropdown,
.wbkf-nav-more:focus-within .wbkf-nav-dropdown,
.wbkf-nav-dropdown.is-open {
    display: block;
}

.wbkf-nav-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 5px;
    color: #30342f;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 700;
}

.wbkf-nav-dropdown a:hover {
    background: #f7f8f5;
    color: #173f11;
}

.wbkf-nav-toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #dde3d9;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
}

.wbkf-nav-toggle > span,
.wbkf-nav-toggle > span::before,
.wbkf-nav-toggle > span::after {
    display: block;
    width: 21px;
    height: 2px;
    background: #173f11;
    position: relative;
    content: '';
}

.wbkf-nav-toggle > span::before {
    position: absolute;
    top: -7px;
}

.wbkf-nav-toggle > span::after {
    position: absolute;
    top: 7px;
}

.wbkf-nav-mobile {
    display: none;
    padding: 10px 20px 20px;
    border-top: 1px solid #dde3d9;
    background: #fff;
}

.wbkf-nav-mobile.is-open {
    display: block;
}

.wbkf-nav-mobile a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #edf0ea;
    color: #30342f;
    text-decoration: none;
    font-weight: 800;
}

.wbkf-nav-mobile a[aria-current="page"] {
    color: #173f11;
}

.wbkf-nav-mobile .wbkf-nav-mobile-ship {
    margin-top: 12px;
    padding: 13px;
    border: 0;
    border-radius: 5px;
    background: #173f11;
    color: #fff;
    text-align: center;
}

@media (min-width: 1040px) {
    .wbkf-nav-desktop {
        display: block;
        flex: 1;
    }

    .wbkf-nav-toggle,
    .wbkf-nav-mobile {
        display: none !important;
    }

    .wbkf-nav-row {
        min-height: 106px;
    }

    .wbkf-nav-logo-link img {
        width: 265px;
    }

    .wbkf-nav-divider {
        height: 62px;
    }

    .wbkf-nav-kfk {
        height: 70px;
    }

    .wbkf-nav-list {
        gap: 7px;
    }

    .wbkf-nav-list > li > a,
    .wbkf-nav-more > button {
        padding-left: 12px;
        padding-right: 12px;
        font-size: .96rem;
    }
}

@media (max-width: 430px) {
    .wbkf-nav-topbar span {
        display: none;
    }

    .wbkf-nav-brand {
        gap: 8px;
    }

    .wbkf-nav-logo-link img {
        width: 172px;
        max-width: 52vw;
    }

    .wbkf-nav-divider {
        height: 38px;
    }

    .wbkf-nav-kfk {
        height: 44px;
    }

    .wbkf-nav-wrap {
        width: min(100% - 28px, 1220px);
    }
}

body.wbkf-nav-open {
    overflow: hidden !important;
}

/*
 * Retained from the approved source:
 * removes the old underline-style active state.
 */
.wbkf-nav-list > li > a[aria-current="page"] {
    box-shadow: none !important;
}

.wbkf-nav-backdrop {
    display: none;
}

@media (max-width: 1039px) {
    .wbkf-nav-toggle {
        position: relative;
        z-index: 1004;
    }

    .wbkf-nav-toggle.is-open > span {
        background: transparent;
    }

    .wbkf-nav-toggle.is-open > span::before {
        top: 0;
        transform: rotate(45deg);
    }

    .wbkf-nav-toggle.is-open > span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .wbkf-nav-toggle > span::before,
    .wbkf-nav-toggle > span::after {
        transition: transform .22s ease, top .22s ease;
    }

    .wbkf-nav-mobile {
        display: block !important;
        position: fixed;
        top: 0;
        right: 0;
        width: min(340px, 88vw);
        height: 100dvh;
        padding: 92px 22px 28px;
        background: #fff;
        border: 0;
        box-shadow: none;
        overflow-y: auto;
        transform: translateX(105%);
        transition: transform .25s ease;
        z-index: 1003;
    }

    .wbkf-nav-mobile.is-open {
        display: block !important;
        transform: translateX(0);
        box-shadow: -18px 0 48px rgba(13, 36, 9, .18);
    }

    .wbkf-nav-mobile a {
        padding: 14px 0;
        font-size: 1rem;
    }

    .wbkf-nav-mobile a[aria-current="page"] {
        color: #173f11;
    }

    .wbkf-nav-mobile .wbkf-nav-mobile-ship {
        margin-top: 16px;
        padding: 15px 14px;
    }

    .wbkf-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(13, 36, 9, .42);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
        z-index: 1001;
    }

    .wbkf-nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}


/* =========================================================
   FOOTER
   ========================================================= */

.wbkf-dark-footer {
    background: #0e1b0e !important;
    color: #cbd4c8 !important;
    padding: 48px 0 20px !important;
    font-family: 'Open Sans', Arial, sans-serif !important;
}

.wbkf-dark-footer * {
    box-sizing: border-box;
}

.wbkf-dark-footer .wbkf-footer-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.wbkf-dark-footer .wbkf-footer-grid {
    display: grid;
    gap: 35px;
}

.wbkf-dark-footer .wbkf-footer-brand-logo {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
}

.wbkf-dark-footer .wbkf-footer-brand p {
    font-size: .86rem;
    line-height: 1.6;
    max-width: 360px;
    margin: 17px 0;
    color: #b9c3b6;
}

.wbkf-dark-footer .wbkf-footer-brand > a:not(.wbkf-footer-logo-link) {
    color: #fff !important;
    text-decoration: none !important;
    font-size: .86rem;
    display: block;
    margin: 4px 0;
}

.wbkf-dark-footer .wbkf-footer-logo-link {
    display: inline-block;
    line-height: 0;
}

.wbkf-dark-footer .wbkf-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.wbkf-dark-footer .wbkf-footer-links h3 {
    color: #fff !important;
    font-family: 'Gotham Medium', 'Open Sans', sans-serif;
    font-size: .92rem;
    margin: 0 0 10px;
}

.wbkf-dark-footer .wbkf-footer-links a {
    display: block;
    color: #cbd4c8 !important;
    text-decoration: none !important;
    font-size: .84rem;
    padding: 4px 0;
}

.wbkf-dark-footer .wbkf-footer-links a:hover {
    color: #ffc628 !important;
}

.wbkf-dark-footer .wbkf-social-links {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
}

.wbkf-dark-footer .wbkf-social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    margin: 0 !important;
    transition: .18s ease;
    background: rgba(255, 255, 255, .03);
    padding: 0 !important;
}

.wbkf-dark-footer .wbkf-social-links a:hover {
    background: #ffc628;
    border-color: #ffc628;
    color: #172016 !important;
    transform: translateY(-2px);
}

.wbkf-dark-footer .wbkf-social-links svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.wbkf-dark-footer .wbkf-affiliations {
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.wbkf-dark-footer .wbkf-affiliations > p {
    text-align: center;
    font-size: .74rem;
    color: #aab5a7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    margin: 0 0 18px;
}

.wbkf-dark-footer .wbkf-affiliation-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wbkf-dark-footer .wbkf-affiliation-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, .15);
}

.wbkf-dark-footer .wbkf-affiliation-row img {
    display: block;
    max-height: 48px !important;
    max-width: 130px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: none !important;
    opacity: 1 !important;
}

.wbkf-dark-footer .wbkf-footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 28px;
    padding-top: 17px;
    font-size: .72rem;
    color: #7f8b7e;
}

@media (min-width: 700px) {
    .wbkf-dark-footer .wbkf-footer-wrap {
        width: min(1180px, calc(100% - 64px));
    }

    .wbkf-dark-footer .wbkf-footer-grid {
        grid-template-columns: 1fr 1.4fr;
    }

    .wbkf-dark-footer .wbkf-footer-links {
        grid-template-columns: repeat(2, 1fr);
        padding-top: 34px;
    }
}

@media (max-width: 430px) {
    .wbkf-dark-footer .wbkf-footer-links {
        grid-template-columns: 1fr;
    }

    .wbkf-dark-footer {
        padding-top: 38px !important;
    }
}

.wbkf-dark-footer .wbkf-footer-paypal {
    display: block !important;
    width: 100px !important;
    height: auto !important;
    margin-top: 18px !important;
    background: #fff !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    box-sizing: content-box !important;
}
