/* Selected comparison properties; folder management stays with Save. */
#buyer-compare-tray{
  display:grid;gap:10px;left:50%;right:auto;bottom:max(12px,env(safe-area-inset-bottom));
  transform:translateX(-50%);width:min(760px,calc(100vw - 24px));max-width:none;
  padding:12px 16px;border:1px solid #bfae9e;border-radius:12px;
  background:#fffdfb;color:#352a24;box-shadow:0 8px 28px #352a2426;
  font-family:Manrope, sans-serif;
}
#buyer-compare-tray[hidden]{display:none}
#buyer-compare-tray .buyer-tray-actions{display:flex;align-items:center;gap:12px;min-width:0}
#buyer-compare-tray .buyer-tray-actions>strong{margin-right:auto;font-size:13px;white-space:nowrap}
#buyer-compare-tray .buyer-text-button{min-height:44px;padding:8px;color:#6a5543;font-size:13px;text-decoration:underline;text-underline-offset:3px}
#buyer-compare-tray .buyer-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #fac461;border-radius:7px;background:#fac461;color:#352a24;font-size:13px;white-space:nowrap}
#buyer-compare-tray .buyer-button:hover{background:#efb34d;border-color:#efb34d}
#buyer-compare-tray .buyer-tray-properties{display:flex;flex-wrap:wrap;gap:6px 16px;list-style:none;margin:0;padding:0;border-top:1px solid #dfd5cc;max-height:25vh;overflow:auto;scrollbar-color:#b9a48e #fffdfb}
#buyer-compare-tray .buyer-tray-property{display:flex;flex:1 1 200px;min-width:0;align-items:center;gap:4px;font-size:12px}
#buyer-compare-tray .buyer-tray-property>span{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#buyer-compare-tray .buyer-tray-remove{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:7px;background:transparent;color:#6a5543;cursor:pointer}
#buyer-compare-tray .buyer-tray-remove:hover{background:#fdecd9;color:#352a24}
#buyer-compare-tray :is(a,button):focus-visible{outline:3px solid #795019;outline-offset:2px}
#buyer-main:has(#buyer-compare-tray:not([hidden])){padding-bottom:calc(25vh + 112px)}
@media(max-width:520px){
  #buyer-compare-tray{padding:10px 12px;gap:6px}
  #buyer-compare-tray .buyer-tray-actions{flex-wrap:wrap;gap:4px 8px}
  #buyer-compare-tray .buyer-tray-actions>.buyer-button{flex:1 1 100%}
  #buyer-compare-tray .buyer-tray-property{flex-basis:100%}
  #buyer-main:has(#buyer-compare-tray:not([hidden])){padding-bottom:calc(25vh + 156px)}
}
