/* ═══════════════════════════════════════════════════════════════════════════
   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;
}

/* One button + its shipping-region note, stacked tight together */
.rw-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Small italic hint under a button telling shoppers where it ships */
.rw-ship {
  font-size: .7rem;
  font-style: italic;
  font-weight: 500;
  color: #737373;
  padding-left: 4px;
  line-height: 1.25;
}

/* Prominent "Where are you shopping from?" picker. This is the buy decision
   point, so it is a real card, not an afterthought: brand-tinted, bordered,
   full-width control. No retailer shows until a location is chosen here. */
.rw-geo-card {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 2px solid var(--brand);
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 7%, #fff);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--brand) 14%, transparent);
}
.rw-geo-q {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.rw-geo-sub {
  margin-top: 3px;
  margin-bottom: 10px;
  font-size: .8rem;
  color: #5c5c5c;
  line-height: 1.35;
}
.rw-geo {
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--brand);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.rw-geo:hover { border-color: var(--brand-dark); }
.rw-geo:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.rw-geo::placeholder { font-weight: 600; color: #8b8b8b; }

/* One-tap shortcut to the country we detected. Quiet: the typed answer is the
   real control, this is only a convenience. */
.rw-geo-detected {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand-dark, var(--brand));
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.rw-geo-detected:hover { opacity: .78; }

/* Note shown when this product's seller doesn't serve the shopper's country */
.rw-geo-note {
  margin: 0 2px 9px;
  font-size: .74rem;
  line-height: 1.4;
  color: #6b5e00;
  background: #fdf6e3;
  border: 1px solid #f0e4b8;
  border-radius: 8px;
  padding: 7px 10px;
}

/* ── 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; }
}
