.recently-viewed {
    padding: 15px;
    overflow: hidden;
}

.mg-recently-viewed-plugin {
    position: relative;
}

.mg-recently-viewed-plugin h2 {
    font-size: 22px;
    color: var(--main-text-color);
    margin-bottom: 26px;
    font-weight: 500;
}

.mg-recently-viewed-slider {
    overflow: visible !important;
}

.mg-recently-viewed-plugin .bx-prev,
.mg-recently-viewed-plugin .bx-next {
    background-image: none;
    font-size: 0;
    width: 20px;
    height: 20px;
    text-indent: 0;
}
.mg-recently-viewed-plugin .mg-recently__nav-btn_next,
.mg-recently-viewed-plugin .mg-recently__nav-btn_prev {
    position: absolute;
    top: 0;
    background: var(--main-background-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.mg-recently-viewed-plugin .mg-recently__nav-btn_next:hover,
.mg-recently-viewed-plugin .mg-recently__nav-btn_prev:hover {
    background: var(--accent-color);
    color: var(--secondary-text-color);
} 

.mg-recently-viewed-plugin .mg-recently__nav-btn_next.swiper-button-disabled,
.mg-recently-viewed-plugin .mg-recently__nav-btn_prev.swiper-button-disabled {
    opacity: .35;
    cursor: auto;
    pointer-events: none;
}

.mg-recently-viewed-plugin .mg-recently__nav-btn_prev {
    right: 61px;
}
.mg-recently-viewed-plugin .mg-recently__nav-btn_next {
    right: 25px;
}

.mg-recently-viewed-plugin .bx-next::before {
    content: "\F0142";
    display: inline-block;
    font: normal normal normal 24px/1 "Material Design Icons";
    font-size: inherit;
    text-rendering: auto;
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
    font-size: 30px;
    width: 30px;
    height: 30px;
    transition: all 0.4s ease-in-out;
}

.mg-recently-viewed-plugin .bx-prev::before {
    display: inline-block;
    font: normal normal normal 24px/1 "Material Design Icons";
    font-size: inherit;
    text-rendering: auto;
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
    content: "\F0141";
    font-size: 30px;
    width: 30px;
    height: 30px;
    transition: all 0.4s ease-in-out;
}

.mg-recently-viewed-plugin .bx-prev:hover:before,
.mg-recently-viewed-plugin .bx-next:hover:before {
    color: var(--accent-color);
}

.mg-recently-viewed .addToCart,
.mg-recently-viewed .product-info {
    background: none;
    background-color: var(--secondary-background-color);
    color: var(--secondary-text-color);
    padding: 8px 10px;
    border-radius: 20px;
    width: fit-content;
    display: block;
    transition: all 0.4s ease-in-out;
    border: none;
    box-shadow: none;
    text-shadow: none;
}

.mg-recently-viewed .addToCart:hover,
.mg-recently-viewed .product-info:hover {
    background-color: var(--accent-color);
    color: var(--main-text-color);
}


@media (max-width: 507px) {
    .mg-recently-viewed-plugin h2 {
        font-size: 16px;
        margin-top: 29px;
        padding: 0;
    }
}