/*
 =================================================
  Custom Color Selector Styles (OKLCH)
 =================================================
*/

/* Zorg dat deze variabelen beschikbaar zijn, bijvoorbeeld in :root */
:root {
  --radius: 0.625rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --primary: oklch(0.538 0.275 351.39);
  --primary-foreground: oklch(1 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --border: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
}

/* -- HOOFD CONTAINER -- */
.cs-container {
  background-color: var(--muted);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}

/* -- HEADER -- */
.cs-header {
  margin-bottom: 1rem;
}

.cs-title {
  font-weight: 600;
  color: var(--foreground);
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
}

/* -- GROEPERING -- */
.cs-group {
  margin-top: 1rem;
}
.cs-group:first-child {
  margin-top: 0;
}

.cs-group-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* -- GRID MET OPTIES -- */
.cs-options-grid {
  display: grid;
  /* 
    Pas '140px' aan om de minimale breedte van de knoppen te wijzigen.
    De grid vult de ruimte en wikkelt items automatisch naar de volgende regel.
  */
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

/* -- DE OPTIE KNOPPEN -- */
.cs-option-button {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  background-color: white !important;
  color: var(--card-foreground);
  cursor: pointer;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.cs-option-button:hover {
  border-color: var(--primary);
}

.cs-option-button:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--primary);
}

/* -- GESELECTEERDE KNOP -- */
.cs-option-button.cs-option-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

/* -- KNOP INTERNALS -- */
.cs-swatch {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex-shrink: 0; /* Voorkom dat de swatch krimpt */
}

.cs-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.2;
}

/* -- NIEUW: MEER WEERGEVEN FUNCTIONALITEIT -- */
.cs-group-hidden {
  display: none;
}

.cs-show-more-button {
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  margin-top: 1rem;
  border: 1px dashed var(--border) !important;
  border-radius: var(--radius) !important;
  background-color: transparent !important;
  color: #E11482 !important;
  font-weight: 500;
	font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cs-show-more-button:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  border-style: solid;
}