.catalog-chips-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    position: relative;
}

.catalog-chips-shell .chips {
    min-width: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.catalog-chips-button {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.catalog-chips-button:hover {
    transform: translateY(-1px);
    background: #fff;
}

.catalog-chips-button:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

@media (min-width: 760px) {
    .catalog-chips-shell.has-overflow {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .catalog-chips-shell.has-overflow .catalog-chips-button {
        display: inline-grid;
        place-items: center;
    }

    .catalog-chips-shell.has-overflow .chips {
        padding: 2px 4px 8px;
        scrollbar-width: thin;
        scrollbar-color: rgba(15, 23, 42, 0.28) transparent;
    }

    .catalog-chips-shell.has-overflow .chips::-webkit-scrollbar {
        height: 8px;
    }

    .catalog-chips-shell.has-overflow .chips::-webkit-scrollbar-track {
        background: transparent;
    }

    .catalog-chips-shell.has-overflow .chips::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.24);
    }

    .catalog-chips-shell.has-overflow::before,
    .catalog-chips-shell.has-overflow::after {
        display: none;
    }
}
