/* ==================================================
   Keto-Mojo header / navigation
   ================================================== */

@media (min-width: 1100px) {
    body:not(.home)
    .km-global-header.has-sticky-header {
        height: 90px;
    }
}

.km-global-header {
    position: relative;
    z-index: 120;
}

.km-global-header--overlay {
    position: absolute;
    z-index: 120;
    top: 49px;
    right: 0;
    left: 0;
    width: 100%;
    background: transparent;
}

.km-global-header--solid {
    position: relative;
}

.km-global-header__inner {
    width: min(calc(100% - 48px), 1200px);
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .km-global-header__inner {
        width: 100%;
        padding-right: 17px;
        padding-left: 17px;
    }
}

@media (max-width: 359px) {
    .km-global-header__inner {
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* ==================================================
   Announcement bar
   ================================================== */

.km-announcement-bar {
    display: flex;
    width: 100%;
    min-height: 49px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    color: #0D8FA6;
    text-decoration: none;
}

.km-announcement-bar__content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.km-announcement-bar__text {
    font-family: Inter;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.km-announcement-bar__quiz {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.km-announcement-bar__arrow {
    display: block;
    flex: 0 0 auto;
    transition: transform 180ms ease;
}

.km-announcement-bar:hover,
.km-announcement-bar:focus {
    color: #000000;
    text-decoration: none;
}

.km-announcement-bar:hover .km-announcement-bar__arrow {
    transform: translateX(3px);
}

.km-announcement-bar:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}

@media (max-width: 767.98px) {
    .km-announcement-bar {
        min-height: 65px;
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (max-width: 359px) {
    .km-announcement-bar__content {
        gap: 6px;
    }

    .km-announcement-bar__text {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .km-announcement-bar__arrow {
        transition: none;
    }
}

/* Header */

.km-hero__header {
    display: flex;
    width: 100%;
    padding-top: 24px;
    align-items: center;
    justify-content: space-between;
}

.km-hero__logo {
    display: block;
    flex: 0 0 auto;
}

.km-hero__logo img {
    display: block;
    width: 175px;
    height: auto;
}

.km-hero__navigation {
    display: flex;
    align-items: center;
    gap: 26px;
}

.km-hero__login {
    display: flex;
    align-items: center;
    gap: 18px;
}

.km-hero__devices {
    display: flex;
    align-items: center;
    gap: 24px;
    color: inherit;
    text-decoration: none;
}

.km-hero__devices img {
    display: block;
    width: auto;
    max-height: 43px;
}

.km-hero__login-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.km-hero__login-link:hover,
.km-hero__login-link:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.km-hero__shop {
    display: inline-flex;
    min-width: 112px;
    min-height: 50px;
    padding: 10px 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #10b3cf;
    color: #ffffff;
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.km-hero__shop:hover,
.km-hero__shop:focus-visible {
    background: #089db7;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.km-hero__menu-button {
    display: inline-flex;
    width: 42px;
    height: 42px;
    padding: 4px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.km-hero__menu-button span {
    display: block;
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
}

/* Header focus */

.km-hero__header a:focus-visible,
.km-hero__header button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

/* Header mobile */

@media (max-width: 767.98px) {

    .km-hero__header {
        padding-top: 22px;
    }

    .km-hero__logo img {
        width: 150px;
    }

    .km-hero__navigation {
        gap: 16px;
    }

    .km-hero__login {
        display: none;
    }

    .km-hero__shop {
        min-width: auto;
        min-height: auto;
        padding: 0;
        border-radius: 0;
        background: transparent;
        font-size: 17px;
        text-transform: uppercase;
    }

    .km-hero__shop:hover,
    .km-hero__shop:focus-visible {
        background: transparent;
        transform: none;
    }

    .km-hero__menu-button {
        width: 36px;
        height: 36px;
        padding: 0;
        gap: 5px;
    }

    .km-hero__menu-button span {
        width: 30px;
        height: 3px;
    }

}

@media (max-width: 359px) {

    .km-hero__logo img {
        width: 138px;
    }

    .km-hero__navigation {
        gap: 10px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .km-hero__shop {
        transition: none;
    }
}

/* ==================================================
   Sticky homepage header
   ================================================== */

.km-hero__header {
    transition:
        background-color 300ms ease,
        box-shadow 300ms ease;
}


/* ==================================================
   Desktop
   ================================================== */

@media (min-width: 1100px) {

    /*
     * Background layer exists all the time,
     * but starts invisible.
     */
    .km-hero__header::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: 0;
        bottom: 0;
        left: 50%;

        width: 100vw;

        background-color: #2f2f2f;
        opacity: 0;

        pointer-events: none;

        transform: translateX(-50%);

        transition:
            opacity 300ms ease,
            background-color 300ms ease;
    }


    .km-hero__header.is-sticky {
        position: fixed;
        z-index: 120;
        top: 0;
        left: 50%;

        width: min(calc(100% - 48px), 1200px);
        min-height: 90px;

        padding-top: 0;

        align-items: center;

        transform: translateX(-50%);

        isolation: isolate;
    }


    /*
     * Fade dark background in when sticky.
     */
    .km-hero__header.is-sticky::before {
        opacity: 0.8;
    }


    /*
     * Menu/Login open = fully opaque.
     */
    .km-hero__header.is-sticky.is-open::before {
        background-color: #2f2f2f;
    }


    /*
     * Mega menu stays attached below sticky header.
     */
    .km-global-header.has-sticky-header .km-mega-menu {
        position: fixed;
        z-index: 110;
        top: 90px;
        right: 0;
        left: 0;
    }

}


/* ==================================================
   Mobile / tablet
   ================================================== */

@media (max-width: 1099.98px) {

    .km-hero__header {
        background-color: rgba(47, 47, 47, 0);

        transition:
            background-color 300ms ease,
            box-shadow 300ms ease;
    }


    .km-hero__header.is-sticky {
        position: fixed;
        z-index: 120;
        top: 0;
        right: 0;
        left: 0;

        width: 100%;
        min-height: 76px;

        padding: 14px 17px;

        align-items: center;

        background-color: rgba(47, 47, 47, 0.8);

        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }


    .km-hero__header.is-sticky.is-open {
        background-color: #2f2f2f;
    }
}


@media (max-width: 359px) {

    .km-hero__header.is-sticky {
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* ==================================================
   Desktop login dropdown
   ================================================== */

.km-login-dropdown {
    position: relative;
    z-index: 10;
}

.km-login-dropdown__toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    padding: 0;
    align-items: center;
    gap: 9px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.km-login-dropdown__arrow {
    display: block;
    flex: 0 0 auto;
    transition: transform 180ms ease;
}

.km-login-menu {
    position: absolute;
    z-index: 1;
    top: -22px;
    right: -24px;
    display: grid;
    width: 300px;
    min-height: 212px;
    padding: 72px 24px 26px;
    align-content: start;
    gap: 14px;
    border-radius: 15px;
    background-color: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.km-login-menu[hidden] {
    display: none;
}

.km-login-menu a {
    color: #212529;
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    text-align: right;
    text-decoration: none;
    white-space: nowrap;
}

.km-login-menu a:hover,
.km-login-menu a:focus-visible {
    color: #10b3cf;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.km-login-dropdown.is-open .km-login-dropdown__toggle {
    color: #212529;
}

.km-login-dropdown.is-open .km-login-dropdown__arrow {
    transform: rotate(180deg);
}

.km-login-dropdown__toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

@media (max-width: 767.98px) {
    .km-hero__login {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .km-login-dropdown__arrow {
        transition: none;
    }
}

/* ==================================================
   Desktop mega menu
   ================================================== */

.km-hero__header {
    position: relative;
    z-index: 40;
}

.km-mega-menu {
    position: absolute;
    z-index: 30;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    height: 480px;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #ffffff;
    color: #212529;
}

.km-mega-menu[hidden] {
    display: none;
}

.km-mega-menu__inner {
    display: grid;
    width: min(calc(100% - 160px), 1248px);
    height: 100%;
    margin: 0 auto;
    padding: 27px 0 28px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}

.km-mega-menu__column,
.km-mega-menu__group {
    min-width: 0;
}

.km-mega-menu__heading {
    margin: 0 0 14px;
    color: #111111;
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.km-mega-menu__heading a {
    color: inherit;
    text-decoration: none;
}

.km-mega-menu__links {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 11px;
    list-style: none;
}

.km-mega-menu__links a,
.km-mega-menu__link-disabled {
    display: inline-block;
    color: #6c6c6c;
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.18;
    text-decoration: none;
}

.km-mega-menu__links a:hover,
.km-mega-menu__links a:focus-visible,
.km-mega-menu__heading a:hover,
.km-mega-menu__heading a:focus-visible {
    color: #10a8c3;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.km-mega-menu__link-disabled {
    cursor: default;
}

.km-mega-menu__featured {
    display: block;
    margin-top: 26px;
    color: #212529;
    text-decoration: none;
}

.km-mega-menu__featured-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.5 / 1;
    overflow: hidden;
    border-radius: 3px;
    background-color: #e9e9e9;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.km-mega-menu__featured-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.5 / 1;
    overflow: hidden;
    border-radius: 3px;
    background-color: #e9e9e9;
}

.km-mega-menu__featured-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.km-mega-menu__featured-title {
    display: block;
    margin-top: 10px;
    color: #212529;
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
}

.km-mega-menu__featured:hover .km-mega-menu__featured-title,
.km-mega-menu__featured:focus-visible .km-mega-menu__featured-title {
    color: #10a8c3;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.km-mega-menu__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.86);
    color: #6c6c6c;
    transform: translate(-50%, -50%);
}

.km-mega-menu__group + .km-mega-menu__group {
    margin-top: 36px;
}

/* ==================================================
   Mobile full-screen navigation
   ================================================== */

.km-mobile-nav {
    display: none;
}

html.km-mobile-nav-open,
html.km-mobile-nav-open body {
    overflow: hidden;
}

@media (max-width: 1099.98px) {
    .km-mobile-nav {
        position: fixed;
        z-index: 100;
        inset: 0;
        display: block;
        width: 100%;
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        background-color: #f6f6f6;
        color: #212529;
    }

    .km-mobile-nav[hidden] {
        display: none;
    }

    .km-mobile-nav__header {
        position: sticky;
        z-index: 5;
        top: 0;
        display: flex;
        width: 100%;
        height: 88px;
        padding: 0 24px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1.5px solid #d9d8d6;
        background-color: #ffffff;
        z-index: 120;
    }

    .km-mobile-nav__logo {
        display: block;
    }

    .km-mobile-nav__logo img {
        display: block;
        width: 150px;
        height: auto;
    }

    .km-mobile-nav__close {
        position: relative;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #54565a;
        cursor: pointer;
    }

    .km-mobile-nav__close span {
        position: absolute;
        top: 19px;
        left: 7px;
        display: block;
        width: 28px;
        height: 3px;
        border-radius: 999px;
        background-color: currentColor;
    }

    .km-mobile-nav__close span:first-child {
        transform: rotate(45deg);
    }

    .km-mobile-nav__close span:last-child {
        transform: rotate(-45deg);
    }

    .km-mobile-nav__body {
        width: 100%;
        min-height: calc(100dvh - 88px);
    }

    .km-mobile-nav__panel {
        width: 100%;
        padding: 24px 24px 48px;
    }

    .km-mobile-nav__panel[hidden] {
        display: none;
    }

    /* Shared Ajax Search Pro instance */

    .km-mobile-nav__search-host {
        width: 100%;
        margin-bottom: 24px;
    }

    .km-mobile-nav__search-host .km-mega-menu__search {
        width: 100%;
        margin: 0;
    }

    .km-mobile-nav__search-host .asp_w,
    .km-mobile-nav__search-host .asp_m {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .km-mobile-nav__search-host .asp_m {
        min-height: 46px !important;
        border: 1.5px solid #d9d8d6 !important;
        border-radius: 999px !important;
        box-shadow: none !important;
        background-color: #ffffff !important;
    }

    /* Accordion */

    .km-mobile-nav__accordion {
        display: grid;
        gap: 16px;
    }

    .km-mobile-nav__accordion-item {
        overflow: hidden;
        border: 1.5px solid #d9d8d6;
        border-radius: 14px;
        background-color: #ffffff;
    }

    .km-mobile-nav__accordion-toggle {
        display: flex;
        width: 100%;
        min-height: 70px;
        padding: 18px 22px;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        border: 0;
        background: transparent;
        color: #000000;
        font-family: Inter, Arial, sans-serif;
        font-size: 19px;
        font-weight: 700;
        line-height: 1.2;
        text-align: left;
        cursor: pointer;
    }

    .km-mobile-nav__accordion-arrow {
        flex: 0 0 auto;
        transition: transform 180ms ease;
    }

    .km-mobile-nav__accordion-toggle[aria-expanded="true"]
        .km-mobile-nav__accordion-arrow {
        transform: rotate(180deg);
    }

    .km-mobile-nav__accordion-panel {
        padding: 0 22px 24px;
        border-top: 1px solid #ededed;
    }

    .km-mobile-nav__accordion-panel[hidden] {
        display: none;
    }

    .km-mobile-nav__accordion-panel .km-mega-menu__links {
        display: grid;
        gap: 14px;
    }

    .km-mobile-nav__accordion-panel .km-mega-menu__links a,
    .km-mobile-nav__accordion-panel .km-mega-menu__link-disabled {
        color: #54565a;
        font-size: 16px;
        line-height: 1.3;
    }

    .km-mobile-nav__accordion-panel .km-mega-menu__featured {
        margin-top: 24px;
    }

    .km-mobile-nav__accordion-panel
        .km-mega-menu__featured-title {
        font-size: 16px;
    }

    /* Shop utilities */

    .km-mobile-nav__devices {
        display: flex;
        width: fit-content;
        margin-top: 34px;
        align-items: center;
        gap: 18px;
        color: inherit;
        text-decoration: none;
    }

    .km-mobile-nav__devices img {
        display: block;
        width: auto;
        max-width: 92px;
        max-height: 72px;
        object-fit: contain;
    }

    .km-mobile-nav__login-button {
        display: flex;
        width: fit-content;
        margin-top: 32px;
        padding: 0;
        align-items: center;
        gap: 12px;
        border: 0;
        background: transparent;
        color: #212529;
        font-family: Inter, Arial, sans-serif;
        font-size: 22px;
        font-weight: 600;
        cursor: pointer;
    }

    .km-mobile-nav__shop {
        display: flex;
        width: fit-content;
        min-width: 112px;
        min-height: 50px;
        margin-top: 34px;
        padding: 10px 28px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background-color: #10b3cf;
        color: #ffffff;
        font-family: Inter, Arial, sans-serif;
        font-size: 20px;
        font-weight: 700;
        text-decoration: none;
    }

    /* Login screen */

    .km-mobile-nav__login-panel {
        padding-top: 24px;
    }

    .km-mobile-nav__back {
        display: inline-flex;
        padding: 0;
        align-items: center;
        gap: 16px;
        border: 0;
        background: transparent;
        color: #000000;
        font-family: Inter, Arial, sans-serif;
        font-size: 28px;
        font-weight: 700;
        cursor: pointer;
    }

    .km-mobile-nav__login-links {
        display: grid;
        margin-top: 48px;
        gap: 28px;
    }

    .km-mobile-nav__login-links a {
        color: #212529;
        font-family: Inter, Arial, sans-serif;
        font-size: 22px;
        font-weight: 500;
        line-height: 1.25;
        text-decoration: none;
    }

    .km-mobile-nav__login-links a:hover,
    .km-mobile-nav__login-links a:focus-visible {
        color: #10a8c3;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .km-mobile-nav button:focus-visible,
    .km-mobile-nav a:focus-visible {
        outline: 2px solid #10a8c3;
        outline-offset: 4px;
    }

    div[id*="ajaxsearchprores"] {
        z-index: 110 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .km-mobile-nav__accordion-arrow {
        transition: none;
    }
}

/* Ajax Search Pro inside the mega menu */

.km-mega-menu__search {
    position: relative;
    z-index: 50;
    width: 100%;
    margin-top: 18px;
}

.km-mega-menu__search .asp_w {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.km-mega-menu__search .asp_m {
    box-shadow: none !important;
}

.km-mega-menu__search input.orig {
    min-width: 0 !important;
    font-family: Inter, Arial, sans-serif !important;
}

/* Keep the plugin results above the hero and mega menu. */
div[id*="ajaxsearchprores"] {
    z-index: 99999 !important;
}

.km-mega-menu a:focus-visible {
    outline: 2px solid #10a8c3;
    outline-offset: 3px;
}

@media (max-width: 1279.98px) and (min-width: 1100px) {
    .km-mega-menu__inner {
        width: calc(100% - 80px);
        gap: 25px;
    }

    .km-mega-menu__heading {
        font-size: 14px;
    }

    .km-mega-menu__links a,
    .km-mega-menu__link-disabled,
    .km-mega-menu__featured-title,
    .km-mega-menu__search {
        font-size: 13px;
    }
}

/* Internal pages: static header overlays page content */
body:not(.home) .km-global-header.km-global-header--solid {
    position: relative !important;
    z-index: 120;
    top: auto !important;
    right: auto;
    left: auto;
    width: 100%;
    background: #2f2f2f !important;
}

body:not(.home) .wrapper-outer .banner {
    margin-top: 0;
}

/* Non-home static header: match sticky header height */
@media (min-width: 1100px) {
    body:not(.home)
    .km-global-header--solid
    .km-hero__header:not(.is-sticky) {
        min-height: 90px;
        padding-top: 0;
    }
}

@media (max-width: 1099.98px) {
    body:not(.home)
    .km-global-header--solid
    .km-hero__header:not(.is-sticky) {
        min-height: 76px;
        padding: 14px 17px;
    }
}

/* Non-home pages: sticky header should switch instantly */
body:not(.home)
.km-global-header--solid
.km-hero__header {
    transition: none !important;
}

@media (min-width: 1100px) {
    body:not(.home)
    .km-global-header--solid
    .km-hero__header::before {
        transition: none !important;
    }

}

@media (max-width: 1099.98px) {
    body:not(.home)
    .km-global-header--solid
    .km-hero__header.is-sticky {
        transition: none !important;
    }
}