.top-posts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 1.25rem;
}

.top-posts-headline {
    flex: 1;
    flex-basis: 45%;
    margin: 0;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.top-posts-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0.25rem 0.5rem;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    color: var(--wp--preset--color--monza);
    background-color: #fbe0e5;
    border-radius: 5px;
}

.top-posts-label p {
    margin: 0;
}

.top-posts-items {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-posts-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #dfe3e7;
    border-radius: 5px;
    padding: 12px;
}

.top-posts-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.25rem;
}

.top-posts-content h5 {
    margin: 0;
    font-size: 1.125rem;
    line-height: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-posts-image-wrapper {
    background-color: var(--wp--preset--color--cyan-bluish-gray);
    width: 80px;
    height: 48px;
    border-radius: 3px;
    overflow: hidden;
}

.top-posts-image-wrapper img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.top-posts-rating-wrapper {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    gap: 0.25rem;
    width: 100%;
}

.top-posts .top-posts-label svg,
.top-posts .top-posts-rating-wrapper svg {
    width: 1rem;
}

.top-posts-button-wrapper {
    width: 36px;
    height: 36px;
    background-color: var(--wp--preset--color--monza);
    color: #ffffff;
    border-radius: 5px;
    display: grid;
    place-content: center;
}
.top-posts .top-posts-button-wrapper svg {
    width: 1.75rem;
}

/* --- compact version --- */
.top-posts-compact .top-posts-headline {
    font-size: 18px;
}

.top-posts-compact .top-posts-item {
    padding: 0.5rem;
    gap: 0.75rem;
}

.top-posts-compact .top-posts-image-wrapper {
    width: 48px;
}

.top-posts-compact .top-posts-content h5 {
    font-size: 1rem;
}

.top-posts-compact .top-posts-rating-wrapper {
    display: none;
}
