#masthead .r78-favorites-header > button {
    position: relative;
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 4px;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
}
.r78-favorites-heart, .r78-favorites-heart-selected {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
}
#masthead [data-r78-favorites-count]:not([hidden]) {
    position: absolute;
    top: 4px;
    right: 0;
    min-width: 14px;
    padding: 2px;
    border-radius: 15px;
    background: #252525;
    color: white;
    font-size: 10px;
}
.product-summary .r78-favorite-toggle {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    line-height: 1;
    border: 0;
    border-radius: 50%;
    color: #333;
    background: transparent;
}

.product-small .box-image .container-image-and-badge > .room78-product-badge {
    left: 8px;
    right: auto;
}

.product-small .col-inner:has(> .badge-container .onsale) .box-image .room78-product-badge {
    top: 48px;
}
.r78-favorite-toggle:focus-visible {
    outline: 2px solid #333;
    outline-offset: 3px;
}
.r78-favorite-toggle:not([aria-pressed="true"]) .r78-favorites-heart-selected,
.r78-favorite-toggle[aria-pressed="true"] .r78-favorites-heart { display: none; }
.r78-favorites-heart-selected { color: #ce2526; }
.product-small .razmer-text-min { display: none; }

.r78-tile-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    min-height: 26px;
    margin-bottom: 6px;
    color: #262626;
}

.r78-tile-sizes > span {
    padding: 2px 5px;
    border: 1px solid #dedad6;
    border-radius: 3px;
    background: #fff;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
    .r78-tile-sizes { opacity: 0; }
    .product-small:is(:hover, :focus-within) .r78-tile-sizes { opacity: 1; }
}

#r78-favorites {
    width: min(480px, calc(100% - 24px));
    max-height: min(640px, calc(100% - 24px));
    border: 0;
    padding: 16px 20px;
    color: #252525;
    background: white;
    border-radius: 4px;
    overflow: auto;
}
#r78-favorites::backdrop { background: rgb(0 0 0 / 55%); }
.r78-favorites-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e2e2e2;
    margin-bottom: 12px;
}
.r78-favorites-heading h2, .r78-favorites-heading form { margin: 0; }
#r78-favorites button {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    color: #333;
    background: transparent;
    border: 0;
    font-size: 25px;
}
#r78-favorites ul { list-style: none; margin: 0; }
#r78-favorites li {
    display: flex;
    align-items: center;
    min-height: 68px;
    gap: 12px;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #e2e2e2;
}
#r78-favorites li a { flex: 1; overflow-wrap: anywhere; }
#r78-favorites img { width: 58px; height: 50px; object-fit: contain; flex: none; }
