/* ========== CSG Results UI ==========
   Mobile-first, low visual noise, minimal shadow to avoid flicker
   Namespace: .csg-results ...
===================================== */

.csg-results {
  font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
}

.csg-results * {
  box-sizing: border-box;
}

.csg-results__status {
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.csg-results__error {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(200, 0, 0, 0.25);
  border-radius: 12px;
  background: rgba(255, 245, 245, 0.9);
  color: #7a0b0b;
}

.csg-results__grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Card */
.csg-card {
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.csg-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 8px;
}

.csg-card__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.csg-card__logo img {
  max-width: 80%;
  max-height: 80%;
  display: block;
}

.csg-card__name {
  min-width: 0;
}

.csg-card__name strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.csg-card__name span {
  display: block;
  font-size: 12px;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.csg-card__body {
  padding: 10px 12px 12px;
}

/* Plan list */
.csg-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 8px 0 10px;
}

.csg-plan {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
}

.csg-plan__label {
  font-weight: 600;
}

.csg-plan__price {
  font-weight: 700;
}

.csg-plan__suffix {
  font-weight: 600;
  opacity: 0.7;
}

/* Meta */
.csg-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 6px;
}

.csg-meta__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.csg-meta__row b {
  font-weight: 600;
}

.csg-card__cta {
  margin-top: 10px;
}

/* Skeleton */
.csg-skeleton {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  animation: csgPulse 1.15s ease-in-out infinite;
}

@keyframes csgPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

/* Responsive */
@media (min-width: 680px) {
  .csg-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .csg-results__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}