.color-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  max-height: 200px;
  overflow-y: auto;
}

.color-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.color-option:hover {
  background: #f5f5f5;
}

.color-swatch {
  width: 70px;
  height: 70px;
  min-width: 70px;
  min-height: 70px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  background-size: cover;
  background-position: center center;
}

.color-option.selected {
  background: #e3f2fd;
  border-color: #2196f3;
}

.color-option input[type="checkbox"] {
  margin: 0;
}

.color-option .color-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.color-option {
  padding: 8px 12px;
  gap: 12px;
}

/* Make swatches slightly smaller on very small screens to avoid layout break */
@media (max-width: 480px) {
  .color-swatch {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 6px;
  }
  .color-option {
    padding: 6px 8px;
  }
}

/* Compact select styles for product page */
.compact-color-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.color-swatch.small {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: inline-block;
}

.color-translations {
  margin-top: 8px;
}
.color-translations ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
}
.color-translations li {
  font-size: 0.92rem;
  color: #333;
}

@media (max-width: 480px) {
  .color-swatch.small {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
  }
  .compact-color-select {
    gap: 6px;
  }
}
