#favorites-widget {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

#favorites-icon {

}

#favorites-count {
	background: #FF0000;
	display: inline-block;
	height: 15px;
	color: white;
	vertical-align: top;
	font-size: 10px;
	text-align: center;
	line-height: 16px;
	width: 15px;
	margin-top: 10px;
	border-radius: 16px;
	margin-left: 18px;
	text-decoration: underline;
	text-decoration-color: #FF0000;
}

#favorites-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}



#favorites-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

#favorites-list img {
    width: 20px;
    height: auto;
    margin-right: 10px;
}

.modal-content {
    position: relative;
    background: white;
    padding: 30px 10px 20px 10px;
    border-radius: 12px;
    max-width: 700px;
    width: 95%;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
		max-height: 80vh; /* ограничение по высоте */
overflow-y: auto; /* вертикальная прокрутка при необходимости */
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.favorites-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.favorites-table th,
.favorites-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
		font-size: 12px;
}

.favorites-table td img.product-thumb {
    width: 80px !important;
    height: auto;
    vertical-align: middle;
    margin-right: 10px;
}

.favorite-name {
    position: relative;
    transition: all 0.2s ease;
    color: #3D8DD6;
    font-size: 16px;
    line-height: 18px;
    text-decoration: none;
    font-weight: 500;
		font-size: 12px;
}

.favorite-price:after {
    content: "\20BD";
    margin-left: 3px;
    font-size: 12px;
    vertical-align: super;
    line-height: 9px;
    font-weight: normal;
}

.delete-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
		font-size: 12px;
}

.delete-icon:hover {
    opacity: 1;
}


.hidden {
    display: none!important;
}

#wicartbutton_003.favorite-toggle.active {
background-image: url(../img/likefullmini.svg);
}

.favorite-toast {
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    background: #3d3c3a;
    color: white;
    padding: 20px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
		width: 200px;
}

.favorite-toast.show {
    opacity: 1;
}

.hidden {
    display: none !important;
}


@keyframes heart-beat {
    0%   { transform: scale(1); }
    20%  { transform: scale(1.1); }
    40%  { transform: scale(1.2); }
    60%  { transform: scale(1.3); }
    80%  { transform: scale(1); }
    100% { transform: scale(1); }
}

.heart-animate {
    animation: heart-beat 0.5s ease-in-out;
}
