/* Quiet view total on its own line, directly above the Gift button. */
html body .cotinder-feed-gift:has(> .cotinder-views) {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
}

html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post > .card.user-slide > .cotinder-feed-gift:has(> .cotinder-views),
html body .cotinder-index-feed .index__post > .card.user-slide > .cotinder-feed-gift:has(> .cotinder-views),
html body .another-pet .index__post > .card.user-slide > .cotinder-feed-gift:has(> .cotinder-views),
html body .post-public-page .cotinder-feed-gift:has(> .cotinder-views) {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
}

.cotinder-feed-gift > .cotinder-views,
.cotinder-views--above-gift {
    position: static !important;
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    align-self: flex-start !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 0 2px 2px;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    flex: 0 0 auto !important;
    order: -1;
}

.post__text_bottom:has(> .cotinder-views) {
    position: relative;
    padding-bottom: 28px;
}

.post__text_bottom > .cotinder-views {
    position: absolute;
    left: 20px;
    bottom: 6px;
    margin: 0;
}

.card-stars__wrapper > .cotinder-stars-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
}

.cotinder-stars-col > .cotinder-views--under-stars {
    position: static !important;
    display: inline-flex !important;
    align-self: flex-start !important;
    width: auto !important;
    max-width: 100%;
    margin: 4px 0 0 !important;
    order: 0;
    color: #3d3d3d !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
}

.cotinder-stars-col > .cotinder-views--under-stars svg {
    width: 14px;
    height: 14px;
}

html body .card .card-stars__wrapper:has(> .cotinder-stars-col) {
    max-height: none !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    align-items: center !important;
}

.cotinder-views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #9a9a9a;
    font-size: 11px;
    line-height: 14px;
    font-weight: 400;
    white-space: nowrap;
    pointer-events: none;
}

.cotinder-views svg {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    display: block;
}

@media (max-width: 480px) {
    .post__text_bottom > .cotinder-views {
        left: 10px;
    }
}

/* PC ≥1200: a view chip left in the rating row must drop under the stars, not sit beside them. */
@media (min-width: 1200px) {
    html body .card-stars__wrapper:has(> .cotinder-views) {
        flex-wrap: wrap !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        align-items: center !important;
        row-gap: 4px !important;
    }

    html body .card-stars__wrapper > .cotinder-views {
        flex: 1 0 100% !important;
        order: 5 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 2px 0 0 !important;
        justify-content: flex-start !important;
    }
}
