.favorite-action-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
    gap: 8px 10px;
    flex-wrap: wrap;
    margin: 1em 0;
}

.favorite-action-row > .share_url {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.favorite-toggle-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0;
    padding: 7px 14px;
    border: 1px solid rgba(217, 79, 117, .36);
    border-radius: 999px;
    color: #d94f75;
    background: rgba(255, 240, 245, .92);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(217, 79, 117, .12);
    transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.favorite-toggle-button:hover,
.favorite-toggle-button:focus-visible {
    color: #c33161;
    border-color: rgba(195, 49, 97, .58);
    background: #fff0f5;
    box-shadow: 0 7px 18px rgba(217, 79, 117, .20);
    outline: none;
    text-decoration: none;
    transform: translateY(-1px);
}

.favorite-toggle-button[aria-pressed="true"] {
    color: #bd2857;
    border-color: rgba(195, 49, 97, .48);
    background: #ffe4ee;
}

.favorite-toggle-button:disabled {
    opacity: .72;
    cursor: default;
    text-decoration: none;
    transform: none;
}

.favorite-filter-hidden,
.favorite-card-hidden,
.favorite-source-card-hidden,
.favorite-search-hidden {
    display: none !important;
}

.favorite-results-card {
    margin: 0 0 16px;
    overflow: hidden;
    border: 1px solid rgba(229, 72, 115, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 30px rgba(229, 72, 115, .10);
}

.favorite-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px dashed rgba(229, 72, 115, .22);
    background: linear-gradient(90deg, rgba(255, 239, 245, .96), rgba(255, 255, 255, .96));
}

.favorite-results-title {
    margin: 0;
    color: #c33161;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.favorite-results-count {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    color: #c33161;
    background: rgba(229, 72, 115, .10);
    font-size: 12px;
    font-weight: 800;
}

.favorite-results-body {
    padding: 0 16px 12px;
}

.favorite-results-table {
    margin: 0 !important;
}

.favorite-results-card.is-empty .favorite-results-table {
    display: none;
}

.favorite-filter-active #frontendSearchEmpty {
    display: none !important;
}

#frontendShopTools .frontend-shop-search {
    flex: 1 1 320px;
    min-width: 0;
    max-width: 520px;
}

.favorite-search-entry {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    min-width: 116px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid rgba(229, 72, 115, .30);
    border-radius: 999px;
    color: #c33161;
    background: rgba(255, 239, 245, .96);
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(229, 72, 115, .13);
    transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.favorite-search-entry:hover,
.favorite-search-entry:focus-visible {
    color: #b92554;
    border-color: rgba(195, 49, 97, .52);
    background: #ffeaf1;
    box-shadow: 0 9px 20px rgba(229, 72, 115, .20);
    outline: none;
    transform: translateY(-1px);
}

.favorite-search-heart {
    color: #e54873;
    font-size: 16px;
    line-height: 1;
}

.favorite-search-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    color: #d83f6a;
    background: rgba(229, 72, 115, .12);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.favorite-search-entry.is-favorite-current {
    color: #fff;
    border-color: #e54873;
    background: linear-gradient(135deg, #ef5e88, #d83f6a);
    box-shadow: 0 9px 20px rgba(216, 63, 106, .24);
}

.favorite-search-entry.is-favorite-current .favorite-search-heart,
.favorite-search-entry.is-favorite-current .favorite-search-count {
    color: #fff;
}

.favorite-search-entry.is-favorite-current .favorite-search-count {
    display: none;
}

.favorite-filter-active #dreamDesktopCategoryTree .dream-category-link.is-current:not([data-favorite-entry]),
.favorite-filter-active #dreamMobileCategoryTree .dream-category-link.is-current:not([data-favorite-entry]) {
    border-color: transparent;
    color: #435574;
    background: transparent;
    box-shadow: none;
}

.favorite-empty-state {
    margin: 14px 0 18px;
    padding: 22px 18px;
    border: 1px dashed rgba(229, 72, 115, .28);
    border-radius: 12px;
    color: #6f6170;
    background: rgba(255, 247, 250, .92);
    text-align: center;
}

.favorite-empty-state-title {
    margin: 0;
    color: #c33161;
    font-size: 16px;
    font-weight: 800;
}

.favorite-empty-state-text {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.6;
}

.favorite-live-status {
    position: fixed;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (min-width: 360px) {
    .favorite-action-row {
        flex-wrap: nowrap;
    }
}

@media (max-width: 359.98px) {
    .favorite-action-row {
        align-items: flex-start;
    }

    .favorite-toggle-button {
        margin-left: 0;
        padding-right: 12px;
        padding-left: 12px;
    }

    .favorite-results-header {
        padding: 12px 14px;
    }

    .favorite-results-body {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (max-width: 768px) {
    #frontendShopTools .frontend-shop-search {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    .favorite-search-entry {
        min-width: 104px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 13px;
    }
}
