/* Product route only; do not modify catalog listings or ad templates. */
.public-body.pex13-ui.pex12-route-product .px490-detail-content .px18-best-merchant{display:flex;align-items:center;gap:6px;min-width:0}
.public-body.pex13-ui.pex12-route-product .px492-merchant-logo{display:inline-grid;place-items:center;width:22px;height:22px;flex:0 0 22px;overflow:hidden;border-radius:4px;background:#fff}
.public-body.pex13-ui.pex12-route-product .px492-merchant-logo :is(.px-media,img,svg){width:100%!important;height:100%!important;max-width:22px!important;max-height:22px!important;object-fit:contain!important}
.public-body.pex13-ui.pex12-route-product .px490-detail-content .px487-buy-actions .px18-primary:not(:disabled){background:#205bc3!important;color:#fff!important;box-shadow:0 2px 6px #174b9b26;min-height:54px!important;font-size:13px!important;font-weight:700!important}
.public-body.pex13-ui.pex12-route-product .px490-detail-content .px487-buy-actions .px18-primary:not(:disabled):hover{background:#17499f!important}
.public-body.pex13-ui.pex12-route-product .px490-detail-content .px487-buy-actions .px18-primary:focus-visible,.public-body.pex13-ui.pex12-route-product .px492-mobile-cta a:focus-visible{outline:2px solid #163f86;outline-offset:3px}
/* Keep the action adjacent to price and store; supporting metrics are secondary. */
@media(min-width:1280px){
 .public-body.pex13-ui.pex12-route-product .px490-hero .px490-detail-content .px487-buy-actions{order:0!important;margin-top:8px!important}
 .public-body.pex13-ui.pex12-route-product .px490-hero .px490-detail-content .px490-extra-metrics{order:1!important;margin-top:auto!important}
 .public-body.pex13-ui.pex12-route-product .px490-hero .px490-detail-content .px488-glance-links{margin-top:auto!important}
}
.public-body.pex13-ui.pex12-route-product .px18-detail .px18-related .px-product-grid{gap:6px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(min-width:600px){.public-body.pex13-ui.pex12-route-product .px18-detail .px18-related .px-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(min-width:900px){.public-body.pex13-ui.pex12-route-product .px18-detail .px18-related .px-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(min-width:1280px){.public-body.pex13-ui.pex12-route-product .px18-detail .px18-related .px-product-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
.public-body.pex13-ui.pex12-route-product .px18-detail .px18-related .px461-card .px-product-image{height:150px!important;min-height:0!important;max-height:150px!important;aspect-ratio:auto!important;flex:0 0 150px!important;overflow:hidden}
.public-body.pex13-ui.pex12-route-product .px18-detail .px18-related .px461-card .px-product-image :is(.px-media,img){height:100%!important;max-height:100%!important;width:100%!important;object-fit:contain!important}
.public-body.pex13-ui.pex12-route-product .px18-detail .px18-related .px461-card .px-product-content{padding:6px!important;gap:4px!important}
.public-body.pex13-ui.pex12-route-product .px18-detail .px18-related .px461-card .px-product-title{font-size:12px!important;line-height:1.4!important;min-height:2.8em!important;max-height:2.8em!important;-webkit-line-clamp:2!important}
.public-body.pex13-ui.pex12-route-product .px492-mobile-cta[hidden]{display:none!important}
@media(max-width:650px){.public-body.pex13-ui.pex12-route-product .px492-mobile-cta a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px}}
/* Graphs remain fully visible by default (including with JS disabled). */
.public-body.pex12-route-product .px18-history-graph .px213-chart,.public-body.pex12-route-product .px18-history-graph .px293-merchant-chart{display:block;width:100%;height:auto}
.public-body.pex12-route-product .px293-merchant-line{animation:none!important;stroke-dasharray:none!important;stroke-dashoffset:0!important}
.public-body.pex12-route-product .px293-bar-fill{animation:none!important}
@media(prefers-reduced-motion:no-preference){
 .public-body.pex12-route-product .px492-chart-play :is(.px213-area,.px213-line,.px293-merchant-line){animation:px492-reveal .75s ease-out backwards!important}
 .public-body.pex12-route-product .px492-chart-play :is(.px213-point,.px293-merchant-point){animation:px492-point .4s ease-out both!important}
 .public-body.pex12-route-product .px492-chart-play .px293-bar-fill{animation:px492-reveal .6s ease-out backwards!important}
}
@keyframes px492-reveal{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes px492-point{from{opacity:.15}to{opacity:1}}
.public-body.pex13-ui.pex12-route-product .px492-savings{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 6px;background:#eef7f2;border:1px solid #dcece3;border-radius:4px;color:#216242;font-size:13px;line-height:1.4;min-width:0}
.public-body.pex13-ui.pex12-route-product .px492-savings>span{display:flex;align-items:center;gap:5px;min-width:0;overflow-wrap:anywhere}
.public-body.pex13-ui.pex12-route-product .px492-savings .icon{width:15px;height:15px;flex:none}
.public-body.pex13-ui.pex12-route-product .px492-savings>strong{flex:none;font-size:13px;white-space:nowrap}
.public-body.pex13-ui.pex12-route-product .px18-detail .px18-lower{gap:6px!important}
.public-body.pex13-ui.pex12-route-product .px18-detail :is(.px28-insights-head,.px29-shop-head,.px18-section-head){margin-inline:0!important;padding-inline:0!important}
@media(min-width:1280px){
 .public-body.pex13-ui.pex12-route-product .px490-hero .px490-detail-content .px490-extra-metrics{margin-top:auto!important;gap:3px!important}
 .public-body.pex13-ui.pex12-route-product .px490-detail-content .px488-glance-facts dd{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .public-body.pex13-ui.pex12-route-product .px490-detail-content .px18-best-merchant>a{overflow-wrap:anywhere;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
}
