.jd-mobile-category-block .jd-hm-block__head {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
}

.jd-mobile-category-count {
    padding: 4px 8px;
    border: 1px solid #e3eaf6;
    border-radius: 999px;
    background: #f6f8fd;
    color: #6c7d95;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.jd-hm-product-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    margin: 0 0 10px;
    padding: 4px 6px 4px 10px;
    border: 1px solid #dbe4f2;
    border-radius: 14px;
    background: #f8faff;
    box-shadow: inset 0 1px 2px rgba(27, 53, 91, .025);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.jd-hm-product-search:focus-within {
    border-color: #9db8e5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(29, 68, 142, .075);
}

.jd-hm-product-search > svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #7185a3;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jd-hm-product-search input[type="search"] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #263951;
    font-family: inherit;
    font-size: 12px;
    font-weight: 550;
    text-align: right;
}

.jd-hm-product-search input[type="search"]::placeholder {
    color: #97a3b5;
    opacity: 1;
}

.jd-hm-product-search input[type="hidden"] {
    display: none;
}

.jd-hm-product-search > button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: var(--jd-primary, #1d448e);
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.jd-hm-product-search > button:hover,
    .jd-hm-product-search > button:focus-visible {
    background: #173877;
}

.jd-hm-product-search > button:active {
    transform: translateY(1px);
}

.jd-mobile-category-list {
    overflow: hidden;
    border: 1px solid #e7edf6;
    border-radius: 14px;
    background: #fff;
}

.jd-mobile-root-category + .jd-mobile-root-category {
    border-top: 1px solid #edf1f7;
}

.jd-mobile-root-category .jd-hm-acc-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 55px;
    padding: 8px 12px;
    background: #fff;
}

.jd-mobile-root-category .jd-hm-acc-toggle:hover,
    .jd-mobile-root-category .jd-hm-acc-toggle:focus-visible,
    .jd-mobile-root-category.jd-open > .jd-hm-acc-toggle {
    background: #f7f9fe;
}

.jd-hm-acc-icon {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e0e8f6;
    border-radius: 10px;
    background: #f5f8fe;
    color: var(--jd-primary, #1d448e);
}

.jd-hm-acc-icon svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.jd-mobile-root-category .jd-hm-acc-title {
    flex: 1 1 auto;
    color: #2d405b;
    font-size: 12.5px;
    font-weight: 800;
}

.jd-mobile-root-category.jd-open .jd-hm-acc-title {
    color: var(--jd-primary, #1d448e);
}

.jd-mobile-root-category .jd-hm-acc-arrow {
    flex: 0 0 20px;
    margin-inline-start: 2px;
}

.jd-mobile-root-category .jd-hm-acc-body {
    background: #fff;
}

.jd-mobile-root-category .jd-hm-acc-inner {
    gap: 7px;
    padding: 11px 12px 14px;
}

.jd-mobile-root-link {
    justify-content: space-between !important;
    min-height: 39px !important;
    padding: 8px 11px !important;
    border: 1px solid #dfe8f7 !important;
    border-radius: 10px !important;
    background: #f3f7ff !important;
    color: var(--jd-primary, #1d448e) !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
}

.jd-mobile-root-link span {
    width: auto !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
}

.jd-mobile-cat-tree {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.jd-mobile-cat-node {
    min-width: 0;
    border-bottom: 1px solid #f0f3f8;
}

.jd-mobile-cat-node:last-child {
    border-bottom: 0;
}

.jd-mobile-cat-node-head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.jd-mobile-cat-node-head > .jd-hm-cat-link {
    flex: 1 1 auto;
    min-height: 38px;
    padding: 7px 2px;
    color: #52647d;
    font-size: 11.5px;
    font-weight: 650;
}

.jd-mobile-cat-node-head > .jd-hm-cat-link span {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    line-height: 1.8;
}

.jd-mobile-cat-toggle {
    display: grid;
    flex: 0 0 31px;
    place-items: center;
    width: 31px;
    height: 31px;
    margin: 0;
    padding: 0;
    border: 1px solid #e7edf6;
    border-radius: 9px;
    background: #fff;
    color: #7a8ba4;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}

.jd-mobile-cat-toggle span {
    display: block;
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .16s ease;
}

.jd-mobile-cat-node.is-expanded > .jd-mobile-cat-node-head .jd-mobile-cat-toggle {
    border-color: #d7e3f7;
    background: #f0f5ff;
    color: var(--jd-primary, #1d448e);
}

.jd-mobile-cat-node.is-expanded > .jd-mobile-cat-node-head .jd-mobile-cat-toggle span {
    margin-top: 3px;
    transform: rotate(225deg);
}

.jd-mobile-cat-children {
    display: none;
    margin: 0 5px 7px 0;
    padding: 0 10px 2px 0;
    border-right: 2px solid #e2eaf8;
}

.jd-mobile-cat-node.is-expanded > .jd-mobile-cat-children {
    display: block;
    animation: jd-mobile-category-open .16s ease both;
}

.jd-mobile-cat-node--depth-2 > .jd-mobile-cat-node-head > .jd-hm-cat-link {
    color: #60718a;
    font-size: 11px;
}

.jd-mobile-cat-node--depth-3 > .jd-mobile-cat-node-head > .jd-hm-cat-link,
    .jd-mobile-cat-node--depth-4 > .jd-mobile-cat-node-head > .jd-hm-cat-link,
    .jd-mobile-cat-node--depth-5 > .jd-mobile-cat-node-head > .jd-hm-cat-link {
    color: #74839a;
    font-size: 10.5px;
}

.jd-mobile-category-empty {
    margin: 5px 0 0;
    padding: 12px;
    border: 1px dashed #dbe4f1;
    border-radius: 10px;
    color: #74839a;
    font-size: 11px;
    text-align: center;
}

.jd-mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    padding: 17px 8px 3px;
    color: #8895a8;
    font-size: 10px;
    line-height: 1.8;
    text-align: center;
}

.jd-mobile-menu-footer span:first-child {
    color: #4d6382;
    font-weight: 800;
}

@keyframes jd-mobile-category-open {
    from {
        opacity: .6;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 420px) {
    .jd-hm-product-search input[type="search"] {
        font-size: 11px;
    }
    .jd-mobile-root-category .jd-hm-acc-toggle {
        gap: 8px;
        padding-inline: 9px;
    }
    .jd-mobile-root-category .jd-hm-acc-title {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jd-mobile-cat-node.is-expanded > .jd-mobile-cat-children,
        .jd-mobile-cat-toggle,
        .jd-mobile-cat-toggle span,
        .jd-hm-product-search {
        animation: none !important;
        transition: none !important;
    }
}
