/* «Хочу прочитать»: кнопка в шапке, кнопка в карточке книги, страница списка, строка доверия под вступлением. */

/* ---------- шапка ---------- */
.navbar-want-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 16px;
    color: #222228;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222228' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h11a1 1 0 0 1 1 1V20l-6.5-4.2L5.5 20V4.5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.navbar-want-btn:hover,
.navbar-want-btn:focus-visible {
    opacity: .75;
}

.navbar-want-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #222228;
    background: #CAEF63;
    border-radius: 9px;
}

.navbar-want-count[hidden] {
    display: none;
}

@media (min-width: 1200px) {
    .navbar-want-btn {
        margin-right: 0;
        margin-left: 16px;
    }
}

/* ---------- кнопка в карточке книги ---------- */
.book-card-secondary {
    display: flex;
    flex-wrap: wrap;
    margin-top: 12px;
}

.book-card-secondary .book-want-btn,
.picker-card-secondary .book-want-btn,
.picker-card-main .book-want-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 600;
    color: #222228;
    background: transparent;
    border: 1.5px solid rgba(34, 34, 40, 0.25);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

.book-want-btn:hover {
    background: #F0F1F9;
    border-color: #222228;
}

.book-want-btn::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222228' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h11a1 1 0 0 1 1 1V20l-6.5-4.2L5.5 20V4.5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.book-want-btn.is-saved {
    background: #E4F6B0;
    border-color: #222228;
}

.book-want-btn.is-saved::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23222228' stroke='%23222228' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h11a1 1 0 0 1 1 1V20l-6.5-4.2L5.5 20V4.5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.book-want-msg {
    flex-basis: 100%;
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 18px;
    color: #8a2f2f;
}

/* ---------- страница списка ---------- */
.want-note {
    max-width: 640px;
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 24px;
    color: #4a4a55;
}

.want-list {
    max-width: 760px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.want-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #ECECF4;
}

.want-cover {
    flex: 0 0 auto;
    width: 64px;
    height: 96px;
    overflow: hidden;
    background: #F0F1F9;
    border-radius: 6px;
}

.want-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.want-cover-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 6px;
    font-size: 11px;
    line-height: 13px;
    text-align: center;
    color: #4a4a55;
    overflow: hidden;
}

.want-body {
    flex: 1;
    min-width: 0;
}

.want-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 23px;
    overflow-wrap: anywhere;
}

.want-author {
    margin-top: 2px;
    font-size: 14px;
    line-height: 20px;
    color: #6b6b78;
}

.want-source {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #222228;
    text-decoration: underline;
    text-decoration-color: #CAEF63;
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

.want-remove {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #222228;
    background: transparent;
    border: 1.5px solid rgba(34, 34, 40, 0.25);
    border-radius: 999px;
    cursor: pointer;
}

.want-remove:hover {
    background: #F0F1F9;
    border-color: #222228;
}

.want-empty {
    max-width: 560px;
    padding: 28px;
    background: #F0F1F9;
    border-radius: 24px;
}

.want-empty-title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 28px;
}

.want-empty-text {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 24px;
    color: #4a4a55;
}

.want-btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 600;
    color: #222228;
    text-decoration: none;
    background: #CAEF63;
    border-radius: 999px;
}

.want-btn:hover {
    color: #222228;
    text-decoration: none;
    background: #BDE352;
}

@media (max-width: 575px) {
    .want-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .want-body {
        flex-basis: calc(100% - 80px);
    }

    .want-remove {
        margin-left: 80px;
    }
}

/* ---------- строка «Проверено / Сообщить об ошибке» ---------- */
.collection-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 20px;
    color: #6b6b78;
}

.collection-trust a {
    color: #4a4a55;
    text-decoration: underline;
    text-decoration-color: rgba(34, 34, 40, 0.3);
    text-underline-offset: 3px;
}

.collection-trust a:hover {
    color: #222228;
    text-decoration-color: #222228;
}

/* ---------- сведения о книге (рядом с автором) ---------- */
.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.book-tag {
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    color: #4a4a55;
    background: #F0F1F9;
    border-radius: 10px;
}

@media (max-width: 767.98px) {
    .book-card-secondary .book-want-btn,
.picker-card-secondary .book-want-btn,
.picker-card-main .book-want-btn {
        width: 100%;
        justify-content: center;
    }
}
