/* JBA v15.2.59 - category-first one-character live search */
body .jba-v143-search-results {
    width: min(780px, calc(100vw - 24px));
    max-height: min(640px, 78vh);
    background: #f7f9fc;
}

body .jba-v15259-search-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body .jba-v15259-search-section {
    padding: 10px;
    background: #fff;
}

body .jba-v15259-search-section + .jba-v15259-search-section {
    border-top: 1px solid #e7edf5;
}

body .jba-v15259-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 3px 9px;
    color: #001246;
}

body .jba-v15259-section-title strong {
    font-size: 13px;
    font-weight: 950;
    line-height: 1.7;
}

body .jba-v15259-section-title span {
    color: #778398;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.5;
}

body .jba-v15259-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

body .jba-v143-search-item.jba-v15259-category-item {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 8px;
    min-height: 62px;
    padding: 8px 9px;
    overflow: visible;
    border: 1px solid #dfe7f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 18, 70, .035);
    transform: none;
}

body .jba-v143-search-item.jba-v15259-category-item:hover,
body .jba-v143-search-item.jba-v15259-category-item.jba-v143-active {
    border-color: #f5a51a;
    background: #fffaf0 !important;
    box-shadow: 0 8px 20px rgba(0, 18, 70, .09);
    transform: none;
}

body .jba-v15259-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(145deg, #eef3fb, #fff);
    color: #062663;
    box-shadow: inset 0 0 0 1px #dde6f3;
}

body .jba-v15259-category-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body .jba-v15259-category-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

body .jba-v15259-category-copy strong {
    overflow: hidden;
    color: #001246;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .jba-v15259-category-copy small {
    overflow: hidden;
    color: #7a8699;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .jba-v15259-category-count {
    padding: 3px 7px;
    border-radius: 999px;
    background: #edf7f2;
    color: #0b7b4d;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

body .jba-v15259-category-arrow {
    color: #f5a51a;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

body .jba-v15259-product-section {
    background: #f6f8fc;
}

body .jba-v143-search-list.jba-v15259-product-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 0;
    background: transparent;
}

body .jba-v15259-product-item .jba-v143-search-thumb-wrap {
    aspect-ratio: 1.08 / 1;
}

body .jba-v143-search-all {
    z-index: 2;
}

@media (max-width: 767px) {
    body .jba-v143-search-results {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        max-height: min(76vh, 620px);
    }

    body .jba-v15259-search-section {
        padding: 7px;
    }

    body .jba-v15259-section-title {
        padding: 1px 2px 7px;
    }

    body .jba-v15259-section-title strong {
        font-size: 11.5px;
    }

    body .jba-v15259-section-title span {
        font-size: 8.5px;
    }

    body .jba-v15259-category-list {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    body .jba-v143-search-item.jba-v15259-category-item {
        grid-template-columns: 36px minmax(0, 1fr) auto 15px;
        min-height: 52px;
        padding: 6px 7px;
        border-radius: 10px;
    }

    body .jba-v15259-category-icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    body .jba-v15259-category-icon svg {
        width: 21px;
        height: 21px;
    }

    body .jba-v15259-category-copy strong {
        font-size: 10.5px;
    }

    body .jba-v15259-category-copy small,
    body .jba-v15259-category-count {
        font-size: 8px;
    }

    body .jba-v143-search-list.jba-v15259-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }
}
