/* ═══════════════════════════════════════════════════════════════════════════
   RETAILER WIDGET — retailer-widget.css
   Add to your global stylesheet or paste into list.html / hub/list.html
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.rw-wrap {
  margin: 14px 0 0;
}

/* ── Label ────────────────────────────────────────────────────────────────── */
.rw-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}

/* ── Button container ─────────────────────────────────────────────────────── */
.rw-buttons {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ── Individual retailer button ───────────────────────────────────────────── */
.rw-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .83rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  color: var(--ink);
  transition: all .18s;
  cursor: pointer;
  line-height: 1;
}

.rw-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateX(2px);
}

/* Recommended / first retailer */
.rw-btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.rw-btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

/* Solo button (no retailer_links, just affiliate_url) */
.rw-btn--solo {
  justify-content: center;
}

/* ── Button inner layout ──────────────────────────────────────────────────── */
.rw-btn-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.rw-flag {
  font-size: 1rem;
  line-height: 1;
}

.rw-name {
  /* retailer name */
}

.rw-badge {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(255,255,255,.25);
  color: #fff;
  white-space: nowrap;
}

/* Badge on non-primary buttons */
.rw-btn:not(.rw-btn--primary) .rw-badge {
  background: var(--brand-pale);
  color: var(--brand);
}

.rw-arrow {
  opacity: .6;
  font-size: .9rem;
  transition: transform .18s;
}

.rw-btn:hover .rw-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* ── More retailers disclosure ────────────────────────────────────────────── */
.rw-more-wrap {
  margin-top: 4px;
}

.rw-more-btn {
  background: none;
  border: none;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rw-more-btn:hover { text-decoration: underline; }

.rw-more-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 7px;
}

.rw-more-items.hidden { display: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .rw-btn { font-size: .78rem; padding: 9px 12px; }
}
