@layer cinder.tokens, cinder.foundation, cinder.components, cinder.utilities;

@import '/assets/f47cf25678047dc1d0c5372c25b330b4ffdf35604610caa62c68ff9ad26b877e/components/grid/grid.css';
@import '/assets/f47cf25678047dc1d0c5372c25b330b4ffdf35604610caa62c68ff9ad26b877e/components/choice-grid-item/choice-grid-item.css';

@layer cinder.components {
  /* ========================================
   * CHOICE GRID — parent container
   * ======================================== */

  /* A disabled grid leaves every item to its own disabled state (the disabled text colour), and
     only switches off pointer events. */
  .cinder-choice-grid {
    inline-size: 100%;
  }

  .cinder-choice-grid[data-cinder-disabled] {
    color: var(--cinder-text-disabled);
    pointer-events: none;
  }

  /* Every card in one group shares one row height, so a row with no description is not shorter
   * than its neighbours. */
  .cinder-choice-grid[data-cinder-variant='card'] {
    grid-auto-rows: 1fr;
  }

  /* Rows sit edge to edge, with the hairline between them and no gap. */
  .cinder-choice-grid[data-cinder-variant='row'] {
    gap: 0;
  }
}
