/* PW-581：商品頁追蹤按鈕與我的最愛追蹤版面。所有規則都限定在功能 scope 內。 */
.content-follow-button {
    display: inline-flex;
    align-items: center;
    min-width: auto;
    min-height: 24px;
    padding: 2px 8px;
    border: 1px solid #fb7100;
    border-radius: 999px;
    color: #fb7100;
    font-size: 0.75rem;
    line-height: 1.25;
    vertical-align: middle;
    white-space: nowrap;
}

.content-follow-button:hover,
.content-follow-button:focus,
.content-follow-button[data-followed="true"] {
    color: #fb7100;
    background-color: rgba(251, 113, 0, 0.11);
    border-color: #fb7100;
    text-decoration: none;
}

.content-follow-button .fa-star {
    width: auto;
    height: auto;
    font-size: 0.75rem;
}

.content-follow-button .txt {
    margin-left: 4px;
    font-size: 0.75rem;
}

.content-follow-button.disabled,
.content-follow-button[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
}

.favorite-follow-page {
    padding-bottom: 3rem;
}

.favorite-follow-tabs {
    display: flex;
    width: 100%;
    padding: 4px;
    overflow: hidden;
    background: #f1f2f3;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.favorite-follow-tab {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.favorite-follow-tab:hover,
.favorite-follow-tab:focus {
    color: #fb7100;
    text-decoration: none;
}

.favorite-follow-tab.active {
    color: #212529;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-follow-tab .badge {
    margin-left: 8px;
    color: #495057;
    background: #fff;
}

.favorite-follow-tab.active .badge {
    color: #fb7100;
    background: rgba(251, 113, 0, 0.11);
}

.favorite-follow-results {
    margin-top: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.favorite-follow-chip-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 16px 8px;
    border-bottom: 1px solid #dee2e6;
}

.favorite-follow-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0 8px 8px 0;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    color: #495057;
    background: #fff;
    font-size: 0.875rem;
    line-height: 1.2;
}

.favorite-follow-chip:hover,
.favorite-follow-chip:focus,
.favorite-follow-chip.active {
    color: #fb7100;
    border-color: #fb7100;
    background: rgba(251, 113, 0, 0.08);
    text-decoration: none;
}

.favorite-follow-chip .text-reset {
    text-decoration: none;
}

.favorite-follow-chip .close {
    margin-left: 8px;
    color: #737c86;
    font-size: 1rem;
    line-height: 1;
}

.favorite-follow-more {
    min-width: auto;
    min-height: 34px;
    margin: 0 0 8px;
    padding: 6px 10px;
    color: #495057;
}

.favorite-follow-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
}

.favorite-follow-count {
    color: #737c86;
    font-size: 0.875rem;
    font-weight: 600;
}

.favorite-follow-toolbar .class-toggleFilter-group {
    margin-left: auto;
}

.favorite-follow-toolbar .class-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.favorite-follow-products {
    padding: 8px 16px 20px;
    border-top: 1px solid #f1f2f3;
}

.favorite-follow-results .pagination {
    margin-right: 16px;
    margin-left: 16px;
}

@media (min-width: 768px) {
    /* 共用列表會在桌面版將篩選群組絕對定位；此頁需保留在結果工具列的 flex 流程中。 */
    .favorite-follow-toolbar .class-toggleFilter-group {
        position: static;
        top: auto;
        right: auto;
    }
}

@media (max-width: 640.98px) {
    .favorite-follow-tab {
        min-height: 42px;
        padding: 8px 4px;
        font-size: 0.8125rem;
    }

    .favorite-follow-tab .badge {
        margin-left: 4px;
    }

    .favorite-follow-chip-list,
    .favorite-follow-toolbar,
    .favorite-follow-products {
        padding-right: 12px;
        padding-left: 12px;
    }

    .favorite-follow-toolbar .class-toggleFilter-group {
        width: 100%;
        margin-left: 0;
    }

    .favorite-follow-toolbar .class-filter {
        justify-content: flex-end;
    }
}
