/**
 * Example-specific styles
 *
 * These styles support the additional select examples.
 * Review and move into select.css as needed.
 */

/* =============================================================================
   COLORSPACE SELECT - Button Label
   ============================================================================= */

select.colorspace-select {
  @supports (appearance: base-select) {
    min-block-size: 3lh;
  }
}

select.colorspace-select > button {
  display: grid;
  gap: 0;
}

select.colorspace-select > button .label {
  font-size: 8px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-inline-start: 4px;
  margin-block-end: -1em;
}

/* =============================================================================
   PERSON SELECT - Avatars
   ============================================================================= */

select.person-select {
  button {
    padding-inline-start: 0;
  }

  .avatar {
    inline-size: 24px;
    block-size: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }
}

/* =============================================================================
   TOGGLE SELECT - Indicators
   ============================================================================= */

select.toggle .indicator {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

select.toggle .indicator.on {
  background: #51cf66;
}

select.toggle .indicator.off {
  background: #ff6b6b;
}

select.toggle .indicator.disabled {
  background: #e0e0e0;
}

/* =============================================================================
   STATUS SELECT - Descriptions
   ============================================================================= */

select.status-select {
  @supports (appearance: base-select) {
    min-block-size: 3lh;
  }
}

select.status-select .custom-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

select.status-select .custom-option .description {
  font-size: 11px;
  opacity: 0.6;
}

/* Adjust option height for multi-line content */
select.status-select option:has(.custom-option) {
  block-size: auto;
  min-block-size: var(--item-height);
  padding-block: 8px;
}
