.conversationSearch {
  display: flex;
  flex: 1;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  background-color: var(--uikit-bg-color-operate);
  color: var(--uikit-text-color-primary);
}

.conversationSearch__trigger {
  padding: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  :global(input) {
    cursor: pointer;
    caret-color: transparent;
    pointer-events: none;
  }

  &:active > :first-child {
    opacity: 0.7;
  }
}

// Drop the viewport's default centering/padding via the Dialog's own
// `viewportClassName` extension point, so the popup can fill the screen.
.conversationSearch__viewport {
  padding: 0 !important;
  place-items: stretch;
}

// Full-screen popup, controlled purely through the className the business
// side passes to the Dialog. The base Dialog keeps its own default look.
.conversationSearch__advanced {
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none;
  max-height: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;

  // Neutralize the base popup's scale/translate enter animation, which looks
  // off on a full-screen surface; keep a simple opacity fade.
  &[data-starting-style],
  &[data-ending-style] {
    transform: none;
  }

  // The Dialog wraps our children in its body element (the only direct child
  // in this usage: no header/footer). Make it fill without referencing the
  // base component's internal class name.
  > * {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
}

.searchContainer {
  height: 100%;
}
