/* ===== Sticky container ===== */
.sts-compare-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  pointer-events: none; /* bar itself is click-through */
  font-family: inherit;
}
.sts-compare-bar__inner {
  pointer-events: auto;
  max-width: 1240px;
  margin: 0 auto 8px;
  padding: 6px 10px;                         /* thinner */
  background: #1b75bc;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ===== Collapse toggle (small pill above bar) ===== */
.sts-compare-bar__toggle{
  pointer-events: auto;
  position: absolute;
  right: 16px; top: -28px;
  height: 26px; padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  cursor: pointer;
  font-size: 12px; line-height: 24px;
  color: #333;
}
.sts-compare-bar.is-collapsed [data-sts-collapsible]{ display: none; }

/* ===== Title/Count (tiny) ===== */
.sts-compare-bar__title{ display: none; } /* keep hidden for ultra-slim */
.sts-compare-bar__count{ font-size: 12px; color: #666; }

/* ===== Slots: thin, scrollable row ===== */
.sts-compare-bar__slots{
  display: flex;
  align-items: center;
  gap: 6px;                                   /* tighter */
  overflow-x: hidden; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  max-width: 100%;
}
.sts-compare-bar__slots::-webkit-scrollbar{ height: 6px; }
.sts-compare-bar__slots::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.15); border-radius: 4px;
}

/* ===== Slot pill ===== */
.sts-slot{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 4px 8px;                           /* thinner */
  min-height: 40px;                            /* slim */
  box-shadow: 0 1px 5px rgba(0,0,0,.05);
  max-width: 240px;                            /* keep names in check */
}
.sts-slot__remove{
  
  top: -7px; right: -7px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 0; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  cursor: pointer;
  font-size: 14px; line-height: 20px;
  text-align: center; color: #333;
}
.sts-slot__thumb{
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; overflow: hidden; background: #fafafa;
}
.sts-slot__thumb img{
  width: 100%; height: 100%; object-fit: contain;
}
.sts-slot__name{
  font-size: 12px; line-height: 1.25; color: #222; text-decoration: none;
  display: inline-block; max-width: 170px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== Empty placeholders (tiny) ===== */
.sts-slot--empty{
  min-width: 52px; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px dashed #e0e0e0; border-radius: 10px; background: #fff;
}
.sts-slot__empty{
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #f1f1f1;
  box-shadow: inset 0 4px 12px rgba(0,0,0,.05);
}
.sts-slot__empty .plus{ font-size: 18px; color: #bdbdbd; }

/* ===== Right side: compact buttons ===== */
.sts-compare-bar__right{ display: inline-flex; align-items: center; gap: 8px; }
.sts-compare-bar__clear{
  color: #c0392b; text-decoration: none; font-size: 12px; padding: 0 4px;
}
.sts-compare-bar__clear:hover{ text-decoration: underline; }

.sts-compare-bar__go{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px;                           /* thinner */
  font-weight: 700; font-size: 12px;
  color:#fff !important; background:#e23e1d; border: 2px solid transparent;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .2px;
  line-height: 1.2; cursor: pointer; transition: all .2s ease-in-out;
}
.sts-compare-bar__go:hover{ color:#fff !important; filter: brightness(0.92); }
.sts-compare-bar__badge{
  display:inline-block; min-width: 18px; height: 18px; padding: 0 6px;
  border-radius: 999px; background:#222; color:#fff;
  font-size: 12px; line-height: 18px; text-align:center;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .sts-compare-bar__inner{ padding: 6px 8px; }
  .sts-slot{ max-width: 200px; }
  .sts-slot__name{ max-width: 130px; }
}
@media (max-width: 600px){
  .sts-compare-bar__badge{ min-width:12px; height:12x; line-height:12px; font-size:11px; }
  .sts-compare-bar__go{ padding: 4px 10px; font-size: 11px; }
  .sts-slot__thumb{ width: 32px; height: 32px; }
  .sts-slot{ gap: 0px; padding: 4px 2px; }
  .sts-slot__name{ max-width: 110px; font-size: 11px; display:none !important;}
}



.btn-sm, .btn-group-sm > .btn {
  padding: 5px 5px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  border-radius: 0;
}
/* ===== Optional: subtle hover on slot ===== */
.sts-slot:hover{ border-color:#d9d9d9; box-shadow:0 2px 8px rgba(0,0,0,.06); }
