/* Избранное */
.mg-add-to-favorites,
.mg-remove-to-favorites {
    /* border: 1px solid var(--accent-color); */
    background-color: #fff;
    padding: 2px;
    border-radius: 5px;
    display: block;
    font-size: 10px;
    font-weight: bold;
    /* padding: 4px 5px 4px 8px; */
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    /* margin-left: 5px; */
    /* opacity: 0;
    visibility: hidden; */
    opacity: 1;
    	visibility: visible;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
    /* width: 50px; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 3;
}


@media(min-width: 767px) {
	.c-goods__item:hover .mg-add-to-favorites,
	.c-goods__item:hover .mg-remove-to-favorites {
    	opacity: 1;
    	visibility: visible;
	}
}

@media(max-width: 766px) {
	.c-goods__item .mg-add-to-favorites,
	.c-goods__item .mg-remove-to-favorites {
    	opacity: 1;
    	visibility: visible;
	}
}

.mg-add-to-favorites svg,
.mg-remove-to-favorites svg {
    width: 20px;
    height: 20px;
    /* vertical-align: sub; */
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
    fill: var(--accent-color);
}

.mg-add-to-favorites svg,
.mg-remove-to-favorites:hover svg {
    stroke: var(--accent-color);
    /* fill: #fff; */
}

.mg-add-to-favorites:hover svg,
.mg-remove-to-favorites svg {
    /* stroke: #ffd325;
    fill: #ffc107; */
}

.remove__hover {
    display: none;
    width: 87px;
    text-align: center;
}

.mg-remove-to-favorites--product .remove__hover {
    width: 102px;
}

.mg-remove-to-favorites:hover .remove__text {
    display: none;
}

.mg-remove-to-favorites:hover .remove__hover {
    display: inline-block;
}

.mg-product-slides .mg-remove-to-favorites--product,
.mg-product-slides .mg-add-to-favorites--product {
    position: absolute;
    visibility: visible;
    opacity: 1;
    top: 5px;
    z-index: 51;
    border: 0;
    background: transparent;
    font-size: 12px;
    /* width: 145px; */
}

.mg-product-slides .mg-remove-to-favorites--product svg,
.mg-product-slides .mg-add-to-favorites--product svg {
    vertical-align: bottom;
    width: 20px;
    height: 20px;
}

.c-images.mg-product-slides {
    position: relative;
}