.price-ranking{list-style:none;margin:0;padding:0}.price-ranking li{display:grid;grid-template-columns:30px minmax(0,1fr) minmax(130px,auto);gap:12px;align-items:center;border-top:1px solid var(--line);padding:12px 0}.price-ranking li>a{display:flex;align-items:center;gap:12px;min-width:0;text-decoration:none}.price-ranking strong,.price-ranking small{display:block;overflow-wrap:anywhere}.price-rank-image{width:50px;height:70px;object-fit:contain;flex:none}.price-rank-number{font-weight:800;text-align:center}.price-rank-amount{font-weight:700;text-align:right;color:var(--teal)}.price-rank-amount small{font-weight:400;font-size:12px}.price-rank-unavailable{opacity:.6}.bargain-row{display:grid;grid-template-columns:70px minmax(0,1fr);gap:16px;border-top:1px solid var(--line);padding:18px 0}.bargain-image{width:70px;height:98px;object-fit:contain}.bargain-row h2{font-size:18px;margin-bottom:4px}.bargain-row small{display:block}.bargain-row p{margin:5px 0}.bargain-changed{background:#fff6e8}.bargain-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:8px}.bargain-actions button,.bargain-auth button{min-height:44px;padding:8px 14px;cursor:pointer}.bargain-actions button:disabled{cursor:default}.bargain-posted{font-weight:bold;color:var(--teal)}.bargain-auth{max-width:440px}.bargain-auth label{display:grid;gap:5px;margin:14px 0}.bargain-auth input{max-width:100%;min-width:0;padding:10px}.bargain-alert{color:#9a3900}.bargain-median{font-size:13px}.bargain-row form{margin:0}
@media(max-width:540px){.price-ranking li{grid-template-columns:24px minmax(0,1fr);gap:8px}.price-ranking li>a{gap:8px}.price-rank-amount{grid-column:2;text-align:left}.price-rank-image{width:42px;height:60px}.price-ranking strong{font-size:14px}.price-rank-amount small{display:inline;margin-left:8px}.bargain-row{grid-template-columns:48px minmax(0,1fr);gap:10px}.bargain-image{width:48px;height:70px}}

.price-ranking-more>summary{width:max-content;max-width:100%;margin:12px auto;min-height:44px;padding:10px 18px;border:1px solid var(--teal);border-radius:8px;color:var(--teal);background:#fff;cursor:pointer;list-style:none;text-align:center;font-weight:700}.price-ranking-more>summary::-webkit-details-marker{display:none}.price-ranking-more>summary:hover{background:#f3faf8}.price-ranking-more>summary:focus-visible{outline:3px solid var(--teal);outline-offset:3px}.price-ranking-more .price-ranking-hide{display:none}.price-ranking-more[open] .price-ranking-show{display:none}.price-ranking-more[open] .price-ranking-hide{display:inline}

/* Keep candidate details in their column when an unavailable image collapses. */
.bargain-row>div{grid-column:2}

/* Keep each ranking entry and its favorite control on one row. */
.price-ranking.price-ranking li{grid-template-columns:30px minmax(0,1fr) 166px 44px;gap:10px;padding:9px 0}
.price-ranking.price-ranking li:has(>.provider-image){grid-template-columns:30px 50px minmax(0,1fr) 166px 44px}
.price-ranking.price-ranking li>.price-rank-amount{grid-column:-3;grid-row:1;text-align:right;min-width:0}
.price-ranking.price-ranking li>.favorites-slot{grid-column:-2;grid-row:1;justify-self:center;margin:0}
.price-ranking.price-ranking li>.favorites-slot .favorites-button{width:44px;height:44px;padding:0}
.price-ranking.price-ranking li>.price-rank-amount small{display:block;margin:0;font-size:11px;line-height:1.35;font-weight:400}
@media(max-width:540px){
 .price-ranking.price-ranking li{grid-template-columns:18px minmax(0,1fr) 102px 44px;gap:6px}
 .price-ranking.price-ranking li:has(>.provider-image){grid-template-columns:18px 32px minmax(0,1fr) 102px 44px}
 .price-ranking.price-ranking li>.provider-image,.price-ranking.price-ranking .price-rank-image{width:32px;flex-basis:32px;height:auto}
 .price-ranking.price-ranking li>a{gap:6px}
 .price-ranking.price-ranking strong{font-size:13px;line-height:1.4}
 .price-ranking.price-ranking li>a small{font-size:10px;line-height:1.4}
 .price-ranking.price-ranking .price-rank-amount{font-size:14px}
 .price-ranking.price-ranking li>.price-rank-amount small{font-size:10px}
}

/* Approved stock scope links and three-card home ranking. */
.rank-switch{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.rank-switch a{padding:9px 12px;border:1px solid #bed1df;border-radius:7px;color:#174c75;text-decoration:none;background:#f5f9fc;font:inherit;font-size:13px}.rank-switch [aria-current=page]{background:#174c75;color:white}.top-three .price-ranking.price-ranking{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;list-style:none;padding:0}.top-three .price-ranking.price-ranking li,.top-three .price-ranking.price-ranking li:has(>.provider-image){display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 10px;border:1px solid #d6e2eb;border-radius:10px;min-width:0;position:relative;background:#f7fbff}.top-three .price-ranking.price-ranking li>a{display:flex;flex-direction:column;min-width:0;width:100%;text-align:center;gap:8px}.top-three .price-ranking.price-ranking li>a span{min-width:0;width:100%}.top-three .price-ranking.price-ranking strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.45;height:2.9em;font-size:15px}.top-three .price-ranking.price-ranking small{display:block;font-size:11px;overflow-wrap:anywhere}.top-three .price-ranking.price-ranking li>.provider-image,.top-three .price-ranking.price-ranking .price-rank-image{width:128px;height:auto;max-width:100%;flex-basis:auto;align-self:center;margin:0}.top-three .price-ranking.price-ranking .price-rank-image img{width:100%;height:178px;object-fit:contain}.top-three .price-rank-number{font-size:17px;font-weight:800;background:#e5f0f9;padding:3px 12px;border-radius:16px}.top-three .price-ranking.price-ranking .price-rank-amount{font-size:20px;text-align:center;grid-column:auto}.top-three .price-rank-amount small,.top-three .favorites-slot{display:none!important}@media(max-width:540px){.top-three .price-ranking.price-ranking{gap:7px}.top-three .price-ranking.price-ranking li{padding:8px 5px;gap:6px}.top-three .price-ranking.price-ranking strong{font-size:12px}.top-three .price-ranking.price-ranking .price-rank-image{width:90px}.top-three .price-ranking.price-ranking .price-rank-image img{height:126px}.top-three .price-ranking.price-ranking .price-rank-amount{font-size:15px}.top-three .price-ranking.price-ranking small{font-size:9px}.rank-switch a{font-size:12px;padding:8px 9px}}

/* All ranking rows keep their order; saved images use the same card destination as names. */
.price-ranking.price-ranking li:has(>.rank-media){grid-template-columns:30px 50px minmax(0,1fr) 166px 44px}.price-ranking .rank-media{display:flex;align-items:center;justify-content:center;min-width:0;max-width:50px;text-decoration:none}.price-ranking .rank-media .provider-image{max-width:100%;width:100%}.price-ranking .rank-title{min-width:0}.price-ranking .rank-media img{max-width:100%!important}.price-ranking .rank-media .provider-image.price-rank-image{width:100%}.price-ranking .rank-media>.price-rank-image{width:50px;height:70px;object-fit:contain}
/* Compact equal-height three-card blocks, independent of names and notes. */
.top-three .price-ranking.price-ranking li,.top-three .price-ranking.price-ranking li:has(>.rank-media){display:grid;grid-template-columns:1fr;grid-template-rows:22px 146px 64px 24px;gap:3px;padding:8px;align-items:center;justify-items:center}.top-three .price-ranking.price-ranking li>.price-rank-number{grid-row:1;padding:1px 9px;font-size:14px;line-height:20px}.top-three .price-ranking.price-ranking li>.rank-media{grid-row:2;width:104px;max-width:100%;height:146px;gap:0}.top-three .price-ranking.price-ranking li>.rank-media .provider-image{width:104px;max-width:100%;height:146px;justify-content:center}.top-three .price-ranking.price-ranking li>.rank-media img{height:146px!important;width:auto!important;max-width:100%!important;object-fit:contain}.top-three .price-ranking.price-ranking li>.rank-title{grid-row:3;padding:0;gap:0;align-self:start;width:100%;line-height:1.25}.top-three .price-ranking.price-ranking strong{font-size:14px;line-height:1.25;height:2.5em;margin:0}.top-three .price-ranking.price-ranking .rank-title small{font-size:10px;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:2.6em;margin:1px 0 0}.top-three .price-ranking.price-ranking li>.price-rank-amount{grid-row:4;grid-column:1;font-size:18px;line-height:24px;margin:0}.top-three.ranking-featured-favorites .price-ranking.price-ranking li{grid-template-rows:44px 146px 64px 24px}.top-three.ranking-featured-favorites .price-ranking.price-ranking li>.price-rank-number{justify-self:start;align-self:start;margin-top:9px}.top-three.ranking-featured-favorites .price-ranking.price-ranking li>.favorites-slot{display:block!important;position:absolute;top:4px;right:4px;margin:0}.top-three.ranking-featured-favorites .favorites-slot .favorites-button{width:44px;height:44px;padding:0}
@media(max-width:540px){.price-ranking.price-ranking li:has(>.rank-media){grid-template-columns:18px 44px minmax(0,1fr) 102px 44px}.price-ranking .rank-media{max-width:44px}.price-ranking .rank-media>.price-rank-image{width:44px;height:62px}.top-three .price-ranking.price-ranking li,.top-three .price-ranking.price-ranking li:has(>.rank-media){grid-template-columns:1fr;grid-template-rows:22px 110px 55px 22px;padding:6px;gap:3px}.top-three .price-ranking.price-ranking li>.rank-media,.top-three .price-ranking.price-ranking li>.rank-media .provider-image{width:78px;height:110px}.top-three .price-ranking.price-ranking li>.rank-media img{height:110px!important}.top-three .price-ranking.price-ranking strong{font-size:12px}.top-three .price-ranking.price-ranking .rank-title small{font-size:9px}.top-three .price-ranking.price-ranking li>.price-rank-amount{font-size:15px;line-height:22px}.top-three.ranking-featured-favorites .price-ranking.price-ranking li{grid-template-rows:44px 110px 55px 22px}}
