/* Избранное контрагента (TMD-122) */

.favStar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    cursor: pointer;
    vertical-align: middle;
    user-select: none;
}

.favStar svg {
    display: block;
    fill: none;
    stroke: #f5b301;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.favStar.favStarOn svg {
    fill: #f5b301;
}

.favStar:focus-visible {
    outline: 2px solid #f5b301;
    outline-offset: 1px;
    border-radius: 3px;
}

.favStar.favStarPending {
    cursor: progress;
    opacity: .5;
}

/* Табличные строки: звезда справа от текста описания */
.favDescription {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.favMarkedBy {
    margin-top: 4px;
    font-size: 12px;
    color: #777;
}

/* Плитка: правый верхний угол, не поверх изображения */
.favTileItem {
    position: relative;
}

.favTileItem .favStarTileWrap {
    display: flex;
    justify-content: flex-end;
    min-height: 24px;
}

/* Карточка товара: в строке заголовка, справа от бренда и артикула */
.favStar.favStarTitle {
    margin-left: 8px;
}

.favStar.favStarTitle svg {
    width: 24px;
    height: 24px;
}

.favUnavailable {
    color: #777;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
}

.price_block.favUnavailable {
    padding: 12px 0;
}

.favEmpty {
    margin: 20px 0;
}

/* Шапка: слева от корзины, счётчик в скобках как у корзины */
.headFavorites,
.favoritesMobile {
    display: flex;
    align-items: center;
}

.headFavorites {
    margin-right: 12px;
}

@media (max-width: 991px) {
    .headFavorites {
        display: none;
    }
}

.favHeaderLink {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
}

.favHeaderLink svg {
    display: block;
    fill: none;
    stroke: #f5b301;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

/* Десктоп: как корзина и профиль — иконка сверху, подпись снизу */
.favHeaderLinkDesktop {
    padding: 30px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #1e1e1e;
    text-align: center;
    text-decoration: underline;
}

.favHeaderLinkDesktop:hover {
    color: #383838;
}

.favHeaderLinkDesktop svg {
    position: absolute;
    top: -3px;
    left: 50%;
    margin-left: -15px;
}

/* Мобильная шапка: крупная звезда и бейдж-счётчик, как у корзины */
.favHeaderLinkMobile {
    width: 46px;
    height: 40px;
}

.favHeaderLinkMobile svg {
    position: absolute;
    top: 4px;
    left: 4px;
}

.favHeaderLinkMobile .favHeaderCount {
    position: absolute;
    right: 0;
    top: -2px;
    height: 18px;
    line-height: 18px;
    padding: 0 5px;
    background: #fb4741;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.tmCartDeleteDialogWrap .ui-dialog-buttonset {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
