.pts-bottom-nav {
    display: none;
}

#top-link.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    bottom: 70px !important;
}

#top-link.back-to-top .pt-top-link-icon {
    line-height: 1;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .pts-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: block;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-top: 1px solid #d2d2d7;
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
        z-index: 9999;
    }

    .pts-bottom-nav-inner {
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 6px;
        max-width: 700px;
        margin: 0 auto;
        padding: 0 8px;
    }

    .pts-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #6b7280;
        min-width: 52px;
    }

    .pts-nav-item.active {
        color: #111827;
    }

    .pts-nav-icon {
        line-height: 0;
    }

    .pts-nav-icon svg {
        width: 22px;
        height: 22px;
    }

    .pts-nav-label {
        margin-top: 4px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
    }
}

@media (max-width: 849px) {
    #top-link.back-to-top.hide-for-medium {
        display: inline-flex !important;
    }
}
