.devvn_product_viewed,
.devvn_product_viewed *{
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
.devvn_product_viewed.viewed_loading {
    height: 90px;
}

.viewed_loading {
    position: relative;
    pointer-events: none;
}
.viewed_loading:before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    background: rgb(255 255 255 / 50%);
    width: 100%;
    height: 100%;
    z-index: 999;
}
.viewed_loading:after {
    position: absolute;
    content: '';
    top: 50%;
    margin-top: -25px;
    left: 50%;
    margin-left: -25px;
    width: 50px;
    height: 50px;
    -webkit-animation: viewed_loading .6s linear;
    animation: viewed_loading .6s linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    border-radius: 50%;
    border-color: var(--primary-color,#00c48c) transparent transparent;
    border-style: solid;
    border-width: .3em;
    box-shadow: 0 0 0 1px transparent;
    z-index: 9999;
}
@-webkit-keyframes viewed_loading {
    from {
        -webkit-transform: rotate(0);
        transform: rotate(0)
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

@keyframes viewed_loading {
    from {
        -webkit-transform: rotate(0);
        transform: rotate(0)
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}
.devvn_product_viewed strong.h3_title {
    font-size: 18px;
    text-transform: uppercase;
    display: block;
    padding: 15px 0;
}

.devvn_viewed_bar {
    position: fixed;
    right: 0;
    top: 35%;
    z-index: 999999999;
    background: #fff;
    border: 2px solid #000;
    height: 320px;
    width: 100px;
    transition: .3s;
}
.devvn_viewed_btn {
    position: absolute;
    top: 50px;
    left: -25px;
    z-index: 0;
    background: #000;
    color: #fff;
    padding: 7px 15px 7px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 50%;
    cursor: pointer;
    width: 38px;
    height: 33px;
}
.devvn_viewed_btn svg{
    transition: all .3s linear;
}
.devvn_viewed_bar.open .devvn_viewed_btn svg {
    transform: rotate(180deg);
}
.devvn_viewed_title {
    background: #000;
    color: #fff;
    padding: 6px;
    font-size: 13px;
    text-align: center;
    margin-top: -1px;
    cursor: pointer;
}
.devvn_viewed_content {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: calc(100% - 42px);
    background: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
}

.devvn_viewed_content ul.product_list_widget, .devvn_viewed_content ul.product_list_widget li {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: auto;
}
.devvn_viewed_content img {
    position: relative !important;
    margin: 0 !important;
    height: auto !important;
    width: 100% !important;
    top: unset !important;
}
.devvn_viewed_content ul.product_list_widget li + li {
    border-top: 0;
}
.devvn_viewed_content_full {
    display: none;
    padding: 10px 20px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
    height: calc(100% - 42px);
    width: 546px;
}

.has-off-canvas .devvn_viewed_bar,
html[style*="overflow: hidden"] .devvn_viewed_bar {
    display: none;
}

@media (min-width: 992px) {
    .devvn_viewed_bar.open {
        width: 550px;
        height: 505px;
    }
    .devvn_viewed_bar.open .devvn_viewed_content_full {
        display: block;
    }
    .devvn_viewed_bar.open .devvn_viewed_content {
        display: none;
    }
    .devvn_hide_pc{
        display: none;
    }
}
@media (max-width: 991px) {
    .devvn_viewed_title {
        position: absolute;
        right: calc(100% + 1px);
        top: -1px;
        border-radius: 0 5px 0 0;
        transform: rotate(270deg);
        transform-origin: 100% 100%;
        white-space: nowrap;
        font-size: 14px;
        padding: 0 6px 0 0;
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
        background: #fff;
        color: #000;
    }
    .devvn_viewed_bar {
        right: -100px;
    }
    .devvn_viewed_bar.open {
        right: 0;
    }
    .devvn_viewed_content {
        height: calc(100% - 10px);
        z-index: 3;
    }
    .devvn_hide_mobile{
        display: none;
    }
    .devvn_viewed_btn {
        top: 173px;
        left: -24px;
        border-radius: 0 0 0 5px;
        padding: 3px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        background: #fff;
        z-index: 2;
        width: unset;
    }
    .devvn_viewed_btn svg {
        width: 16px;
        height: 16px;
    }
    .devvn_viewed_btn svg * {
        fill: #000;
    }
}