/* Product shortlist — banner card actions + sidebar list (W4 pilot) */

.product-shortlist-btn {
  display: block;
  width: calc(100% - 16px);
  margin: 0 8px 6px;
  padding: 7px 10px;
  border-radius: 8px;
  box-sizing: border-box;
  border: 1px solid rgba(74, 222, 128, 0.32);
  background: rgba(16, 48, 32, 0.45);
  color: #bbf7d0;
  font: 600 0.68rem/1.25 "IBM Plex Sans", "Segoe UI", sans-serif;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.product-shortlist-btn:hover {
  background: rgba(22, 101, 52, 0.55);
  border-color: rgba(134, 239, 172, 0.5);
}

.product-shortlist-btn.is-saved {
  border-color: rgba(201, 169, 97, 0.45);
  background: rgba(60, 45, 20, 0.42);
  color: #fde68a;
}

.gw-shortlist-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(12px);
  z-index: 12000;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ecfdf5;
  background: rgba(8, 22, 16, 0.92);
  border: 1px solid rgba(74, 222, 128, 0.4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gw-shortlist-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sidebar-section--shortlist {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.sidebar-section--shortlist[hidden] {
  display: none !important;
}

.gw-shortlist-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 2px;
}

.gw-shortlist-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.gw-shortlist-row-title {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text, #e8f5ec);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gw-shortlist-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gw-shortlist-open,
.gw-shortlist-remove {
  font: inherit;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.gw-shortlist-open {
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(16, 48, 32, 0.4);
}

.gw-shortlist-open:hover {
  background: rgba(22, 101, 52, 0.5);
}

.gw-shortlist-remove {
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(48, 16, 16, 0.35);
}

.gw-shortlist-remove:hover {
  background: rgba(127, 29, 29, 0.45);
}

.gw-shortlist-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(74, 222, 128, 0.15);
}

.gw-shortlist-grants,
.gw-shortlist-clear {
  font: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.gw-shortlist-grants {
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.4);
  background: rgba(15, 40, 72, 0.45);
}

.gw-shortlist-grants:hover {
  background: rgba(30, 64, 120, 0.55);
}

.gw-shortlist-clear {
  color: #d1d5db;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(20, 24, 32, 0.4);
}

.gw-shortlist-clear:hover {
  background: rgba(40, 48, 60, 0.55);
}

#gw-shortlist-count {
  font-weight: 700;
  color: rgba(134, 239, 172, 0.95);
}
