/* V29 — Selected Customers now mirrors the Brand Partners logo wall.
   Desktop: five columns (two rows = ten logos per batch).
   The existing More button appends the next ten customer logos. */

.selected-customers-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* Match Brand Partners card proportions, surface, border and shadow. */
.selected-customers-grid .customer-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 140px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(13, 66, 118, .1);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow:
    0 10px 24px rgba(8, 37, 63, .06),
    inset 0 1px 0 rgba(255, 255, 255, .88),
    inset 0 -10px 18px rgba(9, 76, 124, .03);
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease,
    background .28s ease;
}

.selected-customers-grid .customer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 119, 170, .08),
    transparent 44%,
    rgba(50, 185, 208, .10)
  );
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}

/* Same logo scale as .logo-wall-item img in Brand Partners. */
.selected-customers-grid .customer-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  object-position: center;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, .92))
    drop-shadow(0 5px 7px rgba(11, 48, 82, .12));
}

.selected-customers-grid .customer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 122, 168, .32);
  background: linear-gradient(180deg, #fff 0%, #f3fbff 100%);
  box-shadow:
    0 16px 32px rgba(8, 37, 63, .10),
    0 0 0 1px rgba(62, 182, 214, .08),
    0 0 18px rgba(62, 182, 214, .18);
}

.selected-customers-grid .customer-card:hover::before {
  opacity: 1;
}

/* Use the same responsive column progression as the Brand Partners wall. */
@media (max-width: 1100px) {
  .selected-customers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 820px) {
  .selected-customers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .selected-customers-grid .customer-card {
    min-height: 126px;
    padding: 16px;
  }

  .selected-customers-grid .customer-card img {
    max-height: 66px;
  }
}

@media (max-width: 640px) {
  .selected-customers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .selected-customers-grid .customer-card {
    min-height: 112px;
    padding: 13px;
    border-radius: 18px;
  }

  .selected-customers-grid .customer-card img {
    max-height: 60px;
  }

  .customer-actions {
    margin-top: 18px;
  }

  .customer-more-btn {
    width: 100%;
    max-width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .selected-customers-grid .customer-card,
  .selected-customers-grid .customer-card::before {
    transition: none;
  }
}
