@layer cinder.tokens, cinder.foundation, cinder.components, cinder.utilities;
@import '/assets/f47cf25678047dc1d0c5372c25b330b4ffdf35604610caa62c68ff9ad26b877e/components/button/button.css';
@import '/assets/f47cf25678047dc1d0c5372c25b330b4ffdf35604610caa62c68ff9ad26b877e/components/form-field/form-field.css';
@import '/assets/f47cf25678047dc1d0c5372c25b330b4ffdf35604610caa62c68ff9ad26b877e/components/input/input.css';

@layer cinder.components {
  .cinder-find-bar {
    display: flex;
    align-items: center;
    gap: var(--cinder-space-2);
    min-inline-size: 0;
    flex-wrap: wrap;
    padding: var(--cinder-space-2);
    border-block-end: 1px solid var(--cinder-border-muted);
    background: var(--cinder-surface-raised);
  }
  /* Direct child, not a descendant selector: FindBar's own FormField renders
     `.cinder-form-field` as a direct child of `.cinder-find-bar`, but since
     CIN-511 the Input inside it *also* renders its own nested
     `.cinder-form-field` (Input always frames itself when it has field
     context now, with label/description/error simply absent). A descendant
     selector would match that inner frame too, applying `flex`/
     `min-inline-size` to it a second time inside the outer frame's own flex
     column and distorting the row's layout. */
  .cinder-find-bar > .cinder-form-field {
    flex: 1 1 12rem;
    min-inline-size: min(12rem, 100%);
  }
  .cinder-find-bar__status {
    min-inline-size: 5rem;
    color: var(--cinder-text-muted);
    font-size: var(--cinder-text-sm);
    text-align: center;
  }
  .cinder-find-bar__actions {
    display: flex;
    gap: var(--cinder-space-1);
  }
}
