/* "Add to compare" buttons + the bottom compare tray (static/js/compare_tray.js) on public card and compare pages.
   Buttons ship with [hidden] and show only where this file is loaded and scripting is on, so no other page (and no
   JS-less visitor) ever sees a button that does nothing. */
@media (scripting: enabled) { .pc .cmp-add[hidden], .pc .cmp-copy[hidden] { display: inline-flex; } }
.cmp-add .cmp-add-on { display: none; }
.cmp-add[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-hover); }
.cmp-add[aria-pressed="true"] .cmp-add-on { display: inline; }
.cmp-add[aria-pressed="true"] .cmp-add-off { display: none; }
.pc-tile.cmp-tile { display: flex; flex-direction: column; gap: .35rem; }
.pc-tile.cmp-tile > .pc-tile-link { flex: 1 1 auto; height: auto; }
.pc-tile.cmp-tile > .cmp-add { width: 100%; padding-inline: .4rem; font-size: .8rem; }
.cmp-drop { display: inline-flex; align-items: center; gap: .2rem; margin-top: .35rem; color: var(--muted); font-weight: 650; text-decoration: none; }
.cmp-drop:hover { color: var(--ink); }
.cmp-table.cmp-n3 { min-width: 560px; }
.cmp-table.cmp-n4 { min-width: 720px; }
.cmp-table.cmp-custom thead th { width: auto; }
.cmp-table.cmp-custom thead th:first-child { width: 110px; }
.cmp-table.cmp-custom tbody th { width: 110px; }
.cmp-tray { position: fixed; z-index: 40; inset-inline: 0; bottom: 0; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom, 0px)); background: var(--surface, #fff); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(28,25,23,.12); }
.cmp-tray[hidden] { display: none; }
.cmp-tray-in { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: .6rem; }
.cmp-tray-list { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; }
.cmp-tray-list::-webkit-scrollbar { display: none; }
.cmp-tray-item { flex: none; display: inline-flex; align-items: center; max-width: 11rem; min-height: 32px; padding-inline-start: .65rem; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: .8rem; font-weight: 650; }
.cmp-tray-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-tray-x { flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.cmp-tray-x:hover { background: var(--line); color: var(--ink); }
.cmp-tray-act { flex: none; display: flex; align-items: center; gap: .5rem; }
.cmp-tray-go[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.cmp-tray-msg { max-width: 960px; margin: .3rem auto 0; color: var(--muted); }
.cmp-tray-msg:empty { display: none; }
body.cmp-has-tray { padding-bottom: 5.5rem; }
@media (max-width: 420px) { .cmp-tray-item { max-width: 8.5rem; } .cmp-tray-clear { display: none; } }
