.webcube-favorites * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: inherit;
}

[class*='icon-']:before {
    display: inline-block;
    font-family: 'Glyphter';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*loader*/
.webcube-favorites-loader {
    display: none;
    text-align: center
}

.webcube-favorites-loader svg * {
    fill: #efa61b;
}
.modal.favorite-modal {
    z-index: 1000; /* basket result - 1 index */
}
.favorite-modal .modal-dialog {
    width: 800px;
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 90px);
    overflow-Y: scroll;
}

.md-content-webcube-favorites {
    position: relative;
    min-height: 526px;
}

.md-content-webcube-favorites .perekluch {
    text-align: center;
    margin-bottom: 15px;
}

.md-content-webcube-favorites .perekluch span.href-nalichie {
    display: inline-block;
    text-transform: uppercase;
    font-size: 10px;
}

.md-content-webcube-favorites .perekluch .active-hr {
    cursor: no-drop;
    text-decoration: none;
}

.md-content-webcube-favorites .perekluch .no-active-hr {
    border-bottom: 1px dashed;
}

.md-content-webcube-favorites .onoffswitch {
    display: inline-block;
    top: 5px;
    position: relative;
    width: 30px;
    margin: 0 10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.md-content-webcube-favorites .onoffswitch .onoffswitch-checkbox {
    display: none;
}

.md-content-webcube-favorites .onoffswitch .onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    -webkit-border-radius: 36px;
    -moz-border-radius: 36px;
    -ms-border-radius: 36px;
    -o-border-radius: 36px;
    border-radius: 36px;
    border-width: 2px;
    border-style: solid;
    margin-bottom: 0;
}

.md-content-webcube-favorites .onoffswitch .onoffswitch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    -webkit-transition: margin 0.3s ease-in 0s;
    -moz-transition: margin 0.3s ease-in 0s;
    -ms-transition: margin 0.3s ease-in 0s;
    -o-transition: margin 0.3s ease-in 0s;
    transition: margin 0.3s ease-in 0s;
}

.md-content-webcube-favorites .onoffswitch .onoffswitch-inner:before,
.md-content-webcube-favorites .onoffswitch .onoffswitch-inner:after {
    display: block;
    float: left;
    width: 50%;
    height: 14px;
    padding: 0;
    line-height: 14px;
    font-size: 13px;
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    box-sizing: border-box;
}

.md-content-webcube-favorites .onoffswitch .onoffswitch-inner:before {
    content: "";
    padding-left: 13px;
}

.md-content-webcube-favorites .onoffswitch .onoffswitch-inner:after {
    content: "";
    padding-right: 13px;
    background-color: #FFFFFF;
    color: #666666;
    text-align: right;
}

.md-content-webcube-favorites .onoffswitch .onoffswitch-switch {
    display: block;
    width: 12px;
    height: 12px;
    margin: 3px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 12px;
    border: 2px solid #FFFFFF;
    border-radius: 100%;
    transition: all 0.3s ease-in 0s;
}

.md-content-webcube-favorites .onoffswitch .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

.md-content-webcube-favorites .onoffswitch .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0;
}


.md-show {
    visibility: visible;
}

.md-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    visibility: hidden;
    top: 0;
    left: 0;
    z-index: 999;
    opacity: 0;
    background: rgba(227, 227, 227, 0.8);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.md-show ~ .md-overlay {
    opacity: 1;
    visibility: visible;
}

/* Effect 1: Fade in and scale up */
.md-effect-1 .md-content-webcube-favorites {
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    -ms-transform: scale(0.7);
    -o-transform: scale(0.7);
    transform: scale(0.7);
    opacity: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.md-show.md-effect-1 .md-content-webcube-favorites {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

/*Применяем цвет к SVG*/
.color-svg {
    stroke: #FFFFFF;
    fill: #FFFFFF;
}

.svg-korzina {
    position: absolute;
}

.icon-izbranoe {
    box-shadow: 0 2px 8px rgba(121, 122, 121, 0.16);
    border-radius: 5px 0 0 5px;
    position: fixed;
    right: 0;
    top: calc(50% + 60px);
    transform: translateY(-50%);
    padding: 15px 15px 15px 40px;
    background-size: 16px;
    background: #EFF4F7 url(image/heart.svg) no-repeat 15px 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    color: #797A79;
    z-index: 1;
    height: 50px;
}

.icon-izbranoe.active {
    opacity: 1;
    pointer-events: initial;
}

.izbrannoe__count {
    cursor: pointer;
}

.webcube-favorites .add-to-cart-button {
}

.webcube-favorites .add-to-cart-button:hover {
}

.webcube-favorites .add-to-cart-button.in-basket {
}

.webcube-favorites .add-to-cart-button.not-avalible {
    background: #DBDEE0;
    color: #FFFFFF;
    box-shadow: 4px 4px 8px rgba(121, 122, 121, 0.16);
    pointer-events: none;
}

webcube-favorites__product-container {
    max-height: calc(100vh - 180px);
}

.webcube-favorites__product {
    padding: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.webcube-favorites__buttons-block {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.webcube-favorites__delete-button {
    margin-bottom: 5px;
}

.webcube-favorites__delete-button:hover {
    text-decoration: underline;
}

.webcube-favorites__image-block {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webcube-favorites__image {
    max-width: 100%;
    max-height: 100%;
}

.webcube-favorites__info-block {
    color: black;
    font-size: 16px;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    cursor: default;
}

.webcube-favorites__avalible {
    color: #08B808;
}

.webcube-favorites__not-avalible {
    color: #f4b48e;
}


.webcube-favorites__products-list {
    /*max-height: calc(100vh - 300px);*/
    width: 100%;
    padding: 0;
}

.modal-wrapper{
    width: 815px;
    background-color: #fff;
    border-radius: 10px;
    margin: auto;
    box-shadow: 0 10px 30px rgba(121, 122, 121, 0.15);
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 90px);
}

.modal-wrapper .modal-dialog{
    box-shadow: unset;
}

.webcube-favorites__global-control {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column-reverse;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 5px 15px;
}

.webcube-favorites__global-control .webcube-favorites__delete-button {
    margin-bottom: 10px;
}

.webcube-favorites__product_title:hover {
    text-decoration: underline;
}
.webcube-favorites__empty{
    text-align: center;
    font-size: 18px;
    padding: 25px 0;
}
@media only screen and (max-width: 700px) {

    .webcube-favorites__product {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .webcube-favorites__buttons-block,
    .webcube-favorites__image-block {
        max-width: 50%;
        height: auto;
    }

    .webcube-favorites__image-block {
        order: 1
    }

    .webcube-favorites__buttons-block {
        order: 2;
    }

    .webcube-favorites__info-block {
        order: 3;
        width: 100%;
        margin-top: 10px;
        padding: 0;
    }

}

@media only screen and (max-width: 600px) {
    .webcube-favorites__products-list {
        max-height: calc(100vh - 250px);
    }

    .izbrannoe__count{
        font-size: 0;
    }
    .webcube-favorites .add-to-cart-button{
        min-width: 0;
    }
}
