.c-favorite__count.visible {
    opacity: 1;
}
.c-favorite__count.hidden {
    opacity: 0;
}
.c-favorite__count {
    width: auto;
    height: auto;
    color: #1e1e1e;
    font-size: 16px;
    position: absolute;
    min-width: 0px;
    line-height: normal;
    bottom: 100%;
    right: -5px;
    top: -13;
    margin: 0px 0px -3px;
    background: none;
    padding: 0px;
}
.c-favorite-btn {
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    background-color: unset;
}

.c-favorite-btn svg {
    width: 24px;
    height: 24px;
    /* color: #1E1E1E; */
    opacity: 0.2;
}

.c-favorite-btn.isActive svg,
.c-favorite-btn:hover svg {
    opacity: 1;
}

.c-favorite-btn {
    padding: 0;
    margin: 0;
    border: 0;
    outline: none !important;
    background-color: unset;
    transition: color 0.3s ease;
}

.c-favorite svg {
    width: 32px;
    height: 32px;
    color: #1E1E1E;
    transition: color 0.3s ease;
}

.c-favorite svg:hover svg {
    color: #848484;
}

.c-favorite {
    display: inline-flex;
    gap: 5px;
    position: relative;
}
.header-favorites {
    position: relative;
}

.c-icon-heart  {
    display: inline-block;
    width: 20px;
    height: 18px;

    background-color: #1E1E1E;

    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'><path d='M10 17.1432L1.55692 8.82794C0.689275 7.97929 0.147406 6.85276 0.0259811 5.64517C-0.0954433 4.43759 0.211298 3.22573 0.892612 2.22133C4.99987 -3.24739 10 3.10278 10 3.10278C10 3.10278 15.0001 -3.24739 19.1074 2.22133C19.7887 3.22573 20.0954 4.43759 19.974 5.64517C19.8526 6.85276 19.3107 7.97929 18.4431 8.82794L10 17.1432Z'/></svg>");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'><path d='M10 17.1432L1.55692 8.82794C0.689275 7.97929 0.147406 6.85276 0.0259811 5.64517C-0.0954433 4.43759 0.211298 3.22573 0.892612 2.22133C4.99987 -3.24739 10 3.10278 10 3.10278C10 3.10278 15.0001 -3.24739 19.1074 2.22133C19.7887 3.22573 20.0954 4.43759 19.974 5.64517C19.8526 6.85276 19.3107 7.97929 18.4431 8.82794L10 17.1432Z'/></svg>");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.c-favorite:hover .c-icon-heart  {
    background-color: #ccc;
}

.c-favorite-btn.wide{
	font-size: 18px;
	width: 50%;
    border: 1px solid;
    border-radius: 4px;
    margin-top: 20px;
    height: 40px;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.c-favorite-btn.wide:hover{
	background: black;
	color: white;
}

.c-favorites-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 11000;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 20px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.c-favorites-toast.is-visible {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.c-favorites-toast.is-remove {
    justify-content: center;
    min-width: 420px;
}

.c-favorites-toast__count {
    flex-shrink: 0;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.c-favorites-toast__text {
    font-size: 15px;
    color: #222;
    line-height: 1.35;
}

.c-favorites-toast__link {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 0.25em;
}

.c-favorites-toast__link:hover {
    text-decoration: underline;
}

html.favorites-toast-open .c-favorite-btn {
    pointer-events: none;
}

.c-favorites-toast.is-remove .c-favorites-toast__count,
.c-favorites-toast.is-remove .c-favorites-toast__link {
    display: none;
}

@media (max-width: 767px) {
    .c-favorites-toast {
        max-width: calc(100vw - 32px);
        box-sizing: border-box;
    }

    .c-favorites-toast.is-remove {
        min-width: 0;
    }
}
