.rp-card__photo { position: relative; }
.rp-price-trend[hidden], .rp-trend-detail[hidden] { display: none !important; }
.rp-price-trend { position: absolute; top: 10px; left: 10px; z-index: 1; }
.rp-trend-button {
    display: inline-flex; align-items: center; gap: 7px; min-height: 36px;
    padding: 5px 9px; border: 0; border-radius: 6px;
    background: #e8f3ec; color: #215840; cursor: pointer;
    font: 650 14px/1.2 system-ui, sans-serif; font-variant-numeric: tabular-nums;
}
.rp-trend-button--up { color: #a82333; background: #fbecef; }
.rp-trend-button svg { width: 30px; height: 24px; flex: none; fill: currentColor; }
.rp-trend-button:hover { background: #d6ebde; }
.rp-trend-button--up:hover { background: #f6dce2; }
.rp-trend-button:focus-visible, .rp-trend-close:focus-visible { outline: 2px solid #501e30; outline-offset: 3px; }
.rp-trend-detail {
    position: fixed; z-index: 10000; width: min(288px, calc(100vw - 24px));
    box-sizing: border-box; padding: 18px; border-radius: 8px;
    background: #fffdfa; color: #24191c; box-shadow: 0 6px 24px rgb(36 25 28 / 20%);
    font: 14px/1.5 system-ui, sans-serif; text-align: left;
}
.rp-trend-detail strong { display: block; padding-right: 24px; font-size: 15px; }
.rp-trend-detail dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 12px 0; }
.rp-trend-detail dt, .rp-trend-detail dd { margin: 0; }
.rp-trend-detail dd { font-weight: 650; font-variant-numeric: tabular-nums; }
.rp-trend-detail p { margin: 8px 0 0; color: #645351; font-size: 12px; line-height: 1.5; }
.rp-trend-close { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: #501e30; cursor: pointer; border-radius: 6px; }
.rp-trend-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 599px) {
    .rp-price-trend { top: 6px; left: 6px; }
    .rp-trend-button { min-height: 40px; padding: 5px 7px; gap: 5px; font-size: 12px; }
    .rp-trend-button svg { width: 25px; height: 20px; }
}
