.embla__viewport {
    overflow: hidden;
    padding: 25px 0;
}

.embla__container {
    display: flex;
}

.embla__slide {
    flex: 0 0 auto;
}

.search-categories {
    .search-categories__title {
        font-size: 20px;
        line-height: 1.2;
        color: #111;
    }

    .search-categories__slider {
        position: relative;

        .search-categories__row {
            display: flex;
            gap: 15px;
        }
    }
}

.search-categories__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e6e7ea;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;

    &.is-left {
        left: 5px;
    }

    &.is-right {
        right: 5px;

        &::before {
            transform: rotate(180deg) translateX(-1px);
        }
    }

    &::before {
        content: "";
        display: block;
        width: 18px;
        height: 18px;
        background: no-repeat center/18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M15.41 7.41 14 6 8 12l6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
        transform-origin: 50% 50%;
    }

    &:disabled {
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

.search-categories__slider:hover .search-categories__nav {
    opacity: 1;
    pointer-events: auto;
}

.category-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
    max-width: 260px;
    padding: 10px 34px 10px 12px;
    border: 1px solid #e5e5e5;
    text-decoration: none;
    color: #111;
    transition: all 0.3s ease;

    &:hover {
        border-color: #fff;
        box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
        background-color: #fff;
        z-index: 1;
        color: rgb(228, 76, 13);
    }

    &.is-active {
        border-color: rgb(228, 76, 13);
        border-width: 2px;
    }

    .category-tile__name {
        font-size: 14px;
        line-height: 1.2;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 170px;
    }

    .category-tile__badge {
        position: absolute;
        top: 5px;
        right: 5px;
        min-width: 18px;
        height: 18px;
        padding: 2px 4px;
        background: rgb(228, 76, 13);
        color: #fff;
        font-size: 12px;
        line-height: 18px;
        text-align: center;
        font-weight: 600;
    }

    .category-tile__img {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        border-radius: 10px;
        background: #f2f3f5;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }
    }
}