.color-picker-container {
  position: relative;
  width: 100%;
}

.color-picker-trigger {
  font: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  min-height: 44px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.color-picker-trigger:hover {
  border-color: var(--color-accent);
}

.color-picker-trigger:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.color-picker-trigger-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-picker-trigger-name {
  font-weight: 500;
}

.color-picker-placeholder {
  color: var(--color-text-muted);
}

.color-picker-caret {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  transition: transform 0.15s ease;
}

.color-picker-container[aria-expanded="true"] .color-picker-caret {
  transform: rotate(180deg);
}

.color-picker-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-top: 0.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(59, 48, 38, 0.12);
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow: hidden;
}

.color-picker-search-wrapper {
  padding: 0.5rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.color-picker-search {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 0.9rem;
  min-height: 36px;
}

.color-picker-search:focus {
  outline: none;
  border-color: var(--color-accent);
}

.color-picker-options {
  overflow-y: auto;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.color-picker-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: none;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 0.375rem;
  text-align: left;
  min-height: 40px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.color-picker-option:hover {
  background: var(--color-accent-soft);
}

.color-picker-option--selected {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 600;
}

.color-picker-option-image-wrapper {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.color-picker-option-image-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 0.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.color-picker-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
