.modown-offer-filters{clear:both;background:#fff;border-radius:var(--theme-radius,5px);padding:16px 20px;margin:0 0 24px;box-shadow:0 0 15px rgba(0,0,0,.04);font-size:14px;}
.modown-offer-filter-row{display:flex;align-items:baseline;gap:20px;}
.modown-offer-filter-row + .modown-offer-filter-row{margin-top:10px;}
.modown-offer-filter-row > span{flex:0 0 32px;color:#888;}
.modown-offer-filter-row > div{display:flex;flex-wrap:wrap;gap:6px 12px;}
.modown-offer-filter-row a{display:inline-block;padding:4px 12px;border-radius:4px;color:#555;line-height:1.7;white-space:nowrap;}
.modown-offer-filter-row a:hover,.modown-offer-filter-row a.active{background:var(--theme-color,#ff5f33);color:#fff;}
.modown-offer-empty{clear:both;padding:30px 20px;text-align:center;color:#888;}
.modown-offer-match{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0;font-size:12px;line-height:19px;}
.modown-offer-match-label{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#777;}
.modown-offer-match-price{flex-shrink:0;background:#000;color:#fff;border-radius:2px;padding:0 4px;white-space:nowrap;}
.grids .grid .con > h3{text-align:center;}
.erphpdown-box .erphpdown-child .erphpdown-child-title,
.erphpdown-box-default .erphpdown-child .erphpdown-child-title{background:#000;color:#fff;}
.post:has(.modown-offer-match) .cat .price,.post:has(.modown-offer-match) .grid-meta .price,.post:has(.modown-offer-match) .list-meta .price{display:none!important;}
.grids .grid .con:has(> .modown-offer-match){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;grid-template-rows:auto minmax(35px,1fr) auto auto auto auto;}
.grids .grid .con:has(> .modown-offer-match) > .tag{grid-area:1 / 1 / 2 / 3;}
.grids .grid .con:has(> .modown-offer-match) > h3{grid-area:2 / 1 / 3 / 3;align-self:center;}
.grids .grid .con:has(> .modown-offer-match) > .excerpt{grid-area:3 / 1 / 4 / 3;}
.grids .grid .con:has(> .modown-offer-match) > .grid-meta{grid-area:4 / 1 / 5 / 3;}
.grids .grid .con:has(> .modown-offer-match) > .cat{grid-area:5 / 1 / 6 / 2;min-width:0;}
.grids .grid .con > .modown-offer-match{grid-area:5 / 2 / 6 / 3;order:5;}
.grids .grid .con:has(> .modown-offer-match) > .grid-author{grid-area:6 / 1 / 7 / 3;}
.lists .post .modown-offer-match,.grids .list .modown-offer-match{margin-top:6px;}
body.night .modown-offer-filters{background:#1b1b1b;}
body.night .modown-offer-filter-row a,body.night .modown-offer-match-label{color:#bbb;}
body.night .modown-offer-filter-row a.active{color:#fff;}
@media(max-width:480px){
    .modown-offer-filters{padding:12px;margin-bottom:18px;font-size:13px;}
    .modown-offer-filter-row{gap:8px;}
    .modown-offer-filter-row > div{gap:4px;}
    .modown-offer-filter-row a{padding:3px 8px;}
    /* Keep mobile article tags on one line without appending an ellipsis. */
    .grids .grid .tag{display:block;overflow:hidden;text-overflow:clip;-o-text-overflow:clip;white-space:nowrap;-webkit-line-clamp:initial;-webkit-box-orient:initial;}
    .grids .grid .con:has(> .modown-offer-match){grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:6px;}
    .grids .grid .con:has(> .modown-offer-match) > .cat{grid-area:5 / 1 / 6 / 2;}
    .grids .grid .con > .modown-offer-match{grid-area:5 / 2 / 6 / 3;justify-content:flex-end;margin-top:0;min-width:0;}
    .grids .grid .con > .modown-offer-match-label{min-width:0;}
    .grids .grid .con:has(> .modown-offer-match) > .grid-author{grid-area:7 / 1 / 8 / 3;}
}
