/* Product comparison: button on product pages, tray, and the Compare page. Follows the marketplace colour. */
.bp-cmp-btn,.bp-cmp-tray,.bp-cmp{--c:var(--bp-primary,#f28c28);--c-on:var(--bp-on-primary,#fff);--c-soft:var(--bp-primary-soft,#fff3e6);--c-ink:var(--bp-primary-ink,#9a4a07)}

/* Small button under the product title (theme-proof). */
.bp-cmp-btn,.bp-cmp-btn:hover,.bp-cmp-btn:focus{-webkit-appearance:none;appearance:none;display:inline-flex!important;align-items:center;gap:6px;min-height:32px!important;margin:4px 0 12px!important;padding:0 12px!important;border:1.5px solid #d6dbe3!important;border-radius:999px!important;background:#fff!important;color:#14202e!important;font:inherit;font-size:13px!important;font-weight:700!important;line-height:1!important;text-transform:none!important;letter-spacing:normal!important;box-shadow:none!important;cursor:pointer}
.bp-cmp-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bp-cmp-btn:hover{border-color:var(--c)!important;color:var(--c-ink)!important}
.bp-cmp-btn.is-on,.bp-cmp-btn.is-on:hover{border-color:var(--c)!important;background:var(--c-soft)!important;color:var(--c-ink)!important}
.bp-cmp-btn:focus-visible{outline:3px solid var(--c);outline-offset:2px}
.bp-cmp-holder.is-fallback{position:fixed;right:14px;bottom:90px;z-index:9985}
/* On product cards: a compact pill under the price (theme cards) or on the photo corner (marketplace cards). */
.bp-cmp-btn.is-card,.bp-cmp-btn.is-card:hover,.bp-cmp-btn.is-card:focus{position:relative;z-index:3;min-height:28px!important;margin:6px auto 2px!important;padding:0 10px!important;font-size:12px!important;gap:5px}
.bp-cmp-btn.is-card svg{width:14px;height:14px}
.product-grid-item .bp-cmp-btn.is-card,.wd-product .bp-cmp-btn.is-card,li.product .bp-cmp-btn.is-card{display:flex!important;width:max-content;max-width:100%}
.bp-lk-card{position:relative}
.bp-lk-card>.bp-cmp-btn.is-card{position:absolute;top:8px;left:8px;margin:0!important;background:rgba(255,255,255,.94)!important;box-shadow:0 2px 8px rgba(16,35,58,.12)!important}
.mkt-li-body>.bp-cmp-btn.is-card{margin:10px 0 0!important}

/* Tray */
.bp-cmp-tray{position:fixed;left:50%;bottom:14px;z-index:9990;width:min(760px,calc(100% - 24px));transform:translateX(-50%);background:#14202e;color:#fff;border-radius:16px;box-shadow:0 18px 40px -12px rgba(0,0,0,.45)}
.bp-cmp-tray[hidden]{display:none}
.bp-cmp-tray-in{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px}
.bp-cmp-tray-in>strong{font-size:14px;white-space:nowrap}
.bp-cmp-tray-list{display:flex;gap:8px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
.bp-cmp-tray-item{position:relative;display:flex;align-items:center;gap:6px;flex:none;max-width:170px;padding:4px 24px 4px 4px;border-radius:10px;background:rgba(255,255,255,.1);font-size:12px}
.bp-cmp-tray-item img{width:32px;height:32px;border-radius:7px;object-fit:cover;background:#fff}
.bp-cmp-tray-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bp-cmp-tray-item button,.bp-cmp-tray-clear{-webkit-appearance:none;appearance:none;border:0!important;background:none!important;color:rgba(255,255,255,.8)!important;font:inherit;cursor:pointer;padding:0!important;min-height:0!important;box-shadow:none!important;text-transform:none!important}
.bp-cmp-tray-item button{position:absolute;right:6px;top:50%;transform:translateY(-50%);font-size:16px!important;line-height:1}
.bp-cmp-tray-clear{font-size:13px!important;text-decoration:underline}
.bp-cmp-tray-go{display:inline-flex;align-items:center;min-height:38px;padding:0 16px;border-radius:10px;background:var(--c);color:var(--c-on)!important;font-weight:800;font-size:14px;text-decoration:none!important}
.bp-cmp-tray-hint{font-size:13px;opacity:.8}
@media (max-width:600px){.bp-cmp-tray{bottom:8px}.bp-cmp-tray-in>strong{width:100%}}
@media (max-width:1023px){body.bp-look .bp-cmp-tray{bottom:calc(72px + env(safe-area-inset-bottom))}} /* above the phone tab bar */

/* Compare page */
.bp-cmp{max-width:1240px;margin:20px auto 48px;padding:0 16px;color:#14202e}
.bp-cmp *{box-sizing:border-box}
.bp-cmp-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.bp-cmp-head h2{margin:0;font-size:clamp(22px,3vw,30px);font-weight:900;color:#14202e}
.bp-cmp-head p{margin:4px 0 0;color:#5c6878}
.bp-cmp-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bp-cmp-diff{display:inline-flex;align-items:center;gap:8px;margin:0;padding:8px 12px;border:1px solid #e3e7ee;border-radius:10px;background:#fff;font-weight:700;font-size:14px;cursor:pointer}
.bp-cmp-diff input{accent-color:var(--c);width:18px;height:18px;margin:0}
.bp-cmp-add select{min-height:40px;margin:0;padding:0 12px;border:1.5px solid var(--c);border-radius:10px;background:#fff;color:#14202e;font:inherit;font-weight:700;font-size:14px;max-width:260px}
.bp-cmp-clear,.bp-cmp-clear:hover,.bp-cmp-x,.bp-cmp-x:hover{-webkit-appearance:none;appearance:none;border:0!important;background:none!important;box-shadow:none!important;color:#5c6878!important;font:inherit;cursor:pointer;padding:0 4px!important;min-height:0!important;text-transform:none!important;text-decoration:underline}
.bp-cmp-scroll{overflow-x:auto;border:1px solid #e3e7ee;border-radius:16px;background:#fff;-webkit-overflow-scrolling:touch}
.bp-cmp-table{width:100%;min-width:calc(150px + var(--bp-cmp-n,2) * 190px);border-collapse:separate;border-spacing:0;margin:0;font-size:14px}
.bp-cmp-table th,.bp-cmp-table td{padding:10px 12px;border:0;border-bottom:1px solid #eef1f5;vertical-align:top;text-align:left;background:#fff}
.bp-cmp-table .bp-cmp-label{position:sticky;left:0;z-index:1;width:150px;min-width:130px;background:#f8fafc;color:#5c6878;font-weight:700;font-size:13px}
.bp-cmp-table thead th{position:relative;vertical-align:top;background:#fff;border-bottom:2px solid #e3e7ee}
.bp-cmp-prod{width:calc((100% - 150px) / 4);min-width:180px}
.bp-cmp-img{display:block;aspect-ratio:1/1;max-width:150px;margin:0 auto 8px;border-radius:12px;overflow:hidden;background:#f3f5f8}
.bp-cmp-img img{width:100%;height:100%;object-fit:contain;display:block}
.bp-cmp-name{display:block;color:#14202e!important;font-weight:800;font-size:15px;line-height:1.3;text-decoration:none!important}
.bp-cmp-price{display:block;margin:4px 0;color:var(--c-ink);font-weight:900;font-size:16px}
.bp-cmp-price del{opacity:.6;font-weight:600;font-size:13px}
.bp-cmp-seller{display:block;margin-bottom:8px;color:#5c6878;font-size:12.5px}
.bp-cmp-cta{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border-radius:10px;background:var(--c);color:var(--c-on)!important;font-weight:800;font-size:13px;text-decoration:none!important}
.bp-cmp-x{position:absolute;top:6px;right:6px;font-size:20px!important;line-height:1;text-decoration:none!important}
.bp-cmp-slot{background:#fafbfc!important}
.bp-cmp-slot span{display:grid;place-items:center;min-height:200px;padding:12px;border:2px dashed #d6dbe3;border-radius:12px;color:#5c6878;font-weight:700;text-align:center}
.bp-cmp-sec th{position:sticky;left:0;background:var(--c-soft)!important;color:var(--c-ink)!important;font-size:12px!important;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.bp-cmp-table td.is-best{background:#e9f8ee;color:#14532d;font-weight:700}
.bp-cmp-table td.is-best::after{content:" ★";color:#1a7f37}
.bp-cmp-na{color:#b6bdc8}
.bp-cmp.is-diff-only tr.is-same{display:none}
.bp-cmp-note{margin:12px 2px 0;color:#5c6878;font-size:13px}
.bp-cmp-empty{max-width:560px;margin:40px auto;padding:32px 24px;border:1px solid #e3e7ee;border-radius:18px;background:#fff;text-align:center}
.bp-cmp-empty h2{margin:0 0 8px;font-weight:900}
.bp-cmp-empty p{color:#5c6878;margin:0 0 16px}
@media (max-width:640px){.bp-cmp-table .bp-cmp-label{width:110px;min-width:110px;font-size:12px}.bp-cmp-table{min-width:calc(110px + var(--bp-cmp-n,2) * 160px)}.bp-cmp-prod{min-width:150px}}
