.areas-item {
    position: relative;
    display: block;
}

.areas-item input {
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    width: 0;
    height: 0;
    visibility: hidden;
    opacity: 0;
}

.areas-item input:checked + .areas-item-box {
    background-color: #F9F9FB;
}

.areas-item input:checked + .areas-item-box::after {
    opacity: 1;
    visibility: visible;
}

.areas-item input:checked + .areas-item-box .areas-item-img {
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
}

.areas-item-box {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem;
    line-height: 1.25rem;
    border-radius: 1.5rem;
    cursor: pointer;
    overflow: hidden;
}

.areas-item-box::before, .areas-item-box::after {
    content: "";
    position: absolute;
    left: 5.5rem;
    top: 50%;
    width: 1.125rem;
    height: 1.125rem;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    border-radius: 50%;
}

.areas-item-box::before {
    border: 1.5px solid var(--border);
}

.areas-item-box::after {
    background-color: var(--accent);
    background-image: url("../../img/check-.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.125rem;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.areas-item-img {
    position: relative;
    width: 4rem;
    min-width: 4rem;
    height: 4rem;
    border-radius: 1.125rem;
    overflow: hidden;
    margin-right: 3.125rem;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    background-color: #F9F9FB;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.carousel-brands {
    padding: 0 2rem;
}

.carousel-brands .brands-item {
    width: calc(50% - 0.75rem);
    margin-right: 1.5rem;
}

.brands-item {
    --logo-max-height: 2rem;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    min-height: 9.375rem;
    -webkit-transition: border-color 0.2s;
    transition: border-color 0.2s;
}

.brands-item:hover {
    border-color: var(--accent);
}

.brands-item img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    max-height: var(--logo-max-height);
}

.brands-item- {
    --logo-max-height: 2rem;
    height: var(--logo-max-height);
}

.brands-item- img {
    display: block;
    width: auto;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    max-height: var(--logo-max-height);
}

@media (min-width: 768px) {
    .carousel-brands .brands-item {
        width: calc(33.3% - 1rem);
    }

    .carousel-brands-lg {
        padding: 0 2.5rem;
    }
}

@media (min-width: 992px) {
    .carousel-brands .brands-item {
        width: calc(25% - 1.125rem);
    }
}

@media (min-width: 1400px) {
    .carousel-brands .brands-item {
        width: calc(20% - 1.25rem);
    }
}