.bookplus-recently-viewed {
    --bp-rv-primary: var(--bp-brand-primary, #004497);
    --bp-rv-dark: var(--bp-brand-primary-dark, #003776);
    --bp-rv-accent: var(--bp-brand-accent, #ff7417);
    --bp-rv-line: #e5e7eb;
    --bp-rv-muted: #62666d;
    width: min(100% - 32px, 1520px);
    margin: 26px auto 64px;
    color: #202124;
    font-family: var(--bp-font-sans);
}

.bookplus-recently-viewed * {
    box-sizing: border-box;
}

.bookplus-recently-head {
    display: flex;
    gap: 14px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 14px;
}

.bookplus-recently-head span {
    display: inline-flex;
    width: max-content;
    border-radius: 999px;
    background: rgba(255, 116, 23, .1);
    color: var(--bp-rv-accent);
    font-size: 12px;
    font-weight: 850;
    padding: 7px 11px;
}

.bookplus-recently-head h2 {
    margin: 9px 0 0;
    color: #16171a;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.12;
    font-weight: 850;
}

.bookplus-recently-head p {
    max-width: 420px;
    margin: 0;
    color: var(--bp-rv-muted);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 650;
}

.bookplus-recently-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 292px));
    justify-content: start;
    gap: 16px;
}

.bookplus-recently-card {
    overflow: hidden;
    border: 1px solid var(--bp-rv-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bookplus-recently-card:hover {
    transform: translateY(-2px);
    border-color: #ccd4df;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .1);
}

.bookplus-recently-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef2f7;
}

.bookplus-recently-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .24s ease;
}

.bookplus-recently-card:hover .bookplus-recently-image img {
    transform: scale(1.035);
}

.bookplus-recently-image em {
    position: absolute;
    left: 10px;
    top: 10px;
    border-radius: 999px;
    background: var(--bp-success, #14883e);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
    padding: 6px 8px;
}

.bookplus-recently-body {
    padding: 13px;
}

.bookplus-recently-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    color: #4c5967;
    font-size: 12px;
    font-weight: 800;
}

.bookplus-recently-meta > span + span::before {
    content: "•";
    margin-right: 8px;
    color: #9aa1aa;
}

.bookplus-recently-rating {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    color: inherit;
    white-space: nowrap;
}

.bookplus-recently-rating-score {
    color: var(--bp-brand-accent, #F47A20);
    font-weight: 850;
}

.bookplus-recently-rating-count {
    color: var(--bp-brand-accent, #F47A20);
    font-weight: 750;
}

.bookplus-recently-rating-count::before {
    content: "·";
    margin-right: 5px;
    color: var(--bp-brand-accent, #F47A20);
}

.bookplus-recently-body h3 {
    min-height: 42px;
    margin: 8px 0 0;
    color: #1f2024;
    font-size: 15px;
    line-height: 1.34;
    font-weight: 850;
}

.bookplus-recently-body h3 a {
    color: inherit;
    text-decoration: none;
}

.bookplus-recently-foot {
    display: flex;
    gap: 10px;
    align-items: end;
    justify-content: space-between;
    margin-top: 13px;
}

.bookplus-recently-foot span,
.bookplus-recently-foot del {
    display: block;
    color: #6b7280;
    font-size: 11px;
    font-weight: 750;
}

.bookplus-recently-foot strong {
    display: block;
    color: #16171a;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 900;
}

.bookplus-recently-foot a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--bp-rv-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    padding: 0 12px;
    text-decoration: none;
    white-space: nowrap;
}

.bookplus-recently-foot a:hover {
    background: var(--bp-rv-dark);
    color: #fff;
}

@media (max-width: 767px) {
    .bookplus-recently-viewed {
        width: min(100% - 24px, 1520px);
        margin-top: 20px;
        margin-bottom: 48px;
    }

    .bookplus-recently-head {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .bookplus-recently-head p {
        font-size: 13px;
    }

    .bookplus-recently-strip {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin-right: -12px;
        padding-bottom: 4px;
    }

    .bookplus-recently-strip::-webkit-scrollbar {
        display: none;
    }

    .bookplus-recently-card {
        flex: 0 0 76%;
        scroll-snap-align: start;
    }

    .bookplus-recently-foot {
        align-items: start;
        flex-direction: column;
    }

    .bookplus-recently-foot a {
        width: 100%;
    }
}
