/* Favourites — heart state, list picker, and the favourites page. */

.add-to-wishlist {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    line-height: 0;
    display: inline-flex;
}

.add-to-wishlist.is-busy { opacity: .5; pointer-events: none; }

/* Outline heart that fills in once saved. */
.add-to-wishlist svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: #f0607f;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill .15s ease, transform .15s ease;
}

.add-to-wishlist:hover svg { transform: scale(1.12); }
.add-to-wishlist.is-saved svg { fill: #f0607f; }
.add-to-wishlist:focus-visible { outline: 2px solid #f0607f; outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- picker */

.swp-fav-picker {
    position: absolute;
    z-index: 9999;
    width: 260px;
    background: #fff;
    border: 1px solid #e6e0da;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(20,20,20,.08), 0 24px 48px -24px rgba(20,20,20,.45);
    padding: 14px 0 12px;
    font-size: 14px;
}

.swp-fav-picker-head {
    padding: 0 16px 10px;
    font-weight: 700;
    color: #2a2a2a;
    border-bottom: 1px solid #f0ebe6;
}

.swp-fav-picker-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 240px;
    overflow-y: auto;
}

.swp-fav-picker-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

.swp-fav-picker-list label:hover { background: #faf7f4; }
.swp-fav-picker-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swp-fav-picker-count { color: #9a938c; font-size: 12px; }

.swp-fav-picker-new {
    display: flex;
    gap: 6px;
    padding: 10px 16px 0;
    border-top: 1px solid #f0ebe6;
}

.swp-fav-picker-new input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #e6e0da;
    border-radius: 8px;
    font-size: 13px;
}

.swp-fav-picker-new button {
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: #2a2a2a;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.swp-fav-picker-new button:hover { background: #f0607f; }

/* ----------------------------------------------------------------- toast */

.swp-fav-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(12px);
    background: #2a2a2a;
    color: #fff;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.swp-fav-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ------------------------------------------------------------------ page */

.swp-fav-page { padding: 40px 0 80px; }
.swp-fav-page h1 { font-size: 34px; margin: 0 0 6px; }
.swp-fav-intro { color: #6b625c; margin: 0 0 28px; }

.swp-fav-boards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
    padding: 0 0 22px;
    border-bottom: 1px solid #ece7e2;
    list-style: none;
}

.swp-fav-board-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #e6e0da;
    border-radius: 999px;
    text-decoration: none;
    color: #2a2a2a;
    font-size: 14px;
}

.swp-fav-board-tab.is-active { background: #2a2a2a; color: #fff; border-color: #2a2a2a; }
.swp-fav-board-tab span { font-size: 12px; opacity: .65; }

.swp-fav-empty {
    padding: 50px 0;
    text-align: center;
    color: #6b625c;
}

.swp-fav-empty a { color: #f0607f; }

.swp-fav-newboard { display: flex; gap: 8px; margin: 0 0 26px; }
.swp-fav-newboard input {
    padding: 10px 14px; border: 1px solid #e6e0da; border-radius: 999px; font-size: 14px; min-width: 220px;
}
.swp-fav-newboard button {
    padding: 10px 20px; border: 0; border-radius: 999px; background: #2a2a2a; color: #fff; cursor: pointer; font-size: 14px;
}
.swp-fav-newboard button:hover { background: #f0607f; }

.swp-fav-delete {
    background: none; border: 0; color: #b3a9a1; cursor: pointer; font-size: 13px; text-decoration: underline;
}
.swp-fav-delete:hover { color: #d24b4b; }
