/* Selection controls are loaded only on pages that offer loan comparison. */
.compare-tray{position:fixed;z-index:25;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;flex-direction:column;width:min(680px,calc(100% - 40px));background:#fff;border:1px solid #d6e2ee;border-radius:16px;box-shadow:0 10px 40px #17385b26;overflow:hidden}
.compare-tray-bar{display:flex;align-items:center;gap:22px;padding:10px 14px}
.compare-tray-toggle{display:flex;align-items:center;gap:12px;min-width:0;min-height:48px;flex:1;padding:2px 4px;border:0;background:transparent;color:var(--ink);text-align:left;border-radius:8px}
.compare-tray-toggle:hover{background:#f2f6fb}
.compare-tray-toggle:focus-visible,.compare-tray-submit:focus-visible{outline-offset:1px}
.compare-tray-icon{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:10px;background:#edf3fc;color:var(--blue);font-size:1.6rem}
.compare-tray-copy{min-width:0;display:block}
.compare-tray-copy strong{display:block;font-size:.9375rem;line-height:1.4;font-weight:600}
.compare-tray-copy>span{display:block;margin-top:2px;font-size:.8125rem;line-height:1.5;color:var(--muted)}
.compare-tray-chevron{flex-shrink:0;margin-left:3px;color:#6380a0}
.compare-tray-toggle[aria-expanded=true] .compare-tray-chevron{transform:rotate(180deg)}
.compare-tray-submit{flex-shrink:0;min-height:46px;padding:10px 18px;gap:18px}
.compare-tray-panel{order:-1;border-bottom:1px solid #dfe7ef;padding:8px 18px 12px;max-height:56vh;max-height:56dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.compare-tray-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin-bottom:5px}
.compare-tray-heading>strong{font-size:.875rem;line-height:1.5;font-weight:600}
.compare-tray-scenario{font-size:.8125rem;line-height:1.5;color:var(--muted);margin:0 0 12px}
.compare-clear{min-height:44px;flex-shrink:0;padding:8px 0;border:0;background:transparent;font-size:.8125rem;color:#4e6a88;text-decoration:underline;text-underline-offset:3px}
.compare-tray-items{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.compare-tray-chip{display:flex;align-items:center;gap:13px;min-width:0;padding:9px 8px 9px 12px;background:#f5f8fc;border:1px solid #e3eaf2;border-radius:10px}
.compare-tray-chip .company-logo{width:62px;height:38px;flex-shrink:0;font-size:1.5rem;border-radius:7px}
.compare-tray-chip .company-logo.has-logo{width:62px;height:38px;padding:3px;background:#fff}
.compare-tray-title{min-width:0;flex:1;overflow-wrap:anywhere}
.compare-tray-title strong{display:block;font-size:.9375rem;line-height:1.45;font-weight:600}
.compare-tray-title small{display:block;font-size:.8125rem;line-height:1.5;color:var(--muted);margin-top:2px}
.compare-tray-chip button{width:44px;min-width:44px;height:44px;padding:0;border:1px solid transparent;border-radius:8px;color:#526c86;background:transparent;font-size:1.5rem;line-height:1}
.compare-tray-chip button:hover{background:#e8eff8;color:#1d55a2;border-color:#cfdbeb}
.compare-tray-notice{font-size:.875rem;line-height:1.5;padding:11px 13px;background:#fff6e8;color:#784b1c;border-radius:9px;margin:4px 0 10px}
.has-comparison-tray{padding-bottom:100px;scroll-padding-bottom:100px}
@media(max-width:620px){
  .compare-tray{width:calc(100% - 24px);bottom:max(10px,env(safe-area-inset-bottom));border-radius:14px}
  .compare-tray-bar{padding:7px 9px;gap:9px}
  .compare-tray-toggle{gap:8px;min-height:46px}
  .compare-tray-copy strong{font-size:.875rem}
  .compare-tray-copy>span{font-size:.75rem}
  .compare-tray-desktop-label{display:none}
  .compare-tray-icon{width:30px;height:32px;font-size:1.4rem}
  .compare-tray-chevron{width:13px;margin-left:0}
  .compare-tray-submit{padding:10px 12px;gap:8px;font-size:.875rem;min-height:46px}
  .compare-tray-panel{padding:5px 12px 12px}
  .compare-tray-chip{gap:10px;padding:8px}
  .compare-tray-chip .company-logo.has-logo{width:52px}
  .compare-tray-heading{gap:10px}
  .has-comparison-tray{padding-bottom:84px;scroll-padding-bottom:84px}
}
@media(max-width:380px){.compare-tray-icon{display:none}.compare-tray-chip{gap:8px}.compare-tray-chip .company-logo.has-logo{width:43px}.compare-tray-title strong{font-size:.875rem}.compare-tray-title small{font-size:.75rem}}
