/* KZ Mobile Bottom Navigation v1.0.0
   Mobile presentation only. No cart/business/data logic is changed. */
#kz-mobile-bottom-nav,
#kz-mobile-login-prompt {
    display: none;
}

@media screen and (max-width: 800px) {
    body.az-home-v2.kz-mobile-bottom-nav-ready {
        padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.az-home-v2.kz-mobile-bottom-nav-ready .floating-whatsapp {
        display: none !important;
    }

    #kz-mobile-bottom-nav {
        --kz-nav-orange: #ff6a00;
        --kz-nav-green: #18a957;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2140;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        min-height: 64px;
        padding: 7px 7px calc(7px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(15, 23, 42, .08);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -10px 30px rgba(15, 23, 42, .10);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        isolation: isolate;
    }

    #kz-mobile-bottom-nav[hidden],
    #kz-mobile-bottom-nav.is-suspended {
        display: none !important;
    }

    .kz-mobile-nav-item {
        position: relative;
        min-width: 0;
        height: 51px;
        margin: 0;
        padding: 3px 2px 2px;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: #6b7280;
        text-decoration: none;
        font: inherit;
        -webkit-tap-highlight-color: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        cursor: pointer;
        transition: color .16s ease, background-color .16s ease, transform .16s ease;
    }

    .kz-mobile-nav-item:active {
        transform: scale(.95);
    }

    .kz-mobile-nav-icon {
        position: relative;
        width: 28px;
        height: 25px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        line-height: 1;
    }

    .kz-mobile-nav-label {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
        line-height: 1.05;
        font-weight: 700;
        letter-spacing: -.1px;
    }

    .kz-mobile-nav-item.is-active {
        color: var(--kz-nav-orange);
    }

    .kz-mobile-nav-item.is-active .kz-mobile-nav-icon::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -4px;
        width: 14px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transform: translateX(-50%);
    }

    .kz-mobile-nav-item[data-kz-nav="whatsapp"] {
        color: var(--kz-nav-green);
        overflow: visible;
    }

    .kz-mobile-nav-item[data-kz-nav="whatsapp"] .kz-mobile-nav-icon {
        width: 44px;
        height: 44px;
        margin-top: -20px;
        margin-bottom: 1px;
        border-radius: 50%;
        background: var(--kz-nav-green);
        color: #fff;
        box-shadow:
            0 0 0 5px #fff,
            0 8px 20px rgba(24, 169, 87, .28);
        font-size: 23px;
    }

    .kz-mobile-nav-item[data-kz-nav="whatsapp"] .kz-mobile-nav-label {
        color: #148747;
        font-weight: 800;
    }

    .kz-mobile-nav-item[data-kz-nav="account"][data-authenticated="true"] {
        color: #111827;
    }

    .kz-mobile-nav-item[data-kz-nav="account"][data-authenticated="true"] .kz-mobile-nav-icon::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 1px;
        width: 7px;
        height: 7px;
        border: 2px solid #fff;
        border-radius: 50%;
        background: #22c55e;
    }

    #kz-mobile-login-prompt {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        z-index: 2160;
        display: none;
        max-width: 460px;
        margin-inline: auto;
        padding: 12px;
        border: 1px solid rgba(15, 23, 42, .10);
        border-radius: 18px;
        background: rgba(255,255,255,.98);
        box-shadow: 0 18px 50px rgba(15, 23, 42, .20);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        color: #111827;
    }

    #kz-mobile-login-prompt.is-open {
        display: flex;
        align-items: center;
        gap: 10px;
        animation: kzMobilePromptIn .18s ease-out both;
    }

    .kz-mobile-login-prompt-icon {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff3e8;
        color: #ea580c;
        font-size: 16px;
    }

    .kz-mobile-login-prompt-copy {
        min-width: 0;
        flex: 1 1 auto;
    }

    .kz-mobile-login-prompt-copy b,
    .kz-mobile-login-prompt-copy small {
        display: block;
    }

    .kz-mobile-login-prompt-copy b {
        margin-bottom: 2px;
        font-size: 12px;
        line-height: 1.3;
        font-weight: 900;
    }

    .kz-mobile-login-prompt-copy small {
        color: #6b7280;
        font-size: 9px;
        line-height: 1.35;
    }

    .kz-mobile-login-prompt-actions {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .kz-mobile-login-prompt-actions button,
    .kz-mobile-login-prompt-actions a {
        min-height: 32px;
        padding: 0 10px;
        border-radius: 10px;
        border: 0;
        font: inherit;
        font-size: 9px;
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }

    .kz-mobile-login-prompt-dismiss {
        background: #f3f4f6;
        color: #4b5563;
    }

    .kz-mobile-login-prompt-login {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #ff6a00;
        color: #fff;
    }

    @keyframes kzMobilePromptIn {
        from { opacity: 0; transform: translateY(8px) scale(.985); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
}

@media screen and (max-width: 360px) {
    #kz-mobile-bottom-nav {
        padding-inline: 3px;
    }

    .kz-mobile-nav-label {
        font-size: 9px;
    }

    #kz-mobile-login-prompt {
        left: 8px;
        right: 8px;
        padding: 10px;
    }

    .kz-mobile-login-prompt-actions button,
    .kz-mobile-login-prompt-actions a {
        padding-inline: 8px;
    }
}

@media screen and (min-width: 801px) {
    body.kz-mobile-bottom-nav-ready {
        padding-bottom: initial !important;
    }
}
