.favorite-page {
    margin: 16px 0 48px;
}

.favorite-page .title {
    margin-bottom: 24px;
}

/* Tabs reproduced from the favourites MHTML reference. */
.favorite-page .tab-head {
    display: flex;
    align-items: flex-end;
    position: relative;
    height: 50px;
    margin-bottom: -1px;
    padding-left: 0;
    overflow: visible;
    border: 0;
}

.favorite-page .tab-head::after {
    display: none;
}

.favorite-page .tab-head .tab-head__btn,
.favorite-page .tab-head .tab-head__btn:hover {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 15px;
    margin: 0;
    border: 1px solid #e4e4e4;
    border-right: 0;
    border-bottom-color: transparent;
    border-radius: 0;
    background: #fff;
    color: #3f3f3f;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    white-space: nowrap;
    transform: none;
    clip-path: none;
}

.favorite-page .tab-head .tab-head__btn:first-child,
.favorite-page .tab-head .tab-head__btn:first-child:hover {
    border-radius: 8px 0 0;
}

.favorite-page .tab-head .tab-head__btn:last-child,
.favorite-page .tab-head .tab-head__btn:last-child:hover {
    border-right: 1px solid #e4e4e4;
    border-radius: 0 8px 0 0;
}

.favorite-page .tab-head .tab-head__btn::before {
    display: none !important;
}

.favorite-page .tab-head .tab-head__btn::after {
    content: "";
    position: absolute;
    top: 90%;
    left: 1px;
    z-index: 2;
    width: calc(100% - 2px);
    height: 20px;
    background: #fff;
}

@media (any-hover: hover) and (pointer: fine) {
    .favorite-page .tab-head .tab-head__btn:hover {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

.favorite-page  .tab-head .tab-head__btn:not(.active):hover {

    clip-path: none ;
}

.favorite-page .tab-head .tab-head__btn.active,
.favorite-page .tab-head .tab-head__btn.active:hover {
    z-index: 2;
    padding: 13px 23px !important;
    border-radius: 8px 8px 0 0 !important;
    color: #282828;
    transform: none;
}

.favorite-page .tab-head .tab-head__btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    margin: 0 0 0 6px;
    padding: 0 4px;
    border-radius: 12px;
    background: #e43a2d;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
}

.favorite-page .favorit__wrap {
    padding: 32px;
    border: 1px solid #e4e4e4;
    border-radius: 0 8px 8px;
    background: #fff;
}

.favorite-page__content {
    padding-top: 0;
}

.favorite-page .favorite-group[hidden] {
    display: none !important;
}

.favorite-card__image-placeholder {
    min-height: 210px;
    background: #f5f5f5;
}

.favorite-page__empty {
    padding: 40px 0;
    color: #707070;
    font-size: 18px;
}

@media (max-width: 767px) {
    .favorite-page {
        margin: 0 0 20px;
        padding-top: 0;
    }

    .favorite-page .container {
        padding-inline: 0;
    }

    .favorite-page__title-container {
        padding-inline: 20px;
    }

    .favorite-page .tab-head {
        height: 40px;
        margin-bottom: 0;
        padding-top: 44px;
        padding-left: 20px;
        overflow: auto hidden;
        align-items: flex-end;
    }

    .favorite-page .tab-head .tab-head__btn,
    .favorite-page .tab-head .tab-head__btn:hover {
        flex: 0 0 auto;
        min-height: 0;
        padding: 4px 15px;
        font-size: 14px;
        line-height: 20px;
        transition: all;
    }

    .favorite-page .tab-head .tab-head__btn.active,
    .favorite-page .tab-head .tab-head__btn.active:hover {
        padding: 9px 24px 10px !important;
    }

    .favorite-page .favorit__wrap {
        padding: 20px;
        border-radius: 0;
    }
    .favorite-page .title {
        margin-top: 20px;
    }
}
