Nesting Conditions - Hide Cards Based On Location / Room Selector

Ahoy!
I’m struggling to get an “or” condition card working and wonder if I’m missing something obvious (maybe getting tripped up because I’m actually trying to hide a certain card rather than show one).

The conditions work fine independently, but when I nest them only the Room Selector condition works and it ignores the Location Condition.

Location Condition (when Room Selector is in Auto and I’m not in the Garage, show the card) - works as intended:

type: conditional
conditions: 
  - conditions: and
    conditions:
      - conditions: state
        entity: input_select.room_select
        state: Auto
      - conditions: state
        entity: device_tracker.iphone
        state_not: Garage

Room Selector (when Room Selector is NOT in Garage, show the card - but hide it when Room Selector is set to Garage) - works as intended:

type: conditional
conditions: 
  - conditions: state
     entity: input_select.room_select
      state_not: Garage

Nested Condition (when the two are nested with “or” it only pays attention to the Room Selector) - does not work as intended, which is to hide the card if I’m in the garage when Room is set to Auto or hide the card if Room is set to Garage - otherwise show the card:


type: conditional
conditions: 
  - conditions: or
    conditions:

    - conditions: and
      conditions:
        - conditions: state
          entity: input_select.room_select
          state: Auto
        - conditions: state
          entity: device_tracker.iphone
          state_not: Garage

    - conditions: state
      entity: input_select.room_select
      state_not: Garage

Any ideas appreciated! Thanks

Thanks, ChatGPT (after about 30 iterations!)

type: conditional
conditions:

  - condition: and
    conditions:

      - condition: or
        conditions:
          - condition: state
            entity: input_select.room_select
            state_not: Auto
          - condition: state
            entity: device_tracker.iphone
            state_not: Garage

      - condition: state
        entity: input_select.room_select
        state_not: Garage