/*
 =================================================
  Custom Position Selector (EPO) Styles
 =================================================
*/

/* -- HOOFD CONTAINER -- */
.ps-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 -- */
.ps-header {
  margin-bottom: 1rem;
}

.ps-title {
  font-weight: 600;
  color: var(--foreground);
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
}

/* -- GRID MET OPTIES -- */
.ps-options-grid {
  display: grid;
  /* Pas '130px' aan voor bredere/smallere knoppen */
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

/* -- DE OPTIE KNOPPEN -- */
.ps-option-button {
  width: 100%;
	height: 132px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: flex;
  flex-direction: column; /* Stapel afbeelding en tekst verticaal */
  align-items: center;
  gap: 0.65rem; /* Ruimte tussen afbeelding en tekst */
  text-align: center;
  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;
}

.ps-option-button:hover {
  border-color: var(--primary);
}

.ps-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 -- */
.ps-option-button.ps-option-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

/* -- KNOP INTERNALS -- */
.ps-image {
  width: 100%;
  max-width: 80px !important; /* Voorkom dat de afbeelding te groot wordt */
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  border-radius: calc(var(--radius) * 0.8);
}

.ps-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.2;
}