.sc-product-favorite[data-sc-favorite-button] {
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.sc-product-favorite[data-sc-favorite-button]:hover,
.sc-product-favorite[data-sc-favorite-button]:focus-visible {
    color: var(--sc-primary);
}

.sc-product-favorite[data-sc-favorite-button]:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.sc-product-favorite[data-sc-favorite-button].is-active,
.category-view .vm-product-grid .sc-product-favorite[data-sc-favorite-button].is-active {
    color: var(--sc-primary);
    background: var(--sc-surface-hover);
}

.sc-product-favorite[data-sc-favorite-button].is-active .sc-product-favorite-icon {
    fill: currentColor;
}

.sc-product-favorite[data-sc-favorite-button].is-loading {
    cursor: wait;
    opacity: 0.6;
}

.sc-product-favorite--details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 0 12px;
    padding: 8px;
    border: 1px solid rgba(38, 50, 115, 0.18);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--sc-primary);
}

.sc-product-favorite--details .sc-product-favorite-icon {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#sp-section-1 #sp-menu a.sc-header-favorite-link {
    position: relative;
}

#sp-section-1 #sp-menu .sp-megamenu-parent>li>a.sc-header-favorite-link .sc-header-favorite-count {
    position: absolute;
    display: inline-flex;
    top: -4px;
    right: -6px;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    border: 0;
    border-radius: 1em;
    background: var(--sc-error);
    color: #fff;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    pointer-events: none;
    transform: none;
    transition: none;
}

.sc-header-favorite-count[hidden] {
    display: none;
}

@media (min-width: 768px) {
    #sp-section-1 #sp-menu .sp-megamenu-parent > li > a.sc-header-favorite-link
        .sc-header-favorite-count {
        top: 11px;
        right: 8px;
    }
}

.sc-favorite-toast {
    position: fixed;
    top: 12px;
    right: 12px;
    bottom: auto;
    left: 12px;
    z-index: 10020;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 28px;
    gap: 12px;
    width: auto;
    padding: 12px;
    border: 1px solid var(--sc-border);
    border-radius: 8px;
    background: var(--sc-surface-hover);
    box-shadow: var(--sc-shadow-main);
    color: var(--sc-text);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.sc-favorite-toast[hidden] {
    display: none;
}

.sc-favorite-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sc-favorite-toast.is-refreshing .sc-favorite-toast__image,
.sc-favorite-toast.is-refreshing .sc-favorite-toast__content {
    animation: sc-favorite-toast-refresh 220ms ease;
}

@keyframes sc-favorite-toast-refresh {
    from {
        opacity: 0.55;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sc-favorite-toast__image {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: #fff;
    object-fit: contain;
}

.sc-favorite-toast__content {
    min-width: 0;
    display: grid;
    gap: 3px;
    align-content: center;
}

.sc-favorite-toast__status {
    color: var(--sc-primary);
    font-size: 14px;
}

.sc-favorite-toast.is-removed .sc-favorite-toast__status {
    color: var(--sc-error);
}

.sc-favorite-toast__title {
    overflow: hidden;
    color: var(--sc-text);
    font-size: 13px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-favorite-toast__link {
    width: fit-content;
    color: var(--sc-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sc-favorite-toast__close {
    align-self: start;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--sc-text-muted);
    font-size: 22px;
    line-height: 1;
}

.sc-favorite-toast__close:hover,
.sc-favorite-toast__close:focus-visible {
    background: var(--sc-hover-bg);
    color: var(--sc-primary);
}

.sc-favorite-toast__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .sc-favorite-toast {
        top: 24px;
        right: 24px;
        left: auto;
        width: min(380px, calc(100vw - 48px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .sc-product-favorite[data-sc-favorite-button],
    .sc-favorite-toast {
        transition: none;
    }

    .sc-favorite-toast.is-refreshing .sc-favorite-toast__image,
    .sc-favorite-toast.is-refreshing .sc-favorite-toast__content {
        animation: none;
    }
}

.sc-favorites-empty {
    min-height: min(60vh, 420px);
}

.sc-favorites-empty-text {
    margin: 0;
    font-size: 16px;
}

.sc-favorites-empty .catalog-btn {
    margin-top: 4px;
}
