.cc-marketplace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-marketplace-item {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.cc-marketplace-link {
  display: flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.cc-marketplace-link:hover {
  opacity: 0.7;
}

.cc-marketplace-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.cc-marketplace-icon,
.cc-marketplace-skeleton-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 4px;
}

.cc-marketplace-icon {
  display: block;
  background: #f0f0f0;
  object-fit: cover;
}

.cc-marketplace-name {
  min-width: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.cc-marketplace-skeleton {
  display: flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  gap: 12px;
}

.cc-marketplace-skeleton-icon,
.cc-marketplace-skeleton-lines span {
  background: linear-gradient(90deg, #ededed 25%, #f7f7f7 50%, #ededed 75%);
  background-size: 200% 100%;
  animation: cc-marketplace-shimmer 1.4s ease-in-out infinite;
}

.cc-marketplace-skeleton-lines {
  display: flex;
  width: min(150px, calc(100% - 44px));
  flex-direction: column;
  gap: 6px;
}

.cc-marketplace-skeleton-lines span {
  display: block;
  height: 8px;
  border-radius: 2px;
}

.cc-marketplace-skeleton-lines span:last-child {
  width: 62%;
}

.cc-marketplace-message {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #666;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
}

.cc-marketplace-message button {
  appearance: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

@keyframes cc-marketplace-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 991px) {
  .cc-marketplace-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cc-marketplace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .cc-marketplace-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-marketplace-link {
    transition: none;
  }

  .cc-marketplace-skeleton-icon,
  .cc-marketplace-skeleton-lines span {
    animation: none;
  }
}

