/* Native listing entitlement markers only. Covers, titles and listing data stay unchanged. */
.listing-preview .lf-item.gmb-ribbon-card {
    box-sizing: border-box;
    border-top: 4px solid #ffcc00;
}
.listing-preview .lf-head {
    left: 4px !important;
    right: 4px !important;
    width: auto !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.listing-preview .lf-head.gmb-ribbon-head {
    left: 0 !important;
    min-height: 32px;
}
.listing-preview .lf-head.gmb-ribbon-head > .tooltip-element:has(> .gmb-listing-ribbon),
.listing-preview .lf-head.gmb-ribbon-head > .gmb-listing-ribbon {
    order: 0;
    flex: 0 0 auto;
    margin: 0 auto 0 0;
}
.listing-preview .lf-head.gmb-ribbon-head > .lf-head-btn:not(.ad-badge) {
    order: 1;
    flex: 0 0 auto;
}
.listing-preview .lf-head .ad-badge.gmb-listing-ribbon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    height: 24px !important;
    min-height: 0 !important;
    padding: 0 18px 0 10px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffcc00 !important;
    color: #1e1e1e !important;
    box-shadow: none !important;
    transform: none !important;
    clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%);
    white-space: nowrap;
}
.listing-preview .lf-head .ad-badge.gmb-listing-ribbon::before,
.listing-preview .lf-head .ad-badge.gmb-listing-ribbon::after,
.listing-preview .lf-head .ad-badge.gmb-listing-ribbon > :not(.gmb-ribbon-label) {
    display: none !important;
}
.listing-preview .lf-head .ad-badge.gmb-listing-ribbon > .gmb-ribbon-label {
    position: static !important;
    display: inline !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #1e1e1e !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 24px !important;
    letter-spacing: .025em;
    text-transform: none !important;
    text-shadow: none !important;
    transform: none !important;
}
/* Direct AJAX badges need the same left anchor as tooltip-wrapped badges. */
.listing-preview .lf-head.gmb-ribbon-head > .ad-badge.gmb-listing-ribbon {
    margin-right: auto !important;
}
/* Keep Featured distinct from the paid Promoted marker. */
.listing-preview .lf-head.level-featured .ad-badge.gmb-listing-ribbon {
    background: #30343b !important;
    color: #ffcc00 !important;
}
.listing-preview .lf-head.level-featured .ad-badge.gmb-listing-ribbon > .gmb-ribbon-label {
    color: #ffcc00 !important;
}
